feat:add control options

This commit is contained in:
Hufe921
2022-03-30 22:24:15 +08:00
parent 6b1336fc1a
commit 66319d5405
5 changed files with 42 additions and 5 deletions
+10 -3
View File
@@ -1,4 +1,5 @@
import { ControlType } from '../dataset/enum/Control'
import { IElement } from './Element'
export interface IValueSet {
value: string;
@@ -7,9 +8,15 @@ export interface IValueSet {
export interface IControl {
type: ControlType;
value: string;
conceptId: string;
value: IElement[] | null;
placeholder: string;
conceptId?: string;
prefix?: string;
postfix?: string;
valueSets?: IValueSet[]
valueSets?: IValueSet[];
}
export interface IControlOption {
placeholderColor?: string;
bracketColor?: string;
}