We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
答案:主要是让组件的可扩展性更强,简单点说就是,能够在组件内写其他内容
The text was updated successfully, but these errors were encountered:
插槽? 插孔???
Sorry, something went wrong.
// CompOne组件创建时候
<slot name="header"></slot> <slot name="body"></slot>
<slot name="header"></slot>
<slot name="body"></slot>
// 组件使用的时候 <comp-one> <span slot="header"> this is header</span> // 对应CompOne件中的位置 <span slot="body"> this is body</span> //对应CompOne件中的位置 </comp-one>
<comp-one> <span slot="header"> this is header</span> // 对应CompOne件中的位置 <span slot="body"> this is body</span> //对应CompOne件中的位置 </comp-one>
No branches or pull requests
答案:主要是让组件的可扩展性更强,简单点说就是,能够在组件内写其他内容
The text was updated successfully, but these errors were encountered: