feat(Picker): allow option text to be number type (#8951)
This commit is contained in:
@@ -37,13 +37,13 @@ function getElementTranslateY(element: Element) {
|
||||
export const PICKER_KEY = Symbol(name);
|
||||
|
||||
export type PickerObjectOption = {
|
||||
text?: string;
|
||||
text?: string | number;
|
||||
disabled?: boolean;
|
||||
// for custom filed names
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export type PickerOption = string | PickerObjectOption;
|
||||
export type PickerOption = string | number | PickerObjectOption;
|
||||
|
||||
export type PickerObjectColumn = {
|
||||
values?: PickerOption[];
|
||||
|
||||
Reference in New Issue
Block a user