super-page-runtime 2.2.51 → 2.2.55

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.
Files changed (26) hide show
  1. package/dist/es/assets/file.png.js +4 -0
  2. package/dist/es/assets/folder.png.js +4 -0
  3. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
  4. package/dist/es/components/runtime/utils/events/standard-event.js +82 -78
  5. package/dist/es/components/runtime/utils/page-helper-util.d.ts +2 -0
  6. package/dist/es/components/runtime/utils/page-helper-util.js +14 -0
  7. package/dist/es/components/runtime/utils/page-init-util.js +21 -10
  8. package/dist/es/components/runtime/utils/tree-utils.js +49 -15
  9. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +1 -1
  11. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
  13. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +5 -71
  14. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +72 -2
  15. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +4 -1
  16. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +22 -19
  19. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +4 -1
  20. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +113 -45
  21. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -54
  22. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  23. package/dist/es/index.d.ts +2 -1
  24. package/dist/es/index.js +2 -0
  25. package/dist/es/style.css +370 -26
  26. package/package.json +2 -2
@@ -1,70 +1,75 @@
1
- import { defineComponent as e, ref as l, computed as t, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as c, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
2
  import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
- import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as w, handleFormEvent as b, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as j, analysisScanValue as S, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
7
- import P from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
- import z from "../../../../utils/eventBus.js";
10
- import { $t as D } from "../../../../utils/i18n-util.js";
11
- const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
4
+ import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as w, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
+ import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
7
+ import q from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as z } from "agilebuilder-ui/src/utils/common-util";
9
+ import L from "../../../../utils/eventBus.js";
10
+ import { $t as M } from "../../../../utils/i18n-util.js";
11
+ const N = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
12
12
  var _a, _b, _c;
