super-page-runtime 2.3.16-sit3 → 2.3.17-sit1

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.
@@ -2,25 +2,25 @@ import { getOptionDatasSourceMap as e, getComponentOptionDatasFromPage as t, get
2
2
  import { getComponentRef as a, getComponentRefByCode as s } from "../global-refs.js";
3
3
  import r from "../eventBus.js";
4
4
  import l from "agilebuilder-ui/src/utils/request";
5
- import { getFormData as c, getAdditionalParamMap as u, refreshPage as f } from "../events/standard-event.js";
6
- import { dynamicControlTableEdit as m, disabledAllFields as p, updateFormItemEditState as d } from "../events/validator-util.js";
5
+ import { getFormData as c, getAdditionalParamMap as u, refreshPage as m } from "../events/standard-event.js";
6
+ import { dynamicControlTableEdit as f, disabledAllFields as p, updateFormItemEditState as d } from "../events/validator-util.js";
7
7
  import { deepCopy as g, getBaseUrl as y } from "../common-util.js";
8
8
  import { replacePrefix as b, isMobileBrowser as h } from "agilebuilder-ui/src/utils/common-util";
9
9
  import { getFormModelFields as E, getModelFields as P } from "../page-init-util.js";
10
- import { getCustomFunc as C } from "../events/event-util.js";
11
- import { isHasFieldPermissionAuth as k } from "../table-utils.js";
10
+ import { getCustomFunc as k } from "../events/event-util.js";
11
+ import { isHasFieldPermissionAuth as C } from "../table-utils.js";
12
12
  const v = { showElement: function(e2, t2, n2) {
13
- n2 ? A(e2, "showElement", t2) : t2.forEach((t3) => {
13
+ n2 ? O(e2, "showElement", t2) : t2.forEach((t3) => {
14
14
  const n3 = s(e2, t3);
15
15
  n3 && n3.show();
16
16
  });
17
17
  }, hideElement: function(e2, t2, n2) {
18
- n2 ? A(e2, "hideElement", t2) : t2.forEach((t3) => {
18
+ n2 ? O(e2, "hideElement", t2) : t2.forEach((t3) => {
19
19
  const n3 = s(e2, t3);
20
20
  n3 && n3.hide();
21
21
  });
22
22
  }, enableElement: function(e2, t2, n2) {
23
- n2 ? A(e2, "enableElement", t2) : t2.forEach((t3) => {
23
+ n2 ? O(e2, "enableElement", t2) : t2.forEach((t3) => {
24
24
  const n3 = s(e2, t3);
25
25
  if (n3) {
26
26
  const e3 = n3.getConfigure();
@@ -28,7 +28,7 @@ const v = { showElement: function(e2, t2, n2) {
28
28
  }
29
29
  });
30
30
  }, disableElement: function(e2, t2, n2) {
31
- n2 ? A(e2, "disableElement", t2) : t2.forEach((t3) => {
31
+ n2 ? O(e2, "disableElement", t2) : t2.forEach((t3) => {
32
32
  const n3 = s(e2, t3);
33
33
  if (n3) {
34
34
  const e3 = n3.getConfigure();
@@ -48,11 +48,11 @@ const v = { showElement: function(e2, t2, n2) {
48
48
  o(e2.entity, i2.startsWith("${") ? i2 : "${" + t2 + "." + i2 + "}", n2[i2]);
49
49
  });
50
50
  }, dynamicControlFormEdit: function(e2, t2, n2) {
51
- n2 ? A(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
51
+ n2 ? O(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
52
52
  }, disabledAllFields(e2) {
53
53
  p(e2);
54
54
  }, dynamicControlTableEdit(e2, t2, n2) {
55
- m(e2, t2, n2);
55
+ f(e2, t2, n2);
56
56
  }, executeServiceFlow: function(e2, t2, n2) {
57
57
  const i2 = e2.code;
58
58
  n2 || (n2 = { entity: e2.entity.data, serviceVariables: {}, requestParams: u(e2), taskParamMap: e2.entity.task, dynamicDimensionValue: [], dynamicSortValue: "" }), n2.entity || (n2.entity = e2.entity.data), n2.requestParams || (n2.requestParams = u(e2)), n2.taskParamMap || (n2.taskParamMap = e2.entity.task);
@@ -61,7 +61,7 @@ const v = { showElement: function(e2, t2, n2) {
61
61
  }, openPage: function(e2, t2) {
62
62
  r.$emit(e2.code + "_open-dialog", { pageContext: e2, eventParams: t2.eventParams, configureObj: { props: { linkPage: t2 } } });
63
63
  }, refreshPage: function(e2, t2) {
64
- f(e2, t2);
64
+ m(e2, t2);
65
65
  }, refreshSubTableHandle: function(e2, t2) {
66
66
  let n2;
67
67
  const i2 = s(e2, t2);
@@ -82,13 +82,18 @@ const v = { showElement: function(e2, t2, n2) {
82
82
  const n2 = u(e2);
83
83
  return n2 ? n2[t2] : null;
84
84
  }, isMobile: () => h(), getComponentRefByProp: (e2, t2) => s(e2, t2), getComponentRefByCode: (e2, t2) => a(e2, t2), getFormViewData(o2) {
85
- var _a, _b, _c, _d, _e, _f, _g, _h;
85
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
86
86
  const s2 = o2.entity ? o2.entity : {}, r2 = g(s2), l2 = e(o2);
87
87
  for (const e2 in l2) {
88
88
  const s3 = t(o2, e2), l3 = a(o2, e2);
89
89
  if (l3) {
90
90
  const e3 = l3.getConfigure();
91
- if (e3 && ((_b = (_a = e3.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.optionValueSetType) && ("static" === ((_d = (_c = e3.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.optionValueSetType) || "optionGroup" === ((_f = (_e = e3.props) == null ? void 0 : _e.dataOrigin) == null ? void 0 : _f.optionValueSetType))) if (e3.name && ("select" === e3.name && ((_h = (_g = e3.props) == null ? void 0 : _g.base) == null ? void 0 : _h.multiple) || "checkbox" === e3.name)) {
91
+ if (e3) if (!((_b = (_a = e3.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.optionValueSetType) || "static" !== ((_d = (_c = e3.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.optionValueSetType) && "optionGroup" !== ((_f = (_e = e3.props) == null ? void 0 : _e.dataOrigin) == null ? void 0 : _f.optionValueSetType)) {
92
+ if ("dynamicData" === ((_h = (_g = e3 == null ? void 0 : e3.props) == null ? void 0 : _g.dataOrigin) == null ? void 0 : _h.optionValueSetType) && ("select" === (e3 == null ? void 0 : e3.name) || "checkbox" === (e3 == null ? void 0 : e3.name) || "radio" === (e3 == null ? void 0 : e3.name))) {
93
+ const t2 = E(o2, e3), a2 = l3.getSelectItemsTitle(), s4 = a2 && a2.length > 0 ? a2 : n(r2, t2);
94
+ i(r2, t2, s4);
95
+ }
96
+ } else if (e3.name && ("select" === e3.name && ((_j = (_i = e3.props) == null ? void 0 : _i.base) == null ? void 0 : _j.multiple) || "checkbox" === e3.name)) {
92
97
  const t2 = E(o2, e3), a2 = n(r2, t2);
93
98
  if (a2) {
94
99
  const e4 = V(a2.split(","), s3);
@@ -107,20 +112,20 @@ const v = { showElement: function(e2, t2, n2) {
107
112
  const i2 = a(o2, t2);
108
113
  if (i2) {
109
114
  const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = P(t3, o3), s3 = n(r2, a2);
110
- j(i2.getTableSelectOptions(e2), s3);
115
+ T(i2.getTableSelectOptions(e2), s3);
111
116
  }
112
117
  }
113
118
  }
114
119
  return r2.data;
115
- }, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => C(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
120
+ }, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => k(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
116
121
  var _a, _b, _c, _d;
117
122
  return !(void 0 !== ((_b = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isHasFieldAuthPermission) && !((_d = (_c = e2 == null ? void 0 : e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isHasFieldAuthPermission));
118
123
  }, isHasFieldAuth(e2, t2) {
119
- k(e2, null, t2);
124
+ C(e2, null, t2);
120
125
  }, isHasFieldAuthWithTable(e2, t2, n2) {
121
- k(e2, t2, n2);
126
+ C(e2, t2, n2);
122
127
  } };
123
- function j(e2, t2) {
128
+ function T(e2, t2) {
124
129
  e2 && t2 && t2.forEach((t3) => {
125
130
  Object.keys(e2).forEach((n2) => {
126
131
  const i2 = t3[n2], o2 = e2[n2], a2 = o2.options, s2 = o2.column;
@@ -137,10 +142,10 @@ function j(e2, t2) {
137
142
  function V(e2, t2) {
138
143
  let n2;
139
144
  return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((i2) => {
140
- n2 = n2 + $(e2, t2) + ",";
141
- }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = $(e2, t2))), n2;
145
+ n2 = n2 + j(e2, t2) + ",";
146
+ }), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = j(e2, t2))), n2;
142
147
  }
143
- function $(e2, t2) {
148
+ function j(e2, t2) {
144
149
  let n2 = e2;
145
150
  if (null != e2 && t2) for (let i2 = 0; i2 < t2.length; i2++) {
146
151
  const o2 = t2[i2].value, a2 = t2[i2].label ? t2[i2].label : t2[i2].name;
@@ -151,7 +156,7 @@ function $(e2, t2) {
151
156
  }
152
157
  return n2;
153
158
  }
154
- function A(e2, t2, n2) {
159
+ function O(e2, t2, n2) {
155
160
  e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = n2;
156
161
  }
157
162
  export {
@@ -441,7 +441,7 @@ function q(e2, t2, s2, n2, o2, a2) {
441
441
  return $(e2, t2, s2, n2, o2, a2, null, null);
442
442
  }
443
443
  function H(t2, s2, n2, o2, a2) {
444
- const i2 = J(t2, s2, a2);
444
+ const i2 = G(t2, s2, a2);
445
445
  if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
446
446
  let a3 = s3.props.base.successOperation;
447
447
  const i3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
@@ -462,25 +462,25 @@ function H(t2, s2, n2, o2, a2) {
462
462
  const n4 = s3;
463
463
  let o3;
464
464
  o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
465
- G(e2, t3, { ...o3, ...e2.entity.page });
465
+ J(e2, t3, { ...o3, ...e2.entity.page });
466
466
  } else {
467
467
  const s4 = t3.props.base.successOperation;
468
468
  if (s4 && null !== s4) {
469
- G(e2, t3, { ...e2.entity.page });
469
+ J(e2, t3, { ...e2.entity.page });
470
470
  } else e2.canClick = true;
471
471
  }
472
472
  n3 && l({ message: u().t(n3), type: "success", showClose: true });
473
473
  }(t2, s2, n2, o2);
474
474
  else {
475
475
  const e2 = s2.props.base.successOperation;
476
- e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
476
+ e2 && null !== e2 ? J(t2, s2, null) : t2.canClick = true;
477
477
  }
478
478
  }
479
- function J(e2, t2, s2) {
479
+ function G(e2, t2, s2) {
480
480
  let n2;
481
481
  return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
482
482
  }
483
- function G(e2, t2, s2) {
483
+ function J(e2, t2, s2) {
484
484
  const n2 = t2.props.base.successOperation;
485
485
  if (!n2 || null === n2) return;
486
486
  const o2 = t2.props.base.isNeedValueMapping;
@@ -516,7 +516,7 @@ function X(e2, t2, s2, n2) {
516
516
  t2 && !t2.props.base && (t2.props.base = {});
517
517
  let o2 = n2;
518
518
  o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
519
- const a2 = J(e2, t2);
519
+ const a2 = G(e2, t2);
520
520
  if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
521
521
  if (a2 && "list" === a2) {
522
522
  const s3 = h(e2, t2);
@@ -902,7 +902,7 @@ function we(e2, t2, s2, n2, o2) {
902
902
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
903
903
  return false;
904
904
  }(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
905
- if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
905
+ if (e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
906
906
  if ("COMPLETED" !== e4.active) return false;
907
907
  if ("TYPE_READ" === e4.processingMode) return false;
908
908
  if (!e4.showButtonGetBack) return false;
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
2
- import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as C, monitorFieldChange as b, autoSetAfterSelect as k, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as _ } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as j, handleAfterInitEvent as S } from "../../../../utils/events/event-util.js";
5
- import { $t as q } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
2
+ import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as S } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as R, handleAfterInitEvent as _ } from "../../../../utils/events/event-util.js";
5
+ import { $t as I } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
7
7
  const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
8
8
  const w = e2, z = t(null), D = w.pageContext.entity ? w.pageContext.entity : {};
9
- let O = _(w.pageContext, w.configure);
10
- const A = l({ get() {
11
- let e3 = x(D, O);
9
+ let E = j(w.pageContext, w.configure);
10
+ const O = l({ get() {
11
+ let e3 = x(D, E);
12
12
  return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
13
13
  }, set(e3) {
14
- e3 && e3.length > 0 && (e3 = e3.join(",")), y(D, O, e3), null != e3 && (z.value = "");
15
- } }), M = w.configure.runtime ? w.configure.runtime : {}, P = M.style, E = M.class, F = M.headerStyle, T = M.titleExceedStyle, U = t(M.props ? M.props : {}), W = t(U.value.options ? U.value.options : []), B = C(w.pageContext, w.configure);
14
+ e3 && e3.length > 0 && (e3 = e3.join(",")), y(D, E, e3), null != e3 && (z.value = "");
15
+ } }), A = w.configure.runtime ? w.configure.runtime : {}, M = A.style, P = A.class, T = A.headerStyle, F = A.titleExceedStyle, U = t(A.props ? A.props : {}), W = t(U.value.options ? U.value.options : []), B = b(w.pageContext, w.configure);
16
16
  B.length > 0 && (W.value = B);
17
17
  const G = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, H = G.optionValueSetType;
18
18
  let J = [];
@@ -22,27 +22,41 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
22
22
  let t2 = null;
23
23
  W.value && null != e3 && null != e3 && (t2 = W.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, J, t2);
24
24
  }
25
- j(e3, w.pageContext, w.configure, "change");
25
+ R(e3, w.pageContext, w.configure, "change");
26
26
  };
27
27
  const K = U.value.optionconfigInfo ? U.value.optionconfigInfo : {};
28
28
  const L = U.value.monitorFields;
29
- b(w.pageContext, L, function() {
30
- R(w.pageContext, K, void 0).then((e3) => {
29
+ C(w.pageContext, L, function() {
30
+ S(w.pageContext, K, void 0).then((e3) => {
31
31
  });
32
32
  });
33
33
  const N = t(null), Q = t(null), X = t(null);
34
34
  return o(() => {
35
35
  n(() => {
36
- const e3 = A.value;
37
- S(e3, w.pageContext, w.configure, { formItemRef: N.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
36
+ const e3 = O.value;
37
+ _(e3, w.pageContext, w.configure, { formItemRef: N.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
38
38
  });
39
39
  }), V2({ updateOptions: function(e3) {
40
40
  W.value = e3 || [];
41
41
  }, addRequiredClass: function() {
42
- z.value = I();
42
+ z.value = q();
43
+ }, getSelectItemsTitle: function() {
44
+ const e3 = function() {
45
+ let e4 = x(D, E);
46
+ return null != e4 && (e4 = String(e4)), e4;
47
+ }();
48
+ if (null != e3 && "" !== e3 && e3.length > 0) {
49
+ let t2 = "";
50
+ const l2 = e3.split(",");
51
+ return W.value.length > 0 ? (W.value.forEach((e4) => {
52
+ l2.forEach((l3) => {
53
+ e4.value === l3 && (t2 = t2 + e4.label + ",");
54
+ });
55
+ }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
56
+ }
43
57
  } }), (e3, t2) => {
44
58
  const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
45
- return i(), u(n2, { ref_key: "formItemRef", ref: N, class: s(p(E) + (z.value ? " " + z.value : "")), required: !!U.value.required, "label-width": U.value.labelWidth, style: r(p(P)) }, { label: c(() => [U.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: X, style: r({ ...p(F), ...p(T) }) }, h(p(q)(U.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => A.value = e4) }, { default: c(() => [(i(true), g(v, null, d(W.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(j)(t3.value, e3.pageContext, e3.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
59
+ return i(), u(n2, { ref_key: "formItemRef", ref: N, class: s(p(P) + (z.value ? " " + z.value : "")), required: !!U.value.required, "label-width": U.value.labelWidth, style: r(p(M)) }, { label: c(() => [U.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: X, style: r({ ...p(T), ...p(F) }) }, h(p(I)(U.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(i(true), g(v, null, d(W.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(R)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
46
60
  };
47
61
  } });
48
62
  export {
@@ -1,18 +1,18 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as g, createVNode as d, createElementBlock as v, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as C, createCommentVNode as b } from "vue";
2
- import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as R, queryOptionDatasources as S } from "../../../../utils/page-helper-util.js";
1
+ import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as u, nextTick as a, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, withCtx as g, createVNode as v, createElementBlock as d, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as b, createCommentVNode as C } from "vue";
2
+ import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as S, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as T, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
5
- import { $t as I } from "../../../../utils/i18n-util.js";
4
+ import { handleFormEvent as T, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
5
+ import { $t as q } from "../../../../utils/i18n-util.js";
6
6
  import { addRequiredClassUtil as V } from "../../../../utils/common-util.js";
7
7
  const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
8
8
  const z = e2, O = t(null), D = z.pageContext.entity ? z.pageContext.entity : {};
9
- let M = j(z.pageContext, z.configure);
10
- const P = l({ get() {
11
- let e3 = k(D, M);
9
+ let E = j(z.pageContext, z.configure);
10
+ const M = l({ get() {
11
+ let e3 = k(D, E);
12
12
  return null != e3 && (e3 += ""), e3;
13
13
  }, set(e3) {
14
- x(D, M, e3), null != e3 && (O.value = "");
15
- } }), W = z.configure.runtime ? z.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, A = t(W.props ? W.props : {}), B = t(A.value.options ? A.value.options : []), G = _(z.pageContext, z.configure);
14
+ x(D, E, e3), null != e3 && (O.value = "");
15
+ } }), P = z.configure.runtime ? z.configure.runtime : {}, W = P.style, F = P.class, U = P.headerStyle, $ = P.titleExceedStyle, A = t(P.props ? P.props : {}), B = t(A.value.options ? A.value.options : []), G = _(z.pageContext, z.configure);
16
16
  G.length > 0 && (B.value = G);
17
17
  const H = z.configure.props && z.configure.props.dataOrigin ? z.configure.props.dataOrigin : {}, J = H.optionValueSetType;
18
18
  let K = [];
@@ -20,7 +20,7 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
20
20
  z.configure && z.configure.props && z.configure.props.base && z.configure.props.base.optionProp && K.push({ source: "label", target: z.configure.props.base.optionProp }), A.value.changeMethod = function(e3) {
21
21
  if (K.length > 0) {
22
22
  let t2 = null;
23
- B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => e3 === t3.value)), R(z.configure, z.pageContext, K, t2);
23
+ B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => e3 === t3.value)), S(z.configure, z.pageContext, K, t2);
24
24
  }
25
25
  T(e3, z.pageContext, z.configure, "change");
26
26
  };
@@ -46,7 +46,7 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
46
46
  function ee() {
47
47
  Y && clearTimeout(Y), Y = setTimeout(function() {
48
48
  const e3 = Q();
49
- e3 != X && (X = e3, S(z.pageContext, Z, void 0).then((e4) => {
49
+ e3 != X && (X = e3, R(z.pageContext, Z, void 0).then((e4) => {
50
50
  }));
51
51
  }, 200);
52
52
  }
@@ -54,18 +54,27 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
54
54
  Y && clearTimeout(Y);
55
55
  });
56
56
  const te = t(null), le = t(null), oe = t(null);
57
- return a(() => {
58
- u(() => {
59
- const e3 = P.value;
60
- q(e3, z.pageContext, z.configure, { formItemRef: te.value, componentRef: le.value, titleRef: oe.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
57
+ return u(() => {
58
+ a(() => {
59
+ const e3 = M.value;
60
+ I(e3, z.pageContext, z.configure, { formItemRef: te.value, componentRef: le.value, titleRef: oe.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
61
61
  });
62
62
  }), w2({ updateOptions: function(e3) {
63
63
  B.value = e3 || [];
64
64
  }, addRequiredClass: function() {
65
65
  O.value = V();
66
+ }, getSelectItemsTitle: function() {
67
+ let e3 = k(D, E);
68
+ if (null == e3) return "";
69
+ if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
70
+ let t2 = "";
71
+ return B.value.length > 0 ? (B.value.forEach((l2) => {
72
+ l2.value === e3 && (t2 = t2 + l2.label + ",");
73
+ }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
+ }
66
75
  } }), (e3, t2) => {
67
76
  const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
68
- return s(), r(n2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: f(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: p(c(E)) }, { label: g(() => [A.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: oe, style: p({ ...c(U), ...c($) }) }, C(c(I)(A.value.title)), 5)) : b("", true)]), default: g(() => [d(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4) }, { default: g(() => [(s(true), v(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.configure, "click", { values: P.value }) }, { default: g(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
77
+ return s(), r(n2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
69
78
  };
70
79
  } });
71
80
  export {
@@ -1,7 +1,8 @@
1
1
  import t from "./richtext-runtime.vue2.js";
2
2
  /* empty css */
3
+ /* empty css */
3
4
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-aae764b5"]]);
5
+ const r = e(t, [["__scopeId", "data-v-ac12ddeb"]]);
5
6
  export {
6
7
  r as default
7
8
  };
@@ -1,123 +1,190 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as i, onBeforeUnmount as o, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as g, normalizeStyle as p, normalizeClass as m, unref as f, withCtx as h, createElementVNode as v, toDisplayString as y } from "vue";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as b, formatVariableValue as C, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
- import q from "quill";
1
+ import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as p, normalizeStyle as f, normalizeClass as m, unref as v, withCtx as g, createElementVNode as h, toDisplayString as b } from "vue";
2
+ import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
+ import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.js";
5
+ import S from "agilebuilder-ui/src/utils/request";
6
+ import { $t as E } from "../../../../utils/i18n-util.js";
7
+ import { getBaseUrl as A, addRequiredClassUtil as L } from "../../../../utils/common-util.js";
8
+ import H from "quill";
5
9
  import "quill/dist/quill.snow.css";
6
- import { handleAfterInitEvent as T, handleFormEvent as E } from "../../../../utils/events/event-util.js";
7
- import A from "agilebuilder-ui/src/utils/request";
8
- import { $t as L } from "../../../../utils/i18n-util.js";
9
- import { getBaseUrl as R, addRequiredClassUtil as S } from "../../../../utils/common-util.js";
10
- const j = { style: { width: "100%", height: "100%" } }, H = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
11
- const B = e2, N = t(null), _ = B.pageContext.entity ? B.pageContext.entity : {}, M = x(B.pageContext, B.configure), U = B.configure.runtime ? B.configure.runtime : {}, W = U.style, $ = U.class, z = U.headerStyle, D = U.titleExceedStyle, F = t(U.props ? U.props : {});
12
- let P = b(B.pageContext, B.configure);
13
- P && P.fixHeight && (W.height || (W.height = P.fixHeight + "px"));
14
- let I = F.value.value;
15
- const O = C(B.pageContext, I), G = t(null);
16
- let J = null;
17
- t(null);
18
- let K = F.value.state;
19
- function Q(e3) {
10
+ import { ElMessage as N } from "element-plus";
11
+ const M = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext-statusbar" }, j = { class: "word-count" }, V = { key: 0, class: "upload-loading" }, $ = ["innerHTML"], z = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
+ const B = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], F = H.import("attributors/style/size");
13
+ F.whitelist = B, H.register(F, true);
14
+ const U = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], D = H.import("attributors/style/font");
15
+ D.whitelist = U, H.register(D, true);
16
+ const W = e2, P = t(""), G = W.pageContext.entity ? W.pageContext.entity : {}, I = y(W.pageContext, W.configure), K = W.configure.runtime ? W.configure.runtime : {}, O = K.style, Y = K.class, J = K.headerStyle, Q = K.titleExceedStyle, X = t(K.props ? K.props : {});
17
+ let Z = x(W.pageContext, W.configure);
18
+ Z && Z.fixHeight && (O.height || (O.height = Z.fixHeight + "px"));
19
+ let ee = X.value.value;
20
+ const te = k(W.pageContext, ee), le = t(null);
21
+ let ne = null;
22
+ const oe = t(false), ie = t(0), ae = t(false), re = t(false), ue = t("");
23
+ let se = null, ce = X.value.state;
24
+ function de(e3) {
20
25
  return "readonly" == e3 || "disabled" == e3;
21
26
  }
22
- const V = Q(K), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["small", false, "large", "huge"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : F.value.placeholder, readOnly: V });
23
- l(F.value, () => {
24
- const e3 = F.value.state;
25
- if (null != e3 && e3 !== K) {
26
- K = e3;
27
- const t2 = Q(K);
28
- J && (J.enable(!t2), J.root.dataset.placeholder = t2 ? "" : F.value.placeholder);
27
+ const pe = de(ce), fe = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: B }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: U }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: pe ? "" : X.value.placeholder, readOnly: pe });
28
+ function me() {
29
+ if (!(ne == null ? void 0 : ne.container)) return;
30
+ const e3 = ne.container.parentNode;
31
+ if (!e3) return;
32
+ const t2 = e3.getBoundingClientRect(), l2 = ne.container.getBoundingClientRect();
33
+ let n2 = t2.height - (l2.top - t2.top);
34
+ ne.container.style.height = Math.max(n2, 100) + "px";
35
+ }
36
+ l(X.value, () => {
37
+ const e3 = X.value.state;
38
+ if (null != e3 && e3 !== ce) {
39
+ ce = e3;
40
+ const t2 = de(ce);
41
+ ne && (ne.enable(!t2), ne.root.dataset.placeholder = t2 ? "" : X.value.placeholder);
29
42
  }
30
43
  });
31
- const Y = t([]), Z = t(false), ee = t(null), te = t(null), le = t(null);
32
- let ne;
33
- function ie(e3) {
44
+ const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
45
+ let xe = null;
46
+ function ke(e3) {
34
47
  const t2 = e3.match(/serverPath=([^&"]+)/);
35
48
  return t2 ? t2[1] : "";
36
49
  }
37
- function oe(e3) {
50
+ const we = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
51
+ function Ce() {
52
+ oe.value = !oe.value, o(() => {
53
+ me();
54
+ });
55
+ }
56
+ function qe() {
57
+ ne && (ue.value = ne.root.innerHTML, re.value = true);
58
+ }
59
+ function Te() {
60
+ if (!ne) return void (ie.value = 0);
61
+ const e3 = ne.getText().trim();
62
+ ie.value = e3.length;
63
+ }
64
+ function Se() {
65
+ N.error({ message: "图片上传失败,请重试", duration: 3e3 });
66
+ }
67
+ function Ee(e3) {
68
+ "Escape" === e3.key && oe.value && (oe.value = false);
69
+ }
70
+ function Ae(e3) {
38
71
  var _a;
39
- null !== e3.relatedTarget && ((_a = G.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || E(J.root.innerHTML, B.pageContext, B.configure, "change", { entity: _ });
72
+ ne && (null !== e3.relatedTarget && ((_a = le.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || T(ne.root.innerHTML, W.pageContext, W.configure, "change", { entity: G }));
40
73
  }
41
- function ae(e3) {
74
+ function Le(e3) {
42
75
  if ("img" === e3.target.localName) {
43
- Y.value = [];
76
+ ve.value = [];
44
77
  let t2 = e3.target.src;
45
- Y.value.push(t2), Z.value = true;
78
+ ve.value.push(t2), ge.value = true;
46
79
  }
47
80
  }
48
- function re(e3) {
81
+ function He(e3) {
49
82
  const t2 = new FormData();
50
83
  t2.append("file", e3);
51
- const l2 = B.pageContext.backendUrl, n2 = R(l2, B.pageContext.isTest);
52
- return A.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
84
+ const l2 = W.pageContext.backendUrl, n2 = A(l2, W.pageContext.isTest);
85
+ return S.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
53
86
  }
54
- function ue(e3, t2) {
55
- let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], i2 = atob(l2[1]), o2 = i2.length, a2 = new Uint8Array(o2);
56
- for (; o2--; ) a2[o2] = i2.charCodeAt(o2);
57
- return new File([a2], t2, { type: n2 });
87
+ function Ne(e3, t2) {
88
+ const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", i2 = atob(l2[1]);
89
+ let a2 = i2.length;
90
+ const r2 = new Uint8Array(a2);
91
+ for (; a2--; ) r2[a2] = i2.charCodeAt(a2);
92
+ return new File([r2], t2, { type: o2 });
58
93
  }
59
94
  return n(() => {
60
95
  var _a;
61
- J = new q(G.value, X.value), J.root.style.fontSize = "16px";
62
- let e3 = O;
96
+ if (!le.value) return;
97
+ ne = new H(le.value, fe.value), ne.root.style.fontSize = "16px", function() {
98
+ var _a2, _b;
99
+ const e4 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
100
+ if (!e4) return;
101
+ e4.querySelectorAll("button").forEach((e5) => {
102
+ const t3 = e5.className.match(/ql-([\w-]+)/);
103
+ if (t3) {
104
+ const l2 = t3[1], n2 = `${l2}[value="${e5.value}"]`;
105
+ we[n2] ? e5.setAttribute("data-tooltip", we[n2]) : we[l2] && e5.setAttribute("data-tooltip", we[l2]);
106
+ }
107
+ }), e4.querySelectorAll(".ql-picker").forEach((e5) => {
108
+ const t3 = e5.className.match(/ql-(\w+)/);
109
+ if (t3) {
110
+ const l2 = t3[1];
111
+ if (we[l2]) {
112
+ const t4 = e5.querySelector(".ql-picker-label");
113
+ t4 && t4.setAttribute("data-tooltip", we[l2]);
114
+ }
115
+ }
116
+ });
117
+ }(), function() {
118
+ var _a2, _b;
119
+ const e4 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
120
+ e4 && e4.addEventListener("mousedown", (e5) => {
121
+ e5.preventDefault();
122
+ });
123
+ }();
124
+ let e3 = te;
63
125
  e3 = e3.replace(/<img data-uuid="(.*?)"/g, (e4, t3) => {
64
- const l2 = ie(t3), n2 = B.pageContext.backendUrl;
65
- return `<img src="${R(n2, B.pageContext.isTest)}/common/fs-upload/download?serverPath=${l2}&isShowWatermark=false" data-uuid="${l2}"`;
66
- });
67
- const t2 = J.clipboard.convertHTML(e3);
68
- J.setContents(t2.ops), i(() => {
69
- J.root.querySelectorAll("img").forEach((e4) => {
126
+ const l2 = ke(t3), n2 = W.pageContext.backendUrl;
127
+ return `<img src="${A(n2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${l2}&isShowWatermark=false" data-uuid="${l2}"`;
128
+ }), e3 = e3.replace(/\t/g, "    "), e3 = e3.replace(/ {2}/g, "  ");
129
+ const t2 = ne.clipboard.convertHTML(e3);
130
+ ne.setContents(t2.ops), o(() => {
131
+ if (!ne) return;
132
+ ne.root.querySelectorAll("img").forEach((e4) => {
70
133
  if (!e4.getAttribute("data-uuid")) {
71
- const t3 = ie(e4.src);
134
+ const t3 = ke(e4.src);
72
135
  e4.setAttribute("data-uuid", t3);
73
136
  }
74
137
  });
75
- }), (_a = G.value) == null ? void 0 : _a.addEventListener("focusout", oe), J.on("text-change", async function(e4, t3, l2) {
76
- const n2 = J.root.getElementsByTagName("img");
77
- for (let e5 of n2) if (!e5.getAttribute("data-uuid")) {
78
- const t4 = ie(e5.src);
138
+ }), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", Ae), ne.on("text-change", async function(e4) {
139
+ if (!ne) return;
140
+ const t3 = ne.root.getElementsByTagName("img");
141
+ for (const e5 of t3) if (!e5.getAttribute("data-uuid")) {
142
+ const t4 = ke(e5.src);
79
143
  e5.setAttribute("data-uuid", t4);
80
144
  }
81
- if (e4.ops && e4.ops.length > 0) for (let t4 = 0; t4 < e4.ops.length; t4++) {
82
- const l3 = e4.ops[t4];
83
- if (l3.insert && l3.insert.image) {
84
- const e5 = l3.insert.image;
85
- if (!e5.startsWith("data:image")) return;
86
- const t5 = ue(e5, "image.png");
87
- await re(t5).then((t6) => {
88
- if (!J) return;
89
- const l4 = J.root.getElementsByTagName("img");
90
- if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
91
- const i3 = l4[n3];
92
- i3.src === e5 && (i3.width = 300, i3.src = t6.url, i3.setAttribute("data-uuid", t6.uuid));
93
- }
94
- }).catch((e6) => {
95
- });
145
+ if (e4.ops && e4.ops.length > 0) for (const t4 of e4.ops) {
146
+ const e5 = t4.insert;
147
+ if (e5 == null ? void 0 : e5.image) {
148
+ const t5 = e5.image;
149
+ if (!t5.startsWith("data:image")) continue;
150
+ try {
151
+ ae.value = true;
152
+ const e6 = Ne(t5, "image.png"), l2 = await He(e6);
153
+ if (!ne) return;
154
+ const n2 = ne.root.getElementsByTagName("img");
155
+ for (const e7 of n2) e7.src === t5 && (e7.width = 300, e7.src = l2.url, e7.setAttribute("data-uuid", l2.uuid));
156
+ } catch (e6) {
157
+ Se();
158
+ } finally {
159
+ ae.value = false;
160
+ }
96
161
  }
97
162
  }
98
- const i2 = J.root.innerHTML;
99
- w(_, M, i2), null != i2 && "" !== i2 && (N.value = "");
100
- }), ne = J.container, ne.addEventListener("click", ae), function() {
101
- if (J && J.container) {
102
- const e4 = J.container.parentNode.getBoundingClientRect(), t3 = J.container.getBoundingClientRect();
103
- let l2 = e4.height - (t3.top - e4.top);
104
- l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
105
- }
106
- }(), i(() => {
107
- const e4 = k(_, M);
108
- T(e4, B.pageContext, B.configure, { formItemRef: ee.value, componentRef: te.value, titleRef: le.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
163
+ !function() {
164
+ se && clearTimeout(se);
165
+ se = setTimeout(() => {
166
+ if (!ne) return;
167
+ const e5 = ne.root.innerHTML;
168
+ C(G, I, e5), e5 && (P.value = "");
169
+ }, 300);
170
+ }(), Te();
171
+ }), Te(), xe = ne.container, xe.addEventListener("click", Le), me(), o(() => {
172
+ const e4 = w(G, I);
173
+ q(e4, W.pageContext, W.configure, { formItemRef: he.value, componentRef: be.value, titleRef: ye.value, value: e4, entity: W.pageContext.entity.data, pageData: W.pageContext.entity.page });
109
174
  });
110
- }), o(() => {
111
- G.value && G.value.removeEventListener("focusout", oe), ne && ne.removeEventListener("click", ae);
112
- }), H2({ addRequiredClass: function() {
113
- N.value = S();
175
+ }), n(() => {
176
+ document.addEventListener("keydown", Ee);
177
+ }), i(() => {
178
+ document.removeEventListener("keydown", Ee), se && clearTimeout(se), le.value && le.value.removeEventListener("focusout", Ae), xe && xe.removeEventListener("click", Le);
179
+ }), z2({ addRequiredClass: function() {
180
+ P.value = L();
114
181
  } }), (e3, t2) => {
115
- const l2 = a("el-form-item"), n2 = a("el-image-viewer");
116
- return u(), r(s, null, [c(l2, { required: F.value.required, class: m(f($) + (N.value ? " " + N.value : "")), "label-width": F.value.labelWidth, style: p(f(W)) }, { label: h(() => [F.value.tittleShow ? (u(), r("div", { key: 0, style: p({ ...f(z), ...f(D) }) }, y(f(L)(F.value.title)), 5)) : g("", true)]), default: h(() => [v("div", j, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), d(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
117
- Z.value = false;
118
- }), "url-list": Y.value }, null, 8, ["url-list"])) : g("", true)], 64);
182
+ const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
183
+ return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: le, style: { width: "100%" } }, null, 512), h("div", M, [h("button", { class: "toolbar-btn", onClick: qe, title: "预览" }, [c(n2, null, { default: g(() => [c(l2)]), _: 1 })]), h("button", { class: "toolbar-btn", onClick: Ce, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(n2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
184
+ ge.value = false;
185
+ }), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: re.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => re.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: g(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
119
186
  };
120
187
  } });
121
188
  export {
122
- H as default
189
+ z as default
123
190
  };
@@ -3,11 +3,11 @@ import { setVariableValue as _, getOptionDatasFromPage as w, queryOptionDatasour
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as A, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
5
5
  import V from "../common/title-suffix-element.vue.js";
6
- import { $t as M } from "../../../../utils/i18n-util.js";
7
- import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
8
- import { CopyDocument as z } from "@element-plus/icons-vue";
9
- import E from "clipboard";
10
- import { ElMessage as I } from "element-plus";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
8
+ import { CopyDocument as q } from "@element-plus/icons-vue";
9
+ import z from "clipboard";
10
+ import { ElMessage as E } from "element-plus";
11
11
  import { useI18n as P } from "vue-i18n";
12
12
  const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
13
  const { t: F } = P(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
@@ -83,24 +83,25 @@ const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }
83
83
  fe && clearTimeout(fe);
84
84
  });
85
85
  const ge = t(null), me = t(null), de = t(null);
86
+ function he() {
87
+ const e3 = ee();
88
+ if (null != e3 && "" !== e3 && e3.length > 0) {
89
+ let t2 = "";
90
+ return "string" == typeof e3 ? le.value.length > 0 ? le.value.forEach((l2) => {
91
+ l2.value === e3 && (t2 = l2.label);
92
+ }) : t2 = e3 : le.value.length > 0 ? (le.value.forEach((l2) => {
93
+ e3.forEach((e4) => {
94
+ l2.value === e4 && (t2 = t2 + l2.label + ",");
95
+ });
96
+ }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
97
+ }
98
+ }
86
99
  return u(() => {
87
- const e3 = new E("#" + Z, { text: function() {
88
- return function() {
89
- const e4 = ee();
90
- if (null != e4 && "" !== e4 && e4.length > 0) {
91
- let t2 = "";
92
- return "string" == typeof e4 ? le.value.length > 0 ? le.value.forEach((l2) => {
93
- l2.value === e4 && (t2 = l2.label);
94
- }) : t2 = e4 : le.value.length > 0 ? (le.value.forEach((l2) => {
95
- e4.forEach((e5) => {
96
- l2.value === e5 && (t2 = t2 + l2.label + ",");
97
- });
98
- }), t2 = t2.slice(0, t2.length - 1)) : t2 = e4.join(","), t2;
99
- }
100
- }();
100
+ const e3 = new z("#" + Z, { text: function() {
101
+ return he();
101
102
  } });
102
103
  e3.on("success", () => {
103
- I({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
104
+ E({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
104
105
  }), e3.on("error", (e4) => {
105
106
  }), n(() => {
106
107
  const e4 = te.value;
@@ -109,10 +110,10 @@ const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }
109
110
  }), B2({ updateOptions: function(e3) {
110
111
  le.value = e3 || [];
111
112
  }, addRequiredClass: function() {
112
- $.value = q();
113
- } }), (e3, t2) => {
113
+ $.value = M();
114
+ }, getSelectItemsTitle: he }), (e3, t2) => {
114
115
  const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
115
- return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(M)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Z }, { default: v(() => [g(f(z))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
116
+ return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(I)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Z }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
116
117
  };
117
118
  } });
118
119
  export {
package/dist/es/style.css CHANGED
@@ -1,4 +1,4 @@
1
- .amb-super-page-runtime-dialog-view .el-dialog__body iframe,
1
+ @charset "UTF-8";.amb-super-page-runtime-dialog-view .el-dialog__body iframe,
2
2
  .amb-super-page-runtime-dialog-view .el-dialog__body .amb-super-page-runtime-dialog-iframe {
3
3
  width: calc(100% + var(--el-dialog-padding-primary, 16px) * 2);
4
4
  height: calc(100vh - 40px - var(--el-dialog-padding-primary, 16px) * 1);
@@ -524,8 +524,266 @@
524
524
  }
525
525
  .amb-widget-tools-parent[data-v-03be39c3] .amb-widget-container-tool > .el-form-item {
526
526
  margin-bottom: 0;
527
- }[data-v-aae764b5] .el-form-item__content {
527
+ }
528
+ [data-v-ac12ddeb] .el-form-item__content {
528
529
  height: 100% !important;
530
+ }
531
+ [data-v-ac12ddeb] .ql-toolbar.ql-snow {
532
+ line-height: 24px;
533
+ }
534
+ [data-v-ac12ddeb] .ql-toolbar.ql-snow .ql-formats {
535
+ display: inline-flex;
536
+ align-items: center;
537
+ vertical-align: middle;
538
+ }
539
+ [data-v-ac12ddeb] .ql-toolbar.ql-snow button[data-tooltip],[data-v-ac12ddeb] .ql-toolbar.ql-snow .ql-picker-label[data-tooltip] {
540
+ position: relative;
541
+ }
542
+ [data-v-ac12ddeb] .ql-toolbar.ql-snow button[data-tooltip]::after,[data-v-ac12ddeb] .ql-toolbar.ql-snow .ql-picker-label[data-tooltip]::after {
543
+ content: attr(data-tooltip);
544
+ position: absolute;
545
+ bottom: calc(100% + 5px);
546
+ left: 50%;
547
+ transform: translateX(-50%);
548
+ padding: 4px 8px;
549
+ background: #303133;
550
+ color: #fff;
551
+ font-size: 12px;
552
+ white-space: nowrap;
553
+ border-radius: 4px;
554
+ opacity: 0;
555
+ visibility: hidden;
556
+ transition: opacity 0.15s, visibility 0.15s;
557
+ z-index: 9999;
558
+ pointer-events: none;
559
+ }
560
+ [data-v-ac12ddeb] .ql-toolbar.ql-snow button[data-tooltip]:hover::after,[data-v-ac12ddeb] .ql-toolbar.ql-snow .ql-picker-label[data-tooltip]:hover::after {
561
+ opacity: 1;
562
+ visibility: visible;
563
+ }
564
+ [data-v-ac12ddeb] .ql-container.ql-snow .ql-editor::selection {
565
+ background: #b4d5fe;
566
+ }
567
+ [data-v-ac12ddeb] .ql-container.ql-snow .ql-editor *::selection {
568
+ background: #b4d5fe;
569
+ }
570
+ [data-v-ac12ddeb] .ql-editor {
571
+ white-space: pre-wrap;
572
+ }
573
+ [data-v-ac12ddeb] .ql-editor:not(:focus)::selection,[data-v-ac12ddeb] .ql-editor:not(:focus) *::selection {
574
+ background: #b4d5fe !important;
575
+ }
576
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item::before {
577
+ content: "默认";
578
+ }
579
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="12px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before {
580
+ content: "12px";
581
+ }
582
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before {
583
+ content: "14px";
584
+ }
585
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="16px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before {
586
+ content: "16px";
587
+ }
588
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="18px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18px"]::before {
589
+ content: "18px";
590
+ }
591
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="20px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="20px"]::before {
592
+ content: "20px";
593
+ }
594
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="24px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="24px"]::before {
595
+ content: "24px";
596
+ }
597
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="28px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="28px"]::before {
598
+ content: "28px";
599
+ }
600
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="32px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="32px"]::before {
601
+ content: "32px";
602
+ }
603
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="36px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="36px"]::before {
604
+ content: "36px";
605
+ }
606
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="48px"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="48px"]::before {
607
+ content: "48px";
608
+ }
609
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item::before {
610
+ content: "默认字体";
611
+ }
612
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Source Han Sans CN"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Source Han Sans CN"]::before {
613
+ content: "思源黑体";
614
+ font-family: "Source Han Sans CN";
615
+ }
616
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=SimSun]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=SimSun]::before {
617
+ content: "宋体";
618
+ font-family: "SimSun";
619
+ }
620
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=SimHei]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=SimHei]::before {
621
+ content: "黑体";
622
+ font-family: "SimHei";
623
+ }
624
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Microsoft YaHei"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Microsoft YaHei"]::before {
625
+ content: "微软雅黑";
626
+ font-family: "Microsoft YaHei";
627
+ }
628
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=KaiTi]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=KaiTi]::before {
629
+ content: "楷体";
630
+ font-family: "KaiTi";
631
+ }
632
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=FangSong]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=FangSong]::before {
633
+ content: "仿宋";
634
+ font-family: "FangSong";
635
+ }
636
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=Arial]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=Arial]::before {
637
+ content: "Arial";
638
+ font-family: "Arial";
639
+ }
640
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Times New Roman"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Times New Roman"]::before {
641
+ content: "Times New Roman";
642
+ font-family: "Times New Roman";
643
+ }
644
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=Verdana]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=Verdana]::before {
645
+ content: "Verdana";
646
+ font-family: "Verdana";
647
+ }
648
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=Georgia]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=Georgia]::before {
649
+ content: "Georgia";
650
+ font-family: "Georgia";
651
+ }
652
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Courier New"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Courier New"]::before {
653
+ content: "Courier New";
654
+ font-family: "Courier New";
655
+ }
656
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item::before {
657
+ content: "正文";
658
+ }
659
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
660
+ content: "标题1";
661
+ }
662
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
663
+ content: "标题2";
664
+ }
665
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
666
+ content: "标题3";
667
+ }
668
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
669
+ content: "标题4";
670
+ }
671
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
672
+ content: "标题5";
673
+ }
674
+ [data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,[data-v-ac12ddeb] .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
675
+ content: "标题6";
676
+ }
677
+ .richtext-wrapper[data-v-ac12ddeb] {
678
+ position: relative;
679
+ width: 100%;
680
+ height: 100%;
681
+ }
682
+ .richtext-wrapper.is-fullscreen[data-v-ac12ddeb] {
683
+ position: fixed;
684
+ top: 0;
685
+ left: 0;
686
+ right: 0;
687
+ bottom: 0;
688
+ z-index: 9999;
689
+ background: #fff;
690
+ padding: 20px;
691
+ box-sizing: border-box;
692
+ }
693
+ .richtext-wrapper.is-fullscreen[data-v-ac12ddeb] .ql-container {
694
+ height: calc(100% - 82px) !important;
695
+ }
696
+ .toolbar-right-btns[data-v-ac12ddeb] {
697
+ position: absolute;
698
+ top: 5px;
699
+ right: 10px;
700
+ z-index: 10;
701
+ display: flex;
702
+ gap: 4px;
703
+ }
704
+ .toolbar-btn[data-v-ac12ddeb] {
705
+ width: 28px;
706
+ height: 24px;
707
+ display: flex;
708
+ align-items: center;
709
+ justify-content: center;
710
+ background: transparent;
711
+ border: none;
712
+ cursor: pointer;
713
+ border-radius: 4px;
714
+ color: #666;
715
+ }
716
+ .toolbar-btn[data-v-ac12ddeb]:hover {
717
+ background: #e0e0e0;
718
+ color: #333;
719
+ }
720
+ .richtext-statusbar[data-v-ac12ddeb] {
721
+ position: absolute;
722
+ bottom: 0;
723
+ left: 0;
724
+ right: 0;
725
+ height: 24px;
726
+ background: #f5f5f5;
727
+ border: 1px solid #ccc;
728
+ border-top: none;
729
+ display: flex;
730
+ align-items: center;
731
+ justify-content: flex-end;
732
+ padding: 0 10px;
733
+ font-size: 12px;
734
+ color: #666;
735
+ }
736
+ .richtext-statusbar .word-count[data-v-ac12ddeb] {
737
+ margin-left: 15px;
738
+ }
739
+ .upload-loading[data-v-ac12ddeb] {
740
+ position: absolute;
741
+ top: 0;
742
+ left: 0;
743
+ right: 0;
744
+ bottom: 0;
745
+ background: rgba(255, 255, 255, 0.8);
746
+ display: flex;
747
+ flex-direction: column;
748
+ align-items: center;
749
+ justify-content: center;
750
+ z-index: 100;
751
+ }
752
+ .upload-loading .loading-spinner[data-v-ac12ddeb] {
753
+ width: 32px;
754
+ height: 32px;
755
+ border: 3px solid #f3f3f3;
756
+ border-top: 3px solid #409eff;
757
+ border-radius: 50%;
758
+ animation: spin-ac12ddeb 1s linear infinite;
759
+ margin-bottom: 8px;
760
+ }
761
+ .upload-loading span[data-v-ac12ddeb] {
762
+ color: #666;
763
+ font-size: 14px;
764
+ }
765
+ @keyframes spin-ac12ddeb {
766
+ 0% {
767
+ transform: rotate(0deg);
768
+ }
769
+ 100% {
770
+ transform: rotate(360deg);
771
+ }
772
+ }.richtext-preview-dialog .el-dialog__body {
773
+ max-height: 70vh;
774
+ overflow-y: auto;
775
+ }
776
+ .richtext-preview-dialog .richtext-preview-content {
777
+ padding: 15px;
778
+ border: 1px solid #e4e7ed;
779
+ border-radius: 4px;
780
+ background: #fff;
781
+ min-height: 200px;
782
+ white-space: pre-wrap;
783
+ }
784
+ .richtext-preview-dialog .richtext-preview-content img {
785
+ max-width: 100%;
786
+ height: auto;
529
787
  }.el-form-item[data-v-96fc65d8] {
530
788
  margin-bottom: 0px;
531
789
  }.amb-button-group-main[data-v-9d55ce0b] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.16-sit3",
3
+ "version": "2.3.17-sit1",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.1.58-sit6",
52
+ "agilebuilder-ui": "1.1.59-sit2",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",