feat:add control readonly

pr675
Hufe921 4 years ago
parent b5b2c8ff6b
commit 193b9d7a41

@ -79,6 +79,8 @@ export class Control {
}
public initControl() {
const isReadonly = this.draw.isReadonly()
if (isReadonly) return
const elementList = this.getElementList()
const range = this.getRange()
const element = elementList[range.startIndex]

@ -167,7 +167,7 @@ export class CanvasEvent {
y: evt.offsetY
})
// 激活控件
if (positionResult.isControl) {
if (positionResult.isControl && !isReadonly) {
const {
index,
isTable,

Loading…
Cancel
Save