mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(Picker): fix columns prop typing
This commit is contained in:
parent
fda3f1be94
commit
6c64bc33c1
@ -39,6 +39,7 @@ import Column, { PICKER_KEY } from './PickerColumn';
|
||||
import type {
|
||||
PickerColumn,
|
||||
PickerExpose,
|
||||
PickerOption,
|
||||
PickerFieldNames,
|
||||
PickerToolbarPosition,
|
||||
} from './types';
|
||||
@ -59,7 +60,7 @@ export const pickerSharedProps = {
|
||||
};
|
||||
|
||||
const pickerProps = extend({}, pickerSharedProps, {
|
||||
columns: makeArrayProp<PickerColumn | PickerColumn[]>(),
|
||||
columns: makeArrayProp<PickerOption | PickerColumn>(),
|
||||
modelValue: makeArrayProp<number | string>(),
|
||||
toolbarPosition: makeStringProp<PickerToolbarPosition>('top'),
|
||||
columnsFieldNames: Object as PropType<PickerFieldNames>,
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
### 介绍
|
||||
|
||||
提供多个选项集合供用户选择,支持单列选择和多列级联,通常与[弹出层](#/zh-CN/popup)组件配合使用。
|
||||
提供多个选项集合供用户选择,支持单列选择、多列选择和级联选择,通常与[弹出层](#/zh-CN/popup)组件配合使用。
|
||||
|
||||
### 引入
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user