Skip to content

Commit 65a1be9

Browse files
committed
fix(time-spinner): fix startDate & endDate prop type issue when isRange is true in time components (opentiny#3295)
1 parent 1dfdc4e commit 65a1be9

File tree

1 file changed

+4
-4
lines changed
  • packages/vue/src/time-spinner/src

1 file changed

+4
-4
lines changed

packages/vue/src/time-spinner/src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ export default defineComponent({
4242
}
4343
},
4444
startDate: {
45-
type: Object,
46-
default: () => ({})
45+
type: [Date, String, Number],
46+
default: () => ''
4747
},
4848
endDate: {
49-
type: Object,
50-
default: () => ({})
49+
type: [Date, String, Number],
50+
default: () => ''
5151
}
5252
},
5353
setup(props, context) {

0 commit comments

Comments
 (0)