@ibiz-template/runtime 0.1.23-alpha.0 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +25 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/editor/editor.controller.d.ts +8 -0
- package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
- package/out/controller/common/editor/editor.controller.js +26 -0
- package/out/interface/controller/controller/editor/i-editor.controller.d.ts +8 -0
- package/out/interface/controller/controller/editor/i-editor.controller.d.ts.map +1 -1
- package/out/ui-action/provider/sys-ui-action-provider.js +1 -1
- package/package.json +6 -6
- package/src/controller/common/editor/editor.controller.ts +25 -0
- package/src/interface/controller/controller/editor/i-editor.controller.ts +9 -0
- package/src/ui-action/provider/sys-ui-action-provider.ts +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15715,6 +15715,14 @@ var EditorController = class {
|
|
|
15715
15715
|
* @param {T} model
|
|
15716
15716
|
*/
|
|
15717
15717
|
constructor(model, parent) {
|
|
15718
|
+
/**
|
|
15719
|
+
* 编辑器样式
|
|
15720
|
+
*
|
|
15721
|
+
* @author chitanda
|
|
15722
|
+
* @date 2023-09-12 16:09:40
|
|
15723
|
+
* @type {IData}
|
|
15724
|
+
*/
|
|
15725
|
+
this.style = {};
|
|
15718
15726
|
/**
|
|
15719
15727
|
* 占位
|
|
15720
15728
|
* @return {*}
|
|
@@ -15763,6 +15771,22 @@ var EditorController = class {
|
|
|
15763
15771
|
this.editorParams[key] = this.model.editorParams[key];
|
|
15764
15772
|
});
|
|
15765
15773
|
}
|
|
15774
|
+
if (this.model.editorWidth) {
|
|
15775
|
+
const width = this.model.editorWidth;
|
|
15776
|
+
if (width > 0 && width <= 1) {
|
|
15777
|
+
this.style.width = "".concat(width * 100, "%");
|
|
15778
|
+
} else {
|
|
15779
|
+
this.style.width = "".concat(width, "px");
|
|
15780
|
+
}
|
|
15781
|
+
}
|
|
15782
|
+
if (this.model.editorHeight) {
|
|
15783
|
+
const height = this.model.editorHeight;
|
|
15784
|
+
if (height > 0 && height <= 1) {
|
|
15785
|
+
this.style.height = "".concat(height * 100, "%");
|
|
15786
|
+
} else {
|
|
15787
|
+
this.style.height = "".concat(height, "px");
|
|
15788
|
+
}
|
|
15789
|
+
}
|
|
15766
15790
|
}
|
|
15767
15791
|
/**
|
|
15768
15792
|
* 公共参数处理,计算上下文和视图参数
|
|
@@ -19452,7 +19476,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
19452
19476
|
["GRIDVIEW_COPYACTION", "Copy"],
|
|
19453
19477
|
["GRIDVIEW_VIEWACTION", "View"],
|
|
19454
19478
|
["GRIDVIEW_SAVEROWACTION", "SaveRow"],
|
|
19455
|
-
["APP_LOGIN", "
|
|
19479
|
+
["APP_LOGIN", "Login"],
|
|
19456
19480
|
["APP_LOGOUT", "logout"]
|
|
19457
19481
|
]);
|
|
19458
19482
|
}
|