mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [date-picker] correct injection key for default format (#20611)
This commit is contained in:
@@ -123,7 +123,7 @@ const leftDate = ref(dayjs().locale(lang.value))
|
||||
const rightDate = ref(leftDate.value.add(10, 'year'))
|
||||
const { pickerNs: ppNs } = inject(ROOT_PICKER_INJECTION_KEY)!
|
||||
const drpNs = useNamespace('date-range-picker')
|
||||
const isDefaultFormat = inject('isDefaultFormat') as any
|
||||
const isDefaultFormat = inject('ElIsDefaultFormat') as any
|
||||
|
||||
const hasShortcuts = computed(() => !!shortcuts.length)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user