feat: 时间段选择器拓展

This commit is contained in:
puhui999
2025-04-04 15:58:04 +08:00
parent e140270b26
commit 196218ae33
6 changed files with 87 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import type { SystemNotifyTemplateApi } from '#/api/system/notify/template';
import { z } from '#/adapter/form';
import { CommonStatusEnum } from '#/utils/constants';
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
import { rangePickerExtend } from '#/utils/TimeUtils';
/** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] {
@@ -139,6 +140,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'RangePicker',
componentProps: {
allowClear: true,
...rangePickerExtend(),
},
},
];