@farris/ui-vue 1.2.7 → 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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- 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 +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- 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 +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- 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 +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- 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 +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- 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 +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- 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 +452 -498
- 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 +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- 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 +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- 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 +31630 -31224
- 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/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/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- 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,36 +1,36 @@
|
|
|
1
|
-
import { ref as z, computed as
|
|
1
|
+
import { ref as z, computed as D, defineComponent as $, provide as V, createVNode as j, watch as I, inject as E, onMounted as W } from "vue";
|
|
2
2
|
import { cloneDeep as ee } from "lodash-es";
|
|
3
3
|
import "bignumber.js";
|
|
4
4
|
const q = {}, Y = {};
|
|
5
5
|
function N(t) {
|
|
6
|
-
const { properties: e, title: n } = t, o = Object.keys(e).reduce((
|
|
6
|
+
const { properties: e, title: n } = t, o = Object.keys(e).reduce((r, i) => (r[i] = e[i].type === "object" && e[i].properties ? N(e[i]) : ee(e[i].default), r), {});
|
|
7
7
|
return o.id = `${n}-${Date.now()}`, o;
|
|
8
8
|
}
|
|
9
9
|
function T(t, e = {}) {
|
|
10
10
|
const n = q[t];
|
|
11
11
|
if (n) {
|
|
12
12
|
let o = N(n);
|
|
13
|
-
const
|
|
14
|
-
return o =
|
|
13
|
+
const r = Y[t];
|
|
14
|
+
return o = r ? r({ getSchemaByType: T }, o, e) : o, o;
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
function te(t, e) {
|
|
19
19
|
const n = N(e);
|
|
20
|
-
return Object.keys(t).reduce((o,
|
|
20
|
+
return Object.keys(t).reduce((o, r) => (o[r] && typeof o[r] == "object" ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
|
|
21
21
|
}
|
|
22
22
|
function ne(t, e) {
|
|
23
|
-
return Object.keys(t).filter((o) => t[o] != null).reduce((o,
|
|
24
|
-
if (e.has(
|
|
25
|
-
const i = e.get(
|
|
23
|
+
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
24
|
+
if (e.has(r)) {
|
|
25
|
+
const i = e.get(r);
|
|
26
26
|
if (typeof i == "string")
|
|
27
|
-
o[i] = t[
|
|
27
|
+
o[i] = t[r];
|
|
28
28
|
else {
|
|
29
|
-
const f = i(
|
|
29
|
+
const f = i(r, t[r], t);
|
|
30
30
|
Object.assign(o, f);
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
|
-
o[
|
|
33
|
+
o[r] = t[r];
|
|
34
34
|
return o;
|
|
35
35
|
}, {});
|
|
36
36
|
}
|
|
@@ -43,13 +43,13 @@ function ae(t = {}) {
|
|
|
43
43
|
if (typeof c == "number")
|
|
44
44
|
return v[a].length === c;
|
|
45
45
|
if (typeof c == "object") {
|
|
46
|
-
const P = Object.keys(c)[0],
|
|
46
|
+
const P = Object.keys(c)[0], S = c[P];
|
|
47
47
|
if (P === "not")
|
|
48
|
-
return Number(v[a].length) !== Number(
|
|
48
|
+
return Number(v[a].length) !== Number(S);
|
|
49
49
|
if (P === "moreThan")
|
|
50
|
-
return Number(v[a].length) >= Number(
|
|
50
|
+
return Number(v[a].length) >= Number(S);
|
|
51
51
|
if (P === "lessThan")
|
|
52
|
-
return Number(v[a].length) <= Number(
|
|
52
|
+
return Number(v[a].length) <= Number(S);
|
|
53
53
|
}
|
|
54
54
|
return !1;
|
|
55
55
|
}
|
|
@@ -61,18 +61,18 @@ function ae(t = {}) {
|
|
|
61
61
|
["getProperty", n]
|
|
62
62
|
]);
|
|
63
63
|
Object.keys(t).reduce((a, p) => (a.set(p, t[p]), a), o);
|
|
64
|
-
function
|
|
64
|
+
function r(a, p) {
|
|
65
65
|
const c = a;
|
|
66
66
|
return typeof p == "number" ? [{ target: c, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!p }] : typeof p == "object" ? Object.keys(p).map((v) => {
|
|
67
67
|
if (v === "length")
|
|
68
68
|
return { target: c, operator: "length", param: null, value: p[v] };
|
|
69
|
-
const P = v,
|
|
70
|
-
return { target: c, operator: "getProperty", param: P, value:
|
|
69
|
+
const P = v, S = p[v];
|
|
70
|
+
return { target: c, operator: "getProperty", param: P, value: S };
|
|
71
71
|
}) : [];
|
|
72
72
|
}
|
|
73
73
|
function i(a) {
|
|
74
74
|
return Object.keys(a).reduce((c, v) => {
|
|
75
|
-
const P =
|
|
75
|
+
const P = r(v, a[v]);
|
|
76
76
|
return c.push(...P), c;
|
|
77
77
|
}, []);
|
|
78
78
|
}
|
|
@@ -84,20 +84,20 @@ function ae(t = {}) {
|
|
|
84
84
|
return !1;
|
|
85
85
|
}
|
|
86
86
|
function b(a, p) {
|
|
87
|
-
return i(a).reduce((P,
|
|
87
|
+
return i(a).reduce((P, S) => P && f(S, p), !0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const c = Object.keys(a), v = c.includes("allOf"), P = c.includes("anyOf"),
|
|
89
|
+
function O(a, p) {
|
|
90
|
+
const c = Object.keys(a), v = c.includes("allOf"), P = c.includes("anyOf"), S = v || P, u = (S ? a[S ? v ? "allOf" : "anyOf" : "allOf"] : [a]).map((d) => b(d, p));
|
|
91
91
|
return v ? !u.includes(!1) : u.includes(!0);
|
|
92
92
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
93
|
+
return { parseValueSchema: O };
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const le = {}, re = {};
|
|
96
96
|
ae();
|
|
97
|
-
function X(t, e, n = /* @__PURE__ */ new Map(), o = (f, b,
|
|
98
|
-
return q[e.title] = e, Y[e.title] = o,
|
|
99
|
-
const b = oe(f, e, n),
|
|
100
|
-
return Object.assign(
|
|
97
|
+
function X(t, e, n = /* @__PURE__ */ new Map(), o = (f, b, O) => b, r = {}, i = (f) => f) {
|
|
98
|
+
return q[e.title] = e, Y[e.title] = o, le[e.title] = r, re[e.title] = i, (f = {}) => {
|
|
99
|
+
const b = oe(f, e, n), O = Object.keys(t).reduce((a, p) => (a[p] = t[p].default, a), {});
|
|
100
|
+
return Object.assign(O, b);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function ie(t, e) {
|
|
@@ -209,31 +209,31 @@ const se = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
209
209
|
customClass: { type: String, defaut: "" }
|
|
210
210
|
}, G = X(L, de, _, J, ze);
|
|
211
211
|
function Q(t) {
|
|
212
|
-
const e = z(-1), n = z(-1), o = z(0),
|
|
212
|
+
const e = z(-1), n = z(-1), o = z(0), r = z(0), i = z(!1), f = z(!1), b = D(() => ({
|
|
213
213
|
display: i.value ? "block" : "none",
|
|
214
214
|
left: `${o.value}px`,
|
|
215
215
|
cursor: "e-resize"
|
|
216
|
-
})),
|
|
216
|
+
})), O = D(() => ({
|
|
217
217
|
display: f.value ? "block" : "none",
|
|
218
|
-
top: `${
|
|
218
|
+
top: `${r.value}px`,
|
|
219
219
|
cursor: "n-resize"
|
|
220
|
-
})), a =
|
|
220
|
+
})), a = D(() => ({
|
|
221
221
|
display: f.value || i.value ? "block" : "none"
|
|
222
222
|
}));
|
|
223
223
|
function p(g, u, m, d) {
|
|
224
224
|
const H = t.value;
|
|
225
225
|
if (H) {
|
|
226
|
-
const { left: h, right:
|
|
226
|
+
const { left: h, right: l, width: y } = H.getBoundingClientRect();
|
|
227
227
|
let s = g.clientX - h;
|
|
228
|
-
d === "right" && (s =
|
|
228
|
+
d === "right" && (s = l - g.clientX), s > u && (s = u), s < m && (s = m), d === "right" && (s = y - s), o.value = s;
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
function c(g, u, m, d) {
|
|
232
232
|
const H = t.value;
|
|
233
233
|
if (H) {
|
|
234
|
-
const { top: h, bottom:
|
|
234
|
+
const { top: h, bottom: l, height: y } = H.getBoundingClientRect();
|
|
235
235
|
let s = g.clientY - h;
|
|
236
|
-
d === "bottom" && (s =
|
|
236
|
+
d === "bottom" && (s = l - g.clientY), s > u && (s = u), s < m && (s = m), d === "bottom" && (s = y - s), r.value = s;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
function v() {
|
|
@@ -251,7 +251,7 @@ function Q(t) {
|
|
|
251
251
|
return u = Object.assign(u, { [d]: m }), u;
|
|
252
252
|
}, {}) : null;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function S(g, u) {
|
|
255
255
|
const m = v(), d = P();
|
|
256
256
|
if (m && d) {
|
|
257
257
|
const H = d == null ? void 0 : d.right, h = d == null ? void 0 : d.left;
|
|
@@ -273,28 +273,28 @@ function Q(t) {
|
|
|
273
273
|
}
|
|
274
274
|
return {
|
|
275
275
|
horizontalResizeHandleStyle: b,
|
|
276
|
-
verticalResizeHandleStyle:
|
|
276
|
+
verticalResizeHandleStyle: O,
|
|
277
277
|
resizeOverlayStyle: a,
|
|
278
278
|
showHorizontalResizeHandle: i,
|
|
279
279
|
showVerticalResizeHandle: f,
|
|
280
280
|
horizontalResizeBarPosition: e,
|
|
281
281
|
verticalResizeBarPosition: n,
|
|
282
|
-
verticalResizeHandleOffset:
|
|
282
|
+
verticalResizeHandleOffset: r,
|
|
283
283
|
horizontalResizeHandleOffset: o,
|
|
284
284
|
draggingHorizontalResizeHandle: p,
|
|
285
285
|
draggingVerticalResizeHandle: c,
|
|
286
286
|
getPanelMaxHeight: w,
|
|
287
|
-
getPanelMaxWidth:
|
|
287
|
+
getPanelMaxWidth: S
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
const Ce = ["moz", "ms", "webkit"];
|
|
291
291
|
function we() {
|
|
292
292
|
let t = 0;
|
|
293
293
|
return (e) => {
|
|
294
|
-
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)),
|
|
294
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
|
|
295
295
|
e(n + o);
|
|
296
296
|
}, o);
|
|
297
|
-
return t = n + o,
|
|
297
|
+
return t = n + o, r;
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function Pe() {
|
|
@@ -306,13 +306,13 @@ function Pe() {
|
|
|
306
306
|
return t ? window[`${t}RequestAnimationFrame`] : we();
|
|
307
307
|
}
|
|
308
308
|
Pe();
|
|
309
|
-
function Se(t, e) {
|
|
310
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, l) => (l && (o[l] = !0), o), t), t;
|
|
311
|
-
}
|
|
312
309
|
function Oe(t, e) {
|
|
313
|
-
return ((e == null ? void 0 : e.split("
|
|
314
|
-
|
|
315
|
-
|
|
310
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
|
|
311
|
+
}
|
|
312
|
+
function Se(t, e) {
|
|
313
|
+
return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
|
|
314
|
+
if (r) {
|
|
315
|
+
const i = r.split(":");
|
|
316
316
|
o[i[0]] = i[1];
|
|
317
317
|
}
|
|
318
318
|
return o;
|
|
@@ -324,32 +324,32 @@ const R = /* @__PURE__ */ $({
|
|
|
324
324
|
emits: [],
|
|
325
325
|
setup(t, e) {
|
|
326
326
|
const n = z(), o = Q(n), {
|
|
327
|
-
horizontalResizeHandleStyle:
|
|
327
|
+
horizontalResizeHandleStyle: r,
|
|
328
328
|
verticalResizeHandleStyle: i,
|
|
329
329
|
resizeOverlayStyle: f
|
|
330
330
|
} = o;
|
|
331
331
|
V("layout", {
|
|
332
332
|
useResizeHandleComposition: o
|
|
333
333
|
});
|
|
334
|
-
const b =
|
|
334
|
+
const b = D(() => Oe({
|
|
335
335
|
"f-layout": !0
|
|
336
|
-
}, t == null ? void 0 : t.customClass)),
|
|
337
|
-
return () =>
|
|
336
|
+
}, t == null ? void 0 : t.customClass)), O = D(() => Se({}, t == null ? void 0 : t.customStyle));
|
|
337
|
+
return () => j("div", {
|
|
338
338
|
class: b.value,
|
|
339
|
-
style:
|
|
339
|
+
style: O.value,
|
|
340
340
|
ref: n
|
|
341
|
-
}, [e.slots.default && e.slots.default(),
|
|
341
|
+
}, [e.slots.default && e.slots.default(), j("div", {
|
|
342
342
|
class: "f-layout-resize-overlay",
|
|
343
343
|
style: f.value
|
|
344
|
-
}, null),
|
|
344
|
+
}, null), j("div", {
|
|
345
345
|
class: "f-layout-horizontal-resize-proxy",
|
|
346
|
-
style:
|
|
347
|
-
}, null),
|
|
346
|
+
style: r.value
|
|
347
|
+
}, null), j("div", {
|
|
348
348
|
class: "f-layout-vertical-resize-proxy",
|
|
349
349
|
style: i.value
|
|
350
350
|
}, null)]);
|
|
351
351
|
}
|
|
352
|
-
}), He = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/layout-pane.schema.json",
|
|
352
|
+
}), He = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-design.gitee.io/layout-pane.schema.json", je = "layout-pane", Be = "A Farris Container Component", De = "object", Re = {
|
|
353
353
|
id: {
|
|
354
354
|
description: "The unique identifier for a layout pane",
|
|
355
355
|
type: "string"
|
|
@@ -415,9 +415,9 @@ const R = /* @__PURE__ */ $({
|
|
|
415
415
|
}, Ae = {
|
|
416
416
|
$schema: He,
|
|
417
417
|
$id: Me,
|
|
418
|
-
title:
|
|
419
|
-
description:
|
|
420
|
-
type:
|
|
418
|
+
title: je,
|
|
419
|
+
description: Be,
|
|
420
|
+
type: De,
|
|
421
421
|
properties: Re
|
|
422
422
|
}, Ee = "layout-pane", $e = "A Farris Container Component", Te = "object", ke = {
|
|
423
423
|
basic: {
|
|
@@ -539,49 +539,49 @@ const R = /* @__PURE__ */ $({
|
|
|
539
539
|
/** 面板最小高度 */
|
|
540
540
|
minHeight: { type: Number, default: 100 }
|
|
541
541
|
}, U = X(F, Ae, _, J, Ne);
|
|
542
|
-
function Z(t, e, n, o,
|
|
542
|
+
function Z(t, e, n, o, r) {
|
|
543
543
|
const {
|
|
544
544
|
horizontalResizeBarPosition: i,
|
|
545
545
|
horizontalResizeHandleOffset: f,
|
|
546
546
|
showHorizontalResizeHandle: b,
|
|
547
|
-
showVerticalResizeHandle:
|
|
547
|
+
showVerticalResizeHandle: O,
|
|
548
548
|
verticalResizeBarPosition: a,
|
|
549
549
|
verticalResizeHandleOffset: p,
|
|
550
550
|
draggingHorizontalResizeHandle: c,
|
|
551
551
|
draggingVerticalResizeHandle: v,
|
|
552
552
|
getPanelMaxHeight: P,
|
|
553
|
-
getPanelMaxWidth:
|
|
554
|
-
} =
|
|
553
|
+
getPanelMaxWidth: S
|
|
554
|
+
} = r;
|
|
555
555
|
let w = "", g, u, m;
|
|
556
|
-
function d(
|
|
556
|
+
function d(l) {
|
|
557
557
|
if ((w === "left" || w === "right") && u) {
|
|
558
|
-
const { left: y } = u.getBoundingClientRect(), { width: s } = g.getBoundingClientRect(),
|
|
559
|
-
let C = w === "left" ? (s || 0) + (
|
|
558
|
+
const { left: y } = u.getBoundingClientRect(), { width: s } = g.getBoundingClientRect(), B = l.clientX - y;
|
|
559
|
+
let C = w === "left" ? (s || 0) + (B - i.value) : (s || 0) - (B - i.value);
|
|
560
560
|
C = n.value > 0 ? Math.max(n.value, C) : C;
|
|
561
|
-
const M =
|
|
561
|
+
const M = S(w, n.value);
|
|
562
562
|
M != null && (C = M > C ? C : M), t.value = C;
|
|
563
563
|
}
|
|
564
564
|
if ((w === "top" || w === "bottom") && u) {
|
|
565
|
-
const { top: y } = u.getBoundingClientRect(), { height: s } = g.getBoundingClientRect(),
|
|
566
|
-
let C = w === "top" ? (s || 0) + (
|
|
565
|
+
const { top: y } = u.getBoundingClientRect(), { height: s } = g.getBoundingClientRect(), B = l.clientY - y;
|
|
566
|
+
let C = w === "top" ? (s || 0) + (B - a.value) : (s || 0) - (B - a.value);
|
|
567
567
|
C = o.value > 0 ? Math.max(o.value, C) : C;
|
|
568
568
|
const M = P(w, o.value);
|
|
569
569
|
M != null && (C = M > C ? C : M), e.value = C;
|
|
570
570
|
}
|
|
571
|
-
f.value = 0, p.value = 0, i.value = -1, a.value = -1, b.value = !1,
|
|
571
|
+
f.value = 0, p.value = 0, i.value = -1, a.value = -1, b.value = !1, O.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", d), document.body.style.userSelect = "", w = "", g = null, u = null;
|
|
572
572
|
}
|
|
573
|
-
function H(
|
|
574
|
-
if (w = y, g = s, b.value = !0, u =
|
|
575
|
-
const { left: C } = u.getBoundingClientRect(), M =
|
|
573
|
+
function H(l, y, s) {
|
|
574
|
+
if (w = y, g = s, b.value = !0, u = l.composedPath().find((C) => (C.className || "").split(" ")[0] === "f-layout"), u) {
|
|
575
|
+
const { left: C } = u.getBoundingClientRect(), M = l.clientX - C;
|
|
576
576
|
f.value = M, i.value = M;
|
|
577
|
-
const A =
|
|
577
|
+
const A = S(w, n.value) || 0;
|
|
578
578
|
m = (x) => c(x, A, n.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function h(
|
|
582
|
-
if (w = y, g = s,
|
|
581
|
+
function h(l, y, s) {
|
|
582
|
+
if (w = y, g = s, O.value = !0, u = l.composedPath().find((C) => (C.className || "").split(" ")[0] === "f-layout"), u) {
|
|
583
583
|
const { top: C } = u.getBoundingClientRect();
|
|
584
|
-
p.value =
|
|
584
|
+
p.value = l.clientY - C, a.value = l.clientY - C;
|
|
585
585
|
const M = P(w, o.value) || 0;
|
|
586
586
|
m = (A) => v(A, M, o.value, w), document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.body.style.userSelect = "none";
|
|
587
587
|
}
|
|
@@ -593,42 +593,42 @@ const k = /* @__PURE__ */ $({
|
|
|
593
593
|
props: F,
|
|
594
594
|
emits: [],
|
|
595
595
|
setup(t, e) {
|
|
596
|
-
const n = z(t.minHeight <= 0 ? 100 : t.minHeight), o = z(t.minWidth <= 0 ? 100 : t.minWidth),
|
|
596
|
+
const n = z(t.minHeight <= 0 ? 100 : t.minHeight), o = z(t.minWidth <= 0 ? 100 : t.minWidth), r = z(t.width <= 0 ? 100 : t.width), i = z(t.height <= 100 ? 100 : t.height), f = z(Math.max(n.value, i.value)), b = z(Math.max(o.value, r.value)), O = z(), a = z(t.position), p = z(t.resizable);
|
|
597
597
|
I(() => t.resizable, (h) => {
|
|
598
598
|
p.value = h;
|
|
599
599
|
});
|
|
600
600
|
const c = E("layout"), {
|
|
601
601
|
useResizeHandleComposition: v
|
|
602
602
|
} = c, P = Z(b, f, o, n, v), {
|
|
603
|
-
onClickHorizontalResizeBar:
|
|
603
|
+
onClickHorizontalResizeBar: S,
|
|
604
604
|
onClickVerticalResizeBar: w
|
|
605
|
-
} = P, g =
|
|
605
|
+
} = P, g = D(() => ({
|
|
606
606
|
"f-layout-resize-bar": !0,
|
|
607
607
|
"f-layout-resize-bar-e": a.value === "left",
|
|
608
608
|
"f-layout-resize-bar-n": a.value === "bottom",
|
|
609
609
|
"f-layout-resize-bar-s": a.value === "top",
|
|
610
610
|
"f-layout-resize-bar-w": a.value === "right"
|
|
611
|
-
})), u =
|
|
612
|
-
function m(h,
|
|
613
|
-
(
|
|
611
|
+
})), u = D(() => a.value !== "center" && p.value);
|
|
612
|
+
function m(h, l) {
|
|
613
|
+
(l === "left" || l === "right") && S(h, l, O.value), (l === "top" || l === "bottom") && w(h, l, O.value);
|
|
614
614
|
}
|
|
615
|
-
const d =
|
|
615
|
+
const d = D(() => {
|
|
616
616
|
const h = {
|
|
617
617
|
"f-layout-pane": !0,
|
|
618
618
|
"f-page-content-nav": a.value === "left" || a.value === "right",
|
|
619
619
|
"f-page-content-main": a.value === "center"
|
|
620
620
|
};
|
|
621
|
-
return t.customClass && String(t.customClass).split(" ").reduce((
|
|
622
|
-
}), H =
|
|
621
|
+
return t.customClass && String(t.customClass).split(" ").reduce((l, y) => (l[y] = !0, l), h), h;
|
|
622
|
+
}), H = D(() => {
|
|
623
623
|
const h = {};
|
|
624
624
|
return (b.value && a.value === "left" || a.value === "right") && (h.width = `${b.value}px`), (f.value && a.value === "bottom" || a.value === "top") && (h.height = `${f.value}px`), t.visible || (h.display = "none"), h;
|
|
625
625
|
});
|
|
626
|
-
return () =>
|
|
627
|
-
ref:
|
|
626
|
+
return () => j("div", {
|
|
627
|
+
ref: O,
|
|
628
628
|
class: d.value,
|
|
629
629
|
style: H.value,
|
|
630
630
|
"data-position": a.value
|
|
631
|
-
}, [e.slots.default && e.slots.default(), u.value &&
|
|
631
|
+
}, [e.slots.default && e.slots.default(), u.value && j("span", {
|
|
632
632
|
class: g.value,
|
|
633
633
|
onMousedown: (h) => m(h, a.value)
|
|
634
634
|
}, null)]);
|
|
@@ -646,11 +646,11 @@ function K(t, e, n) {
|
|
|
646
646
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
647
647
|
}
|
|
648
648
|
o();
|
|
649
|
-
const
|
|
649
|
+
const r = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", f = z();
|
|
650
650
|
function b() {
|
|
651
651
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function O() {
|
|
654
654
|
return !1;
|
|
655
655
|
}
|
|
656
656
|
function a() {
|
|
@@ -659,65 +659,65 @@ function K(t, e, n) {
|
|
|
659
659
|
function p() {
|
|
660
660
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
661
661
|
}
|
|
662
|
-
function c(
|
|
663
|
-
if (!
|
|
662
|
+
function c(l) {
|
|
663
|
+
if (!l || !l.value)
|
|
664
664
|
return null;
|
|
665
|
-
if (
|
|
666
|
-
return
|
|
667
|
-
const y = z(
|
|
665
|
+
if (l.value.schema && l.value.schema.type === "component")
|
|
666
|
+
return l.value;
|
|
667
|
+
const y = z(l == null ? void 0 : l.value.parent), s = c(y);
|
|
668
668
|
return s || null;
|
|
669
669
|
}
|
|
670
|
-
function v(
|
|
671
|
-
const { componentInstance: y, designerItemElementRef: s } =
|
|
672
|
-
return !y || !y.value ? null : y.value.canMove ? s : v(
|
|
670
|
+
function v(l = e) {
|
|
671
|
+
const { componentInstance: y, designerItemElementRef: s } = l;
|
|
672
|
+
return !y || !y.value ? null : y.value.canMove ? s : v(l.parent);
|
|
673
673
|
}
|
|
674
|
-
function P(
|
|
675
|
-
return !!n && n.canAccepts(
|
|
674
|
+
function P(l) {
|
|
675
|
+
return !!n && n.canAccepts(l);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function S() {
|
|
678
678
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
679
679
|
}
|
|
680
680
|
function w() {
|
|
681
681
|
}
|
|
682
|
-
function g(
|
|
682
|
+
function g(l, y) {
|
|
683
683
|
y && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(y);
|
|
684
684
|
}
|
|
685
|
-
function u(
|
|
686
|
-
const { componentType: y } =
|
|
687
|
-
let s = T(y,
|
|
688
|
-
n && n.onResolveNewComponentSchema && (s = n.onResolveNewComponentSchema(
|
|
689
|
-
const
|
|
690
|
-
return s && !s.id && s.type === y && (s.id = `${
|
|
685
|
+
function u(l) {
|
|
686
|
+
const { componentType: y } = l;
|
|
687
|
+
let s = T(y, l);
|
|
688
|
+
n && n.onResolveNewComponentSchema && (s = n.onResolveNewComponentSchema(l, s));
|
|
689
|
+
const B = y.toLowerCase().replace("-", "_");
|
|
690
|
+
return s && !s.id && s.type === y && (s.id = `${B}_${Math.random().toString().slice(2, 6)}`), s;
|
|
691
691
|
}
|
|
692
|
-
function m(
|
|
693
|
-
const s = String(
|
|
692
|
+
function m(l, y) {
|
|
693
|
+
const s = String(l.getAttribute("data-controltype")), B = l.getAttribute("data-feature"), C = B ? JSON.parse(B) : {};
|
|
694
694
|
C.parentComponentInstance = f.value;
|
|
695
695
|
let M = T(s, C);
|
|
696
|
-
n && n.onAcceptNewChildElement && (M = n.onAcceptNewChildElement(
|
|
696
|
+
n && n.onAcceptNewChildElement && (M = n.onAcceptNewChildElement(l, y, M));
|
|
697
697
|
const A = s.toLowerCase().replace("-", "_");
|
|
698
698
|
return M && !M.id && M.type === s && (M.id = `${A}_${Math.random().toString().slice(2, 6)}`), M;
|
|
699
699
|
}
|
|
700
|
-
function d(
|
|
700
|
+
function d(l) {
|
|
701
701
|
}
|
|
702
|
-
function H(...
|
|
702
|
+
function H(...l) {
|
|
703
703
|
if (n && n.getPropsConfig)
|
|
704
|
-
return n.getPropsConfig(...
|
|
704
|
+
return n.getPropsConfig(...l);
|
|
705
705
|
}
|
|
706
706
|
return f.value = {
|
|
707
707
|
canMove: b(),
|
|
708
|
-
canSelectParent:
|
|
708
|
+
canSelectParent: O(),
|
|
709
709
|
canDelete: a(),
|
|
710
710
|
canNested: !p(),
|
|
711
711
|
contents: e == null ? void 0 : e.schema.contents,
|
|
712
712
|
elementRef: t,
|
|
713
713
|
parent: (h = e == null ? void 0 : e.parent) == null ? void 0 : h.componentInstance,
|
|
714
714
|
schema: e == null ? void 0 : e.schema,
|
|
715
|
-
styles:
|
|
715
|
+
styles: r,
|
|
716
716
|
designerClass: i,
|
|
717
717
|
canAccepts: P,
|
|
718
718
|
getBelongedComponentInstance: c,
|
|
719
719
|
getDraggableDesignItemElement: v,
|
|
720
|
-
getDraggingDisplayText:
|
|
720
|
+
getDraggingDisplayText: S,
|
|
721
721
|
getPropConfig: H,
|
|
722
722
|
getDragScopeElement: w,
|
|
723
723
|
onAcceptMovedChildElement: g,
|
|
@@ -735,38 +735,38 @@ const Fe = /* @__PURE__ */ $({
|
|
|
735
735
|
emits: [],
|
|
736
736
|
setup(t, e) {
|
|
737
737
|
var p;
|
|
738
|
-
const n = z(), o = E("design-item-context"),
|
|
738
|
+
const n = z(), o = E("design-item-context"), r = Le(o.schema, (p = o.parent) == null ? void 0 : p.schema), i = K(n, o, r);
|
|
739
739
|
i.value.canNested = !1;
|
|
740
740
|
const f = Q(n), {
|
|
741
741
|
horizontalResizeHandleStyle: b,
|
|
742
|
-
verticalResizeHandleStyle:
|
|
742
|
+
verticalResizeHandleStyle: O,
|
|
743
743
|
resizeOverlayStyle: a
|
|
744
744
|
} = f;
|
|
745
745
|
return V("layout", {
|
|
746
746
|
useResizeHandleComposition: f
|
|
747
747
|
}), W(() => {
|
|
748
748
|
n.value.componentInstance = i;
|
|
749
|
-
}), e.expose(i.value), () =>
|
|
749
|
+
}), e.expose(i.value), () => j("div", {
|
|
750
750
|
class: "f-layout f-page-content",
|
|
751
751
|
ref: n
|
|
752
|
-
}, [e.slots.default && e.slots.default(),
|
|
752
|
+
}, [e.slots.default && e.slots.default(), j("div", {
|
|
753
753
|
class: "f-layout-resize-overlay",
|
|
754
754
|
style: a.value
|
|
755
|
-
}, null),
|
|
755
|
+
}, null), j("div", {
|
|
756
756
|
class: "f-layout-horizontal-resize-proxy",
|
|
757
757
|
style: b.value
|
|
758
|
-
}, null),
|
|
758
|
+
}, null), j("div", {
|
|
759
759
|
class: "f-layout-vertical-resize-proxy",
|
|
760
|
-
style:
|
|
760
|
+
style: O.value
|
|
761
761
|
}, null)]);
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
function Ve() {
|
|
765
765
|
function t(e) {
|
|
766
|
-
var
|
|
766
|
+
var r, i;
|
|
767
767
|
if (!e)
|
|
768
768
|
return !1;
|
|
769
|
-
const n = ((
|
|
769
|
+
const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
|
|
770
770
|
if (!n)
|
|
771
771
|
return !1;
|
|
772
772
|
const o = (i = n.schema.appearance) == null ? void 0 : i.class;
|
|
@@ -788,11 +788,11 @@ function We(t, e) {
|
|
|
788
788
|
function o(i, f, b) {
|
|
789
789
|
return b;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function r() {
|
|
792
792
|
const i = ["f-layout-pane"];
|
|
793
793
|
return (t.position === "left" || t.position === "right") && i.push("f-page-content-nav"), t.position === "center" && i.push("f-page-content-main"), i.join(" ");
|
|
794
794
|
}
|
|
795
|
-
return { canAccepts: n, getDesignerClass:
|
|
795
|
+
return { canAccepts: n, getDesignerClass: r, onAcceptNewChildElement: o };
|
|
796
796
|
}
|
|
797
797
|
const qe = /* @__PURE__ */ $({
|
|
798
798
|
name: "FLayoutPaneDesign",
|
|
@@ -800,49 +800,49 @@ const qe = /* @__PURE__ */ $({
|
|
|
800
800
|
emits: [],
|
|
801
801
|
setup(t, e) {
|
|
802
802
|
var h;
|
|
803
|
-
const n = z(), o = z(),
|
|
803
|
+
const n = z(), o = z(), r = E("design-item-context"), i = We(r.schema, (h = r.parent) == null ? void 0 : h.schema), f = K(o, r, i);
|
|
804
804
|
f.value.canNested = !1, f.value.canMove = !1, f.value.canDelete = !1, W(() => {
|
|
805
805
|
o.value.componentInstance = f;
|
|
806
806
|
}), e.expose(f.value);
|
|
807
|
-
const b = z(Math.max(t.minHeight, t.height)),
|
|
807
|
+
const b = z(Math.max(t.minHeight, t.height)), O = z(Math.max(t.minWidth, t.width)), a = z(t.minHeight), p = z(t.minWidth), c = z(t.position), v = E("layout"), {
|
|
808
808
|
useResizeHandleComposition: P
|
|
809
|
-
} = v,
|
|
809
|
+
} = v, S = Z(O, b, p, a, P), {
|
|
810
810
|
onClickHorizontalResizeBar: w,
|
|
811
811
|
onClickVerticalResizeBar: g
|
|
812
|
-
} =
|
|
812
|
+
} = S, u = D(() => ({
|
|
813
813
|
"f-layout-resize-bar": !0,
|
|
814
814
|
"f-layout-resize-bar-e": c.value === "left",
|
|
815
815
|
"f-layout-resize-bar-n": c.value === "bottom",
|
|
816
816
|
"f-layout-resize-bar-s": c.value === "top",
|
|
817
817
|
"f-layout-resize-bar-w": c.value === "right"
|
|
818
818
|
}));
|
|
819
|
-
function m(
|
|
820
|
-
(y === "left" || y === "right") && w(
|
|
819
|
+
function m(l, y) {
|
|
820
|
+
(y === "left" || y === "right") && w(l, y, n.value), (y === "top" || y === "bottom") && g(l, y, n.value);
|
|
821
821
|
}
|
|
822
|
-
const d =
|
|
823
|
-
const
|
|
822
|
+
const d = D(() => {
|
|
823
|
+
const l = {
|
|
824
824
|
"f-layout-pane": !0,
|
|
825
825
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
826
826
|
"f-page-content-main": c.value === "center"
|
|
827
827
|
};
|
|
828
|
-
return t.customClass && String(t.customClass).split(" ").reduce((y, s) => (y[s] = !0, y),
|
|
829
|
-
}), H =
|
|
830
|
-
const
|
|
828
|
+
return t.customClass && String(t.customClass).split(" ").reduce((y, s) => (y[s] = !0, y), l), l;
|
|
829
|
+
}), H = D(() => {
|
|
830
|
+
const l = {
|
|
831
831
|
flex: "1"
|
|
832
832
|
};
|
|
833
|
-
return (
|
|
833
|
+
return (O.value && c.value === "left" || c.value === "right") && (l.width = `${O.value}px`), (b.value && c.value === "bottom" || c.value === "top") && (l.height = `${b.value}px`), l;
|
|
834
834
|
});
|
|
835
|
-
return () =>
|
|
835
|
+
return () => j("div", {
|
|
836
836
|
ref: n,
|
|
837
837
|
class: d.value,
|
|
838
838
|
style: H.value
|
|
839
|
-
}, [
|
|
839
|
+
}, [j("div", {
|
|
840
840
|
ref: o,
|
|
841
841
|
class: "drag-container",
|
|
842
|
-
"data-dragref": `${
|
|
843
|
-
}, [e.slots.default && e.slots.default()]),
|
|
842
|
+
"data-dragref": `${r.schema.id}-container`
|
|
843
|
+
}, [e.slots.default && e.slots.default()]), j("span", {
|
|
844
844
|
class: u.value,
|
|
845
|
-
onMousedown: (
|
|
845
|
+
onMousedown: (l) => m(l, c.value)
|
|
846
846
|
}, null)]);
|
|
847
847
|
}
|
|
848
848
|
});
|