13
- const N = e2, O = N.pageContext.entity ? N.pageContext.entity : {};
14
- let B = k(N.pageContext, N.configure);
15
- const J = l(q()), M = N.pageContext.code, $ = l(B && B.length > 0 ? M + "__" + B.join("__") : null), A = t({ get: () => h(O, B), set(e3) {
16
- e3 = e3.trim(), V(O, B, e3);
17
- } }), E = l(null), F = l(null), U = l(null);
13
+ const O = e2, B = O.pageContext.entity ? O.pageContext.entity : {}, F = t("text");
14
+ let J = k(O.pageContext, O.configure);
15
+ if (O.pageContext.modelFieldsMap) {
16
+ const e3 = V(J, O.pageContext);
17
+ e3 && (F.value = h(e3.dataType) ? "number" : "text");
18
+ }
19
+ const $ = t(z()), A = O.pageContext.code, E = t(J && J.length > 0 ? A + "__" + J.join("__") : null), U = l({ get: () => b(B, J), set(e3) {
20
+ e3 = e3.trim(), w(B, J, e3);
21
+ } }), W = t(null), G = t(null), H = t(null);
18
22
  o(() => {
19
- z.$on($.value + "-scanDone", (e3) => {
20
- ae(e3.result);
23
+ L.$on(E.value + "-scanDone", (e3) => {
24
+ re(e3.result), _(e3.result, O.pageContext, O.configure, "afterScanDone");
21
25
  }), n(() => {
22
- const e3 = A.value;
23
- w(e3, N.pageContext, N.configure, { formItemRef: E.value, componentRef: F.value, titleRef: U.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
26
+ const e3 = U.value;
27
+ S(e3, O.pageContext, O.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
24
28
  });
25
29
  }), a(() => {
26
- z.$off($.value + "-scanDone");
30
+ L.$off(E.value + "-scanDone");
27
31
  });
28
- const W = N.configure.runtime ? N.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
29
- let K = false;
30
- const Q = window.localStorage.getItem("auth_source");
31
- Q && "dingtalk" === Q && (K = true);
32
- let X = "";
33
- X = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
34
- const Y = !(!J.value || !X || "app" !== X), Z = l(!!((Y || K) && H.value || J.value && H.value && "https:" === window.location.protocol));
35
- let ee = {};
36
- ((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (j(G.value.scan.ruleList).then((e3) => {
37
- ee = e3;
38
- }), u(() => A.value, (e3) => {
32
+ const K = O.configure.runtime ? O.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
33
+ let Y = false;
34
+ const Z = window.localStorage.getItem("auth_source");
35
+ Z && "dingtalk" === Z && (Y = true);
36
+ let ee = "";
37
+ ee = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
38
+ const te = !(!$.value || !ee || "app" !== ee), le = t(!!((te || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
39
+ let oe = {};
40
+ ((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Q.value.scan.ruleList).then((e3) => {
41
+ oe = e3;
42
+ }), u(() => U.value, (e3) => {
39
43
  e3 = e3.trim();
40
- const l2 = S(e3, ee);
41
- l2 && R(N.pageContext, l2.scanSet, l2.params);
44
+ const t2 = D(e3, oe);
45
+ t2 && P(O.pageContext, t2.scanSet, t2.params);
42
46
  }));
43
- const le = W.style, te = W.class, oe = W.headerStyle, ne = W.titleExceedStyle;
44
- function ae(e3) {
45
- return V(O, B, e3);
47
+ const ne = K.style, ae = K.class, ue = K.headerStyle, ie = K.titleExceedStyle;
48
+ function re(e3) {
49
+ return w(B, J, e3);
50
+ }
51
+ const pe = t(false);
52
+ function ce() {
53
+ if (te || Y) {
54
+ const e3 = { type: "scan", componentId: E.value, systemCode: O.pageContext.systemCode };
55
+ Y && (e3.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e3), "*");
56
+ } else if ($.value) if ("https:" === window.location.protocol) pe.value = true;
57
+ else {
58
+ const e3 = { type: "scan", componentId: E.value, systemCode: O.pageContext.systemCode };
59
+ window.parent.postMessage(JSON.stringify(e3), "*");
60
+ }
61
+ else pe.value = true;
46
62
  }
47
- const ue = l(false);
48
- function ie(e3) {
49
- ue.value = false, ae(e3);
63
+ function se(e3) {
64
+ pe.value = false, re(e3);
50
65
  }
51
- return L2({ getValue: function() {
52
- return h(O, B);
53
- }, setValue: ae }), (e3, l2) => {
54
- const t2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
55
- return c(), r(n2, { ref_key: "formItemRef", ref: E, required: !!G.value.required, class: s(v(te)), "label-width": G.value.labelWidth, style: p(v(le)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(oe), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(D)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(t2, { ref_key: "componentRef", ref: F, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: A.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => A.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "2" } : void 0, Z.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [Z.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
56
- if (Y || K) {
57
- const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
58
- K && (e5.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e5), "*");
59
- } else if (J.value) if ("https:" === window.location.protocol) ue.value = true;
60
- else {
61
- const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
62
- window.parent.postMessage(JSON.stringify(e5), "*");
63
- }
64
- else ue.value = true;
65
- }()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: ie })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
66
+ return N2({ getValue: function() {
67
+ return b(B, J);
68
+ }, setValue: re, scanClick: ce }), (e3, t2) => {
69
+ const l2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
70
+ return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(q, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(M)(Q.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: F.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Q.value.sufText)), 1)]), key: "2" } : void 0, le.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [le.value ? (p(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : y("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(o2, { key: 0, onClose: se })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
66
71
  };
67
72
  } });
68
73
  export {
69
- L as default
74
+ N as default
70
75
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-72c824d1"]]);
4
+ const r = p(e, [["__scopeId", "data-v-392af192"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -6,8 +6,9 @@ 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
8
  import { getListCode } from './components/runtime/utils/common-util';
9
+ import { default as YxAffix } from './components/runtime/views/assemblys/container/fixed/YxAffix.vue';
9
10
 
10
- export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs, HomeChart };
11
+ export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs, HomeChart, YxAffix };
11
12
  export { getStandPermissionInfo, getFunctionInfo, FuncType };
12
13
  export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
13
14
  export { getDateShortCuts };
package/dist/es/index.js CHANGED
@@ -8,11 +8,13 @@ import { default as default5 } from "./i18n/langs/cn.js";
8
8
  import { default as default6 } from "./i18n/langs/en.js";
9
9
  import { getDateShortCuts } from "./components/runtime/utils/form/date-shortcuts.js";
10
10
  import { getListCode } from "./components/runtime/utils/common-util.js";
11
+ import { default as default7 } from "./components/runtime/views/assemblys/container/fixed/YxAffix.vue.js";
11
12
  export {
12
13
  FuncType,
13
14
  default4 as HomeChart,
14
15
  default3 as SuperPageDialogNew,
15
16
  default2 as SuperPageNew,
17
+ default7 as YxAffix,
16
18
  default5 as cn,
17
19
  default6 as en,
18
20
  getComponentOptionConfigs,
package/dist/es/style.css CHANGED
@@ -1,18 +1,294 @@
1
- .runtime-page-container[data-v-72c824d1] {
1
+ .runtime-page-container[data-v-392af192] {
2
2
  overflow: auto;
3
3
  height: 100%;
4
4
  max-height: 100vh;
5
5
  padding: var(--runtime-page-container-padding, 15px);
6
6
  }
7
- .runtime-page-container .runtime-page-container-view[data-v-72c824d1] {
7
+ @media (max-width: 768px) {
8
+ .runtime-page-container[data-v-392af192] .el-col-1 {
9
+ flex: 0 0 100%;
10
+ max-width: 100%;
11
+ }
12
+ }
13
+ .runtime-page-container[data-v-392af192] .el-col-1 > .el-form-item:only-child {
14
+ margin-bottom: 0;
15
+ }
16
+ .runtime-page-container[data-v-392af192] .el-col-2 {
17
+ flex: 0 0 calc(2 / 24 * (100% - (24 / 2 - 1) * var(--layout-form-flex-gap, 15px)));
18
+ max-width: calc(2 / 24 * (100% - (24 / 2 - 1) * var(--layout-form-flex-gap, 15px)));
19
+ }
20
+ @media (max-width: 768px) {
21
+ .runtime-page-container[data-v-392af192] .el-col-2 {
22
+ flex: 0 0 100%;
23
+ max-width: 100%;
24
+ }
25
+ }
26
+ .runtime-page-container[data-v-392af192] .el-col-2 > .el-form-item:only-child {
27
+ margin-bottom: 0;
28
+ }
29
+ @media (max-width: 768px) {
30
+ .runtime-page-container[data-v-392af192] .el-col-3 {
31
+ flex: 0 0 100%;
32
+ max-width: 100%;
33
+ }
34
+ }
35
+ .runtime-page-container[data-v-392af192] .el-col-3 > .el-form-item:only-child {
36
+ margin-bottom: 0;
37
+ }
38
+ .runtime-page-container[data-v-392af192] .el-col-4 {
39
+ flex: 0 0 calc(4 / 24 * (100% - (24 / 4 - 1) * var(--layout-form-flex-gap, 15px)));
40
+ max-width: calc(4 / 24 * (100% - (24 / 4 - 1) * var(--layout-form-flex-gap, 15px)));
41
+ }
42
+ @media (max-width: 768px) {
43
+ .runtime-page-container[data-v-392af192] .el-col-4 {
44
+ flex: 0 0 100%;
45
+ max-width: 100%;
46
+ }
47
+ }
48
+ .runtime-page-container[data-v-392af192] .el-col-4 > .el-form-item:only-child {
49
+ margin-bottom: 0;
50
+ }
51
+ @media (max-width: 768px) {
52
+ .runtime-page-container[data-v-392af192] .el-col-5 {
53
+ flex: 0 0 100%;
54
+ max-width: 100%;
55
+ }
56
+ }
57
+ .runtime-page-container[data-v-392af192] .el-col-5 > .el-form-item:only-child {
58
+ margin-bottom: 0;
59
+ }
60
+ .runtime-page-container[data-v-392af192] .el-col-6 {
61
+ flex: 0 0 calc(6 / 24 * (100% - (24 / 6 - 1) * var(--layout-form-flex-gap, 15px)));
62
+ max-width: calc(6 / 24 * (100% - (24 / 6 - 1) * var(--layout-form-flex-gap, 15px)));
63
+ }
64
+ @media (max-width: 768px) {
65
+ .runtime-page-container[data-v-392af192] .el-col-6 {
66
+ flex: 0 0 100%;
67
+ max-width: 100%;
68
+ }
69
+ }
70
+ .runtime-page-container[data-v-392af192] .el-col-6 > .el-form-item:only-child {
71
+ margin-bottom: 0;
72
+ }
73
+ @media (max-width: 768px) {
74
+ .runtime-page-container[data-v-392af192] .el-col-7 {
75
+ flex: 0 0 100%;
76
+ max-width: 100%;
77
+ }
78
+ }
79
+ .runtime-page-container[data-v-392af192] .el-col-7 > .el-form-item:only-child {
80
+ margin-bottom: 0;
81
+ }
82
+ .runtime-page-container[data-v-392af192] .el-col-8 {
83
+ flex: 0 0 calc(8 / 24 * (100% - (24 / 8 - 1) * var(--layout-form-flex-gap, 15px)));
84
+ max-width: calc(8 / 24 * (100% - (24 / 8 - 1) * var(--layout-form-flex-gap, 15px)));
85
+ }
86
+ @media (max-width: 768px) {
87
+ .runtime-page-container[data-v-392af192] .el-col-8 {
88
+ flex: 0 0 100%;
89
+ max-width: 100%;
90
+ }
91
+ }
92
+ .runtime-page-container[data-v-392af192] .el-col-8 > .el-form-item:only-child {
93
+ margin-bottom: 0;
94
+ }
95
+ @media (max-width: 768px) {
96
+ .runtime-page-container[data-v-392af192] .el-col-9 {
97
+ flex: 0 0 100%;
98
+ max-width: 100%;
99
+ }
100
+ }
101
+ .runtime-page-container[data-v-392af192] .el-col-9 > .el-form-item:only-child {
102
+ margin-bottom: 0;
103
+ }
104
+ @media (max-width: 768px) {
105
+ .runtime-page-container[data-v-392af192] .el-col-10 {
106
+ flex: 0 0 100%;
107
+ max-width: 100%;
108
+ }
109
+ }
110
+ .runtime-page-container[data-v-392af192] .el-col-10 > .el-form-item:only-child {
111
+ margin-bottom: 0;
112
+ }
113
+ @media (max-width: 768px) {
114
+ .runtime-page-container[data-v-392af192] .el-col-11 {
115
+ flex: 0 0 100%;
116
+ max-width: 100%;
117
+ }
118
+ }
119
+ .runtime-page-container[data-v-392af192] .el-col-11 > .el-form-item:only-child {
120
+ margin-bottom: 0;
121
+ }
122
+ .runtime-page-container[data-v-392af192] .el-col-12 {
123
+ flex: 0 0 calc(12 / 24 * (100% - (24 / 12 - 1) * var(--layout-form-flex-gap, 15px)));
124
+ max-width: calc(12 / 24 * (100% - (24 / 12 - 1) * var(--layout-form-flex-gap, 15px)));
125
+ }
126
+ @media (max-width: 768px) {
127
+ .runtime-page-container[data-v-392af192] .el-col-12 {
128
+ flex: 0 0 100%;
129
+ max-width: 100%;
130
+ }
131
+ }
132
+ .runtime-page-container[data-v-392af192] .el-col-12 > .el-form-item:only-child {
133
+ margin-bottom: 0;
134
+ }
135
+ @media (max-width: 768px) {
136
+ .runtime-page-container[data-v-392af192] .el-col-13 {
137
+ flex: 0 0 100%;
138
+ max-width: 100%;
139
+ }
140
+ }
141
+ .runtime-page-container[data-v-392af192] .el-col-13 > .el-form-item:only-child {
142
+ margin-bottom: 0;
143
+ }
144
+ .runtime-page-container[data-v-392af192] .el-col-14 {
145
+ flex: 0 0 calc(14 / 24 * (100% - 1 * var(--layout-form-flex-gap, 15px)));
146
+ max-width: calc(14 / 24 * (100% - 1 * var(--layout-form-flex-gap, 15px)));
147
+ }
148
+ @media (max-width: 768px) {
149
+ .runtime-page-container[data-v-392af192] .el-col-14 {
150
+ flex: 0 0 100%;
151
+ max-width: 100%;
152
+ }
153
+ }
154
+ .runtime-page-container[data-v-392af192] .el-col-14 > .el-form-item:only-child {
155
+ margin-bottom: 0;
156
+ }
157
+ @media (max-width: 768px) {
158
+ .runtime-page-container[data-v-392af192] .el-col-15 {
159
+ flex: 0 0 100%;
160
+ max-width: 100%;
161
+ }
162
+ }
163
+ .runtime-page-container[data-v-392af192] .el-col-15 > .el-form-item:only-child {
164
+ margin-bottom: 0;
165
+ }
166
+ .runtime-page-container[data-v-392af192] .el-col-16 {
167
+ flex: 0 0 calc(16 / 24 * (100% - 1 * var(--layout-form-flex-gap, 15px)));
168
+ max-width: calc(16 / 24 * (100% - 1 * var(--layout-form-flex-gap, 15px)));
169
+ }
170
+ @media (max-width: 768px) {
171
+ .runtime-page-container[data-v-392af192] .el-col-16 {
172
+ flex: 0 0 100%;
173
+ max-width: 100%;
174
+ }
175
+ }
176
+ .runtime-page-container[data-v-392af192] .el-col-16 > .el-form-item:only-child {
177
+ margin-bottom: 0;
178
+ }
179
+ @media (max-width: 768px) {
180
+ .runtime-page-container[data-v-392af192] .el-col-17 {
181
+ flex: 0 0 100%;
182
+ max-width: 100%;
183
+ }
184
+ }
185
+ .runtime-page-container[data-v-392af192] .el-col-17 > .el-form-item:only-child {
186
+ margin-bottom: 0;
187
+ }
188
+ .runtime-page-container[data-v-392af192] .el-col-18 {
189
+ flex: 0 0 calc(18 / 24 * (100% - 1 * var(--layout-form-flex-gap, 15px)));
190
+ max-width: calc(18 / 24 * (100% - 1 * var(--layout-form-flex-gap, 15px)));
191
+ }
192
+ @media (max-width: 768px) {
193
+ .runtime-page-container[data-v-392af192] .el-col-18 {
194
+ flex: 0 0 100%;
195
+ max-width: 100%;
196
+ }
197
+ }
198
+ .runtime-page-container[data-v-392af192] .el-col-18 > .el-form-item:only-child {
199
+ margin-bottom: 0;
200
+ }
201
+ @media (max-width: 768px) {
202
+ .runtime-page-container[data-v-392af192] .el-col-19 {
203
+ flex: 0 0 100%;
204
+ max-width: 100%;
205
+ }
206
+ }
207
+ .runtime-page-container[data-v-392af192] .el-col-19 > .el-form-item:only-child {
208
+ margin-bottom: 0;
209
+ }
210
+ @media (max-width: 768px) {
211
+ .runtime-page-container[data-v-392af192] .el-col-20 {
212
+ flex: 0 0 100%;
213
+ max-width: 100%;
214
+ }
215
+ }
216
+ .runtime-page-container[data-v-392af192] .el-col-20 > .el-form-item:only-child {
217
+ margin-bottom: 0;
218
+ }
219
+ @media (max-width: 768px) {
220
+ .runtime-page-container[data-v-392af192] .el-col-21 {
221
+ flex: 0 0 100%;
222
+ max-width: 100%;
223
+ }
224
+ }
225
+ .runtime-page-container[data-v-392af192] .el-col-21 > .el-form-item:only-child {
226
+ margin-bottom: 0;
227
+ }
228
+ @media (max-width: 768px) {
229
+ .runtime-page-container[data-v-392af192] .el-col-22 {
230
+ flex: 0 0 100%;
231
+ max-width: 100%;
232
+ }
233
+ }
234
+ .runtime-page-container[data-v-392af192] .el-col-22 > .el-form-item:only-child {
235
+ margin-bottom: 0;
236
+ }
237
+ @media (max-width: 768px) {
238
+ .runtime-page-container[data-v-392af192] .el-col-23 {
239
+ flex: 0 0 100%;
240
+ max-width: 100%;
241
+ }
242
+ }
243
+ .runtime-page-container[data-v-392af192] .el-col-23 > .el-form-item:only-child {
244
+ margin-bottom: 0;
245
+ }
246
+ @media (max-width: 768px) {
247
+ .runtime-page-container[data-v-392af192] .el-col-24 {
248
+ flex: 0 0 100%;
249
+ max-width: 100%;
250
+ }
251
+ }
252
+ .runtime-page-container[data-v-392af192] .el-col-24 > .el-form-item:only-child {
253
+ margin-bottom: 0;
254
+ }
255
+ .runtime-page-container[data-v-392af192] .runtime-page-container-view {
8
256
  display: flex;
9
257
  flex-direction: column;
10
- align-items: stretch;
258
+ align-content: flex-start;
11
259
  gap: var(--runtime-page-container-view-gap, 15px);
12
- }.yx-card-box-view-main[data-v-799b1858] > .el-card__header {
260
+ min-height: 100%;
261
+ height: auto;
262
+ }
263
+ .runtime-page-container[data-v-392af192] .runtime-page-container-view .el-form {
264
+ width: 100%;
265
+ display: flex;
266
+ flex-wrap: wrap;
267
+ gap: var(--runtime-page-container-view-gap, 15px);
268
+ }
269
+ .runtime-page-container[data-v-392af192] .runtime-page-container-view .el-form > div {
270
+ width: 100%;
271
+ }
272
+ .runtime-page-container[data-v-392af192] .runtime-page-container-view > div {
273
+ width: 100%;
274
+ }
275
+ .runtime-page-container[data-v-392af192] .runtime-page-container-view > .el-row[class*=el-col-] {
276
+ flex: none;
277
+ }
278
+ .runtime-page-container[data-v-392af192] .runtime-page-container-view .el-row {
279
+ gap: var(--layout-form-flex-gap, 15px);
280
+ }.yx-affix[data-v-d053fb6d]:has(.yx-affix-content:empty) {
281
+ display: none;
282
+ }
283
+ .yx-affix .yx-affix-content.is-fixed.is-top > .yx-fixed-box-container[data-v-d053fb6d] {
284
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
285
+ }
286
+ .yx-affix .yx-affix-content.is-fixed.is-bottom > .yx-fixed-box-container[data-v-d053fb6d] {
287
+ box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
288
+ }.yx-card-box-view-main[data-v-fc66efb1] > .el-card__header {
13
289
  position: relative;
14
290
  }
15
- .yx-card-box-view-main .yx-card-box-view-header[data-v-799b1858] {
291
+ .yx-card-box-view-main .yx-card-box-view-header[data-v-fc66efb1] {
16
292
  display: flex;
17
293
  flex-direction: row;
18
294
  justify-content: space-between;
@@ -20,12 +296,12 @@
20
296
  gap: 15px;
21
297
  flex: 1 1 auto;
22
298
  }
23
- .yx-card-box-view-main .yx-card-box-view-title[data-v-799b1858] {
299
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-fc66efb1] {
24
300
  position: relative;
25
301
  z-index: 2;
26
302
  flex: 1 1 auto;
27
303
  }
28
- .yx-card-box-view-main .yx-card-box-view-title[data-v-799b1858]::after {
304
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-fc66efb1]::after {
29
305
  content: " ";
30
306
  position: absolute;
31
307
  left: 0;
@@ -34,53 +310,75 @@
34
310
  right: 0;
35
311
  z-index: 0;
36
312
  }
37
- .yx-card-box-view-main[data-collapse=false][data-v-799b1858] > .el-card__body {
313
+ .yx-card-box-view-main[data-collapse=false][data-v-fc66efb1] > .el-card__body {
38
314
  display: none;
39
315
  }
40
- @media (max-width: 992px) {
41
- .yx-card-box-view-context[data-v-799b1858] > .el-form-item, .yx-card-box-view-context[data-v-799b1858] > [class*=el-col] {
42
- width: 100%;
316
+ .yx-card-box-view-context[data-v-fc66efb1] {
317
+ gap: var(--layout-form-flex-gap, 15px);
318
+ }
319
+ .yx-card-box-view-context[data-v-fc66efb1] > div {
320
+ width: 100%;
321
+ }
322
+ .yx-card-box-view-context[data-v-fc66efb1] > .el-form-item {
323
+ margin: 0;
324
+ }
325
+ .yx-card-box-view-context[data-v-fc66efb1] > .el-form-item[class*=el-col-8] {
326
+ flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
327
+ }
328
+ @media (max-width: 768px) {
329
+ .yx-card-box-view-context[data-v-fc66efb1] > .el-form-item[class*=el-col-8] {
43
330
  max-width: none;
44
- flex: 0 0 50%;
331
+ flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
45
332
  }
46
333
  }
47
334
  @media (max-width: 600px) {
48
- .yx-card-box-view-context[data-v-799b1858] > .el-form-item, .yx-card-box-view-context[data-v-799b1858] > [class*=el-col] {
335
+ .yx-card-box-view-context[data-v-fc66efb1] > .el-form-item[class*=el-col-8] {
49
336
  width: 100%;
50
337
  max-width: none;
51
338
  flex: auto;
52
339
  }
340
+ }.runtime-page-container-tabs-view[data-v-f38fed66] > .el-tabs__content > .el-tab-pane {
341
+ display: flex;
342
+ flex-direction: column;
343
+ align-content: flex-start;
344
+ gap: var(--runtime-page-container-view-gap, 15px);
53
345
  }
54
- @media (max-width: 450px) {
55
- .yx-card-box-view-context[data-v-799b1858] .el-form-item {
56
- flex-direction: column;
57
- }
58
- .yx-card-box-view-context[data-v-799b1858] .el-form-item .el-form-item__label {
59
- width: 100% !important;
60
- justify-content: flex-start;
61
- text-align: left;
346
+ .runtime-page-container-tabs-view[data-v-f38fed66] > .el-tabs__content > .el-tab-pane > div {
347
+ width: 100%;
348
+ max-width: 100%;
349
+ }.yx-fixed-box-main[data-v-9b488f43]:has(.yx-fixed-box-container:empty) {
350
+ display: none;
62
351
  }
63
- }.yx-fixed-box-main.is-top > .yx-fixed-box-container[data-v-1cc14e88] {
352
+ .yx-fixed-box-main.is-top > .yx-fixed-box-container[data-v-9b488f43] {
64
353
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
65
354
  }
66
- .yx-fixed-box-main.is-bottom > .yx-fixed-box-container[data-v-1cc14e88] {
355
+ .yx-fixed-box-main.is-bottom > .yx-fixed-box-container[data-v-9b488f43] {
67
356
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
68
357
  }
69
358
  @media (max-width: 768px) {
70
- .yx-fixed-box-main > .yx-fixed-box-container[data-v-1cc14e88] {
359
+ .yx-fixed-box-main > .yx-fixed-box-container[data-v-9b488f43] {
71
360
  width: 100% !important;
72
361
  left: 0 !important;
73
362
  right: 0 !important;
74
363
  }
75
- }.amb-widget-container-tool[data-v-7aefa8b2] {
364
+ }.amb-widget-tools-parent[data-v-445a411e]:empty {
365
+ display: none;
366
+ }
367
+ .amb-widget-tools-parent[data-v-445a411e] .amb-widget-container-tool {
76
368
  display: flex;
77
369
  flex-wrap: wrap;
78
370
  gap: var(--amb-widget-container-tool-gap, 10px);
79
371
  }
80
- .amb-widget-container-tool[data-v-7aefa8b2] > .page-runtime-header-btn:has(> .page-runtime-header-btn) {
372
+ .amb-widget-tools-parent[data-v-445a411e] .amb-widget-container-tool:empty {
373
+ display: none;
374
+ }
375
+ .amb-widget-tools-parent[data-v-445a411e] .amb-widget-container-tool > .page-runtime-header-btn:has(> .page-runtime-header-btn) {
81
376
  display: flex;
82
377
  flex-wrap: wrap;
83
378
  gap: inherit;
379
+ }
380
+ .amb-widget-tools-parent[data-v-445a411e] .amb-widget-container-tool > .el-form-item {
381
+ margin-bottom: 0;
84
382
  }.el-form-item[data-v-96fc65d8] {
85
383
  margin-bottom: 0px;
86
384
  }
@@ -89,3 +387,49 @@
89
387
  }
90
388
 
91
389
 
390
+
391
+ /** 右键菜单样式 */
392
+ .context-menu[data-v-c18f2291] {
393
+ position: absolute;
394
+ background: #fff;
395
+ z-index: 999;
396
+ margin: 5;
397
+ padding: 8px 8px;
398
+ box-shadow: 0 5px 7px 1px rgba(0, 0, 0, 0.1);
399
+ border: 1px solid #bbbbbb;
400
+ border-radius: 10px;
401
+ font-size: 14px;
402
+ }
403
+ .context-menu li[data-v-c18f2291] {
404
+ list-style-type: none;
405
+ min-width: 75px;
406
+ line-height: 28px;
407
+ text-align: left;
408
+ border-radius: 5px;
409
+ padding-left: 5px;
410
+ cursor: pointer;
411
+ }
412
+ .context-menu li[data-v-c18f2291]:hover {
413
+ background: #0165e1;
414
+ color: #fff;
415
+ }
416
+ /** 右键菜单样式 */
417
+ .custom-tree-node[data-v-c18f2291] {
418
+ flex: 1;
419
+ display: flex;
420
+ align-items: center;
421
+ justify-content: space-between;
422
+ font-size: 14px;
423
+ padding-right: 8px;
424
+ }
425
+ .item-side {
426
+ &[data-v-c18f2291] {
427
+ display: flex;
428
+ align-items: center;
429
+ }
430
+ .file[data-v-c18f2291] {
431
+ width: 17px;
432
+ height: 17px;
433
+ margin-right: 5px;
434
+ }
435
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.51",
3
+ "version": "2.2.55",
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.1.18",
51
+ "agilebuilder-ui": "1.1.21",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",