@farris/ui-vue 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +150 -142
- package/components/avatar/index.esm.js +393 -457
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +491 -554
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +479 -513
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +857 -743
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4883 -5182
- package/components/data-view/index.esm.js +3072 -2949
- package/components/date-picker/index.esm.js +2626 -2689
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +940 -998
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +307 -293
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1747 -1627
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5877 -6176
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1454 -1524
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +659 -722
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1643 -1524
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6502 -6770
- package/components/mapping-editor/index.esm.js +5639 -5939
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +1098 -1130
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1317
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1479 -1513
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +706 -778
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +453 -516
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +555 -526
- package/components/response-toolbar/index.esm.js +1009 -1247
- package/components/schema-selector/index.esm.js +3261 -3373
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +441 -504
- package/components/tabs/index.esm.js +1849 -2039
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +445 -493
- package/components/time-picker/index.esm.js +1350 -1414
- package/components/transfer/index.esm.js +146 -144
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5948 -6237
- package/components/tree-view/index.esm.js +2381 -2255
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +27221 -26804
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Ue = Object.defineProperty;
|
|
2
2
|
var Xe = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Q = (e, t, n) => Xe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as q, ref as l, watch as
|
|
4
|
+
import { defineComponent as q, ref as l, watch as A, computed as R, onMounted as J, createVNode as i, nextTick as ce, toRefs as Ye, onBeforeMount as fe, createTextVNode as G, Fragment as ue, withModifiers as le, inject as ge, provide as Je, onUnmounted as be, Teleport as Qe, shallowRef as Ze, createApp as _e, render as se, h as Ke, cloneVNode as et, mergeProps as we, reactive as Z } from "vue";
|
|
5
5
|
import { cloneDeep as U } from "lodash-es";
|
|
6
|
-
import tt from "
|
|
7
|
-
import nt from "
|
|
6
|
+
import tt from "../list-view/index.esm.js";
|
|
7
|
+
import nt from "../button-edit/index.esm.js";
|
|
8
8
|
const Se = {
|
|
9
9
|
/** 当前控件组别及样式 */
|
|
10
10
|
defaultState: {
|
|
@@ -453,7 +453,7 @@ function de(e, t = {}) {
|
|
|
453
453
|
}
|
|
454
454
|
function pt(e, t) {
|
|
455
455
|
const n = pe(t);
|
|
456
|
-
return Object.keys(e).reduce((a, o) => (a[o] = e[o], a), n), n;
|
|
456
|
+
return Object.keys(e).reduce((a, o) => (a[o] && typeof a[o] == "object" ? Object.assign(a[o], e[o]) : a[o] = e[o], a), n), n;
|
|
457
457
|
}
|
|
458
458
|
function vt(e, t) {
|
|
459
459
|
return Object.keys(e).filter((a) => e[a] != null).reduce((a, o) => {
|
|
@@ -462,8 +462,8 @@ function vt(e, t) {
|
|
|
462
462
|
if (typeof u == "string")
|
|
463
463
|
a[u] = e[o];
|
|
464
464
|
else {
|
|
465
|
-
const
|
|
466
|
-
Object.assign(a,
|
|
465
|
+
const c = u(o, e[o], e);
|
|
466
|
+
Object.assign(a, c);
|
|
467
467
|
}
|
|
468
468
|
} else
|
|
469
469
|
a[o] = e[o];
|
|
@@ -475,64 +475,64 @@ function mt(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
475
475
|
return vt(a, n);
|
|
476
476
|
}
|
|
477
477
|
function ht(e = {}) {
|
|
478
|
-
function t(
|
|
479
|
-
if (typeof
|
|
480
|
-
return
|
|
481
|
-
if (typeof
|
|
482
|
-
const h = Object.keys(
|
|
478
|
+
function t(s, p, r, d) {
|
|
479
|
+
if (typeof r == "number")
|
|
480
|
+
return d[s].length === r;
|
|
481
|
+
if (typeof r == "object") {
|
|
482
|
+
const h = Object.keys(r)[0], g = r[h];
|
|
483
483
|
if (h === "not")
|
|
484
|
-
return Number(
|
|
484
|
+
return Number(d[s].length) !== Number(g);
|
|
485
485
|
if (h === "moreThan")
|
|
486
|
-
return Number(
|
|
486
|
+
return Number(d[s].length) >= Number(g);
|
|
487
487
|
if (h === "lessThan")
|
|
488
|
-
return Number(
|
|
488
|
+
return Number(d[s].length) <= Number(g);
|
|
489
489
|
}
|
|
490
490
|
return !1;
|
|
491
491
|
}
|
|
492
|
-
function n(
|
|
493
|
-
return
|
|
492
|
+
function n(s, p, r, d) {
|
|
493
|
+
return d[s] && d[s].propertyValue && String(d[s].propertyValue.value) === String(r);
|
|
494
494
|
}
|
|
495
495
|
const a = /* @__PURE__ */ new Map([
|
|
496
496
|
["length", t],
|
|
497
497
|
["getProperty", n]
|
|
498
498
|
]);
|
|
499
|
-
Object.keys(e).reduce((
|
|
500
|
-
function o(
|
|
501
|
-
const
|
|
502
|
-
return typeof p == "number" ? [{ target:
|
|
503
|
-
if (
|
|
504
|
-
return { target:
|
|
505
|
-
const h =
|
|
506
|
-
return { target:
|
|
499
|
+
Object.keys(e).reduce((s, p) => (s.set(p, e[p]), s), a);
|
|
500
|
+
function o(s, p) {
|
|
501
|
+
const r = s;
|
|
502
|
+
return typeof p == "number" ? [{ target: r, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: r, operator: "getProperty", param: s, value: !!p }] : typeof p == "object" ? Object.keys(p).map((d) => {
|
|
503
|
+
if (d === "length")
|
|
504
|
+
return { target: r, operator: "length", param: null, value: p[d] };
|
|
505
|
+
const h = d, g = p[d];
|
|
506
|
+
return { target: r, operator: "getProperty", param: h, value: g };
|
|
507
507
|
}) : [];
|
|
508
508
|
}
|
|
509
|
-
function u(
|
|
510
|
-
return Object.keys(
|
|
511
|
-
const h = o(
|
|
512
|
-
return
|
|
509
|
+
function u(s) {
|
|
510
|
+
return Object.keys(s).reduce((r, d) => {
|
|
511
|
+
const h = o(d, s[d]);
|
|
512
|
+
return r.push(...h), r;
|
|
513
513
|
}, []);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
if (a.has(
|
|
517
|
-
const
|
|
518
|
-
return
|
|
515
|
+
function c(s, p) {
|
|
516
|
+
if (a.has(s.operator)) {
|
|
517
|
+
const r = a.get(s.operator);
|
|
518
|
+
return r && r(s.target, s.param, s.value, p) || !1;
|
|
519
519
|
}
|
|
520
520
|
return !1;
|
|
521
521
|
}
|
|
522
|
-
function f(
|
|
523
|
-
return u(
|
|
522
|
+
function f(s, p) {
|
|
523
|
+
return u(s).reduce((h, g) => h && c(g, p), !0);
|
|
524
524
|
}
|
|
525
|
-
function v(
|
|
526
|
-
const
|
|
527
|
-
return
|
|
525
|
+
function v(s, p) {
|
|
526
|
+
const r = Object.keys(s), d = r.includes("allOf"), h = r.includes("anyOf"), g = d || h, S = (g ? s[g ? d ? "allOf" : "anyOf" : "allOf"] : [s]).map((L) => f(L, p));
|
|
527
|
+
return d ? !S.includes(!1) : S.includes(!0);
|
|
528
528
|
}
|
|
529
529
|
return { parseValueSchema: v };
|
|
530
530
|
}
|
|
531
531
|
const yt = {}, gt = {};
|
|
532
532
|
ht();
|
|
533
|
-
function K(e, t, n = /* @__PURE__ */ new Map(), a = (
|
|
534
|
-
return Ce[t.title] = t, Me[t.title] = a, yt[t.title] = o, gt[t.title] = u, (
|
|
535
|
-
const f = mt(
|
|
533
|
+
function K(e, t, n = /* @__PURE__ */ new Map(), a = (c, f, v) => f, o = {}, u = (c) => c) {
|
|
534
|
+
return Ce[t.title] = t, Me[t.title] = a, yt[t.title] = o, gt[t.title] = u, (c = {}) => {
|
|
535
|
+
const f = mt(c, t, n), v = Object.keys(e).reduce((s, p) => (s[p] = e[p].default, s), {});
|
|
536
536
|
return Object.assign(v, f);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
@@ -601,8 +601,8 @@ const Dt = /* @__PURE__ */ q({
|
|
|
601
601
|
emits: ["mounted", "active"],
|
|
602
602
|
setup(e, t) {
|
|
603
603
|
const n = l(), a = l(e.isActive);
|
|
604
|
-
|
|
605
|
-
a.value =
|
|
604
|
+
A(() => e.isActive, (c) => {
|
|
605
|
+
a.value = c;
|
|
606
606
|
});
|
|
607
607
|
const o = R(() => ({
|
|
608
608
|
"f-capsule-item": !0,
|
|
@@ -612,8 +612,8 @@ const Dt = /* @__PURE__ */ q({
|
|
|
612
612
|
J(() => {
|
|
613
613
|
t.emit("mounted", n, e.value);
|
|
614
614
|
});
|
|
615
|
-
function u(
|
|
616
|
-
e.disabled || t.emit("active",
|
|
615
|
+
function u(c) {
|
|
616
|
+
e.disabled || t.emit("active", c, {
|
|
617
617
|
name: e.name,
|
|
618
618
|
value: e.value
|
|
619
619
|
});
|
|
@@ -621,7 +621,7 @@ const Dt = /* @__PURE__ */ q({
|
|
|
621
621
|
return () => i("div", {
|
|
622
622
|
ref: n,
|
|
623
623
|
class: o.value,
|
|
624
|
-
onClick: (
|
|
624
|
+
onClick: (c) => u(c)
|
|
625
625
|
}, [e.icon && i("i", {
|
|
626
626
|
class: e.icon
|
|
627
627
|
}, null), e.name]);
|
|
@@ -631,65 +631,65 @@ const Dt = /* @__PURE__ */ q({
|
|
|
631
631
|
props: Ie,
|
|
632
632
|
emits: ["change", "update:modelValue"],
|
|
633
633
|
setup(e, t) {
|
|
634
|
-
const n = l(e.items), a = l(), o = 2, u = l(e.modelValue),
|
|
635
|
-
const
|
|
634
|
+
const n = l(e.items), a = l(), o = 2, u = l(e.modelValue), c = l("none"), f = l(e.type), v = R(() => {
|
|
635
|
+
const b = {
|
|
636
636
|
"f-capsule-container": !0
|
|
637
637
|
};
|
|
638
|
-
return f.value && (
|
|
639
|
-
}),
|
|
638
|
+
return f.value && (b[f.value] = !0), b;
|
|
639
|
+
}), s = R(() => ({})), p = R(() => ({
|
|
640
640
|
"f-capsule": !0
|
|
641
|
-
})),
|
|
642
|
-
left: `${
|
|
643
|
-
width: `${
|
|
644
|
-
transition:
|
|
645
|
-
})),
|
|
641
|
+
})), r = l(o), d = l(0), h = l(0), g = R(() => ({
|
|
642
|
+
left: `${r.value}px`,
|
|
643
|
+
width: `${d.value}px`,
|
|
644
|
+
transition: c.value
|
|
645
|
+
})), T = R(() => ({
|
|
646
646
|
width: `${h.value}px`
|
|
647
647
|
})), w = /* @__PURE__ */ new Map();
|
|
648
|
-
function S(
|
|
648
|
+
function S(b) {
|
|
649
649
|
var m;
|
|
650
|
-
if (w.has(
|
|
651
|
-
const
|
|
652
|
-
if (
|
|
653
|
-
const
|
|
654
|
-
|
|
650
|
+
if (w.has(b.value)) {
|
|
651
|
+
const B = (m = w.get(b.value)) == null ? void 0 : m.value;
|
|
652
|
+
if (B) {
|
|
653
|
+
const O = B.getBoundingClientRect(), H = a.value.getBoundingClientRect();
|
|
654
|
+
r.value = O.left - H.left + o + a.value.scrollLeft, d.value = O.width - 2 * o;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function k(
|
|
659
|
-
const
|
|
660
|
-
u.value =
|
|
658
|
+
function k(b, m) {
|
|
659
|
+
const B = b.value;
|
|
660
|
+
u.value = B, t.emit("update:modelValue", B), S(b), m && t.emit("change", B);
|
|
661
661
|
}
|
|
662
|
-
function L(
|
|
663
|
-
const m = n.value.findIndex((
|
|
662
|
+
function L(b) {
|
|
663
|
+
const m = n.value.findIndex((B) => B.value === b);
|
|
664
664
|
m > -1 && k(n.value[m], !1);
|
|
665
665
|
}
|
|
666
|
-
|
|
667
|
-
u.value =
|
|
668
|
-
}),
|
|
669
|
-
const m =
|
|
670
|
-
y(m), n.value = m, await ce(), L(u.value), h.value = Array.from(w.values()).reduce((
|
|
666
|
+
A(() => e.modelValue, (b) => {
|
|
667
|
+
u.value = b, L(u.value);
|
|
668
|
+
}), A(() => e.items, async (b) => {
|
|
669
|
+
const m = b.filter((B) => B.show);
|
|
670
|
+
y(m), n.value = m, await ce(), L(u.value), h.value = Array.from(w.values()).reduce((B, O) => (B += O.value.clientWidth, B), 0);
|
|
671
671
|
}), J(async () => {
|
|
672
|
-
L(u.value), await ce(),
|
|
672
|
+
L(u.value), await ce(), c.value = "0.1s ease-out all", h.value = Array.from(w.values()).reduce((b, m) => (b += m.value.clientWidth, b), 0);
|
|
673
673
|
});
|
|
674
|
-
function j(
|
|
674
|
+
function j(b, m) {
|
|
675
675
|
k(m, !0);
|
|
676
676
|
}
|
|
677
|
-
function W(
|
|
678
|
-
w.set(m,
|
|
677
|
+
function W(b, m) {
|
|
678
|
+
w.set(m, b);
|
|
679
679
|
}
|
|
680
|
-
function y(
|
|
680
|
+
function y(b) {
|
|
681
681
|
Array.from(w.keys()).forEach((m) => {
|
|
682
|
-
|
|
682
|
+
b.find((O) => O.value === m) || w.delete(m);
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
|
-
function E(
|
|
685
|
+
function E(b, m) {
|
|
686
686
|
return i(Dt, {
|
|
687
|
-
name:
|
|
688
|
-
value:
|
|
689
|
-
isActive:
|
|
687
|
+
name: b.name,
|
|
688
|
+
value: b.value,
|
|
689
|
+
isActive: b.value === u.value,
|
|
690
690
|
index: m,
|
|
691
|
-
disabled:
|
|
692
|
-
key:
|
|
691
|
+
disabled: b.disabled,
|
|
692
|
+
key: b.value,
|
|
693
693
|
onMounted: W,
|
|
694
694
|
onActive: j
|
|
695
695
|
}, null);
|
|
@@ -697,15 +697,15 @@ const Dt = /* @__PURE__ */ q({
|
|
|
697
697
|
return () => i("span", {
|
|
698
698
|
ref: a,
|
|
699
699
|
class: v.value,
|
|
700
|
-
style:
|
|
700
|
+
style: s.value
|
|
701
701
|
}, [i("span", {
|
|
702
702
|
class: "f-capsule-pane"
|
|
703
|
-
}, [n.value.map((
|
|
703
|
+
}, [n.value.map((b, m) => E(b, m))]), i("small", {
|
|
704
704
|
class: p.value,
|
|
705
|
-
style:
|
|
705
|
+
style: g.value
|
|
706
706
|
}, null), i("div", {
|
|
707
707
|
class: "f-capsule-board",
|
|
708
|
-
style:
|
|
708
|
+
style: T.value
|
|
709
709
|
}, null)]);
|
|
710
710
|
}
|
|
711
711
|
}), Bt = /* @__PURE__ */ new Map([
|
|
@@ -782,17 +782,17 @@ const Dt = /* @__PURE__ */ q({
|
|
|
782
782
|
type: "enum",
|
|
783
783
|
default: "medium"
|
|
784
784
|
}
|
|
785
|
-
},
|
|
785
|
+
}, Ot = [
|
|
786
786
|
"id",
|
|
787
787
|
"type"
|
|
788
|
-
],
|
|
788
|
+
], At = {
|
|
789
789
|
$schema: Lt,
|
|
790
790
|
$id: Rt,
|
|
791
791
|
title: Ft,
|
|
792
792
|
description: kt,
|
|
793
793
|
type: $t,
|
|
794
794
|
properties: Wt,
|
|
795
|
-
required:
|
|
795
|
+
required: Ot
|
|
796
796
|
};
|
|
797
797
|
function jt(e, t, n) {
|
|
798
798
|
return t;
|
|
@@ -814,7 +814,7 @@ const xe = {
|
|
|
814
814
|
onModelValueChanged: { type: Function, default: () => {
|
|
815
815
|
} }
|
|
816
816
|
};
|
|
817
|
-
K(xe,
|
|
817
|
+
K(xe, At, Bt, jt);
|
|
818
818
|
const Vt = /* @__PURE__ */ q({
|
|
819
819
|
name: "FSwitch",
|
|
820
820
|
props: xe,
|
|
@@ -825,11 +825,11 @@ const Vt = /* @__PURE__ */ q({
|
|
|
825
825
|
size: a,
|
|
826
826
|
onLabel: o,
|
|
827
827
|
offLabel: u,
|
|
828
|
-
onBackground:
|
|
828
|
+
onBackground: c,
|
|
829
829
|
offBackground: f,
|
|
830
830
|
onColor: v,
|
|
831
|
-
offColor:
|
|
832
|
-
} = Ye(e), p = l(e.modelValue),
|
|
831
|
+
offColor: s
|
|
832
|
+
} = Ye(e), p = l(e.modelValue), r = R(() => ({
|
|
833
833
|
switch: !0,
|
|
834
834
|
"f-cmp-switch": !0,
|
|
835
835
|
checked: p.value,
|
|
@@ -837,31 +837,31 @@ const Vt = /* @__PURE__ */ q({
|
|
|
837
837
|
"switch-large": a.value === "large",
|
|
838
838
|
"switch-medium": a.value === "medium",
|
|
839
839
|
"switch-small": a.value === "small"
|
|
840
|
-
})),
|
|
840
|
+
})), d = R(() => p.value ? {
|
|
841
841
|
outline: "none",
|
|
842
|
-
background:
|
|
842
|
+
background: c.value
|
|
843
843
|
} : {
|
|
844
844
|
outline: "none",
|
|
845
845
|
backgroundColor: f.value
|
|
846
846
|
}), h = R(() => p.value ? {
|
|
847
847
|
background: v.value
|
|
848
848
|
} : {
|
|
849
|
-
backgroundColor:
|
|
850
|
-
}),
|
|
851
|
-
function
|
|
849
|
+
backgroundColor: s.value
|
|
850
|
+
}), g = R(() => (o == null ? void 0 : o.value) || (u == null ? void 0 : u.value));
|
|
851
|
+
function T() {
|
|
852
852
|
n.value || (p.value = !p.value, t.emit("update:modelValue", p.value));
|
|
853
853
|
}
|
|
854
|
-
return
|
|
854
|
+
return A(p, (w, S) => {
|
|
855
855
|
w !== S && t.emit("modelValueChanged", w);
|
|
856
|
-
}),
|
|
856
|
+
}), A(() => e.modelValue, (w, S) => {
|
|
857
857
|
w !== S && (p.value = w);
|
|
858
858
|
}), () => i("span", {
|
|
859
859
|
tabindex: "0",
|
|
860
860
|
role: "button",
|
|
861
|
-
class:
|
|
862
|
-
style:
|
|
863
|
-
onClick:
|
|
864
|
-
}, [
|
|
861
|
+
class: r.value,
|
|
862
|
+
style: d.value,
|
|
863
|
+
onClick: T
|
|
864
|
+
}, [g.value && i("span", {
|
|
865
865
|
class: "switch-pane"
|
|
866
866
|
}, [i("span", {
|
|
867
867
|
class: "switch-label-checked"
|
|
@@ -896,20 +896,20 @@ const Vt = /* @__PURE__ */ q({
|
|
|
896
896
|
code: "EL",
|
|
897
897
|
value: "EL",
|
|
898
898
|
active: !1
|
|
899
|
-
}]), a = l(e.defaultStates), o = l("MD"), u = l("中等屏幕"),
|
|
899
|
+
}]), a = l(e.defaultStates), o = l("MD"), u = l("中等屏幕"), c = l(!1);
|
|
900
900
|
function f(p) {
|
|
901
|
-
n.value.forEach((
|
|
902
|
-
|
|
901
|
+
n.value.forEach((r) => {
|
|
902
|
+
r.active = r.code === p, r.active && (o.value = r.code, u.value = r.name, t.emit("screenNameChanged", u.value), t.emit("currentScreenResolutionChanged", o.value));
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
905
|
function v() {
|
|
906
|
-
t.emit("switchInStandardModeChanged",
|
|
906
|
+
t.emit("switchInStandardModeChanged", c.value);
|
|
907
907
|
}
|
|
908
|
-
|
|
908
|
+
A(c, () => {
|
|
909
909
|
}), fe(() => {
|
|
910
|
-
a.value.mode === "standard" ? (
|
|
910
|
+
a.value.mode === "standard" ? (c.value = !0, v()) : c.value = !1;
|
|
911
911
|
});
|
|
912
|
-
function
|
|
912
|
+
function s() {
|
|
913
913
|
return i(Tt, {
|
|
914
914
|
class: "f-layout-editor-screen-resolution-selector-frame",
|
|
915
915
|
items: n.value,
|
|
@@ -924,14 +924,14 @@ const Vt = /* @__PURE__ */ q({
|
|
|
924
924
|
class: "f-layout-editor-screen-resolution-selector-header"
|
|
925
925
|
}, [i("div", {
|
|
926
926
|
class: "f-layout-editor-screen-resolution-selector-form"
|
|
927
|
-
}, [G("表单布局配置")])]),
|
|
927
|
+
}, [G("表单布局配置")])]), s(), i("div", {
|
|
928
928
|
class: "f-layout-editor-screen-resolution-selector-switch"
|
|
929
929
|
}, [i(Vt, {
|
|
930
930
|
class: "f-layout-editor-show-switch",
|
|
931
|
-
modelValue:
|
|
932
|
-
"onUpdate:modelValue": (p) =>
|
|
931
|
+
modelValue: c.value,
|
|
932
|
+
"onUpdate:modelValue": (p) => c.value = p,
|
|
933
933
|
onModelValueChanged: v
|
|
934
|
-
}, null),
|
|
934
|
+
}, null), c.value ? i("div", {
|
|
935
935
|
class: "f-layout-editor-show-switch-label"
|
|
936
936
|
}, [G("标准模式")]) : i("div", {
|
|
937
937
|
class: "f-layout-editor-show-switch-label"
|
|
@@ -959,8 +959,8 @@ const Vt = /* @__PURE__ */ q({
|
|
|
959
959
|
emits: [],
|
|
960
960
|
setup(e, t) {
|
|
961
961
|
const n = l(e.item), a = l(e.currentScreenResolution), o = R(() => `col-${n.value[`columnIn${a.value}`]}`);
|
|
962
|
-
return
|
|
963
|
-
u !== f && (n.value = u),
|
|
962
|
+
return A([() => e.item, () => e.currentScreenResolution], ([u, c], [f, v]) => {
|
|
963
|
+
u !== f && (n.value = u), c !== v && (a.value = c);
|
|
964
964
|
}), () => i("div", {
|
|
965
965
|
class: o.value
|
|
966
966
|
}, [i("div", {
|
|
@@ -975,36 +975,36 @@ const Vt = /* @__PURE__ */ q({
|
|
|
975
975
|
props: Nt,
|
|
976
976
|
emits: ["update:twoDimensionalArray"],
|
|
977
977
|
setup(e, t) {
|
|
978
|
-
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), u = l(e.twoDimensionalArray),
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}),
|
|
978
|
+
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), u = l(e.twoDimensionalArray), c = l([]);
|
|
979
|
+
A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([r, d, h], [g, T, w]) => {
|
|
980
|
+
r !== g && (o.value = r), d !== T && (a.value = d), h !== w && (n.value = h);
|
|
981
|
+
}), A(() => e.twoDimensionalArray, () => {
|
|
982
982
|
u.value = e.twoDimensionalArray, f();
|
|
983
983
|
}), J(() => {
|
|
984
984
|
f();
|
|
985
985
|
});
|
|
986
986
|
function f() {
|
|
987
|
-
|
|
987
|
+
c.value = U(u.value), c.value = v();
|
|
988
988
|
}
|
|
989
989
|
function v() {
|
|
990
|
-
const
|
|
991
|
-
let
|
|
992
|
-
return
|
|
993
|
-
const
|
|
994
|
-
|
|
995
|
-
}),
|
|
996
|
-
}
|
|
997
|
-
function r
|
|
990
|
+
const r = [];
|
|
991
|
+
let d = 1;
|
|
992
|
+
return c.value.forEach((h) => {
|
|
993
|
+
const g = s(h, d);
|
|
994
|
+
d += g.length, r.push(g);
|
|
995
|
+
}), r;
|
|
996
|
+
}
|
|
997
|
+
function s(r, d) {
|
|
998
998
|
const h = [];
|
|
999
|
-
let
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1002
|
-
}), h.push(
|
|
999
|
+
let g = [];
|
|
1000
|
+
return r.forEach((T) => {
|
|
1001
|
+
d !== T.componentRow && (d += 1, h.push(g), g = []), g.push(T);
|
|
1002
|
+
}), h.push(g), h;
|
|
1003
1003
|
}
|
|
1004
1004
|
function p() {
|
|
1005
1005
|
if (a.value)
|
|
1006
1006
|
return "";
|
|
1007
|
-
const
|
|
1007
|
+
const r = Array.from({
|
|
1008
1008
|
length: 12
|
|
1009
1009
|
}, () => i("div", {
|
|
1010
1010
|
class: "col-1"
|
|
@@ -1013,7 +1013,7 @@ const Vt = /* @__PURE__ */ q({
|
|
|
1013
1013
|
}, [G(" ")])]));
|
|
1014
1014
|
return i("div", {
|
|
1015
1015
|
class: "f-layout-editor-preview-customize-whole-background"
|
|
1016
|
-
}, [
|
|
1016
|
+
}, [r]);
|
|
1017
1017
|
}
|
|
1018
1018
|
return () => i("div", {
|
|
1019
1019
|
class: "f-layout-editor-preview f-utils-fill-flex-column"
|
|
@@ -1023,13 +1023,13 @@ const Vt = /* @__PURE__ */ q({
|
|
|
1023
1023
|
class: "f-layout-editor-preview-view f-utils-overflow-xhya"
|
|
1024
1024
|
}, [i("div", {
|
|
1025
1025
|
class: "f-layout-editor-preview-row-group"
|
|
1026
|
-
}, [
|
|
1027
|
-
var
|
|
1028
|
-
return ((
|
|
1026
|
+
}, [c.value.map((r) => {
|
|
1027
|
+
var d, h;
|
|
1028
|
+
return ((d = r[0][0]) == null ? void 0 : d.group.toString()) === ((h = o.value[0]) == null ? void 0 : h.id) && r.map((g) => i("div", {
|
|
1029
1029
|
class: "f-layout-editor-row"
|
|
1030
|
-
}, [
|
|
1031
|
-
item:
|
|
1032
|
-
"onUpdate:item": (w) =>
|
|
1030
|
+
}, [g.map((T) => i(Pt, {
|
|
1031
|
+
item: T,
|
|
1032
|
+
"onUpdate:item": (w) => T = w,
|
|
1033
1033
|
currentScreenResolution: n.value,
|
|
1034
1034
|
switchInStandardMode: a.value
|
|
1035
1035
|
}, null))]));
|
|
@@ -1055,43 +1055,43 @@ const Vt = /* @__PURE__ */ q({
|
|
|
1055
1055
|
};
|
|
1056
1056
|
function Ut(e, t) {
|
|
1057
1057
|
const n = l(-1), a = l(!1);
|
|
1058
|
-
function o(
|
|
1059
|
-
if (
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1058
|
+
function o(r) {
|
|
1059
|
+
if (r.target.offsetParent) {
|
|
1060
|
+
const d = r.target.offsetParent, h = d.offsetWidth - r.target.offsetWidth / 2 - 4, g = d.offsetHeight / 2;
|
|
1061
|
+
r.dataTransfer && r.dataTransfer.setDragImage(d, h, g);
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
function u(
|
|
1065
|
-
if (
|
|
1066
|
-
const
|
|
1064
|
+
function u(r) {
|
|
1065
|
+
if (r) {
|
|
1066
|
+
const d = e.value.findIndex((h) => h.label === r.label);
|
|
1067
1067
|
setTimeout(() => {
|
|
1068
|
-
n.value =
|
|
1068
|
+
n.value = d, a.value = !0, r.moving = !0;
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1072
|
+
function c(r, d) {
|
|
1073
|
+
r.stopPropagation(), o(r), u(d);
|
|
1074
1074
|
}
|
|
1075
|
-
function f(
|
|
1076
|
-
const
|
|
1077
|
-
if (n.value !==
|
|
1078
|
-
const h = e.value[n.value],
|
|
1079
|
-
|
|
1075
|
+
function f(r) {
|
|
1076
|
+
const d = e.value.findIndex((h) => h.label === r.label);
|
|
1077
|
+
if (n.value !== d) {
|
|
1078
|
+
const h = e.value[n.value], g = e.value;
|
|
1079
|
+
g.splice(n.value, 1), g.splice(d, 0, h), n.value = d, t && t();
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
|
-
function v(
|
|
1083
|
-
|
|
1082
|
+
function v(r, d) {
|
|
1083
|
+
r.preventDefault(), f(d);
|
|
1084
1084
|
}
|
|
1085
|
-
function r
|
|
1086
|
-
|
|
1085
|
+
function s(r) {
|
|
1086
|
+
r.preventDefault(), r.dataTransfer && (r.dataTransfer.dropEffect = "move");
|
|
1087
1087
|
}
|
|
1088
|
-
function p(
|
|
1089
|
-
|
|
1088
|
+
function p(r, d) {
|
|
1089
|
+
d && (d.moving = !1), a.value = !1;
|
|
1090
1090
|
}
|
|
1091
1091
|
return {
|
|
1092
|
-
dragstart:
|
|
1092
|
+
dragstart: c,
|
|
1093
1093
|
dragenter: v,
|
|
1094
|
-
dragover:
|
|
1094
|
+
dragover: s,
|
|
1095
1095
|
dragend: p,
|
|
1096
1096
|
isDragging: a
|
|
1097
1097
|
};
|
|
@@ -1383,7 +1383,13 @@ const Ee = {
|
|
|
1383
1383
|
/**
|
|
1384
1384
|
* 打开前
|
|
1385
1385
|
*/
|
|
1386
|
-
beforeOpen: { type: Function, default: null }
|
|
1386
|
+
beforeOpen: { type: Function, default: null },
|
|
1387
|
+
searchOption: {
|
|
1388
|
+
type: Object,
|
|
1389
|
+
default: !1
|
|
1390
|
+
},
|
|
1391
|
+
// 搜索启用高亮
|
|
1392
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1387
1393
|
};
|
|
1388
1394
|
K(Ee, tn, Xt, nn);
|
|
1389
1395
|
const an = {
|
|
@@ -1400,71 +1406,93 @@ const an = {
|
|
|
1400
1406
|
valueField: { type: String, default: "id" },
|
|
1401
1407
|
/** 值变化事件 */
|
|
1402
1408
|
onSelectionChange: { type: Function, default: () => {
|
|
1403
|
-
} }
|
|
1409
|
+
} },
|
|
1410
|
+
searchOption: {
|
|
1411
|
+
type: Object,
|
|
1412
|
+
default: !1
|
|
1413
|
+
},
|
|
1414
|
+
// 搜索启用高亮
|
|
1415
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
1404
1416
|
}, ln = /* @__PURE__ */ q({
|
|
1405
1417
|
name: "FComboListContainer",
|
|
1406
1418
|
props: an,
|
|
1407
1419
|
emits: ["selectionChange"],
|
|
1408
1420
|
setup(e, t) {
|
|
1409
|
-
const n = l(e.dataSource),
|
|
1410
|
-
|
|
1411
|
-
|
|
1421
|
+
const n = l(), a = l(e.dataSource), o = l([]), u = l(e.separator), c = l(e.width), f = l(e.maxHeight), v = l(String(e.selectedValues).split(u.value));
|
|
1422
|
+
A(e.dataSource, () => {
|
|
1423
|
+
a.value = e.dataSource;
|
|
1412
1424
|
});
|
|
1413
|
-
const
|
|
1414
|
-
const
|
|
1415
|
-
return
|
|
1425
|
+
const s = R(() => e.enableSearch ? "SearchBar" : "ContentHeader"), p = R(() => {
|
|
1426
|
+
const h = {};
|
|
1427
|
+
return c.value !== void 0 && (h.width = `${c.value}px`), f.value !== void 0 && f.value > 0 && (h.maxHeight = `${f.value}px`), h;
|
|
1416
1428
|
});
|
|
1417
|
-
function
|
|
1418
|
-
|
|
1429
|
+
function r(h) {
|
|
1430
|
+
o.value = h.map((g) => Object.assign({}, g)), v.value = h.map((g) => g[e.idField]), t.emit("selectionChange", o.value);
|
|
1419
1431
|
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1432
|
+
function d(h) {
|
|
1433
|
+
if (e.enableHighlightSearch)
|
|
1434
|
+
return;
|
|
1435
|
+
let g = [];
|
|
1436
|
+
typeof e.searchOption == "function" ? g = a.value.filter((T) => e.searchOption(h, T)) : g = a.value.filter((T) => T[e.valueField].indexOf(h) > -1 || T[e.textField].indexOf(h) > -1), n.value.updateDataSource(g);
|
|
1437
|
+
}
|
|
1438
|
+
return A([() => e.selectedValues], ([h]) => {
|
|
1439
|
+
v.value = h.split(u.value);
|
|
1422
1440
|
}), () => i("div", {
|
|
1423
1441
|
class: "f-combo-list-container pl-3",
|
|
1424
|
-
style:
|
|
1442
|
+
style: p.value
|
|
1425
1443
|
}, [i(tt, {
|
|
1444
|
+
ref: n,
|
|
1426
1445
|
size: "small",
|
|
1427
1446
|
itemClass: "f-combo-list-item",
|
|
1428
|
-
header:
|
|
1447
|
+
header: s.value,
|
|
1429
1448
|
headerClass: "f-combo-list-search-box",
|
|
1430
|
-
data:
|
|
1449
|
+
data: a.value,
|
|
1431
1450
|
idField: e.idField,
|
|
1432
1451
|
textField: e.textField,
|
|
1433
1452
|
titleField: e.titleField,
|
|
1434
1453
|
multiSelect: e.multiSelect,
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1454
|
+
selection: {
|
|
1455
|
+
enableSelectRow: !0,
|
|
1456
|
+
multiSelect: !0,
|
|
1457
|
+
multiSelectMode: "OnCheckAndClick",
|
|
1458
|
+
showCheckbox: !0,
|
|
1459
|
+
showSelectAll: !1,
|
|
1460
|
+
showSelection: !0
|
|
1461
|
+
},
|
|
1462
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
1463
|
+
selectionValues: v.value,
|
|
1464
|
+
onSelectionChange: r,
|
|
1465
|
+
onAfterSearch: d
|
|
1438
1466
|
}, null)]);
|
|
1439
1467
|
}
|
|
1440
1468
|
});
|
|
1441
1469
|
function on(e) {
|
|
1442
1470
|
const t = l(""), n = l(e.modelValue), a = l(e.data || []), o = l(e.editable);
|
|
1443
|
-
function u(
|
|
1444
|
-
const
|
|
1445
|
-
return a.value.filter((
|
|
1471
|
+
function u(r) {
|
|
1472
|
+
const d = String(r).split(e.separator).map((g) => [g, !0]), h = new Map(d);
|
|
1473
|
+
return a.value.filter((g) => h.has(String(g[e.valueField])));
|
|
1446
1474
|
}
|
|
1447
|
-
function
|
|
1448
|
-
const
|
|
1449
|
-
t.value = o.value ?
|
|
1475
|
+
function c(r) {
|
|
1476
|
+
const d = u(r).map((h) => h[e.textField]).join(e.separator);
|
|
1477
|
+
t.value = o.value ? d || r : d;
|
|
1450
1478
|
}
|
|
1451
|
-
function f(
|
|
1452
|
-
const
|
|
1453
|
-
return a.value.filter((
|
|
1479
|
+
function f(r) {
|
|
1480
|
+
const d = r.split(e.separator).map((g) => [g, !0]), h = new Map(d);
|
|
1481
|
+
return a.value.filter((g) => h.has(g[e.textField]));
|
|
1454
1482
|
}
|
|
1455
|
-
function v(
|
|
1456
|
-
const
|
|
1457
|
-
return
|
|
1483
|
+
function v(r) {
|
|
1484
|
+
const d = {};
|
|
1485
|
+
return d[e.idField] = r, d[e.textField] = r, [d];
|
|
1458
1486
|
}
|
|
1459
|
-
function r
|
|
1460
|
-
let
|
|
1461
|
-
const h =
|
|
1462
|
-
return o.value && !h && (
|
|
1487
|
+
function s(r) {
|
|
1488
|
+
let d = f(r);
|
|
1489
|
+
const h = d && d.length > 0;
|
|
1490
|
+
return o.value && !h && (d = v(r)), d;
|
|
1463
1491
|
}
|
|
1464
1492
|
function p() {
|
|
1465
|
-
const { url:
|
|
1493
|
+
const { url: r, method: d = "GET", headers: h = {}, body: g = null } = e.remote, T = d.toLowerCase() == "get" ? { method: d, headers: h } : { method: d, headers: h, body: g };
|
|
1466
1494
|
let w = !1;
|
|
1467
|
-
fetch(
|
|
1495
|
+
fetch(r, T).then((S) => {
|
|
1468
1496
|
var L, j;
|
|
1469
1497
|
if (S.status === 200)
|
|
1470
1498
|
return w = !!((j = (L = S.headers) == null ? void 0 : L.get("content-type")) != null && j.includes("application/json")), w ? S.text() : S.json();
|
|
@@ -1475,44 +1503,44 @@ function on(e) {
|
|
|
1475
1503
|
console.error(S);
|
|
1476
1504
|
});
|
|
1477
1505
|
}
|
|
1478
|
-
return e.remote && p(),
|
|
1506
|
+
return e.remote && p(), A(() => e.data, () => {
|
|
1479
1507
|
a.value = e.data;
|
|
1480
|
-
}),
|
|
1508
|
+
}), A([a], ([r]) => {
|
|
1481
1509
|
if (e.modelValue) {
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1510
|
+
const d = r.find((h) => h[e.valueField] === e.modelValue);
|
|
1511
|
+
d && (t.value = d[e.textField]);
|
|
1484
1512
|
}
|
|
1485
|
-
}),
|
|
1486
|
-
n.value =
|
|
1487
|
-
}),
|
|
1513
|
+
}), A(() => e.modelValue, (r) => {
|
|
1514
|
+
n.value = r, c(r);
|
|
1515
|
+
}), c(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: f, getItemsByValue: u, getSelectedItemsByDisplayText: s };
|
|
1488
1516
|
}
|
|
1489
1517
|
const un = /* @__PURE__ */ q({
|
|
1490
1518
|
name: "FComboList",
|
|
1491
1519
|
props: Ee,
|
|
1492
1520
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
1493
1521
|
setup(e, t) {
|
|
1494
|
-
const n = l(), a = l(e.disabled), o = l(e.enableClear), u = l(e.enableSearch),
|
|
1522
|
+
const n = l(), a = l(e.disabled), o = l(e.enableClear), u = l(e.enableSearch), c = l(e.readonly), {
|
|
1495
1523
|
dataSource: f,
|
|
1496
1524
|
displayText: v,
|
|
1497
|
-
editable:
|
|
1525
|
+
editable: s,
|
|
1498
1526
|
modelValue: p,
|
|
1499
|
-
getSelectedItemsByDisplayText:
|
|
1500
|
-
} = on(e),
|
|
1501
|
-
function
|
|
1502
|
-
!
|
|
1527
|
+
getSelectedItemsByDisplayText: r
|
|
1528
|
+
} = on(e), d = R(() => e.multiSelect), h = R(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
1529
|
+
function g() {
|
|
1530
|
+
!d.value && n.value && n.value.hidePopup();
|
|
1503
1531
|
}
|
|
1504
|
-
function
|
|
1505
|
-
v.value = W.map((y) => y[e.textField]).join(e.separator), W.length === 1 ? p.value = W[0][e.valueField] : p.value = W.map((y) => y[e.valueField]).join(e.separator), t.emit("update:modelValue", p.value), t.emit("change", W, p.value),
|
|
1532
|
+
function T(W) {
|
|
1533
|
+
v.value = W.map((y) => y[e.textField]).join(e.separator), W.length === 1 ? p.value = W[0][e.valueField] : p.value = W.map((y) => y[e.valueField]).join(e.separator), t.emit("update:modelValue", p.value), t.emit("change", W, p.value), g();
|
|
1506
1534
|
}
|
|
1507
1535
|
function w() {
|
|
1508
|
-
|
|
1536
|
+
c.value || n.value.togglePopup();
|
|
1509
1537
|
}
|
|
1510
1538
|
function S(W) {
|
|
1511
1539
|
p.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
1512
1540
|
}
|
|
1513
1541
|
function k(W) {
|
|
1514
|
-
const y =
|
|
1515
|
-
|
|
1542
|
+
const y = r(W);
|
|
1543
|
+
T(y);
|
|
1516
1544
|
}
|
|
1517
1545
|
function L() {
|
|
1518
1546
|
return v.value;
|
|
@@ -1522,15 +1550,15 @@ const un = /* @__PURE__ */ q({
|
|
|
1522
1550
|
}
|
|
1523
1551
|
return t.expose({
|
|
1524
1552
|
getDisplayText: L
|
|
1525
|
-
}),
|
|
1526
|
-
a.value = W,
|
|
1553
|
+
}), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([W, y, E, b, m]) => {
|
|
1554
|
+
a.value = W, s.value = y, o.value = E, u.value = b, c.value = m;
|
|
1527
1555
|
}), () => i(nt, {
|
|
1528
1556
|
ref: n,
|
|
1529
1557
|
id: e.id,
|
|
1530
1558
|
disable: a.value,
|
|
1531
|
-
readonly:
|
|
1559
|
+
readonly: c.value,
|
|
1532
1560
|
forcePlaceholder: e.forcePlaceholder,
|
|
1533
|
-
editable:
|
|
1561
|
+
editable: s.value,
|
|
1534
1562
|
buttonContent: e.dropDownIcon,
|
|
1535
1563
|
placeholder: e.placeholder,
|
|
1536
1564
|
enableClear: o.value,
|
|
@@ -1559,8 +1587,9 @@ const un = /* @__PURE__ */ q({
|
|
|
1559
1587
|
multiSelect: e.multiSelect,
|
|
1560
1588
|
enableSearch: u.value,
|
|
1561
1589
|
maxHeight: e.maxHeight,
|
|
1590
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
1562
1591
|
width: e.fitEditor ? h.value : void 0,
|
|
1563
|
-
onSelectionChange:
|
|
1592
|
+
onSelectionChange: T
|
|
1564
1593
|
}, null)]
|
|
1565
1594
|
});
|
|
1566
1595
|
}
|
|
@@ -1702,25 +1731,25 @@ const In = /* @__PURE__ */ q({
|
|
|
1702
1731
|
emits: ["selectedValueChanged"],
|
|
1703
1732
|
setup(e, t) {
|
|
1704
1733
|
const n = l(e.enumData);
|
|
1705
|
-
function a(u,
|
|
1734
|
+
function a(u, c) {
|
|
1706
1735
|
if (u.currentTarget.classList.value = "btn btn-secondary active", u.currentTarget.tagName.toLowerCase() === "label") {
|
|
1707
1736
|
const {
|
|
1708
1737
|
currentTarget: f
|
|
1709
1738
|
} = u, v = f.parentElement;
|
|
1710
1739
|
Array.from(v.querySelectorAll("label")).filter((p) => p !== f).forEach((p) => p.classList.remove("active"));
|
|
1711
1740
|
}
|
|
1712
|
-
t.emit("selectedValueChanged",
|
|
1741
|
+
t.emit("selectedValueChanged", c);
|
|
1713
1742
|
}
|
|
1714
1743
|
function o(u) {
|
|
1715
1744
|
return `${u.text}${e.suffixValue}`;
|
|
1716
1745
|
}
|
|
1717
|
-
return
|
|
1718
|
-
u !==
|
|
1746
|
+
return A(() => e.enumData, (u, c) => {
|
|
1747
|
+
u !== c && (n.value = e.enumData);
|
|
1719
1748
|
}), () => i("div", {
|
|
1720
1749
|
class: "f-radio-button"
|
|
1721
1750
|
}, [i("div", {
|
|
1722
1751
|
class: ["farris-input-wrap"]
|
|
1723
|
-
}, [n.value.map((u,
|
|
1752
|
+
}, [n.value.map((u, c) => i(ue, null, [i("label", {
|
|
1724
1753
|
class: u.active ? "btn btn-secondary active" : "btn btn-secondary",
|
|
1725
1754
|
onClick: (f) => a(f, u)
|
|
1726
1755
|
}, [i("span", {
|
|
@@ -1806,7 +1835,7 @@ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-
|
|
|
1806
1835
|
type: Rn,
|
|
1807
1836
|
properties: Fn,
|
|
1808
1837
|
required: kn
|
|
1809
|
-
}, Wn = "rate",
|
|
1838
|
+
}, Wn = "rate", On = "A Farris Component", An = "object", jn = {
|
|
1810
1839
|
basic: {
|
|
1811
1840
|
description: "Basic Infomation",
|
|
1812
1841
|
title: "基本信息",
|
|
@@ -1830,8 +1859,8 @@ const Dn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-
|
|
|
1830
1859
|
}
|
|
1831
1860
|
}, Vn = {
|
|
1832
1861
|
title: Wn,
|
|
1833
|
-
description:
|
|
1834
|
-
type:
|
|
1862
|
+
description: On,
|
|
1863
|
+
type: An,
|
|
1835
1864
|
categories: jn
|
|
1836
1865
|
}, zn = ["很不满意", "不满意", "一般", "满意", "非常满意"], Te = {
|
|
1837
1866
|
/** 星星大小 */
|
|
@@ -1872,11 +1901,11 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1872
1901
|
props: Te,
|
|
1873
1902
|
emits: ["selectedValue", "update:modelValue"],
|
|
1874
1903
|
setup(e, t) {
|
|
1875
|
-
const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), u = l(e.disabled),
|
|
1876
|
-
let
|
|
1904
|
+
const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), u = l(e.disabled), c = l(e.pointSystem), f = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass), p = l(e.numOfStar), r = l(e.toolTipDisabled), d = l(e.toolTipContents), h = l(e.enableScore), g = l(e.enableSatisfaction);
|
|
1905
|
+
let T;
|
|
1877
1906
|
const w = l(0), S = l(0), k = l(0), L = l(e.modelValue);
|
|
1878
1907
|
let j = 1, W, y, E;
|
|
1879
|
-
const
|
|
1908
|
+
const b = 4;
|
|
1880
1909
|
J(() => {
|
|
1881
1910
|
});
|
|
1882
1911
|
function m() {
|
|
@@ -1887,28 +1916,28 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1887
1916
|
id: $
|
|
1888
1917
|
});
|
|
1889
1918
|
}
|
|
1890
|
-
function
|
|
1919
|
+
function B() {
|
|
1891
1920
|
let x;
|
|
1892
|
-
a.value ? x = Math.ceil(L.value / j) : x = L.value, S.value = (
|
|
1921
|
+
a.value ? x = Math.ceil(L.value / j) : x = L.value, S.value = (T * L.value + Math.floor(L.value) * b) / j, W = d.value[x - 1];
|
|
1893
1922
|
}
|
|
1894
|
-
function
|
|
1923
|
+
function O() {
|
|
1895
1924
|
switch (n.value) {
|
|
1896
1925
|
case "small":
|
|
1897
|
-
|
|
1926
|
+
T = 14;
|
|
1898
1927
|
break;
|
|
1899
1928
|
case "middle":
|
|
1900
|
-
|
|
1929
|
+
T = 16;
|
|
1901
1930
|
break;
|
|
1902
1931
|
case "large":
|
|
1903
|
-
|
|
1932
|
+
T = 18;
|
|
1904
1933
|
break;
|
|
1905
1934
|
case "extraLarge":
|
|
1906
|
-
|
|
1935
|
+
T = 24;
|
|
1907
1936
|
break;
|
|
1908
1937
|
}
|
|
1909
|
-
m(), p.value && (j =
|
|
1938
|
+
m(), p.value && (j = c.value / p.value), L.value && B();
|
|
1910
1939
|
}
|
|
1911
|
-
|
|
1940
|
+
O();
|
|
1912
1941
|
function H(x) {
|
|
1913
1942
|
return x.className.indexOf("f-icon") !== -1;
|
|
1914
1943
|
}
|
|
@@ -1919,7 +1948,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1919
1948
|
if (x.movementX || x.movementY) {
|
|
1920
1949
|
if (u.value)
|
|
1921
1950
|
return;
|
|
1922
|
-
|
|
1951
|
+
g.value && (W = d.value[$ - 1]), x.offsetX < T / 2 && a.value === !0 ? (w.value = T * $ - T / 2 + b * ($ - 1), k.value = j * $ - j / 2) : (w.value = T * $ + b * ($ - 1), k.value = j * $);
|
|
1923
1952
|
}
|
|
1924
1953
|
if (N === !0) {
|
|
1925
1954
|
if (X())
|
|
@@ -1940,8 +1969,8 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1940
1969
|
function I() {
|
|
1941
1970
|
w.value = 0;
|
|
1942
1971
|
}
|
|
1943
|
-
return
|
|
1944
|
-
L.value = x,
|
|
1972
|
+
return A(() => e.modelValue, (x) => {
|
|
1973
|
+
L.value = x, B();
|
|
1945
1974
|
}), () => i("div", {
|
|
1946
1975
|
class: "farris-star-rating",
|
|
1947
1976
|
onMouseover: le((x) => F(x, !1), ["prevent"]),
|
|
@@ -1952,7 +1981,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1952
1981
|
class: "star-light-area",
|
|
1953
1982
|
style: C.value
|
|
1954
1983
|
}, [E.map((x) => i("span", {
|
|
1955
|
-
class: ["f-icon default-light-color ",
|
|
1984
|
+
class: ["f-icon default-light-color ", s.value, {
|
|
1956
1985
|
"f-star-sm": n.value === "small"
|
|
1957
1986
|
}, {
|
|
1958
1987
|
"f-star-md": n.value === "middle"
|
|
@@ -1961,7 +1990,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1961
1990
|
}, {
|
|
1962
1991
|
"f-star-exlarge": n.value === "extraLarge"
|
|
1963
1992
|
}, {
|
|
1964
|
-
disabled:
|
|
1993
|
+
disabled: r.value
|
|
1965
1994
|
}],
|
|
1966
1995
|
id: x.id,
|
|
1967
1996
|
style: {
|
|
@@ -1976,7 +2005,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1976
2005
|
large: n.value === "large"
|
|
1977
2006
|
}]
|
|
1978
2007
|
}, [E.map((x) => i("span", {
|
|
1979
|
-
class: ["f-icon default-dark-color",
|
|
2008
|
+
class: ["f-icon default-dark-color", s.value, {
|
|
1980
2009
|
"f-star-sm": n.value === "small"
|
|
1981
2010
|
}, {
|
|
1982
2011
|
"f-star-md": n.value === "middle"
|
|
@@ -1999,7 +2028,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
1999
2028
|
}, {
|
|
2000
2029
|
"font-exlarge": n.value === "extraLarge"
|
|
2001
2030
|
}]
|
|
2002
|
-
}, [h.value && i("span", null, [G(" "), z.value, G(" ")]),
|
|
2031
|
+
}, [h.value && i("span", null, [G(" "), z.value, G(" ")]), g.value && (y || W) && i("span", null, [G(" "), W || y])])]);
|
|
2003
2032
|
}
|
|
2004
2033
|
}), Hn = /* @__PURE__ */ q({
|
|
2005
2034
|
name: "FColumnWidthEditor",
|
|
@@ -2011,27 +2040,27 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2011
2040
|
MD: ["1", "2"],
|
|
2012
2041
|
LG: ["1", "2", "3", "4"],
|
|
2013
2042
|
EL: ["1", "2", "3", "4", "5", "6"]
|
|
2014
|
-
}, a = l(e.currentScreenResolution), o = l(e.field), u = l(e.switchInStandardMode),
|
|
2015
|
-
dragstart:
|
|
2043
|
+
}, a = l(e.currentScreenResolution), o = l(e.field), u = l(e.switchInStandardMode), c = l(), f = l(""), v = l(), s = l("customize"), p = l(), r = ge("ResponseLayoutEditorDraggableComposition"), {
|
|
2044
|
+
dragstart: d,
|
|
2016
2045
|
dragenter: h,
|
|
2017
|
-
dragover:
|
|
2018
|
-
dragend:
|
|
2019
|
-
} =
|
|
2046
|
+
dragover: g,
|
|
2047
|
+
dragend: T
|
|
2048
|
+
} = r;
|
|
2020
2049
|
function w() {
|
|
2021
|
-
|
|
2050
|
+
c.value = n == null ? void 0 : n[a.value], u.value ? (f.value = `displayWidthIn${a.value}`, s.value = `${o.value[f.value]}`) : (f.value = `columnIn${a.value}`, p.value = o.value[f.value]);
|
|
2022
2051
|
}
|
|
2023
2052
|
function S(m) {
|
|
2024
2053
|
if (u.value === !0) {
|
|
2025
|
-
const
|
|
2026
|
-
v.value =
|
|
2027
|
-
const
|
|
2028
|
-
o.value[`columnIn${a.value}`] =
|
|
2054
|
+
const B = Number(m == null ? void 0 : m.text);
|
|
2055
|
+
v.value = B;
|
|
2056
|
+
const O = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
|
|
2057
|
+
o.value[`columnIn${a.value}`] = B * O, o.value[`displayWidthIn${a.value}`] = Number(B), t.emit("fieldChanged", o.value);
|
|
2029
2058
|
}
|
|
2030
2059
|
}
|
|
2031
2060
|
function k(m) {
|
|
2032
2061
|
p.value = m;
|
|
2033
|
-
const
|
|
2034
|
-
o.value[`columnIn${a.value}`] = p.value, o.value[`displayWidthIn${a.value}`] = p.value /
|
|
2062
|
+
const B = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
|
|
2063
|
+
o.value[`columnIn${a.value}`] = p.value, o.value[`displayWidthIn${a.value}`] = p.value / B, t.emit("fieldChanged", o.value);
|
|
2035
2064
|
}
|
|
2036
2065
|
function L() {
|
|
2037
2066
|
return i(Nn, {
|
|
@@ -2050,12 +2079,12 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2050
2079
|
}
|
|
2051
2080
|
function j() {
|
|
2052
2081
|
const m = [];
|
|
2053
|
-
|
|
2054
|
-
const
|
|
2055
|
-
return
|
|
2082
|
+
c.value = n == null ? void 0 : n[a.value];
|
|
2083
|
+
const B = o.value[`displayWidthIn${a.value}`];
|
|
2084
|
+
return c.value.forEach((O) => {
|
|
2056
2085
|
const H = {
|
|
2057
|
-
text:
|
|
2058
|
-
active:
|
|
2086
|
+
text: O,
|
|
2087
|
+
active: B.toString() === O
|
|
2059
2088
|
};
|
|
2060
2089
|
m.push(H);
|
|
2061
2090
|
}), m;
|
|
@@ -2091,8 +2120,8 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2091
2120
|
}, [W()])]) : i("div", {
|
|
2092
2121
|
class: "f-column-width-editor-switch-customize",
|
|
2093
2122
|
onDragenter: (m) => h(m, o.value),
|
|
2094
|
-
onDragend: (m) =>
|
|
2095
|
-
onDragover: (m) =>
|
|
2123
|
+
onDragend: (m) => T(m, o.value),
|
|
2124
|
+
onDragover: (m) => g(m)
|
|
2096
2125
|
}, [i("div", {
|
|
2097
2126
|
class: "f-layout-editor-column-width-editor-rectangle"
|
|
2098
2127
|
}, [L(), i("div", {
|
|
@@ -2100,10 +2129,10 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2100
2129
|
}, [p.value, G("列")]), i("span", {
|
|
2101
2130
|
class: "f-layout-editor-drag-handler f-icon f-icon-drag-vertical",
|
|
2102
2131
|
draggable: "true",
|
|
2103
|
-
onDragstart: (m) =>
|
|
2132
|
+
onDragstart: (m) => d(m, o.value)
|
|
2104
2133
|
}, null)])]);
|
|
2105
2134
|
}
|
|
2106
|
-
function
|
|
2135
|
+
function b() {
|
|
2107
2136
|
var m;
|
|
2108
2137
|
return i("div", {
|
|
2109
2138
|
class: "f-layout-editor-column-width-editor-component"
|
|
@@ -2111,21 +2140,21 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2111
2140
|
class: "f-layout-editor-column-width-editor-label"
|
|
2112
2141
|
}, [(m = o == null ? void 0 : o.value) == null ? void 0 : m.label]), E()]);
|
|
2113
2142
|
}
|
|
2114
|
-
return
|
|
2115
|
-
|
|
2143
|
+
return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([m, B, O], [H, X, D]) => {
|
|
2144
|
+
O !== D && (a.value = O, c.value = n[a.value], w()), B !== X && (u.value = B), u.value === !1 && w(), m !== H && (o.value = m);
|
|
2116
2145
|
}), J(() => {
|
|
2117
2146
|
w();
|
|
2118
2147
|
}), () => i("div", {
|
|
2119
2148
|
class: "f-layout-editor-column-width-editor"
|
|
2120
|
-
}, [y(),
|
|
2149
|
+
}, [y(), b()]);
|
|
2121
2150
|
}
|
|
2122
2151
|
}), Pn = /* @__PURE__ */ q({
|
|
2123
2152
|
name: "FFieldList",
|
|
2124
2153
|
props: qt,
|
|
2125
2154
|
emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
|
|
2126
2155
|
setup(e, t) {
|
|
2127
|
-
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), u = l(e.originalDataCopy),
|
|
2128
|
-
function
|
|
2156
|
+
const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), u = l(e.originalDataCopy), c = l(e.defaultStates), f = l(""), v = l([]), s = l(e.currentArea), p = l(0), r = l(), d = l(0), h = l("1"), g = l([]);
|
|
2157
|
+
function T() {
|
|
2129
2158
|
var F;
|
|
2130
2159
|
let D = w();
|
|
2131
2160
|
for (let z = 0; z < D.length; z++) {
|
|
@@ -2144,31 +2173,31 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2144
2173
|
}), D;
|
|
2145
2174
|
}
|
|
2146
2175
|
function S() {
|
|
2147
|
-
h.value =
|
|
2176
|
+
h.value = c.value.defaultGroupNumber.toString(), f.value = `区域${h.value}`, s.value = [v.value[Number(h.value) - 1]], t.emit("update:currentArea", s.value);
|
|
2148
2177
|
}
|
|
2149
2178
|
function k() {
|
|
2150
2179
|
let D = [];
|
|
2151
|
-
|
|
2180
|
+
r.value = [];
|
|
2152
2181
|
let F = 1;
|
|
2153
2182
|
o.value.forEach((z) => {
|
|
2154
|
-
z.group === F || (F += 1,
|
|
2155
|
-
}),
|
|
2183
|
+
z.group === F || (F += 1, r.value.push(D), D = []), D.push(z);
|
|
2184
|
+
}), r.value.push(D);
|
|
2156
2185
|
}
|
|
2157
2186
|
function L() {
|
|
2158
|
-
|
|
2187
|
+
r.value[s.value[0].id - 1] = U(g.value);
|
|
2159
2188
|
let D = [];
|
|
2160
|
-
|
|
2161
|
-
let z = W(F,
|
|
2162
|
-
D.push(z),
|
|
2189
|
+
d.value = 0, r.value.forEach((F) => {
|
|
2190
|
+
let z = W(F, d.value);
|
|
2191
|
+
D.push(z), d.value = z[z.length - 1].componentRow;
|
|
2163
2192
|
}), y(D);
|
|
2164
2193
|
}
|
|
2165
2194
|
function j() {
|
|
2166
2195
|
k();
|
|
2167
2196
|
let D = [];
|
|
2168
|
-
return
|
|
2169
|
-
let z = W(F,
|
|
2170
|
-
D.push(z),
|
|
2171
|
-
}), t.emit("twoDimensionalArrayChanged",
|
|
2197
|
+
return d.value = 0, r.value.forEach((F) => {
|
|
2198
|
+
let z = W(F, d.value);
|
|
2199
|
+
D.push(z), d.value = z[z.length - 1].componentRow;
|
|
2200
|
+
}), t.emit("twoDimensionalArrayChanged", r.value), y(D), o.value;
|
|
2172
2201
|
}
|
|
2173
2202
|
function W(D, F) {
|
|
2174
2203
|
let C = 12;
|
|
@@ -2182,7 +2211,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2182
2211
|
let F = [];
|
|
2183
2212
|
for (let z of D)
|
|
2184
2213
|
F = F.concat(z);
|
|
2185
|
-
o.value = U(F),
|
|
2214
|
+
o.value = U(F), d.value = 0;
|
|
2186
2215
|
}
|
|
2187
2216
|
function E() {
|
|
2188
2217
|
return i("div", {
|
|
@@ -2203,10 +2232,10 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2203
2232
|
onChange: H
|
|
2204
2233
|
}, null)])]);
|
|
2205
2234
|
}
|
|
2206
|
-
function
|
|
2235
|
+
function b() {
|
|
2207
2236
|
return i("div", {
|
|
2208
2237
|
class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
|
|
2209
|
-
}, [
|
|
2238
|
+
}, [g.value.map((D) => i(Hn, {
|
|
2210
2239
|
key: D.label,
|
|
2211
2240
|
currentScreenResolution: n.value,
|
|
2212
2241
|
field: D,
|
|
@@ -2217,55 +2246,55 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2217
2246
|
}, null))]);
|
|
2218
2247
|
}
|
|
2219
2248
|
function m(D) {
|
|
2220
|
-
|
|
2249
|
+
g.value.forEach((F) => {
|
|
2221
2250
|
F.label == D.label && Object.assign(F, D);
|
|
2222
|
-
}), L(),
|
|
2251
|
+
}), L(), O(), B();
|
|
2223
2252
|
}
|
|
2224
|
-
function
|
|
2225
|
-
|
|
2226
|
-
D.group === Number(
|
|
2253
|
+
function B() {
|
|
2254
|
+
g.value = [], o.value.forEach((D) => {
|
|
2255
|
+
D.group === Number(s.value[0].id) && g.value.push(D);
|
|
2227
2256
|
});
|
|
2228
2257
|
}
|
|
2229
|
-
function
|
|
2258
|
+
function O() {
|
|
2230
2259
|
o.value = U(j()), t.emit("originalDataChanged", o.value);
|
|
2231
2260
|
}
|
|
2232
2261
|
function H(D) {
|
|
2233
2262
|
for (let F = 0; F < D.length; F++)
|
|
2234
|
-
|
|
2263
|
+
s.value = [{
|
|
2235
2264
|
id: D[F].id,
|
|
2236
2265
|
label: D[F].label
|
|
2237
2266
|
}];
|
|
2238
|
-
t.emit("update:currentArea",
|
|
2267
|
+
t.emit("update:currentArea", s.value), B(), L();
|
|
2239
2268
|
}
|
|
2240
|
-
const X = Ut(
|
|
2241
|
-
L(),
|
|
2269
|
+
const X = Ut(g, () => {
|
|
2270
|
+
L(), O(), B();
|
|
2242
2271
|
});
|
|
2243
|
-
return Je("ResponseLayoutEditorDraggableComposition", X),
|
|
2244
|
-
D !== F && (
|
|
2245
|
-
}),
|
|
2246
|
-
D !== F &&
|
|
2247
|
-
}),
|
|
2272
|
+
return Je("ResponseLayoutEditorDraggableComposition", X), A(() => e.currentArea, (D, F) => {
|
|
2273
|
+
D !== F && (s.value = e.currentArea, B());
|
|
2274
|
+
}), A(s, (D, F) => {
|
|
2275
|
+
D !== F && B();
|
|
2276
|
+
}), A(() => e.currentGroup, (D, F) => {
|
|
2248
2277
|
D !== F && (f.value = e.currentGroup);
|
|
2249
|
-
}),
|
|
2250
|
-
D !== F && (n.value = e.currentScreenResolution,
|
|
2251
|
-
}),
|
|
2278
|
+
}), A(() => e.currentScreenResolution, (D, F) => {
|
|
2279
|
+
D !== F && (n.value = e.currentScreenResolution, O(), k(), s.value[0] && (g.value = U(r.value[Number(s.value[0].id) - 1])));
|
|
2280
|
+
}), A(() => e.switchInStandardMode, (D, F) => {
|
|
2252
2281
|
D !== F && (a.value = e.switchInStandardMode, o.value = U(u.value));
|
|
2253
|
-
}),
|
|
2254
|
-
D !== F &&
|
|
2282
|
+
}), A(c, (D, F) => {
|
|
2283
|
+
D !== F && O();
|
|
2255
2284
|
}), fe(() => {
|
|
2256
|
-
|
|
2285
|
+
T(), j(), B();
|
|
2257
2286
|
}), () => i("div", {
|
|
2258
2287
|
class: "f-layout-editor-field-list f-utils-fill-flex-column"
|
|
2259
2288
|
}, [a.value ? (
|
|
2260
2289
|
/* 标准模式 */
|
|
2261
2290
|
i("div", {
|
|
2262
2291
|
class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
|
|
2263
|
-
}, [E(),
|
|
2292
|
+
}, [E(), b()])
|
|
2264
2293
|
) : (
|
|
2265
2294
|
/* 自定义模式 */
|
|
2266
2295
|
i("div", {
|
|
2267
2296
|
class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
|
|
2268
|
-
}, [E(),
|
|
2297
|
+
}, [E(), b()])
|
|
2269
2298
|
)]);
|
|
2270
2299
|
}
|
|
2271
2300
|
}), ie = /* @__PURE__ */ q({
|
|
@@ -2273,22 +2302,22 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2273
2302
|
props: at,
|
|
2274
2303
|
emits: ["close", "submit"],
|
|
2275
2304
|
setup(e, t) {
|
|
2276
|
-
const n = l(e.initialState), a = l(), o = l(), u = l(""),
|
|
2305
|
+
const n = l(e.initialState), a = l(), o = l(), u = l(""), c = l(""), f = l(!1), v = l([{
|
|
2277
2306
|
id: "1",
|
|
2278
2307
|
label: "区域1"
|
|
2279
|
-
}]),
|
|
2280
|
-
|
|
2308
|
+
}]), s = l([]), p = l(), r = l(e.width), d = l(e.height);
|
|
2309
|
+
A(() => e.initialState, (m) => {
|
|
2281
2310
|
n.value = m;
|
|
2282
|
-
}),
|
|
2283
|
-
m !==
|
|
2311
|
+
}), A([() => e.currentArea, () => e.switchInStandardMode], ([m, B], [O, H]) => {
|
|
2312
|
+
m !== O && (v.value = m), B !== H && (f.value = B);
|
|
2284
2313
|
});
|
|
2285
2314
|
function h(m) {
|
|
2286
2315
|
u.value = m;
|
|
2287
2316
|
}
|
|
2288
|
-
function
|
|
2289
|
-
|
|
2317
|
+
function g(m) {
|
|
2318
|
+
c.value = m;
|
|
2290
2319
|
}
|
|
2291
|
-
function
|
|
2320
|
+
function T(m) {
|
|
2292
2321
|
f.value = m;
|
|
2293
2322
|
}
|
|
2294
2323
|
function w(m) {
|
|
@@ -2298,7 +2327,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2298
2327
|
a.value = U(m);
|
|
2299
2328
|
}
|
|
2300
2329
|
function k(m) {
|
|
2301
|
-
|
|
2330
|
+
s.value = m;
|
|
2302
2331
|
}
|
|
2303
2332
|
function L() {
|
|
2304
2333
|
t.emit("close");
|
|
@@ -2311,8 +2340,8 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2311
2340
|
class: "f-utils-fill-flex-column",
|
|
2312
2341
|
defaultStates: o.value,
|
|
2313
2342
|
originalDataCopy: p.value,
|
|
2314
|
-
currentScreenResolution:
|
|
2315
|
-
"onUpdate:currentScreenResolution": (m) =>
|
|
2343
|
+
currentScreenResolution: c.value,
|
|
2344
|
+
"onUpdate:currentScreenResolution": (m) => c.value = m,
|
|
2316
2345
|
originalData: a.value,
|
|
2317
2346
|
"onUpdate:originalData": (m) => a.value = m,
|
|
2318
2347
|
switchInStandardMode: f.value,
|
|
@@ -2329,26 +2358,26 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2329
2358
|
class: "f-utils-fill-flex-column",
|
|
2330
2359
|
currentArea: v.value,
|
|
2331
2360
|
"onUpdate:currentArea": (m) => v.value = m,
|
|
2332
|
-
currentScreenResolution:
|
|
2333
|
-
"onUpdate:currentScreenResolution": (m) =>
|
|
2361
|
+
currentScreenResolution: c.value,
|
|
2362
|
+
"onUpdate:currentScreenResolution": (m) => c.value = m,
|
|
2334
2363
|
switchInStandardMode: f.value,
|
|
2335
|
-
twoDimensionalArray:
|
|
2336
|
-
"onUpdate:twoDimensionalArray": (m) =>
|
|
2364
|
+
twoDimensionalArray: s.value,
|
|
2365
|
+
"onUpdate:twoDimensionalArray": (m) => s.value = m
|
|
2337
2366
|
}, null);
|
|
2338
2367
|
}
|
|
2339
|
-
const E = R(() => f.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"),
|
|
2368
|
+
const E = R(() => f.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), b = R(() => f.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
|
|
2340
2369
|
return fe(() => {
|
|
2341
|
-
a.value = U(n.value.importData), p.value = U(n.value.importData), o.value = n.value.defaultState, u.value = "中等屏幕",
|
|
2370
|
+
a.value = U(n.value.importData), p.value = U(n.value.importData), o.value = n.value.defaultState, u.value = "中等屏幕", c.value = "MD";
|
|
2342
2371
|
}), (m) => i("div", {
|
|
2343
2372
|
class: "f-layout-editor f-utils-flex-column",
|
|
2344
|
-
style: "height:" +
|
|
2373
|
+
style: "height:" + d.value + "px;width:" + r.value + "px;"
|
|
2345
2374
|
}, [i("div", {
|
|
2346
2375
|
class: "f-layout-editor-top"
|
|
2347
2376
|
}, [i(zt, {
|
|
2348
2377
|
defaultStates: o.value,
|
|
2349
2378
|
onScreenNameChanged: h,
|
|
2350
|
-
onCurrentScreenResolutionChanged:
|
|
2351
|
-
onSwitchInStandardModeChanged:
|
|
2379
|
+
onCurrentScreenResolutionChanged: g,
|
|
2380
|
+
onSwitchInStandardModeChanged: T
|
|
2352
2381
|
}, null)]), i("div", {
|
|
2353
2382
|
class: "f-layout-editor-content f-utils-fill"
|
|
2354
2383
|
}, [i("div", {
|
|
@@ -2358,7 +2387,7 @@ const Nn = /* @__PURE__ */ q({
|
|
|
2358
2387
|
}, [W()])]), i("div", {
|
|
2359
2388
|
class: "f-layout-editor-right f-utils-fill-flex-column"
|
|
2360
2389
|
}, [i("div", {
|
|
2361
|
-
class:
|
|
2390
|
+
class: b.value
|
|
2362
2391
|
}, [y()])])]), i("div", {
|
|
2363
2392
|
class: "f-layout-editor-bottom"
|
|
2364
2393
|
}, [i("div", {
|
|
@@ -2516,7 +2545,7 @@ const Yn = "https://json-schema.org/draft/2020-12/schema", Jn = "https://farris-
|
|
|
2516
2545
|
maxHeight: { type: Number },
|
|
2517
2546
|
minWidth: { type: Number },
|
|
2518
2547
|
maxWidth: { type: Number },
|
|
2519
|
-
containment: { type:
|
|
2548
|
+
containment: { type: Object, default: null },
|
|
2520
2549
|
reiszeable: { type: Boolean, default: !1 },
|
|
2521
2550
|
draggable: { type: Boolean, default: !1 },
|
|
2522
2551
|
dragHandle: { type: Object, default: null },
|
|
@@ -2611,7 +2640,7 @@ class _ {
|
|
|
2611
2640
|
}
|
|
2612
2641
|
}
|
|
2613
2642
|
function sa(e, t) {
|
|
2614
|
-
const n = l(), a = l(), o = l(), u = l(),
|
|
2643
|
+
const n = l(), a = l(), o = l(), u = l(), c = l(), f = l(), v = l(), s = l(), p = l(), r = l(), d = l(), h = l(), g = l(e.draggable), T = l(!1);
|
|
2615
2644
|
function w() {
|
|
2616
2645
|
const C = a.value || document.body, I = window.getComputedStyle(C);
|
|
2617
2646
|
if (!I || !n.value)
|
|
@@ -2619,13 +2648,13 @@ function sa(e, t) {
|
|
|
2619
2648
|
const x = P.getTransformInfo(n.value), $ = {};
|
|
2620
2649
|
v.value && ($.deltaL = n.value.offsetLeft - v.value.x, $.deltaT = n.value.offsetTop - v.value.y);
|
|
2621
2650
|
const N = I.getPropertyValue("position");
|
|
2622
|
-
$.width = C.clientWidth, $.height = C.clientHeight, $.pr = parseInt(I.getPropertyValue("padding-right"), 10), $.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), $.position = I.getPropertyValue("position"), N === "static" && (C.style.position = "relative"), $.translateX = x.x, $.translateY = x.y,
|
|
2651
|
+
$.width = C.clientWidth, $.height = C.clientHeight, $.pr = parseInt(I.getPropertyValue("padding-right"), 10), $.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), $.position = I.getPropertyValue("position"), N === "static" && (C.style.position = "relative"), $.translateX = x.x, $.translateY = x.y, r.value = $;
|
|
2623
2652
|
}
|
|
2624
2653
|
function S(C) {
|
|
2625
2654
|
if (n.value) {
|
|
2626
|
-
u.value = _.getCurrent(n.value),
|
|
2655
|
+
u.value = _.getCurrent(n.value), c.value = P.getCurrent(n.value), f.value = u.value ? _.copy(u.value) : null, v.value = c.value ? P.copy(c.value) : null, w();
|
|
2627
2656
|
const I = C.target.getAttribute("type") || "";
|
|
2628
|
-
|
|
2657
|
+
s.value = {
|
|
2629
2658
|
n: !!I.match(/n/),
|
|
2630
2659
|
s: !!I.match(/s/),
|
|
2631
2660
|
w: !!I.match(/w/),
|
|
@@ -2637,28 +2666,28 @@ function sa(e, t) {
|
|
|
2637
2666
|
var C, I, x, $;
|
|
2638
2667
|
if (n.value) {
|
|
2639
2668
|
const N = n.value;
|
|
2640
|
-
|
|
2669
|
+
s.value && ((s.value.n || s.value.s) && ((C = f.value) != null && C.height) && (N.style.height = f.value.height + "px"), (s.value.w || s.value.e) && ((I = f.value) != null && I.width) && (N.style.width = f.value.width + "px"), v.value && ((x = v.value) != null && x.x && (N.style.left = v.value.x + "px"), ($ = v.value) != null && $.y && (N.style.top = v.value.y + "px")));
|
|
2641
2670
|
}
|
|
2642
2671
|
}
|
|
2643
2672
|
function L() {
|
|
2644
2673
|
const C = e.minHeight ? e.minHeight : 1, I = e.minWidth ? e.minWidth : 1;
|
|
2645
|
-
f.value && v.value &&
|
|
2674
|
+
f.value && v.value && s.value && u.value && (f.value.height < C && (f.value.height = C, s.value.n && c.value && (v.value.y = c.value.y + (u.value.height - C))), f.value.width < I && (f.value.width = I, s.value.w && c.value && (v.value.x = c.value.x + (u.value.width - I))), e.maxHeight && f.value.height > e.maxHeight && (f.value.height = e.maxHeight, c.value && s.value.n && (v.value.y = c.value.y + (u.value.height - e.maxHeight))), e.maxWidth && f.value.width > e.maxWidth && (f.value.width = e.maxWidth, s.value.w && c.value && (v.value.x = c.value.x + (u.value.width - e.maxWidth))));
|
|
2646
2675
|
}
|
|
2647
2676
|
function j() {
|
|
2648
2677
|
if (a.value) {
|
|
2649
|
-
const C =
|
|
2650
|
-
if (v.value && f.value &&
|
|
2678
|
+
const C = r.value;
|
|
2679
|
+
if (v.value && f.value && s.value && u.value) {
|
|
2651
2680
|
const I = C.width - C.pr - C.deltaL - C.translateX - v.value.x, x = C.height - C.pb - C.deltaT - C.translateY - v.value.y;
|
|
2652
|
-
|
|
2681
|
+
s.value.n && v.value.y + C.translateY < 0 && c.value && (v.value.y = -C.translateY, f.value.height = u.value.height + c.value.y + C.translateY), s.value.w && v.value.x + C.translateX < 0 && c.value && (v.value.x = -C.translateX, f.value.width = u.value.width + c.value.x + C.translateX), f.value.width > I && (f.value.width = I), f.value.height > x && (f.value.height = x);
|
|
2653
2682
|
}
|
|
2654
2683
|
}
|
|
2655
2684
|
}
|
|
2656
2685
|
function W(C) {
|
|
2657
|
-
if (!o.value || !u.value || !
|
|
2686
|
+
if (!o.value || !u.value || !c.value || !s.value)
|
|
2658
2687
|
return;
|
|
2659
2688
|
C.subtract(o.value);
|
|
2660
2689
|
const I = C.x, x = C.y;
|
|
2661
|
-
|
|
2690
|
+
s.value.n ? (v.value.y = c.value.y + x, f.value.height = u.value.height - x) : s.value.s && (f.value.height = u.value.height + x), s.value.e ? f.value.width = u.value.width + I : s.value.w && (f.value.width = u.value.width - I, v.value.x = c.value.x + I), j(), L(), k();
|
|
2662
2691
|
}
|
|
2663
2692
|
function y(C) {
|
|
2664
2693
|
if (!p.value)
|
|
@@ -2687,63 +2716,63 @@ function sa(e, t) {
|
|
|
2687
2716
|
}
|
|
2688
2717
|
return null;
|
|
2689
2718
|
}
|
|
2690
|
-
function
|
|
2719
|
+
function b(C) {
|
|
2691
2720
|
if (n.value) {
|
|
2692
2721
|
const I = E();
|
|
2693
|
-
|
|
2722
|
+
d.value = I;
|
|
2694
2723
|
}
|
|
2695
|
-
o.value = void 0, u.value = null,
|
|
2724
|
+
o.value = void 0, u.value = null, c.value = null, f.value = null, v.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", b);
|
|
2696
2725
|
}
|
|
2697
2726
|
function m() {
|
|
2698
|
-
document.addEventListener("mousemove", y), document.addEventListener("mouseup",
|
|
2727
|
+
document.addEventListener("mousemove", y), document.addEventListener("mouseup", b);
|
|
2699
2728
|
}
|
|
2700
|
-
function
|
|
2701
|
-
C instanceof MouseEvent && C.button === 2 ||
|
|
2729
|
+
function B(C) {
|
|
2730
|
+
C instanceof MouseEvent && C.button === 2 || g.value && (C.stopPropagation(), C.preventDefault(), o.value = P.fromEvent(C), p.value = C.target, S(C), m());
|
|
2702
2731
|
}
|
|
2703
|
-
function
|
|
2732
|
+
function O(C) {
|
|
2704
2733
|
return n.value = C, i(ue, null, [i("div", {
|
|
2705
2734
|
class: "ng-resizable-handle ng-resizable-n",
|
|
2706
2735
|
type: "n",
|
|
2707
|
-
onMousedown: (I) =>
|
|
2736
|
+
onMousedown: (I) => B(I)
|
|
2708
2737
|
}, null), i("div", {
|
|
2709
2738
|
class: "ng-resizable-handle ng-resizable-e",
|
|
2710
2739
|
type: "e",
|
|
2711
|
-
onMousedown: (I) =>
|
|
2740
|
+
onMousedown: (I) => B(I)
|
|
2712
2741
|
}, null), i("div", {
|
|
2713
2742
|
class: "ng-resizable-handle ng-resizable-s",
|
|
2714
2743
|
type: "s",
|
|
2715
|
-
onMousedown: (I) =>
|
|
2744
|
+
onMousedown: (I) => B(I)
|
|
2716
2745
|
}, null), i("div", {
|
|
2717
2746
|
class: "ng-resizable-handle ng-resizable-w",
|
|
2718
2747
|
type: "w",
|
|
2719
|
-
onMousedown: (I) =>
|
|
2748
|
+
onMousedown: (I) => B(I)
|
|
2720
2749
|
}, null), i("div", {
|
|
2721
2750
|
class: "ng-resizable-handle ng-resizable-ne",
|
|
2722
2751
|
type: "ne",
|
|
2723
|
-
onMousedown: (I) =>
|
|
2752
|
+
onMousedown: (I) => B(I)
|
|
2724
2753
|
}, null), i("div", {
|
|
2725
2754
|
class: "ng-resizable-handle ng-resizable-se ng-resizable-diagonal",
|
|
2726
2755
|
type: "se",
|
|
2727
|
-
onMousedown: (I) =>
|
|
2756
|
+
onMousedown: (I) => B(I)
|
|
2728
2757
|
}, null), i("div", {
|
|
2729
2758
|
class: "ng-resizable-handle ng-resizable-sw",
|
|
2730
2759
|
type: "sw",
|
|
2731
|
-
onMousedown: (I) =>
|
|
2760
|
+
onMousedown: (I) => B(I)
|
|
2732
2761
|
}, null), i("div", {
|
|
2733
2762
|
class: "ng-resizable-handle ng-resizable-nw",
|
|
2734
2763
|
type: "nw",
|
|
2735
|
-
onMousedown: (I) =>
|
|
2764
|
+
onMousedown: (I) => B(I)
|
|
2736
2765
|
}, null)]);
|
|
2737
2766
|
}
|
|
2738
2767
|
function H(C = !0) {
|
|
2739
2768
|
const I = a.value || document.body, x = _.getCurrent(I), $ = n.value;
|
|
2740
|
-
C && (h.value = E(), h.value.transform = $.style.transform), x && $ && (f.value = x, $.style.height = f.value.height - 14 + "px", $.style.width = f.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "",
|
|
2769
|
+
C && (h.value = E(), h.value.transform = $.style.transform), x && $ && (f.value = x, $.style.height = f.value.height - 14 + "px", $.style.width = f.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", d.value = {
|
|
2741
2770
|
size: f.value,
|
|
2742
2771
|
position: {
|
|
2743
2772
|
x: 0,
|
|
2744
2773
|
y: 0
|
|
2745
2774
|
}
|
|
2746
|
-
},
|
|
2775
|
+
}, g.value = !1, T.value = !0);
|
|
2747
2776
|
}
|
|
2748
2777
|
function X() {
|
|
2749
2778
|
var C, I;
|
|
@@ -2757,10 +2786,10 @@ function sa(e, t) {
|
|
|
2757
2786
|
};
|
|
2758
2787
|
(C = f.value) == null || C.set(x), (I = v.value) == null || I.set($);
|
|
2759
2788
|
const N = n.value;
|
|
2760
|
-
N.style.height = x.height + "px", N.style.width = x.width + "px", N.style.left = `${$.x}px`, N.style.top = `${$.y}px`, N.style.transform = "",
|
|
2789
|
+
N.style.height = x.height + "px", N.style.width = x.width + "px", N.style.left = `${$.x}px`, N.style.top = `${$.y}px`, N.style.transform = "", d.value = {
|
|
2761
2790
|
size: x,
|
|
2762
2791
|
position: $
|
|
2763
|
-
},
|
|
2792
|
+
}, g.value = e.draggable, T.value = !1;
|
|
2764
2793
|
}
|
|
2765
2794
|
}
|
|
2766
2795
|
function D() {
|
|
@@ -2777,7 +2806,7 @@ function sa(e, t) {
|
|
|
2777
2806
|
}
|
|
2778
2807
|
function F() {
|
|
2779
2808
|
const C = () => {
|
|
2780
|
-
|
|
2809
|
+
T.value ? H(!1) : D();
|
|
2781
2810
|
};
|
|
2782
2811
|
return window.addEventListener("resize", C), () => {
|
|
2783
2812
|
window.removeEventListener("resize", C);
|
|
@@ -2785,55 +2814,55 @@ function sa(e, t) {
|
|
|
2785
2814
|
}
|
|
2786
2815
|
const z = F();
|
|
2787
2816
|
return {
|
|
2788
|
-
renderResizeBar:
|
|
2817
|
+
renderResizeBar: O,
|
|
2789
2818
|
boundingElement: a,
|
|
2790
|
-
resizedEventParam:
|
|
2819
|
+
resizedEventParam: d,
|
|
2791
2820
|
maximize: H,
|
|
2792
2821
|
restore: X,
|
|
2793
|
-
allowDrag:
|
|
2794
|
-
isMaximized:
|
|
2822
|
+
allowDrag: g,
|
|
2823
|
+
isMaximized: T,
|
|
2795
2824
|
unWindowResizeHandle: z
|
|
2796
2825
|
};
|
|
2797
2826
|
}
|
|
2798
2827
|
function ra(e, t) {
|
|
2799
|
-
const n = l(), a = l(e.draggable), o = l(e.lockAxis), u = l(),
|
|
2800
|
-
function
|
|
2828
|
+
const n = l(), a = l(e.draggable), o = l(e.lockAxis), u = l(), c = l(), f = l(!1), v = l(new P(0, 0)), s = l(new P(0, 0)), p = l(new P(0, 0)), r = l(new P(0, 0));
|
|
2829
|
+
function d(y, E) {
|
|
2801
2830
|
if (E.tagName === "BUTTON")
|
|
2802
2831
|
return !1;
|
|
2803
2832
|
if (E === y)
|
|
2804
2833
|
return !0;
|
|
2805
|
-
for (const
|
|
2806
|
-
if (E.children.hasOwnProperty(
|
|
2834
|
+
for (const b in E.children)
|
|
2835
|
+
if (E.children.hasOwnProperty(b) && d(y, E.children[b]))
|
|
2807
2836
|
return !0;
|
|
2808
2837
|
return !1;
|
|
2809
2838
|
}
|
|
2810
2839
|
function h() {
|
|
2811
|
-
var m,
|
|
2812
|
-
let y = p.value.x +
|
|
2813
|
-
o.value === "x" ? (y = ((m = v.value) == null ? void 0 : m.x) || 0, p.value.x = 0) : o.value === "y" && (E = ((
|
|
2814
|
-
const
|
|
2815
|
-
n.value && (n.value.style.transform =
|
|
2816
|
-
}
|
|
2817
|
-
function
|
|
2818
|
-
if (!
|
|
2840
|
+
var m, B;
|
|
2841
|
+
let y = p.value.x + s.value.x, E = p.value.y + s.value.y;
|
|
2842
|
+
o.value === "x" ? (y = ((m = v.value) == null ? void 0 : m.x) || 0, p.value.x = 0) : o.value === "y" && (E = ((B = v.value) == null ? void 0 : B.y) || 0, p.value.y = 0);
|
|
2843
|
+
const b = `translate3d(${Math.round(y)}px, ${Math.round(E)}px, 0px)`;
|
|
2844
|
+
n.value && (n.value.style.transform = b), r.value.x = y, r.value.y = E;
|
|
2845
|
+
}
|
|
2846
|
+
function g() {
|
|
2847
|
+
if (!c.value || !n.value)
|
|
2819
2848
|
return null;
|
|
2820
|
-
const y =
|
|
2849
|
+
const y = c.value.getBoundingClientRect(), E = n.value.getBoundingClientRect(), b = {
|
|
2821
2850
|
top: y.top < E.top,
|
|
2822
2851
|
right: y.right > E.right,
|
|
2823
2852
|
bottom: y.bottom > E.bottom,
|
|
2824
2853
|
left: y.left < E.left
|
|
2825
2854
|
};
|
|
2826
|
-
return
|
|
2855
|
+
return b.top || (p.value.y -= E.top - y.top), b.bottom || (p.value.y -= E.bottom - y.bottom), b.right || (p.value.x -= E.right - y.right), b.left || (p.value.x -= E.left - y.left), h(), b;
|
|
2827
2856
|
}
|
|
2828
|
-
function
|
|
2829
|
-
y && (v.value && y.subtract(v.value), p.value.set(y), h(),
|
|
2857
|
+
function T(y) {
|
|
2858
|
+
y && (v.value && y.subtract(v.value), p.value.set(y), h(), g());
|
|
2830
2859
|
}
|
|
2831
2860
|
function w(y) {
|
|
2832
|
-
f.value && a.value && (y.stopPropagation(), y.preventDefault(),
|
|
2861
|
+
f.value && a.value && (y.stopPropagation(), y.preventDefault(), T(P.fromEvent(y, u.value)));
|
|
2833
2862
|
}
|
|
2834
2863
|
function S() {
|
|
2835
2864
|
var y;
|
|
2836
|
-
f.value && (f.value = !1,
|
|
2865
|
+
f.value && (f.value = !1, s.value.add(p.value), p.value.reset(), (y = n.value) == null || y.classList.remove("ng-dragging"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", S));
|
|
2837
2866
|
}
|
|
2838
2867
|
function k() {
|
|
2839
2868
|
!f.value && u.value && (f.value = !0, u.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", S));
|
|
@@ -2841,18 +2870,18 @@ function ra(e, t) {
|
|
|
2841
2870
|
function L() {
|
|
2842
2871
|
if (n.value) {
|
|
2843
2872
|
const y = P.getTransformInfo(n.value);
|
|
2844
|
-
|
|
2873
|
+
s.value.set(y);
|
|
2845
2874
|
return;
|
|
2846
2875
|
}
|
|
2847
|
-
|
|
2876
|
+
s.value.reset();
|
|
2848
2877
|
}
|
|
2849
2878
|
function j(y) {
|
|
2850
2879
|
if (y instanceof MouseEvent && y.button === 2)
|
|
2851
2880
|
return;
|
|
2852
2881
|
const E = y.target || y.srcElement;
|
|
2853
|
-
u.value !== void 0 && E && !
|
|
2882
|
+
u.value !== void 0 && E && !d(E, u.value) || a.value !== !1 && (y.stopPropagation(), y.preventDefault(), v.value = P.fromEvent(y, n.value), L(), k());
|
|
2854
2883
|
}
|
|
2855
|
-
function W(y, E,
|
|
2884
|
+
function W(y, E, b) {
|
|
2856
2885
|
if (y && a.value && E) {
|
|
2857
2886
|
if (e.dragHandle) {
|
|
2858
2887
|
if (e.dragHandle instanceof HTMLElement)
|
|
@@ -2863,7 +2892,7 @@ function ra(e, t) {
|
|
|
2863
2892
|
}
|
|
2864
2893
|
} else
|
|
2865
2894
|
u.value = y;
|
|
2866
|
-
n.value = E,
|
|
2895
|
+
n.value = E, c.value = b, u.value.classList.add("ng-draggable"), u.value.addEventListener("mousedown", j);
|
|
2867
2896
|
}
|
|
2868
2897
|
}
|
|
2869
2898
|
return {
|
|
@@ -2883,7 +2912,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
2883
2912
|
props: ua,
|
|
2884
2913
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc"],
|
|
2885
2914
|
setup(e, t) {
|
|
2886
|
-
const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), u = l(""),
|
|
2915
|
+
const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), u = l(""), c = l(e.class), f = l(e.fitContent), v = l(e.showHeader), s = l(""), p = l(e.showCloseButton), r = l(e.showMaxButton), d = l(!1), h = l(""), g = l(""), T = l(""), w = l(e.showButtons), S = l(e.title), k = l(e.reiszeable), L = l(e.containment || null), j = l();
|
|
2887
2916
|
function W(M, V) {
|
|
2888
2917
|
o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed", M);
|
|
2889
2918
|
}
|
|
@@ -2901,7 +2930,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
2901
2930
|
handle: (M) => {
|
|
2902
2931
|
W(M, !0);
|
|
2903
2932
|
}
|
|
2904
|
-
}], E = l(e.buttons && e.buttons.length ? e.buttons : y),
|
|
2933
|
+
}], E = l(e.buttons && e.buttons.length ? e.buttons : y), b = R(() => !!s.value), m = R(() => !!w.value && !!E.value), B = l(), O = l(), H = l(!1), {
|
|
2905
2934
|
renderResizeBar: X,
|
|
2906
2935
|
maximize: D,
|
|
2907
2936
|
restore: F,
|
|
@@ -2912,15 +2941,15 @@ const Be = /* @__PURE__ */ q({
|
|
|
2912
2941
|
} = sa(e), {
|
|
2913
2942
|
registerDraggle: $
|
|
2914
2943
|
} = ra(e);
|
|
2915
|
-
|
|
2944
|
+
A(() => e.title, (M, V) => {
|
|
2916
2945
|
M !== V && (S.value = M);
|
|
2917
|
-
}),
|
|
2946
|
+
}), A(() => e.modelValue, (M, V) => {
|
|
2918
2947
|
M !== V && (o.value = M);
|
|
2919
|
-
}),
|
|
2948
|
+
}), A(() => e.showHeader, (M, V) => {
|
|
2920
2949
|
M !== V && (v.value = M);
|
|
2921
|
-
}),
|
|
2950
|
+
}), A(() => e.showButtons, (M, V) => {
|
|
2922
2951
|
M !== V && (w.value = M);
|
|
2923
|
-
}),
|
|
2952
|
+
}), A(() => C.value, (M, V) => {
|
|
2924
2953
|
const ne = M || {}, ae = V || {};
|
|
2925
2954
|
JSON.stringify(ne) !== JSON.stringify(ae) && t.emit("resize", {
|
|
2926
2955
|
newSize: M,
|
|
@@ -2942,7 +2971,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
2942
2971
|
var ne;
|
|
2943
2972
|
const M = {
|
|
2944
2973
|
"modal-dialog": !0
|
|
2945
|
-
}, V = (ne =
|
|
2974
|
+
}, V = (ne = c.value) == null ? void 0 : ne.split(" ");
|
|
2946
2975
|
return V == null || V.reduce((ae, qe) => (ae[qe] = !0, ae), M), M;
|
|
2947
2976
|
}), ke = R(() => ({
|
|
2948
2977
|
position: "absolute",
|
|
@@ -2958,11 +2987,11 @@ const Be = /* @__PURE__ */ q({
|
|
|
2958
2987
|
display: v.value ? "" : "none"
|
|
2959
2988
|
};
|
|
2960
2989
|
return M["pointer-events"] = I.value ? "auto" : "none", M;
|
|
2961
|
-
}),
|
|
2990
|
+
}), Oe = R(() => ({
|
|
2962
2991
|
"f-icon": !0,
|
|
2963
2992
|
modal_maximize: !0,
|
|
2964
2993
|
modalrevert: H.value
|
|
2965
|
-
})),
|
|
2994
|
+
})), Ae = R(() => ({
|
|
2966
2995
|
"modal-body": !0,
|
|
2967
2996
|
"f-utils-flex-column": h.value === "iframe"
|
|
2968
2997
|
}));
|
|
@@ -2971,7 +3000,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
2971
3000
|
}
|
|
2972
3001
|
const Ve = R(() => {
|
|
2973
3002
|
const M = {
|
|
2974
|
-
textAlgin:
|
|
3003
|
+
textAlgin: T.value
|
|
2975
3004
|
}, V = je();
|
|
2976
3005
|
return Object.assign(M, V);
|
|
2977
3006
|
});
|
|
@@ -2989,25 +3018,25 @@ const Be = /* @__PURE__ */ q({
|
|
|
2989
3018
|
M.width && (n.value = M.width), M.height && (a.value = M.height), M.buttons && (E.value = M.buttons), M.title && (S.value = M.title);
|
|
2990
3019
|
}
|
|
2991
3020
|
J(() => {
|
|
2992
|
-
|
|
3021
|
+
O.value && !L.value && (L.value = O.value.parentElement, z.value = L.value, $(B.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), ca(e, t);
|
|
2993
3022
|
}), be(() => {
|
|
2994
3023
|
N(), x && x();
|
|
2995
3024
|
}), t.expose({
|
|
2996
|
-
modalElementRef:
|
|
3025
|
+
modalElementRef: O,
|
|
2997
3026
|
updateModalOptions: He,
|
|
2998
3027
|
close: W
|
|
2999
3028
|
});
|
|
3000
3029
|
function Pe() {
|
|
3001
|
-
return i("ul", null, [
|
|
3030
|
+
return i("ul", null, [d.value && i("li", {
|
|
3002
3031
|
class: "f-btn-icon f-bare"
|
|
3003
3032
|
}, [i("span", {
|
|
3004
3033
|
class: "f-icon modal_minimize"
|
|
3005
|
-
}, null)]),
|
|
3034
|
+
}, null)]), r.value && i("li", {
|
|
3006
3035
|
onClick: ze,
|
|
3007
3036
|
class: "f-btn-icon f-bare",
|
|
3008
3037
|
style: "pointer-events: auto;"
|
|
3009
3038
|
}, [i("span", {
|
|
3010
|
-
class:
|
|
3039
|
+
class: Oe.value
|
|
3011
3040
|
}, null)]), p.value && i("li", {
|
|
3012
3041
|
class: "f-btn-icon f-bare",
|
|
3013
3042
|
onClick: (M) => W(M, !1),
|
|
@@ -3044,31 +3073,31 @@ const Be = /* @__PURE__ */ q({
|
|
|
3044
3073
|
id: u.value,
|
|
3045
3074
|
class: Fe.value,
|
|
3046
3075
|
style: ke.value,
|
|
3047
|
-
ref:
|
|
3076
|
+
ref: O
|
|
3048
3077
|
}, [i("div", {
|
|
3049
3078
|
class: $e.value
|
|
3050
3079
|
}, [i("div", {
|
|
3051
|
-
ref:
|
|
3080
|
+
ref: B,
|
|
3052
3081
|
class: "modal-header",
|
|
3053
3082
|
style: We.value
|
|
3054
3083
|
}, [i("div", {
|
|
3055
3084
|
class: "modal-title"
|
|
3056
|
-
}, [
|
|
3057
|
-
class:
|
|
3085
|
+
}, [b.value && i("span", {
|
|
3086
|
+
class: s.value,
|
|
3058
3087
|
style: "margin-right: 8px"
|
|
3059
3088
|
}, null), i("span", {
|
|
3060
3089
|
class: "modal-title-label"
|
|
3061
3090
|
}, [S.value])]), i("div", {
|
|
3062
3091
|
class: "actions"
|
|
3063
3092
|
}, [Pe()])]), i("div", {
|
|
3064
|
-
class:
|
|
3093
|
+
class: Ae.value
|
|
3065
3094
|
}, [(V = (M = t.slots).default) == null ? void 0 : V.call(M), h.value === "iframe" && i("iframe", {
|
|
3066
3095
|
title: u.value,
|
|
3067
3096
|
class: "f-utils-fill",
|
|
3068
3097
|
width: "100%",
|
|
3069
3098
|
frameborder: "0",
|
|
3070
|
-
src:
|
|
3071
|
-
}, null)]), m.value && Ge()]), !f.value && k.value &&
|
|
3099
|
+
src: g.value
|
|
3100
|
+
}, null)]), m.value && Ge()]), !f.value && k.value && O.value && X(O.value)])])];
|
|
3072
3101
|
}
|
|
3073
3102
|
});
|
|
3074
3103
|
}
|
|
@@ -3087,34 +3116,34 @@ function da(e) {
|
|
|
3087
3116
|
be(() => {
|
|
3088
3117
|
document.body.removeChild(t);
|
|
3089
3118
|
});
|
|
3090
|
-
const u = l(),
|
|
3119
|
+
const u = l(), c = l(e.class || ""), f = l(!!e.showButtons), v = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton), p = l(!0), r = l(e.title || ""), d = e.acceptCallback || (() => {
|
|
3091
3120
|
}), h = e.rejectCallback || (() => {
|
|
3092
|
-
}),
|
|
3093
|
-
}),
|
|
3121
|
+
}), g = e.closedCallback || ((k) => {
|
|
3122
|
+
}), T = e.resizeHandle || ((k) => {
|
|
3094
3123
|
}), w = Le(e), S = (k) => {
|
|
3095
|
-
p.value = !1, n.unmount(),
|
|
3124
|
+
p.value = !1, n.unmount(), g(k);
|
|
3096
3125
|
};
|
|
3097
3126
|
return J(() => {
|
|
3098
3127
|
}), o.expose({
|
|
3099
3128
|
modalRef: u
|
|
3100
3129
|
}), () => i(Be, {
|
|
3101
3130
|
ref: u,
|
|
3102
|
-
class:
|
|
3131
|
+
class: c.value,
|
|
3103
3132
|
modelValue: p.value,
|
|
3104
3133
|
"onUpdate:modelValue": (k) => p.value = k,
|
|
3105
|
-
title:
|
|
3134
|
+
title: r.value,
|
|
3106
3135
|
width: e.width,
|
|
3107
3136
|
height: e.height,
|
|
3108
3137
|
buttons: e.buttons,
|
|
3109
3138
|
"show-header": v.value,
|
|
3110
3139
|
"show-buttons": f.value,
|
|
3111
|
-
"show-close-button":
|
|
3140
|
+
"show-close-button": s.value,
|
|
3112
3141
|
"show-max-button": !1,
|
|
3113
|
-
onAccept:
|
|
3142
|
+
onAccept: d,
|
|
3114
3143
|
onCancel: h,
|
|
3115
3144
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
3116
3145
|
onClosed: S,
|
|
3117
|
-
onResize:
|
|
3146
|
+
onResize: T
|
|
3118
3147
|
}, {
|
|
3119
3148
|
default: () => [w && w(n)]
|
|
3120
3149
|
});
|
|
@@ -3151,19 +3180,19 @@ class me {
|
|
|
3151
3180
|
showButtons: !0,
|
|
3152
3181
|
showHeader: !0
|
|
3153
3182
|
}, t)), o = l(!0), u = a.value.acceptCallback || (() => {
|
|
3154
|
-
}),
|
|
3183
|
+
}), c = a.value.rejectCallback || (() => {
|
|
3155
3184
|
}), f = a.value.closedCallback || ((S, k) => {
|
|
3156
3185
|
}), v = a.value.resizeHandle || ((S) => {
|
|
3157
3186
|
});
|
|
3158
|
-
let
|
|
3159
|
-
const p = Le(a.value),
|
|
3187
|
+
let s;
|
|
3188
|
+
const p = Le(a.value), r = (S) => {
|
|
3160
3189
|
var L;
|
|
3161
3190
|
o.value = !1;
|
|
3162
3191
|
const k = (L = S == null ? void 0 : S.target) == null ? void 0 : L.classList.contains("modal_close");
|
|
3163
3192
|
f(S, this.isUseEscCloseModal.value ? "esc" : k ? "icon" : "button");
|
|
3164
|
-
},
|
|
3165
|
-
|
|
3166
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], se(null, n),
|
|
3193
|
+
}, d = (S) => {
|
|
3194
|
+
r(S), s && ce(() => {
|
|
3195
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], se(null, n), s = null, this.modalRef.value = null, this.modalRefs) {
|
|
3167
3196
|
const k = Object.keys(this.modalRefs);
|
|
3168
3197
|
k.length > 0 ? this.activeModalIndex.value = Math.max(...k) : this.activeModalIndex.value = 0;
|
|
3169
3198
|
}
|
|
@@ -3172,21 +3201,21 @@ class me {
|
|
|
3172
3201
|
}, h = (S) => {
|
|
3173
3202
|
var k;
|
|
3174
3203
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((k = this.activeModalInstance.value) == null || k.close(S == null ? void 0 : S.event));
|
|
3175
|
-
},
|
|
3204
|
+
}, g = () => i(Be, we({
|
|
3176
3205
|
ref: this.modalRef,
|
|
3177
3206
|
modelValue: o.value,
|
|
3178
3207
|
"onUpdate:modelValue": (S) => o.value = S
|
|
3179
3208
|
}, a.value, {
|
|
3180
3209
|
onAccept: u,
|
|
3181
|
-
onCancel:
|
|
3182
|
-
onClosed:
|
|
3210
|
+
onCancel: c,
|
|
3211
|
+
onClosed: d,
|
|
3183
3212
|
onResize: v,
|
|
3184
3213
|
onEsc: h
|
|
3185
3214
|
}), {
|
|
3186
3215
|
default: () => [p && p()]
|
|
3187
3216
|
});
|
|
3188
|
-
return
|
|
3189
|
-
const k = Ke(
|
|
3217
|
+
return s = ((S) => {
|
|
3218
|
+
const k = Ke(g, S);
|
|
3190
3219
|
return k.appContext = this.appContext, se(k, n), k;
|
|
3191
3220
|
})({
|
|
3192
3221
|
...a.value
|
|
@@ -3196,11 +3225,11 @@ class me {
|
|
|
3196
3225
|
a.value = {
|
|
3197
3226
|
...a.value,
|
|
3198
3227
|
...S
|
|
3199
|
-
},
|
|
3228
|
+
}, s && se(et(s, {
|
|
3200
3229
|
...a
|
|
3201
3230
|
}), n);
|
|
3202
3231
|
},
|
|
3203
|
-
destroy:
|
|
3232
|
+
destroy: d,
|
|
3204
3233
|
modalRef: this.activeModalInstance
|
|
3205
3234
|
};
|
|
3206
3235
|
}
|
|
@@ -3209,62 +3238,62 @@ function fa(e, t, n) {
|
|
|
3209
3238
|
var W;
|
|
3210
3239
|
function a() {
|
|
3211
3240
|
}
|
|
3212
|
-
const o = "", u = "",
|
|
3241
|
+
const o = "", u = "", c = l();
|
|
3213
3242
|
function f() {
|
|
3214
3243
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
3215
3244
|
}
|
|
3216
3245
|
function v() {
|
|
3217
3246
|
return !1;
|
|
3218
3247
|
}
|
|
3219
|
-
function
|
|
3248
|
+
function s() {
|
|
3220
3249
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
3221
3250
|
}
|
|
3222
3251
|
function p() {
|
|
3223
3252
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
3224
3253
|
}
|
|
3225
|
-
function
|
|
3254
|
+
function r(y) {
|
|
3226
3255
|
if (!y || !y.value)
|
|
3227
3256
|
return null;
|
|
3228
3257
|
if (y.value.schema && y.value.schema.type === "component")
|
|
3229
3258
|
return y.value;
|
|
3230
|
-
const E = l(y == null ? void 0 : y.value.parent),
|
|
3231
|
-
return
|
|
3259
|
+
const E = l(y == null ? void 0 : y.value.parent), b = r(E);
|
|
3260
|
+
return b || null;
|
|
3232
3261
|
}
|
|
3233
|
-
function
|
|
3234
|
-
const { componentInstance: E, designerItemElementRef:
|
|
3235
|
-
return !E || !E.value ? null : E.value.canMove ?
|
|
3262
|
+
function d(y = t) {
|
|
3263
|
+
const { componentInstance: E, designerItemElementRef: b } = y;
|
|
3264
|
+
return !E || !E.value ? null : E.value.canMove ? b : d(y.parent);
|
|
3236
3265
|
}
|
|
3237
3266
|
function h(y) {
|
|
3238
3267
|
return !!n;
|
|
3239
3268
|
}
|
|
3240
|
-
function
|
|
3269
|
+
function g() {
|
|
3241
3270
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
3242
3271
|
}
|
|
3243
|
-
function
|
|
3272
|
+
function T() {
|
|
3244
3273
|
}
|
|
3245
3274
|
function w(y, E) {
|
|
3246
3275
|
}
|
|
3247
3276
|
function S(y) {
|
|
3248
3277
|
const { componentType: E } = y;
|
|
3249
|
-
let
|
|
3278
|
+
let b = de(E, y);
|
|
3250
3279
|
const m = E.toLowerCase().replace("-", "_");
|
|
3251
|
-
return
|
|
3280
|
+
return b && !b.id && b.type === E && (b.id = `${m}_${Math.random().toString().slice(2, 6)}`), b;
|
|
3252
3281
|
}
|
|
3253
3282
|
function k(y, E) {
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3256
|
-
let
|
|
3257
|
-
const H =
|
|
3258
|
-
return
|
|
3283
|
+
const b = String(y.getAttribute("data-controltype")), m = y.getAttribute("data-feature"), B = m ? JSON.parse(m) : {};
|
|
3284
|
+
B.parentComponentInstance = c.value;
|
|
3285
|
+
let O = de(b, B);
|
|
3286
|
+
const H = b.toLowerCase().replace("-", "_");
|
|
3287
|
+
return O && !O.id && O.type === b && (O.id = `${H}_${Math.random().toString().slice(2, 6)}`), O;
|
|
3259
3288
|
}
|
|
3260
3289
|
function L(y) {
|
|
3261
3290
|
}
|
|
3262
3291
|
function j(...y) {
|
|
3263
3292
|
}
|
|
3264
|
-
return
|
|
3293
|
+
return c.value = {
|
|
3265
3294
|
canMove: f(),
|
|
3266
3295
|
canSelectParent: v(),
|
|
3267
|
-
canDelete:
|
|
3296
|
+
canDelete: s(),
|
|
3268
3297
|
canNested: !p(),
|
|
3269
3298
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3270
3299
|
elementRef: e,
|
|
@@ -3273,11 +3302,11 @@ function fa(e, t, n) {
|
|
|
3273
3302
|
styles: o,
|
|
3274
3303
|
designerClass: u,
|
|
3275
3304
|
canAccepts: h,
|
|
3276
|
-
getBelongedComponentInstance:
|
|
3277
|
-
getDraggableDesignItemElement:
|
|
3278
|
-
getDraggingDisplayText:
|
|
3305
|
+
getBelongedComponentInstance: r,
|
|
3306
|
+
getDraggableDesignItemElement: d,
|
|
3307
|
+
getDraggingDisplayText: g,
|
|
3279
3308
|
getPropConfig: j,
|
|
3280
|
-
getDragScopeElement:
|
|
3309
|
+
getDragScopeElement: T,
|
|
3281
3310
|
onAcceptMovedChildElement: w,
|
|
3282
3311
|
onAcceptNewChildElement: k,
|
|
3283
3312
|
onChildElementMovedOut: L,
|
|
@@ -3285,19 +3314,19 @@ function fa(e, t, n) {
|
|
|
3285
3314
|
updateDragAndDropRules: a,
|
|
3286
3315
|
triggerBelongedComponentToMoveWhenMoved: l(!1),
|
|
3287
3316
|
triggerBelongedComponentToDeleteWhenDeleted: l(!1)
|
|
3288
|
-
},
|
|
3317
|
+
}, c;
|
|
3289
3318
|
}
|
|
3290
3319
|
const pa = /* @__PURE__ */ q({
|
|
3291
3320
|
name: "FResponseLayoutEditorSettingDesign",
|
|
3292
3321
|
props: ve,
|
|
3293
3322
|
emits: [],
|
|
3294
3323
|
setup(e, t) {
|
|
3295
|
-
const n = l(e.initialState), a = l(e.width), o = l(e.height), u = l(),
|
|
3324
|
+
const n = l(e.initialState), a = l(e.width), o = l(e.height), u = l(), c = ge("design-item-context"), f = fa(u, c);
|
|
3296
3325
|
J(() => {
|
|
3297
3326
|
u.value.componentInstance = f;
|
|
3298
3327
|
}), t.expose(f.value);
|
|
3299
3328
|
function v() {
|
|
3300
|
-
const
|
|
3329
|
+
const s = me.show({
|
|
3301
3330
|
// title: '响应式列宽编辑器',
|
|
3302
3331
|
render: () => i(ie, {
|
|
3303
3332
|
initialState: n,
|
|
@@ -3311,14 +3340,14 @@ const pa = /* @__PURE__ */ q({
|
|
|
3311
3340
|
text: "确定",
|
|
3312
3341
|
iconClass: "f-icon f-icon-check",
|
|
3313
3342
|
handle: () => {
|
|
3314
|
-
|
|
3343
|
+
s.destroy();
|
|
3315
3344
|
}
|
|
3316
3345
|
}, {
|
|
3317
3346
|
class: "btn btn-light",
|
|
3318
3347
|
text: "取消",
|
|
3319
3348
|
iconClass: "f-icon f-icon-close",
|
|
3320
3349
|
handle: () => {
|
|
3321
|
-
|
|
3350
|
+
s.destroy();
|
|
3322
3351
|
}
|
|
3323
3352
|
}]
|
|
3324
3353
|
});
|
|
@@ -3384,36 +3413,36 @@ function ga() {
|
|
|
3384
3413
|
return { onCopy: e };
|
|
3385
3414
|
}
|
|
3386
3415
|
function ba(e, t, n, a) {
|
|
3387
|
-
const o = l(14), u = l(140),
|
|
3416
|
+
const o = l(14), u = l(140), c = l(""), f = l(a.value.length), v = R(() => a.value), s = R(() => ({
|
|
3388
3417
|
"font-size": `${o.value}px`,
|
|
3389
3418
|
height: "100%"
|
|
3390
3419
|
}));
|
|
3391
|
-
function p(
|
|
3392
|
-
if (
|
|
3393
|
-
const
|
|
3394
|
-
f.value =
|
|
3420
|
+
function p(r) {
|
|
3421
|
+
if (r.currentTarget) {
|
|
3422
|
+
const d = r.currentTarget.value || "";
|
|
3423
|
+
f.value = d.length;
|
|
3395
3424
|
}
|
|
3396
3425
|
}
|
|
3397
3426
|
return () => i(ue, null, [i("textarea", {
|
|
3398
3427
|
title: "promptMessage",
|
|
3399
3428
|
name: "promptMessage",
|
|
3400
3429
|
class: "form-control",
|
|
3401
|
-
style:
|
|
3430
|
+
style: s.value,
|
|
3402
3431
|
rows: "4",
|
|
3403
3432
|
maxlength: u.value,
|
|
3404
|
-
onInput: (
|
|
3433
|
+
onInput: (r) => p(r)
|
|
3405
3434
|
}, [v.value]), i("span", {
|
|
3406
3435
|
class: "textarea-wordcount",
|
|
3407
|
-
title:
|
|
3436
|
+
title: c.value,
|
|
3408
3437
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
3409
3438
|
}, [f.value + " / " + u.value])]);
|
|
3410
3439
|
}
|
|
3411
3440
|
function wa(e, t, n, a) {
|
|
3412
3441
|
const o = ba(e, t, n, a), u = /* @__PURE__ */ new Map([["text-area", o]]);
|
|
3413
|
-
function
|
|
3442
|
+
function c(f) {
|
|
3414
3443
|
return u.get(f) || null;
|
|
3415
3444
|
}
|
|
3416
|
-
return { getEditorRender:
|
|
3445
|
+
return { getEditorRender: c };
|
|
3417
3446
|
}
|
|
3418
3447
|
function Sa() {
|
|
3419
3448
|
const e = l(!1), t = l("复制成功");
|
|
@@ -3446,7 +3475,7 @@ function Ca(e, t) {
|
|
|
3446
3475
|
return () => n && n();
|
|
3447
3476
|
}
|
|
3448
3477
|
function Ma(e) {
|
|
3449
|
-
const t = l(3), n = l(480), a = R(() => !!e.value && !!e.value.date), o = R(() => `发生时间 : ${e.value && e.value.date || ""}`), u = R(() => !!e.value && !!e.value.detail),
|
|
3478
|
+
const t = l(3), n = l(480), a = R(() => !!e.value && !!e.value.date), o = R(() => `发生时间 : ${e.value && e.value.date || ""}`), u = R(() => !!e.value && !!e.value.detail), c = R(() => {
|
|
3450
3479
|
const w = `${n.value}px`;
|
|
3451
3480
|
return {
|
|
3452
3481
|
overflow: "hidden",
|
|
@@ -3456,20 +3485,20 @@ function Ma(e) {
|
|
|
3456
3485
|
"-webkit-line-clamp": t.value,
|
|
3457
3486
|
"max-height": w
|
|
3458
3487
|
};
|
|
3459
|
-
}), f = R(() => e.value && e.value.detail || ""), v = R(() => !0),
|
|
3488
|
+
}), f = R(() => e.value && e.value.detail || ""), v = R(() => !0), s = l(!1), p = l("展开"), r = l("收起"), d = R(() => {
|
|
3460
3489
|
const w = {
|
|
3461
3490
|
display: "block",
|
|
3462
3491
|
color: "#2A87FF"
|
|
3463
3492
|
};
|
|
3464
|
-
return w["text-align"] =
|
|
3493
|
+
return w["text-align"] = s.value ? "" : "right", w;
|
|
3465
3494
|
});
|
|
3466
3495
|
function h(w, S) {
|
|
3467
|
-
|
|
3496
|
+
s.value = !s.value, t.value = s.value ? 20 : 3;
|
|
3468
3497
|
}
|
|
3469
|
-
function
|
|
3498
|
+
function g(w) {
|
|
3470
3499
|
return h();
|
|
3471
3500
|
}
|
|
3472
|
-
function
|
|
3501
|
+
function T(w) {
|
|
3473
3502
|
return h();
|
|
3474
3503
|
}
|
|
3475
3504
|
return () => i("div", {
|
|
@@ -3477,16 +3506,16 @@ function Ma(e) {
|
|
|
3477
3506
|
}, [a.value && i("div", null, [o.value]), u.value && i("div", {
|
|
3478
3507
|
id: "exception_error_msg",
|
|
3479
3508
|
ref: "exceptionMessageRef",
|
|
3480
|
-
style:
|
|
3509
|
+
style: c.value
|
|
3481
3510
|
}, [G("详细信息 : "), i("span", {
|
|
3482
3511
|
innerHTML: f.value
|
|
3483
3512
|
}, null)]), v.value && i("span", {
|
|
3484
|
-
style:
|
|
3485
|
-
}, [
|
|
3486
|
-
onClick:
|
|
3513
|
+
style: d.value
|
|
3514
|
+
}, [s.value && i("span", {
|
|
3515
|
+
onClick: g,
|
|
3487
3516
|
style: "cursor: pointer;"
|
|
3488
|
-
}, [
|
|
3489
|
-
onClick:
|
|
3517
|
+
}, [r.value]), !s.value && i("span", {
|
|
3518
|
+
onClick: T,
|
|
3490
3519
|
style: "cursor: pointer;"
|
|
3491
3520
|
}, [p.value])])]);
|
|
3492
3521
|
}
|
|
@@ -3498,15 +3527,15 @@ function Ia(e) {
|
|
|
3498
3527
|
}
|
|
3499
3528
|
function xa(e, t, n, a) {
|
|
3500
3529
|
const o = l(e.exceptionInfo), u = R(() => {
|
|
3501
|
-
const
|
|
3530
|
+
const d = {
|
|
3502
3531
|
"f-icon": !0
|
|
3503
3532
|
}, h = `f-icon-${t.value}`;
|
|
3504
|
-
return
|
|
3505
|
-
}),
|
|
3533
|
+
return d[h] = !0, d;
|
|
3534
|
+
}), c = R(() => n.value || o.value && o.value.message), f = R(() => a.value), v = R(() => !!a.value), s = R(() => !!o.value);
|
|
3506
3535
|
function p() {
|
|
3507
|
-
return
|
|
3536
|
+
return s.value ? Ma(o) : v.value ? Ia(f) : () => null;
|
|
3508
3537
|
}
|
|
3509
|
-
const
|
|
3538
|
+
const r = p();
|
|
3510
3539
|
return () => i(ue, null, [i("div", {
|
|
3511
3540
|
class: "float-left modal-tips-iconwrap"
|
|
3512
3541
|
}, [i("span", {
|
|
@@ -3515,21 +3544,21 @@ function xa(e, t, n, a) {
|
|
|
3515
3544
|
class: "modal-tips-content"
|
|
3516
3545
|
}, [i("p", {
|
|
3517
3546
|
class: "toast-msg-title",
|
|
3518
|
-
innerHTML:
|
|
3519
|
-
}, null),
|
|
3547
|
+
innerHTML: c.value
|
|
3548
|
+
}, null), r()])]);
|
|
3520
3549
|
}
|
|
3521
3550
|
function Ea(e, t, n) {
|
|
3522
3551
|
const {
|
|
3523
3552
|
onCopy: a
|
|
3524
3553
|
} = t, {
|
|
3525
3554
|
toShowFeedback: o
|
|
3526
|
-
} = n, u = l("复制成功"),
|
|
3555
|
+
} = n, u = l("复制成功"), c = l("复制详细信息"), f = l(e.exceptionInfo || {
|
|
3527
3556
|
date: "",
|
|
3528
3557
|
message: "",
|
|
3529
3558
|
detail: ""
|
|
3530
3559
|
}), v = R(() => f.value && f.value.detail || "");
|
|
3531
|
-
function
|
|
3532
|
-
a(v.value).catch((
|
|
3560
|
+
function s(p) {
|
|
3561
|
+
a(v.value).catch((r) => {
|
|
3533
3562
|
u.value = "复制失败";
|
|
3534
3563
|
}).finally(() => {
|
|
3535
3564
|
o.value = !0, setTimeout(() => {
|
|
@@ -3540,12 +3569,12 @@ function Ea(e, t, n) {
|
|
|
3540
3569
|
return () => i("span", {
|
|
3541
3570
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
3542
3571
|
}, [i("span", {
|
|
3543
|
-
onClick:
|
|
3572
|
+
onClick: s,
|
|
3544
3573
|
style: "cursor: pointer;"
|
|
3545
|
-
}, [
|
|
3574
|
+
}, [c.value])]);
|
|
3546
3575
|
}
|
|
3547
3576
|
function Da(e, t, n, a) {
|
|
3548
|
-
const o = l(e.type), u = l([]),
|
|
3577
|
+
const o = l(e.type), u = l([]), c = l(e.exceptionInfo), f = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0), p = l(!0), r = R(() => !!(u.value && u.value.length)), d = R(() => c.value && c.value.date && c.value.message && c.value.detail), h = R(() => !(u.value && u.value.length) && (f.value || v.value)), g = R(() => p.value && f.value), T = R(() => s.value && v.value), w = Ea(e, n, a);
|
|
3549
3578
|
function S(L) {
|
|
3550
3579
|
o.value === "question" && t.emit("reject"), t.emit("close");
|
|
3551
3580
|
}
|
|
@@ -3554,15 +3583,15 @@ function Da(e, t, n, a) {
|
|
|
3554
3583
|
}
|
|
3555
3584
|
return () => i("div", {
|
|
3556
3585
|
class: "modal-footer"
|
|
3557
|
-
}, [
|
|
3586
|
+
}, [d.value && w(), h.value && T.value && i("button", {
|
|
3558
3587
|
type: "button",
|
|
3559
3588
|
class: "btn btn-secondary btn-lg",
|
|
3560
3589
|
onClick: S
|
|
3561
|
-
}, [v.value]), h.value &&
|
|
3590
|
+
}, [v.value]), h.value && g.value && i("button", {
|
|
3562
3591
|
type: "button",
|
|
3563
3592
|
class: "btn btn-primary btn-lg",
|
|
3564
3593
|
onClick: k
|
|
3565
|
-
}, [f.value]),
|
|
3594
|
+
}, [f.value]), r.value && u.value.length && u.value.map((L) => i("button", {
|
|
3566
3595
|
type: "button",
|
|
3567
3596
|
onClick: L.handle,
|
|
3568
3597
|
class: L.class
|
|
@@ -3582,17 +3611,17 @@ const oe = /* @__PURE__ */ q({
|
|
|
3582
3611
|
"flex-row": !0
|
|
3583
3612
|
}, S = `messager-type-${n.value}`;
|
|
3584
3613
|
return w[S] = !0, w;
|
|
3585
|
-
}),
|
|
3614
|
+
}), c = R(() => {
|
|
3586
3615
|
const w = {};
|
|
3587
3616
|
return n.value === "prompt" ? w.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (w.padding = "0.5rem 1.5rem 1rem 1.5rem"), w;
|
|
3588
|
-
}), f = ga(), v = wa(e, n, a, o),
|
|
3617
|
+
}), f = ga(), v = wa(e, n, a, o), s = Sa(), {
|
|
3589
3618
|
feedbackStyle: p,
|
|
3590
|
-
feedbackMessage:
|
|
3591
|
-
} =
|
|
3592
|
-
function
|
|
3619
|
+
feedbackMessage: r
|
|
3620
|
+
} = s;
|
|
3621
|
+
function d() {
|
|
3593
3622
|
return i("div", {
|
|
3594
3623
|
style: p.value
|
|
3595
|
-
}, [
|
|
3624
|
+
}, [r.value]);
|
|
3596
3625
|
}
|
|
3597
3626
|
function h() {
|
|
3598
3627
|
switch (n.value) {
|
|
@@ -3602,13 +3631,13 @@ const oe = /* @__PURE__ */ q({
|
|
|
3602
3631
|
return xa(e, n, a, o);
|
|
3603
3632
|
}
|
|
3604
3633
|
}
|
|
3605
|
-
const
|
|
3634
|
+
const g = h(), T = Da(e, t, f, s);
|
|
3606
3635
|
return () => i("div", {
|
|
3607
3636
|
class: "farris-messager"
|
|
3608
3637
|
}, [i("section", {
|
|
3609
3638
|
class: u.value,
|
|
3610
|
-
style:
|
|
3611
|
-
}, [
|
|
3639
|
+
style: c.value
|
|
3640
|
+
}, [g()]), T(), d()]);
|
|
3612
3641
|
}
|
|
3613
3642
|
});
|
|
3614
3643
|
class Y {
|
|
@@ -3616,16 +3645,16 @@ class Y {
|
|
|
3616
3645
|
let n = new me();
|
|
3617
3646
|
const a = Z({
|
|
3618
3647
|
...t
|
|
3619
|
-
}), o = !1, u = a.type === "error" || a.type === "prompt",
|
|
3648
|
+
}), o = !1, u = a.type === "error" || a.type === "prompt", c = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", f = a.acceptCallback || (() => {
|
|
3620
3649
|
}), v = a.rejectCallback || (() => {
|
|
3621
3650
|
});
|
|
3622
|
-
let
|
|
3651
|
+
let s = null;
|
|
3623
3652
|
const p = () => {
|
|
3624
|
-
|
|
3653
|
+
s && (s == null || s.destroy(), n = null);
|
|
3625
3654
|
};
|
|
3626
|
-
|
|
3655
|
+
s = n == null ? void 0 : n.open({
|
|
3627
3656
|
class: "modal-message modal-message-type-info",
|
|
3628
|
-
title:
|
|
3657
|
+
title: c,
|
|
3629
3658
|
showButtons: o,
|
|
3630
3659
|
showHeader: u,
|
|
3631
3660
|
width: a.width || 400,
|
|
@@ -3714,13 +3743,13 @@ const re = /* @__PURE__ */ q({
|
|
|
3714
3743
|
emits: ["change"],
|
|
3715
3744
|
setup(e, t) {
|
|
3716
3745
|
const n = l(e.modelValue), a = l(e.width), o = l(e.height);
|
|
3717
|
-
|
|
3746
|
+
A(() => e.modelValue, (v) => {
|
|
3718
3747
|
n.value = v;
|
|
3719
3748
|
});
|
|
3720
|
-
function u(v,
|
|
3721
|
-
t.emit("change",
|
|
3749
|
+
function u(v, s) {
|
|
3750
|
+
t.emit("change", s), v && v.unmount();
|
|
3722
3751
|
}
|
|
3723
|
-
function
|
|
3752
|
+
function c(v) {
|
|
3724
3753
|
v && v.unmount();
|
|
3725
3754
|
}
|
|
3726
3755
|
function f() {
|
|
@@ -3734,8 +3763,8 @@ const re = /* @__PURE__ */ q({
|
|
|
3734
3763
|
initialState: n,
|
|
3735
3764
|
width: a.value,
|
|
3736
3765
|
height: o.value,
|
|
3737
|
-
onClose: () =>
|
|
3738
|
-
onSubmit: (
|
|
3766
|
+
onClose: () => c(v),
|
|
3767
|
+
onSubmit: (s) => u(v, s)
|
|
3739
3768
|
}, null),
|
|
3740
3769
|
width: 900,
|
|
3741
3770
|
height: 500,
|