feat: add date control #601

This commit is contained in:
Hufe
2024-05-31 21:13:05 +08:00
committed by GitHub
parent d54a701adb
commit 398919938f
9 changed files with 475 additions and 106 deletions
+6 -5
View File
@@ -1,11 +1,9 @@
import { ControlType, ControlIndentation } from '../dataset/enum/Control'
import { EditorZone } from '../dataset/enum/Editor'
import { MoveDirection } from '../dataset/enum/Observer'
import { ICheckbox } from './Checkbox'
import { IDrawOption } from './Draw'
import { IElement } from './Element'
import { IPositionContext } from './Position'
import { IRadio } from './Radio'
import { IRange } from './Range'
export interface IValueSet {
@@ -23,13 +21,15 @@ export interface IControlCheckbox {
min?: number
max?: number
valueSets: IValueSet[]
checkbox?: ICheckbox
}
export interface IControlRadio {
code: string | null
valueSets: IValueSet[]
radio?: IRadio
}
export interface IControlDate {
dateFormat?: string
}
export interface IControlHighlightRule {
@@ -73,10 +73,11 @@ export interface IControlStyle {
export type IControl = IControlBasic &
IControlRule &
Partial<IControlStyle> &
Partial<IControlSelect> &
Partial<IControlCheckbox> &
Partial<IControlRadio> &
Partial<IControlStyle>
Partial<IControlDate>
export interface IControlOption {
placeholderColor?: string