feat(dashboard): add UI metadata fields to FieldSchema type
This commit is contained in:
@@ -12,6 +12,8 @@ export type FieldType =
|
|||||||
| 'object'
|
| 'object'
|
||||||
| 'textarea'
|
| 'textarea'
|
||||||
|
|
||||||
|
export type XWidgetType = 'slider' | 'select' | 'textarea' | 'switch' | 'custom'
|
||||||
|
|
||||||
export interface FieldSchema {
|
export interface FieldSchema {
|
||||||
name: string
|
name: string
|
||||||
type: FieldType
|
type: FieldType
|
||||||
@@ -26,6 +28,9 @@ export interface FieldSchema {
|
|||||||
type: string
|
type: string
|
||||||
}
|
}
|
||||||
properties?: ConfigSchema
|
properties?: ConfigSchema
|
||||||
|
'x-widget'?: XWidgetType
|
||||||
|
'x-icon'?: string
|
||||||
|
step?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ConfigSchema {
|
export interface ConfigSchema {
|
||||||
|
|||||||
Reference in New Issue
Block a user