feat: add set and get control value api #278

This commit is contained in:
Hufe921
2023-09-15 22:42:22 +08:00
parent c45317eced
commit f754741f32
12 changed files with 280 additions and 20 deletions
+20
View File
@@ -1,6 +1,7 @@
import { ControlType } from '../dataset/enum/Control'
import { ICheckbox } from './Checkbox'
import { IElement } from './Element'
import { IRange } from './Range'
export interface IValueSet {
value: string
@@ -65,3 +66,22 @@ export interface IControlInstance {
cut(): number
}
export interface IControlContext {
range?: IRange
elementList?: IElement[]
}
export interface IGetControlValueOption {
conceptId: string
}
export type IGetControlValueResult = {
value: string | null
innerText: string | null
}[]
export interface ISetControlOption {
conceptId: string
value: string
}