up.
This commit is contained in:
parent
12cc7a78ff
commit
59b6f1ceaa
@ -17,7 +17,6 @@ export enum ItemType {
|
||||
TIME = "time",
|
||||
SWITCH = "switch",
|
||||
HIDDEN = "hidden",
|
||||
TIME_SECOND = "time", // 注意:第二个 time 使用不同名称
|
||||
RANGE = "range",
|
||||
DATE_RANGE = "date_range",
|
||||
DATETIME_RANGE = "datetime_range",
|
||||
@ -49,6 +48,7 @@ export const ItemLabels: Record<ItemType, string> = {
|
||||
[ItemType.NUMBER]: "数字",
|
||||
};
|
||||
|
||||
export function getItemLabel(type: ComponentType): string {
|
||||
|
||||
export function getItemLabel(type: ItemType): string {
|
||||
return ItemLabels[type] || type.toString();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user