ViewUI
ViewUI copied to clipboard
[Feature Request]希望 TabPane 支持直接在 template 中写 slot
What problem does this feature solve?
方便使用
What does the proposed API look like?
希望支持在 TabPane 中直接写内容,而不是一定要在 label 属性写 render 函数,这样会更方便使用,我看了一下源代码,在 src/components/tabs/pane.vue 中写了 <slot></slot> 并且实际 html 中也渲染了对应的 html,但并没有显示,不知道是为什么:
<TabPane name="0">
<p>hello</p>
</TabPane>

我直接把render函数写在label属性上解决了问题
