feat:add checkbox control menu
This commit is contained in:
@@ -274,6 +274,7 @@ export class Control {
|
||||
const elementList = this.getElementList()
|
||||
const startElement = elementList[startIndex]
|
||||
const control = startElement.control!
|
||||
if (!control.placeholder) return
|
||||
const placeholderStrList = control.placeholder.split('')
|
||||
for (let p = 0; p < placeholderStrList.length; p++) {
|
||||
const value = placeholderStrList[p]
|
||||
|
||||
@@ -23,7 +23,7 @@ export interface IControlCheckbox {
|
||||
export interface IControlBasic {
|
||||
type: ControlType;
|
||||
value: IElement[] | null;
|
||||
placeholder: string;
|
||||
placeholder?: string;
|
||||
conceptId?: string;
|
||||
prefix?: string;
|
||||
postfix?: string;
|
||||
|
||||
@@ -162,7 +162,7 @@ export function formatElementList(elementList: IElement[], options: IFormatEleme
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if (placeholder) {
|
||||
// placeholder
|
||||
const thePlaceholderArgs: Pick<IElement, 'color'> = {}
|
||||
if (editorOptions && editorOptions.control) {
|
||||
|
||||
Reference in New Issue
Block a user