Skip to content

Commit

Permalink
fix(Datepicker): support dayjs object, close #1048
Browse files Browse the repository at this point in the history
  • Loading branch information
Javey committed Dec 3, 2024
1 parent 9085828 commit 20d584f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/datepicker/basepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export type Value = string | Date | number | Dayjs;

const typeDefs: Required<TypeDefs<BasePickerProps<Value>>> = {
...BaseSelect.typeDefs,
value: [String, Array, Date, Number, dayjs.Dayjs],
value: [String, Array, Date, Number, dayjs],
range: Boolean,
format: String,
valueFormat: String,
showFormat: String,
min: [String, Date, Number, dayjs.Dayjs],
max: [String, Date, Number, dayjs.Dayjs],
min: [String, Date, Number, dayjs],
max: [String, Date, Number, dayjs],
disabledDate: Function,
};

Expand Down

0 comments on commit 20d584f

Please sign in to comment.