fix:date picker is activated in readonly mode

This commit is contained in:
Hufe921
2022-08-23 21:56:24 +08:00
parent e90ccd41ef
commit 853c783a96
+1 -1
View File
@@ -289,7 +289,7 @@ export class CanvasEvent {
}
// 日期控件
this.dateParticle.clearDatePicker()
if (curElement.type === ElementType.DATE) {
if (curElement.type === ElementType.DATE && !isReadonly) {
this.dateParticle.renderDatePicker(curElement, positionList[curIndex])
}
}