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;
disabledDelete?: boolean;
loading?: boolean;
hiddenBatchDelete?: boolean;
showBatchDelete?: boolean;
}
defineProps<Props>();
@ -51,7 +51,7 @@ function refresh() {
</NButton>
<NPopconfirm @positive-click="batchDelete">
<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>
<icon-ic-round-delete class="text-icon" />
</template>