element-plus/packages/tokens/date-picker.ts
JeremyWuuuuu eb07d7c7ac
refactor(components): [time-picker] date-picker (#7923)
- Refactor date-picker with tsx.
- Move injection key to tokens bundle.
- Add entry for type `dates`.
- Update provide content for root picker.
2022-05-27 15:46:05 +08:00

9 lines
204 B
TypeScript

import type { InjectionKey, SetupContext } from 'vue'
interface DatePickerContext {
slots: SetupContext['slots']
}
export const ROOT_PICKER_INJECTION_KEY: InjectionKey<DatePickerContext> =
Symbol()