Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重构计划:解决 Nested Slot 数据问题 #3

Open
SuneBear opened this issue Oct 17, 2018 · 0 comments
Open

重构计划:解决 Nested Slot 数据问题 #3

SuneBear opened this issue Oct 17, 2018 · 0 comments
Labels

Comments

@SuneBear
Copy link

SuneBear commented Oct 17, 2018

模板 MPVue 不支持 Nested Slot,在 Component 编译阶段会把 Template 扁平化,采用小程序原生的 Template 来渲染,这样会导致作用域混乱,从而渲染出错。如果改成小程序原生的自定义组件的方案,则可以默认支持 Slot,不需要用 Template 的方式来 Hack,Template 方式还会带来模板编译不稳定的问题,应该反对。

参见:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant