feat(dashboard): add UI metadata fields to FieldSchema type

pull/1496/head
DrSmoothl 2026-02-17 16:48:58 +08:00
parent 545e3b4982
commit 5838dda175
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -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 {