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
+1 -1
View File
@@ -204,5 +204,5 @@ export default {
The component exports the following type definitions:
```ts
import type { DatePickerProps } from 'vant';
import type { DatePickerProps, DatePickerColumnType } from 'vant';
```
@@ -210,7 +210,7 @@ export default {
组件导出以下类型定义:
```ts
import type { DatePickerProps } from 'vant';
import type { DatePickerProps, DatePickerColumnType } from 'vant';
```
## 常见问题
+1
View File
@@ -4,6 +4,7 @@ import _DatePicker, { DatePickerProps } from './DatePicker';
export const DatePicker = withInstall(_DatePicker);
export default DatePicker;
export type { DatePickerProps };
export type { DatePickerColumnType } from './DatePicker';
declare module 'vue' {
export interface GlobalComponents {