feat: add radio element #494
Co-authored-by: jeffycai <caixiaobing@live.cn> Co-authored-by: Hufe921 <huangyunfeihufe@hotmail.com>
This commit is contained in:
co-authored by
jeffycai
Hufe921
parent
2e1403507f
commit
c6d9cffc27
@@ -61,7 +61,8 @@ interface IEditorOption {
|
||||
wordBreak?: WordBreak // 单词与标点断行:BREAK_WORD首行不出现标点&单词不拆分、BREAK_ALL按字符宽度撑满后折行。默认:BREAK_WORD
|
||||
watermark?: IWatermark // 水印信息。{data:string; color?:string; opacity?:number; size?:number; font?:string;}
|
||||
control?: IControlOption // 控件信息。 {placeholderColor?:string; bracketColor?:string; prefix?:string; postfix?:string; borderWidth?: number; borderColor?: string;}
|
||||
checkbox?: ICheckboxOption // 复选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; fontStyle?: string;}
|
||||
checkbox?: ICheckboxOption // 复选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; strokeStyle?: string;}
|
||||
radio?: IRadioOption // 单选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; strokeStyle?: string;}
|
||||
cursor?: ICursorOption // 光标样式。{width?: number; color?: string; dragWidth?: number; dragColor?: string;}
|
||||
title?: ITitleOption // 标题配置。{ defaultFirstSize?: number; defaultSecondSize?: number; defaultThirdSize?: number defaultFourthSize?: number; defaultFifthSize?: number; defaultSixthSize?: number;}
|
||||
placeholder?: IPlaceholder // 编辑器空白占位文本
|
||||
|
||||
+18
-2
@@ -15,6 +15,7 @@ interface IElement {
|
||||
PAGE_BREAK = 'pageBreak',
|
||||
CONTROL = 'control',
|
||||
CHECKBOX = 'checkbox',
|
||||
RADIO = 'radio',
|
||||
LATEX = 'latex',
|
||||
TAB = 'tab',
|
||||
DATE = 'date',
|
||||
@@ -76,7 +77,8 @@ interface IElement {
|
||||
type: {
|
||||
TEXT = 'text',
|
||||
SELECT = 'select',
|
||||
CHECKBOX = 'checkbox'
|
||||
CHECKBOX = 'checkbox',
|
||||
RADIO = 'radio'
|
||||
};
|
||||
value: IElement[] | null;
|
||||
placeholder?: string;
|
||||
@@ -98,6 +100,13 @@ interface IElement {
|
||||
code: string;
|
||||
}[];
|
||||
checkbox?: {
|
||||
value: boolean | null;
|
||||
code?: string;
|
||||
min?: number;
|
||||
max?: number;
|
||||
disabled?: boolean;
|
||||
};
|
||||
radio?: {
|
||||
value: boolean | null;
|
||||
code?: string;
|
||||
disabled?: boolean;
|
||||
@@ -115,7 +124,8 @@ interface IElement {
|
||||
POSTFIX = 'postfix',
|
||||
PLACEHOLDER = 'placeholder',
|
||||
VALUE = 'value',
|
||||
CHECKBOX = 'checkbox'
|
||||
CHECKBOX = 'checkbox',
|
||||
RADIO = 'radio'
|
||||
};
|
||||
// 复选框
|
||||
checkbox?: {
|
||||
@@ -123,6 +133,12 @@ interface IElement {
|
||||
code?: string;
|
||||
disabled?: boolean;
|
||||
};
|
||||
// 单选框
|
||||
radio?: {
|
||||
value: boolean | null;
|
||||
code?: string;
|
||||
disabled?: boolean;
|
||||
};
|
||||
// LaTeX
|
||||
laTexSVG?: string;
|
||||
// 日期
|
||||
|
||||
Reference in New Issue
Block a user