feat:add checkbox control interface
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -29,6 +29,7 @@ export interface IGetPositionByXYPayload {
|
||||
|
||||
export interface IPositionContext {
|
||||
isTable: boolean;
|
||||
isCheckbox?: boolean;
|
||||
isControl?: boolean;
|
||||
index?: number;
|
||||
trIndex?: number;
|
||||
|
||||
Reference in New Issue
Block a user