File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/components/date-picker Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { defineComponent , computed , watch } from 'vue' ;
2
2
import dayjs from 'dayjs' ;
3
- import { isFunction } from 'lodash-es' ;
3
+ import { isFunction , isDate } from 'lodash-es' ;
4
4
import { CalendarIcon as TdCalendarIcon } from 'tdesign-icons-vue-next' ;
5
5
6
6
import { useTNodeJSX } from '../hooks/tnode' ;
@@ -17,7 +17,6 @@ import { useReadonly } from '../hooks/useReadonly';
17
17
18
18
import type { TdDatePickerProps , DateMultipleValue , DateValue } from './type' ;
19
19
import type { TagInputRemoveContext } from '../tag-input' ;
20
- import { isDate } from 'lodash-es' ;
21
20
22
21
export default defineComponent ( {
23
22
name : 'TDatePicker' ,
@@ -352,6 +351,7 @@ export default defineComponent({
352
351
status = { props . status }
353
352
tips = { props . tips }
354
353
clearable = { props . clearable }
354
+ readonly = { isReadOnly . value }
355
355
multiple = { props . multiple }
356
356
popupProps = { popupProps . value }
357
357
inputProps = { inputProps . value }
You can’t perform that action at this time.
0 commit comments