review:【ANTD】TableAction
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
<!-- add by 星语:参考 vben2 的方式,增加 TableAction 组件 -->
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { ButtonType } from 'ant-design-vue/es/button';
|
import type { ButtonType } from 'ant-design-vue/es/button';
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ function onCreate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 删除角色 */
|
/** 删除角色 */
|
||||||
|
// TODO @xingyu:删除这个二次确认,有啥好的办法么?
|
||||||
async function onDelete(row: SystemRoleApi.Role) {
|
async function onDelete(row: SystemRoleApi.Role) {
|
||||||
const hideLoading = message.loading({
|
const hideLoading = message.loading({
|
||||||
content: $t('ui.actionMessage.deleting', [row.name]),
|
content: $t('ui.actionMessage.deleting', [row.name]),
|
||||||
|
|||||||
Reference in New Issue
Block a user