feat:add control options
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { IElement } from '..'
|
||||
import { EditorMode } from '../dataset/enum/Editor'
|
||||
import { IControlOption } from './Control'
|
||||
import { IHeader } from './Header'
|
||||
import { IWatermark } from './Watermark'
|
||||
|
||||
@@ -36,6 +37,7 @@ export interface IEditorOption {
|
||||
headerTop?: number;
|
||||
header?: IHeader;
|
||||
watermark?: IWatermark;
|
||||
control?: IControlOption;
|
||||
}
|
||||
|
||||
export interface IEditorResult {
|
||||
|
||||
Reference in New Issue
Block a user