zy-react-library 1.0.145 → 1.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/index.d.ts +2 -2
- package/utils/index.js +3 -3
package/package.json
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -334,9 +334,9 @@ export function validatorEndTime(timeStart: string): {
|
|
|
334
334
|
};
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
|
-
*
|
|
337
|
+
* 验证时间是否大于等于当前时间
|
|
338
338
|
*/
|
|
339
|
-
export function
|
|
339
|
+
export function validatorTimeGTCurrentDay(): {
|
|
340
340
|
validator: (_: any, value: any) => Promise<void | string>;
|
|
341
341
|
};
|
|
342
342
|
|
package/utils/index.js
CHANGED
|
@@ -525,13 +525,13 @@ export const validatorEndTime = (timeStart) => {
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
|
-
*
|
|
528
|
+
* 验证时间是否大于等于当前时间
|
|
529
529
|
*/
|
|
530
|
-
export const
|
|
530
|
+
export const validatorTimeGTCurrentDay = () => {
|
|
531
531
|
return {
|
|
532
532
|
validator: (_, value) => {
|
|
533
533
|
if (value && value <= dayjs().format("YYYY-MM-DD hh:mm:ss")) {
|
|
534
|
-
return Promise.reject("
|
|
534
|
+
return Promise.reject("需要大于当前时间");
|
|
535
535
|
}
|
|
536
536
|
else {
|
|
537
537
|
return Promise.resolve();
|