feat: add control disabled rule
This commit is contained in:
@@ -23,6 +23,7 @@ export interface IControlCheckbox {
|
||||
|
||||
export interface IControlRule {
|
||||
deletable?: boolean
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
export interface IControlBasic {
|
||||
@@ -66,7 +67,11 @@ export interface IControlInstance {
|
||||
|
||||
getValue(): IElement[]
|
||||
|
||||
setValue(data: IElement[]): number
|
||||
setValue(
|
||||
data: IElement[],
|
||||
context?: IControlContext,
|
||||
options?: IControlRuleOption
|
||||
): number
|
||||
|
||||
keydown(evt: KeyboardEvent): number | null
|
||||
|
||||
@@ -78,6 +83,10 @@ export interface IControlContext {
|
||||
elementList?: IElement[]
|
||||
}
|
||||
|
||||
export interface IControlRuleOption {
|
||||
isIgnoreDisabledRule?: boolean // 忽略禁用校验规则
|
||||
}
|
||||
|
||||
export interface IGetControlValueOption {
|
||||
conceptId: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user