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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.145",
4
+ "version": "1.0.146",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",
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 validatorEndTimeGTCurrentDay(): {
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 validatorEndTimeGTCurrentDay = () => {
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();