|
|
|
@ -326,7 +326,10 @@ export class Draw {
|
|
|
|
public insertElementList(payload: IElement[]) {
|
|
|
|
public insertElementList(payload: IElement[]) {
|
|
|
|
if (!payload.length) return
|
|
|
|
if (!payload.length) return
|
|
|
|
const activeControl = this.control.getActiveControl()
|
|
|
|
const activeControl = this.control.getActiveControl()
|
|
|
|
if (activeControl) return
|
|
|
|
if (activeControl) {
|
|
|
|
|
|
|
|
const element = activeControl.getElement()
|
|
|
|
|
|
|
|
if (element.controlComponent !== ControlComponent.POSTFIX) return
|
|
|
|
|
|
|
|
}
|
|
|
|
const isPartRangeInControlOutside = this.control.isPartRangeInControlOutside()
|
|
|
|
const isPartRangeInControlOutside = this.control.isPartRangeInControlOutside()
|
|
|
|
if (isPartRangeInControlOutside) return
|
|
|
|
if (isPartRangeInControlOutside) return
|
|
|
|
const { startIndex, endIndex } = this.range.getRange()
|
|
|
|
const { startIndex, endIndex } = this.range.getRange()
|
|
|
|
|