@hailin-zheng/editor-core 2.2.12 → 2.2.14
Sign up to get free protection for your applications and to get access to all the features.
package/editor.css
CHANGED
package/index-cjs.js
CHANGED
@@ -1737,6 +1737,8 @@ class ViewOptions {
|
|
1737
1737
|
dataDecoratorNormalColor = '#0050b3';
|
1738
1738
|
dataDecoratorMouseEnterColor = '#0050b3';
|
1739
1739
|
dataDecoratorFocusedColor = '#0050b3';
|
1740
|
+
//数据元修饰符宽度
|
1741
|
+
dataDecoratorWidth = 1;
|
1740
1742
|
//是否显示数据元修饰符
|
1741
1743
|
showDataEleDecorator = true;
|
1742
1744
|
//数据元没有输入值时背景颜色
|
@@ -2941,10 +2943,10 @@ class DataDecorateElement extends LeafElement {
|
|
2941
2943
|
this.disableClick = !isPrefix;
|
2942
2944
|
this.isDecorate = true;
|
2943
2945
|
}
|
2944
|
-
createRenderObject() {
|
2946
|
+
createRenderObject(data) {
|
2945
2947
|
const render = new DataDecorateRenderObject(this);
|
2946
2948
|
//render.rect.width = this.dProps.size / 2;
|
2947
|
-
render.rect.width =
|
2949
|
+
render.rect.width = data.options.dataDecoratorWidth;
|
2948
2950
|
render.rect.height = Math.ceil(14 * TEXT_HEIGHT_FACTOR);
|
2949
2951
|
return render;
|
2950
2952
|
}
|
@@ -20954,7 +20956,7 @@ class DocEditor {
|
|
20954
20956
|
this.editInput.readOnly = true;
|
20955
20957
|
this.editInput.style.width = "0";
|
20956
20958
|
//this.editInput.style.display = 'none';
|
20957
|
-
!reset && this.editInput.focus();
|
20959
|
+
!reset && this.editInput.focus({ preventScroll: true });
|
20958
20960
|
}
|
20959
20961
|
/**
|
20960
20962
|
* 设置光标位置
|
@@ -22082,7 +22084,7 @@ class DocEditor {
|
|
22082
22084
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
22083
22085
|
}
|
22084
22086
|
version() {
|
22085
|
-
return "2.2.
|
22087
|
+
return "2.2.14";
|
22086
22088
|
}
|
22087
22089
|
switchPageHeaderEditor() {
|
22088
22090
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|