From 5838dda1756feba477243c58a7f2d70cd886fe29 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Tue, 17 Feb 2026 16:48:58 +0800 Subject: [PATCH] feat(dashboard): add UI metadata fields to FieldSchema type --- dashboard/src/types/config-schema.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dashboard/src/types/config-schema.ts b/dashboard/src/types/config-schema.ts index e744c300..206c253d 100644 --- a/dashboard/src/types/config-schema.ts +++ b/dashboard/src/types/config-schema.ts @@ -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 {