review:【ANTD】批量删除代码
This commit is contained in:
@@ -159,6 +159,7 @@ export function useGenerationInfoBaseFormSchema(): VbenFormSchema[] {
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
// TODO @puhui999:使用后端统一配置。因为一般需要批量的团队,会一直需要。不需要的,一般一直不需要哈。
|
||||
component: 'RadioGroup',
|
||||
fieldName: 'deleteBatch',
|
||||
label: '批量删除?',
|
||||
|
||||
@@ -151,6 +151,7 @@ export function useGridColumns(
|
||||
minWidth: 200,
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
// TODO @puhui999:headerAlign 要使用 headerAlign: 'center' 么?看着现在分成了 align 和 headerAlign 两种
|
||||
headerAlign: 'center',
|
||||
showOverflow: false,
|
||||
cellRender: {
|
||||
|
||||
@@ -61,6 +61,7 @@ async function onDelete(row: Demo01ContactApi.Demo01Contact) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO @puhui999::1)/** 批量删除示例联系人 */ 是不是放在 deleteIds 上面;2)showDeleteBatchBtn 是不是直接 disabled 哪里判断哈;
|
||||
const deleteIds = ref<number[]>([]); // 待删除示例联系人 ID
|
||||
const showDeleteBatchBtn = computed(() => isEmpty(deleteIds.value));
|
||||
/** 批量删除示例联系人 */
|
||||
|
||||
Reference in New Issue
Block a user