types(TimePicker): export TimePickerColumnType

This commit is contained in:
chenjiahan 2022-02-16 10:59:31 +08:00
parent 829db06d5b
commit b608fb23f0
3 changed files with 3 additions and 2 deletions

View File

@ -210,5 +210,5 @@ export default {
The component exports the following type definitions: The component exports the following type definitions:
```ts ```ts
import type { TimePickerProps } from 'vant'; import type { TimePickerProps, TimePickerColumnType } from 'vant';
``` ```

View File

@ -211,7 +211,7 @@ export default {
组件导出以下类型定义: 组件导出以下类型定义:
```ts ```ts
import type { TimePickerProps } from 'vant'; import type { TimePickerProps, TimePickerColumnType } from 'vant';
``` ```
## 常见问题 ## 常见问题

View File

@ -4,6 +4,7 @@ import _TimePicker, { TimePickerProps } from './TimePicker';
export const TimePicker = withInstall(_TimePicker); export const TimePicker = withInstall(_TimePicker);
export default TimePicker; export default TimePicker;
export type { TimePickerProps }; export type { TimePickerProps };
export type { TimePickerColumnType } from './TimePicker';
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {