优化validatorEndTime和validatorTimeGTCurrentDay类型
parent
5ea836071e
commit
8c7c82680c
|
|
@ -329,14 +329,14 @@ export function processTreeDataForOnlyLastLevel(
|
|||
/**
|
||||
* 验证结束时间是否大于开始时间
|
||||
*/
|
||||
export function validatorEndTime(timeStart: string, message: string): {
|
||||
export function validatorEndTime(timeStart: string, message?: string): {
|
||||
validator: (_: any, value: any) => Promise<void | string>;
|
||||
};
|
||||
|
||||
/**
|
||||
* 验证时间是否大于等于当前时间
|
||||
*/
|
||||
export function validatorTimeGTCurrentDay(message: string): {
|
||||
export function validatorTimeGTCurrentDay(message?: string): {
|
||||
validator: (_: any, value: any) => Promise<void | string>;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue