feat(components): add props showBatchDelete for

TableHeaderOperation
This commit is contained in:
pridejoy 2024-06-26 09:32:58 +08:00
parent 08b2ee176a
commit 152f0a53e2

View File

@ -9,7 +9,7 @@ interface Props {
itemAlign?: NaiveUI.Align; itemAlign?: NaiveUI.Align;
disabledDelete?: boolean; disabledDelete?: boolean;
loading?: boolean; loading?: boolean;
hiddenBatchDelete?: boolean; showBatchDelete?: boolean;
} }
defineProps<Props>(); defineProps<Props>();
@ -51,7 +51,7 @@ function refresh() {
</NButton> </NButton>
<NPopconfirm @positive-click="batchDelete"> <NPopconfirm @positive-click="batchDelete">
<template #trigger> <template #trigger>
<NButton size="small" ghost type="error" :disabled="disabledDelete" v-show="!hiddenBatchDelete" > <NButton size="small" ghost type="error" :disabled="disabledDelete" v-show="!showBatchDelete" >
<template #icon> <template #icon>
<icon-ic-round-delete class="text-icon" /> <icon-ic-round-delete class="text-icon" />
</template> </template>