mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(DatePicker): export DatePickerColumnType
This commit is contained in:
parent
2e053ad76b
commit
829db06d5b
@ -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';
|
||||||
```
|
```
|
||||||
|
@ -210,7 +210,7 @@ export default {
|
|||||||
组件导出以下类型定义:
|
组件导出以下类型定义:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import type { DatePickerProps } from 'vant';
|
import type { DatePickerProps, DatePickerColumnType } from 'vant';
|
||||||
```
|
```
|
||||||
|
|
||||||
## 常见问题
|
## 常见问题
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user