mirror of https://github.com/Mai-with-u/MaiBot.git
feat(dashboard): add UI metadata fields to FieldSchema type
parent
545e3b4982
commit
5838dda175
|
|
@ -12,6 +12,8 @@ export type FieldType =
|
|||
| 'object'
|
||||
| 'textarea'
|
||||
|
||||
export type XWidgetType = 'slider' | 'select' | 'textarea' | 'switch' | 'custom'
|
||||
|
||||
export interface FieldSchema {
|
||||
name: string
|
||||
type: FieldType
|
||||
|
|
@ -26,6 +28,9 @@ export interface FieldSchema {
|
|||
type: string
|
||||
}
|
||||
properties?: ConfigSchema
|
||||
'x-widget'?: XWidgetType
|
||||
'x-icon'?: string
|
||||
step?: number
|
||||
}
|
||||
|
||||
export interface ConfigSchema {
|
||||
|
|
|
|||
Loading…
Reference in New Issue