feat: add control disabled rule

This commit is contained in:
Hufe921
2023-11-28 21:37:28 +08:00
parent 8acce15e76
commit 1455a2afb2
11 changed files with 180 additions and 87 deletions
+10 -1
View File
@@ -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
}