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;
|
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>
|
||||||
|
Loading…
Reference in New Issue
Block a user