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
+3 -17
View File
@@ -81,7 +81,8 @@ interface IElement {
TEXT = 'text',
SELECT = 'select',
CHECKBOX = 'checkbox',
RADIO = 'radio'
RADIO = 'radio',
DATE = 'date'
};
value: IElement[] | null;
placeholder?: string;
@@ -102,18 +103,7 @@ interface IElement {
value: string;
code: string;
}[];
checkbox?: {
value: boolean | null;
code?: string;
min?: number;
max?: number;
disabled?: boolean;
};
radio?: {
value: boolean | null;
code?: string;
disabled?: boolean;
};
dateFormat?: string;
font?: string;
size?: number;
bold?: boolean;
@@ -133,14 +123,10 @@ interface IElement {
// checkbox
checkbox?: {
value: boolean | null;
code?: string;
disabled?: boolean;
};
// radio
radio?: {
value: boolean | null;
code?: string;
disabled?: boolean;
};
// LaTeX
laTexSVG?: string;
+2 -16
View File
@@ -82,6 +82,7 @@ interface IElement {
SELECT = 'select',
CHECKBOX = 'checkbox',
RADIO = 'radio'
DATE = 'date'
};
value: IElement[] | null;
placeholder?: string;
@@ -102,18 +103,7 @@ interface IElement {
value: string;
code: string;
}[];
checkbox?: {
value: boolean | null;
code?: string;
min?: number;
max?: number;
disabled?: boolean;
};
radio?: {
value: boolean | null;
code?: string;
disabled?: boolean;
};
dateFormat?: string;
font?: string;
size?: number;
bold?: boolean;
@@ -133,14 +123,10 @@ interface IElement {
// 复选框
checkbox?: {
value: boolean | null;
code?: string;
disabled?: boolean;
};
// 单选框
radio?: {
value: boolean | null;
code?: string;
disabled?: boolean;
};
// LaTeX
laTexSVG?: string;