types(DatePicker): export DatePickerColumnType

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

View File

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

View File

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

View File

@ -4,6 +4,7 @@ import _DatePicker, { DatePickerProps } from './DatePicker';
export const DatePicker = withInstall(_DatePicker); export const DatePicker = withInstall(_DatePicker);
export default DatePicker; export default DatePicker;
export type { DatePickerProps }; export type { DatePickerProps };
export type { DatePickerColumnType } from './DatePicker';
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {