ViewUI icon indicating copy to clipboard operation
ViewUI copied to clipboard

[Feature Request]希望 TabPane 支持直接在 template 中写 slot

Open richex-cn opened this issue 5 years ago • 1 comments

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>

image

richex-cn avatar Feb 05 '20 12:02 richex-cn

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

herbertgaoo avatar Apr 06 '22 12:04 herbertgaoo