types: rename ISetControlValueOption interface
This commit is contained in:
@@ -831,5 +831,5 @@ Feature: Set control value
|
|||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
instance.command.executeSetControlValue(payload: ISetControlOption)
|
instance.command.executeSetControlValue(payload: ISetControlValueOption)
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -831,5 +831,5 @@ instance.command.executeLocationGroup(groupId: string)
|
|||||||
用法:
|
用法:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
instance.command.executeSetControlValue(payload: ISetControlOption)
|
instance.command.executeSetControlValue(payload: ISetControlValueOption)
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { DeepRequired } from '../../interface/Common'
|
|||||||
import {
|
import {
|
||||||
IGetControlValueOption,
|
IGetControlValueOption,
|
||||||
IGetControlValueResult,
|
IGetControlValueResult,
|
||||||
ISetControlOption
|
ISetControlValueOption
|
||||||
} from '../../interface/Control'
|
} from '../../interface/Control'
|
||||||
import {
|
import {
|
||||||
IAppendElementListOption,
|
IAppendElementListOption,
|
||||||
@@ -2077,7 +2077,7 @@ export class CommandAdapt {
|
|||||||
return this.draw.getControl().getValueByConceptId(payload)
|
return this.draw.getControl().getValueByConceptId(payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
public setControlValue(payload: ISetControlOption) {
|
public setControlValue(payload: ISetControlValueOption) {
|
||||||
const isReadonly = this.draw.isReadonly()
|
const isReadonly = this.draw.isReadonly()
|
||||||
if (isReadonly) return
|
if (isReadonly) return
|
||||||
this.draw.getControl().setValueByConceptId(payload)
|
this.draw.getControl().setValueByConceptId(payload)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
IControlOption,
|
IControlOption,
|
||||||
IGetControlValueOption,
|
IGetControlValueOption,
|
||||||
IGetControlValueResult,
|
IGetControlValueResult,
|
||||||
ISetControlOption
|
ISetControlValueOption
|
||||||
} from '../../../interface/Control'
|
} from '../../../interface/Control'
|
||||||
import { IEditorData } from '../../../interface/Editor'
|
import { IEditorData } from '../../../interface/Editor'
|
||||||
import { IElement, IElementPosition } from '../../../interface/Element'
|
import { IElement, IElementPosition } from '../../../interface/Element'
|
||||||
@@ -463,7 +463,7 @@ export class Control {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
public setValueByConceptId(payload: ISetControlOption) {
|
public setValueByConceptId(payload: ISetControlValueOption) {
|
||||||
const isReadonly = this.draw.isReadonly()
|
const isReadonly = this.draw.isReadonly()
|
||||||
if (isReadonly) return
|
if (isReadonly) return
|
||||||
let isExistSet = false
|
let isExistSet = false
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export type IGetControlValueResult = (Omit<IControl, 'value'> & {
|
|||||||
innerText: string | null
|
innerText: string | null
|
||||||
})[]
|
})[]
|
||||||
|
|
||||||
export interface ISetControlOption {
|
export interface ISetControlValueOption {
|
||||||
conceptId: string
|
conceptId: string
|
||||||
value: string
|
value: string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user