feat: add set and get control value api #278
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user