super-page-runtime 2.0.91 → 2.0.92
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/es/components/runtime/utils/api/api-util.js +18 -13
- package/dist/es/components/runtime/utils/assemblys-config.js +260 -214
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/common-util.js +14 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +5 -5
- package/dist/es/components/runtime/utils/events/validator-util.js +6 -26
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -2
- package/dist/es/components/runtime/utils/page-init-util.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +36 -33
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +18 -5
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -56
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +4 -15
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +17 -6
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +2 -0
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
|
@@ -18,7 +18,7 @@ import _sfc_main$5 from "./super-page-dialog.vue.js";
|
|
|
18
18
|
import { useRoute, useRouter } from "vue-router";
|
|
19
19
|
import { jumpToPage } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
20
|
import { setSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
21
|
-
import { deepCopy } from "../utils/common-util.js";
|
|
21
|
+
import { isNumber, deepCopy } from "../utils/common-util.js";
|
|
22
22
|
const _hoisted_1 = { class: "app-container" };
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "super-page",
|
|
@@ -71,6 +71,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
pageRequest: {
|
|
72
72
|
type: Object,
|
|
73
73
|
required: false
|
|
74
|
+
},
|
|
75
|
+
// 页面高度
|
|
76
|
+
contentHeight: {
|
|
77
|
+
type: [String, Number],
|
|
78
|
+
default: null
|
|
74
79
|
}
|
|
75
80
|
},
|
|
76
81
|
emits: ["open", "opened", "close", "closed"],
|
|
@@ -236,9 +241,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
236
241
|
function setContextStyle() {
|
|
237
242
|
nextTick(() => {
|
|
238
243
|
const parentNode = thisRef.value.parentNode ? thisRef.value.parentNode : thisRef.value;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
244
|
+
let myContentHeight = props.contentHeight;
|
|
245
|
+
if (!myContentHeight) {
|
|
246
|
+
const rect = parentNode.getBoundingClientRect();
|
|
247
|
+
myContentHeight = window.innerHeight - rect.y - 40;
|
|
248
|
+
}
|
|
249
|
+
let heightStyle = myContentHeight;
|
|
250
|
+
if (isNumber(myContentHeight)) {
|
|
251
|
+
heightStyle = myContentHeight + "px";
|
|
252
|
+
}
|
|
253
|
+
parentNode.style.height = heightStyle;
|
|
242
254
|
parentNode.style["overflow-y"] = "auto";
|
|
243
255
|
});
|
|
244
256
|
}
|
|
@@ -336,8 +348,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
336
348
|
if (!_selectFile_.value) {
|
|
337
349
|
return;
|
|
338
350
|
}
|
|
339
|
-
if (_selectFile_.value.value === "" || _selectFile_.value.value === null)
|
|
340
|
-
return;
|
|
351
|
+
if (_selectFile_.value.value === "" || _selectFile_.value.value === null) return;
|
|
341
352
|
const fileObj = _selectFile_.value.files[0];
|
|
342
353
|
if (fileObj) {
|
|
343
354
|
_selectFile_.value.value = null;
|
package/dist/es/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from './compon
|
|
|
5
5
|
import { default as cn } from './i18n/langs/cn.js';
|
|
6
6
|
import { default as en } from './i18n/langs/en.js';
|
|
7
7
|
import { getDateShortCuts } from './components/runtime/utils/form/date-shortcuts';
|
|
8
|
+
import { getListCode } from './components/runtime/utils/common-util';
|
|
8
9
|
|
|
9
10
|
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs };
|
|
10
11
|
export { getStandPermissionInfo, getFunctionInfo, FuncType };
|
|
11
12
|
export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
|
|
12
13
|
export { getDateShortCuts };
|
|
13
14
|
export { cn, en };
|
|
15
|
+
export { getListCode };
|
package/dist/es/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from "./compon
|
|
|
6
6
|
import { default as default4 } from "./i18n/langs/cn.js";
|
|
7
7
|
import { default as default5 } from "./i18n/langs/en.js";
|
|
8
8
|
import { getDateShortCuts } from "./components/runtime/utils/form/date-shortcuts.js";
|
|
9
|
+
import { getListCode } from "./components/runtime/utils/common-util.js";
|
|
9
10
|
export {
|
|
10
11
|
FuncType,
|
|
11
12
|
default3 as SuperPageDialogNew,
|
|
@@ -17,6 +18,7 @@ export {
|
|
|
17
18
|
getCustomThemeOptions,
|
|
18
19
|
getDateShortCuts,
|
|
19
20
|
getFunctionInfo,
|
|
21
|
+
getListCode,
|
|
20
22
|
getNumFormatter as getNumFormatterForChart,
|
|
21
23
|
getStandPermissionInfo
|
|
22
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.92",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.0.
|
|
51
|
+
"agilebuilder-ui": "1.0.60",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|