feat:add checkbox control interface

This commit is contained in:
黄云飞
2022-04-15 17:49:55 +08:00
parent 464c8e3c34
commit 4d48eb2cde
10 changed files with 191 additions and 38 deletions
+13 -1
View File
@@ -1,4 +1,5 @@
import { ControlType } from '../dataset/enum/Control'
import { ICheckbox } from './Checkbox'
import { IElement } from './Element'
export interface IValueSet {
@@ -11,6 +12,14 @@ export interface IControlSelect {
valueSets: IValueSet[];
}
export interface IControlCheckbox {
code: string | null;
min?: number;
max?: number;
valueSets: IValueSet[];
checkbox?: ICheckbox;
}
export interface IControlBasic {
type: ControlType;
value: IElement[] | null;
@@ -20,7 +29,10 @@ export interface IControlBasic {
postfix?: string;
}
export type IControl = IControlBasic & Partial<IControlSelect>
export type IControl = IControlBasic
& Partial<IControlSelect>
& Partial<IControlCheckbox>
export interface IControlOption {
placeholderColor?: string;
+1
View File
@@ -29,6 +29,7 @@ export interface IGetPositionByXYPayload {
export interface IPositionContext {
isTable: boolean;
isCheckbox?: boolean;
isControl?: boolean;
index?: number;
trIndex?: number;