Skip to content

Commit

Permalink
feat: add time-picker dayjs plugin same as date-picker (#1796)
Browse files Browse the repository at this point in the history
* feat: add time-picker dayjs plugin same as date-picker

* fix: remove unuse plugin
  • Loading branch information
ZWkang committed May 15, 2024
1 parent ae308e9 commit 2a2902c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/time-picker/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import dayjs from 'dayjs';
import advancedFormat from 'dayjs/plugin/advancedFormat';
import customParseFormat from 'dayjs/plugin/customParseFormat';

dayjs.extend(advancedFormat);
dayjs.extend(customParseFormat);

// 判断是否输入的值是合法的timepicker的值
export function validateInputValue(value: string, format: string) {
Expand Down

0 comments on commit 2a2902c

Please sign in to comment.