|
@@ -10,6 +10,9 @@
|
|
<template v-if="isSlotExtra" #extra>
|
|
<template v-if="isSlotExtra" #extra>
|
|
<slot name="extra" />
|
|
<slot name="extra" />
|
|
</template>
|
|
</template>
|
|
|
|
+ <template v-if="isSlotSearch" #search>
|
|
|
|
+ <slot name="search" />
|
|
|
|
+ </template>
|
|
<slot />
|
|
<slot />
|
|
<template v-if="isSlotAction" #action>
|
|
<template v-if="isSlotAction" #action>
|
|
<slot name="action" />
|
|
<slot name="action" />
|
|
@@ -41,6 +44,7 @@ const emit = defineEmits(['change'])
|
|
const slots = useSlots()
|
|
const slots = useSlots()
|
|
const isSlotExtra = ref(!!slots.extra)
|
|
const isSlotExtra = ref(!!slots.extra)
|
|
const isSlotAction = ref(!!slots.action)
|
|
const isSlotAction = ref(!!slots.action)
|
|
|
|
+const isSlotSearch = ref(!!slots.search)
|
|
|
|
|
|
//监听表头
|
|
//监听表头
|
|
const tabsData = ref(props.tabs)
|
|
const tabsData = ref(props.tabs)
|