naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

Add `divider` slot to Tabs component

Open jdwit opened this issue 2 years ago • 1 comments

This function solves the problem (这个功能解决的问题)

Sometimes it is needed to add something between tabs, for instance a divider symbol. An example use case is to add an arrow ">" as a divider between tabs. There is a prefix and suffix slot now, and the divider slot would complement this. It will greatly increase the number of scenarios in which the Tabs component can be used very much.

Expected API (期望的 API)

add a slot divider which will be rendered between tab instances.

jdwit avatar May 13 '22 08:05 jdwit

Why '>' can be a divider? What's it for?

I don't think it will be useful for most type of tabs.

07akioni avatar May 14 '22 21:05 07akioni

close as no response

equt avatar Aug 20 '22 08:08 equt