mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 20:57:57 +01:00
@@ -33,7 +33,7 @@
|
|||||||
</HTabList>
|
</HTabList>
|
||||||
|
|
||||||
<HTabPanels :class="ui.container">
|
<HTabPanels :class="ui.container">
|
||||||
<HTabPanel v-for="(item, index) of items" :key="index" v-slot="{ selected }" :class="ui.base">
|
<HTabPanel v-for="(item, index) of items" :key="index" v-slot="{ selected }" :class="ui.base" :unmount="unmount">
|
||||||
<slot :name="item.slot || 'item'" :item="item" :index="index" :selected="selected">
|
<slot :name="item.slot || 'item'" :item="item" :index="index" :selected="selected">
|
||||||
{{ item.content }}
|
{{ item.content }}
|
||||||
</slot>
|
</slot>
|
||||||
@@ -84,6 +84,10 @@ export default defineComponent({
|
|||||||
type: Array as PropType<TabItem[]>,
|
type: Array as PropType<TabItem[]>,
|
||||||
default: () => []
|
default: () => []
|
||||||
},
|
},
|
||||||
|
unmount: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
class: {
|
class: {
|
||||||
type: [String, Object, Array] as PropType<any>,
|
type: [String, Object, Array] as PropType<any>,
|
||||||
default: () => ''
|
default: () => ''
|
||||||
|
|||||||
@@ -30,4 +30,4 @@ export default {
|
|||||||
shadow: ''
|
shadow: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user