UNPKG

@etsoo/appscript

Version:

Applications shared TypeScript framework

72 lines (60 loc) 966 B
import { IdType, ListType2 } from "@etsoo/shared"; /** * Custom field space values * 自定义字段空间值 */ export const CustomFieldSpaceValues = [ "quater", "five", "half", "half1", "seven", "full" ] as const; /** * Custom field space (12 columns) * 自定义字段空间(12列) */ export type CustomFieldSpace = (typeof CustomFieldSpaceValues)[number]; /** * Custom field data * 自定义字段数据 */ export type CustomFieldData = { /** * Type */ type: string; /** * Field name */ name?: string; /** * Options */ options?: ListType2[]; /** * Refs */ refs?: [string, ...IdType[]]; /** * Space */ space?: CustomFieldSpace; /** * Grid item proerties */ gridItemProps?: Record<string, any>; /** * Main slot properties */ mainSlotProps?: Record<string, any>; /** * Label */ label?: string; /** * Helper text */ helperText?: string; };