mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-27 13:46:41 +08:00
feat(components): add props showBatchDelete for
TableHeaderOperation
This commit is contained in:
parent
08b2ee176a
commit
152f0a53e2
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user