mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
types(Cascader): fieldNames should be optional
This commit is contained in:
@@ -38,7 +38,7 @@ export type PickerOption =
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export type PickerStringColumn = string[];
|
||||
export type PickerPlainColumn = PickerOption[];
|
||||
|
||||
export type PickerObjectColumn = {
|
||||
values?: PickerOption[];
|
||||
@@ -49,7 +49,7 @@ export type PickerObjectColumn = {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export type PickerColumn = PickerStringColumn | PickerObjectColumn;
|
||||
export type PickerColumn = PickerPlainColumn | PickerObjectColumn;
|
||||
|
||||
function isOptionDisabled(option: PickerOption) {
|
||||
return isObject(option) && option.disabled;
|
||||
|
Reference in New Issue
Block a user