review:【antd/ele】【mp】代码迁移的 review

This commit is contained in:
YunaiV
2025-12-07 12:51:51 +08:00
parent 2fc86b7bda
commit 03d25bf85a
14 changed files with 15 additions and 684 deletions

View File

@@ -5,6 +5,8 @@ import type { MpMessageApi } from '#/api/mp/message';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { getRangePickerDefaultProps } from '#/utils';
/** 列表的搜索表单 */
export function useGridFormSchema(): VbenFormSchema[] {
return [
@@ -37,10 +39,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
label: '创建时间',
component: 'RangePicker',
componentProps: {
type: 'datetimerange',
rangeSeparator: '至',
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
...getRangePickerDefaultProps(),
clearable: true,
},
},
];
@@ -92,4 +92,3 @@ export function useGridColumns(): VxeTableGridOptions<MpMessageApi.Message>['col
},
];
}