types: rename ISetControlValueOption interface

This commit is contained in:
Hufe921
2023-10-16 21:18:56 +08:00
parent 162bc057f3
commit cdfcef2735
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ import { DeepRequired } from '../../interface/Common'
import {
IGetControlValueOption,
IGetControlValueResult,
ISetControlOption
ISetControlValueOption
} from '../../interface/Control'
import {
IAppendElementListOption,
@@ -2077,7 +2077,7 @@ export class CommandAdapt {
return this.draw.getControl().getValueByConceptId(payload)
}
public setControlValue(payload: ISetControlOption) {
public setControlValue(payload: ISetControlValueOption) {
const isReadonly = this.draw.isReadonly()
if (isReadonly) return
this.draw.getControl().setValueByConceptId(payload)
+2 -2
View File
@@ -8,7 +8,7 @@ import {
IControlOption,
IGetControlValueOption,
IGetControlValueResult,
ISetControlOption
ISetControlValueOption
} from '../../../interface/Control'
import { IEditorData } from '../../../interface/Editor'
import { IElement, IElementPosition } from '../../../interface/Element'
@@ -463,7 +463,7 @@ export class Control {
return result
}
public setValueByConceptId(payload: ISetControlOption) {
public setValueByConceptId(payload: ISetControlValueOption) {
const isReadonly = this.draw.isReadonly()
if (isReadonly) return
let isExistSet = false
+1 -1
View File
@@ -82,7 +82,7 @@ export type IGetControlValueResult = (Omit<IControl, 'value'> & {
innerText: string | null
})[]
export interface ISetControlOption {
export interface ISetControlValueOption {
conceptId: string
value: string
}