types(Area): use tsx (#8140)

This commit is contained in:
neverland
2021-02-12 13:18:13 +08:00
committed by GitHub
parent 54be2b3c0a
commit a00f599dc2
6 changed files with 83 additions and 52 deletions

View File

@@ -29,14 +29,14 @@ function getElementTranslateY(element: Element) {
return Number(translateY);
}
export type PickerOption =
| string
| {
text: string;
disabled?: boolean;
// for custom filed names
[key: string]: any;
};
export type PickerObjectOption = {
text?: string;
disabled?: boolean;
// for custom filed names
[key: string]: any;
};
export type PickerOption = string | PickerObjectOption;
export type PickerObjectColumn = {
values?: PickerOption[];