hldesigner 0.0.169 → 0.0.171
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/{_pdf-9a36c0ea.js → _pdf-6a3901a6.js} +14 -14
- package/{_share_image-bc3e51db.js → _share_image-9f47efb1.js} +2 -2
- package/_share_size.vue_vue_type_script_setup_true_lang-1c0f84b7.js +76 -0
- package/{_txt-704a2e25.js → _txt-df9aea5e.js} +14 -14
- package/{_unsupport-7994328b.js → _unsupport-17daf941.js} +1 -1
- package/{affix-widget-a0bd6c96.js → affix-widget-64bcbf56.js} +19 -19
- package/{alert-widget-6483b076.js → alert-widget-21e27e57.js} +19 -19
- package/{anchor-widget-ccddbae9.js → anchor-widget-d977d9d7.js} +16 -16
- package/{auto-complete-widget-87e4df83.js → auto-complete-widget-6201faf1.js} +19 -19
- package/{avatar-widget-970b4840.js → avatar-widget-c642bf9f.js} +19 -19
- package/{backtop-widget-84248078.js → backtop-widget-6608dc47.js} +19 -19
- package/{badge-widget-2efa7e42.js → badge-widget-3bea9b03.js} +19 -19
- package/{barcode-widget-8ab0b966.js → barcode-widget-bae6d5f3.js} +16 -16
- package/{baseImp-89aa0fb0.js → baseImp-0bb4caf0.js} +8 -8
- package/{breadcrumb-widget-75aa5a8f.js → breadcrumb-widget-cafdb279.js} +16 -16
- package/{button-widget-3f73af9d.js → button-widget-f489f5af.js} +19 -19
- package/{cache-widget-170e4b2f.js → cache-widget-46f00969.js} +18 -18
- package/{card-widget-c684bb38.js → card-widget-39cc4568.js} +17 -17
- package/{carousel-widget-c4d1aac8.js → carousel-widget-bca813c3.js} +17 -17
- package/{cascader-widget-0295e400.js → cascader-widget-dd74bb6f.js} +18 -18
- package/{chart-widget-419a979d.js → chart-widget-5a21d40a.js} +16 -16
- package/{checkbox-widget-ae1591ea.js → checkbox-widget-1c887391.js} +18 -18
- package/{collapse-widget-38df5768.js → collapse-widget-49cc3c1f.js} +17 -17
- package/{color-picker-widget-9c71f53f.js → color-picker-widget-db625ad6.js} +18 -18
- package/common-editor-de05c14d.js +26 -0
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-28dcd1e4.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-302a9a97.js} +2 -2
- package/{configItem-553d3fff.js → configItem-9979da42.js} +35 -35
- package/{cont-cell-widget-08e50876.js → cont-cell-widget-8faaaa20.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-eecbc3ee.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-53d03866.js} +5 -5
- package/{cont-widget-3e8c6ccc.js → cont-widget-b899d004.js} +5 -5
- package/{content-wrapper-ae7a6d5e.js → content-wrapper-c68c9a08.js} +6 -6
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-56c337c9.js → content-wrapper.vue_vue_type_script_setup_true_lang-7744c194.js} +3 -3
- package/{css-editor-5e52b943.js → css-editor-29fd8154.js} +110 -109
- package/cssIndex-02a77ff8.js +184 -0
- package/{customClass-editor-a37126df.js → customClass-editor-b5ea61a0.js} +15 -15
- package/{date-picker-range-widget-0f60fb2f.js → date-picker-range-widget-fb5f40da.js} +18 -18
- package/{date-picker-widget-dac078dc.js → date-picker-widget-f512181c.js} +18 -18
- package/default-slot-widget-e8f17d02.js +29 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-2954f3b8.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-197f0d6f.js} +7 -7
- package/{descriptions-widget-15b19d00.js → descriptions-widget-2dfe2278.js} +17 -17
- package/designer.es.js +33 -33
- package/designer.umd.js +284 -284
- package/{dialog-7911c683.js → dialog-32c05d2c.js} +2 -2
- package/{dialog-widget-8b3b8ce7.js → dialog-widget-3e971b6f.js} +18 -18
- package/{divider-widget-4880f6b5.js → divider-widget-21f2c9b8.js} +19 -19
- package/{drag-wrapper-7220907f.js → drag-wrapper-01d7b1e2.js} +6 -6
- package/{drawer-widget-308327e8.js → drawer-widget-7819a515.js} +18 -18
- package/{dropdown-widget-7804f89d.js → dropdown-widget-2f505daa.js} +17 -17
- package/{editor-wrapper-0d9f8651.js → editor-wrapper-d6561c53.js} +11 -11
- package/{emitter-06eac599.js → emitter-21ef82ac.js} +1 -1
- package/{empty-widget-0e2d0df3.js → empty-widget-e13a40a2.js} +19 -19
- package/{enum-type-11580589.js → enum-type-ac304504.js} +1 -1
- package/{enum-type-47be887b.js → enum-type-bd753230.js} +1 -0
- package/{expression-07f162f0.js → expression-f94b1543.js} +1 -1
- package/feedback-widget-30fab14c.js +30 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2312a563.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-11346588.js} +5 -5
- package/{field-editor-f384127a.js → field-editor-1709dab1.js} +14 -14
- package/{fieldobj-6f4ef217.js → fieldobj-6af1e5bf.js} +1 -1
- package/{file-upload-widget-a768aaee.js → file-upload-widget-4bac6724.js} +23 -23
- package/{form-item-wrapper-39a96820.js → form-item-wrapper-bc49eaa1.js} +12 -12
- package/{form-widget-17aa202b.js → form-widget-21f30b79.js} +11 -11
- package/{grid-col-widget-ffac39f0.js → grid-col-widget-adb2e5d4.js} +1 -1
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ac972087.js +41 -0
- package/{grid-widget-ee40dcf1.js → grid-widget-080d2896.js} +5 -5
- package/{html-text-widget-a19246ba.js → html-text-widget-ee957738.js} +17 -17
- package/{icon-widget-f24b2888.js → icon-widget-e165a88a.js} +16 -16
- package/{iframe-widget-2d72eff5.js → iframe-widget-a8feab7b.js} +16 -16
- package/{image-editor-f26cab4d.js → image-editor-cecfd8b3.js} +15 -15
- package/{image-widget-f3ed5201.js → image-widget-92c841b4.js} +16 -16
- package/{index-2a52bfdd.js → index-2201504d.js} +36 -36
- package/{index-f22fee75.js → index-2fd9fd35.js} +8 -8
- package/{index-300d230f.js → index-53e13cc7.js} +8 -8
- package/{index-04a336b6.js → index-596decf4.js} +18 -17
- package/{index-a9dba97f.js → index-59b18dd1.js} +7 -7
- package/{index-16a7db6b.js → index-60e383ad.js} +7 -7
- package/{index-7a32407c.js → index-798dd2df.js} +11 -11
- package/{index-d924658d.js → index-867bb89e.js} +6 -6
- package/{index-3794ef1a.js → index-89975875.js} +10 -10
- package/{index-a55d34e0.js → index-8db4f0b7.js} +38 -38
- package/{index-cea0c990.js → index-9bf285eb.js} +14 -14
- package/{index-d335f459.js → index-a29f53c7.js} +16 -16
- package/{index-4d9a2648.js → index-b0a75e4a.js} +5 -5
- package/{index-4fc5329b.js → index-b1170a9c.js} +3 -3
- package/{index-6b20f52e.js → index-b78a315c.js} +36 -36
- package/{index-df4c9ef2.js → index-ba3c572d.js} +5 -5
- package/{index-46399636.js → index-bcd39331.js} +5 -5
- package/{index-65441b04.js → index-c9cc7b0c.js} +5 -5
- package/{index-28919554.js → index-ce2401bd.js} +9 -9
- package/{index-feab7b92.js → index-ce343297.js} +1 -1
- package/{index-c8784c90.js → index-cff83b18.js} +1 -1
- package/{index-92ffe642.js → index-d450b82c.js} +1 -1
- package/{index-d81b8ad1.js → index-e15275c3.js} +7 -7
- package/{index-9663058a.js → index-f762e11c.js} +10 -10
- package/{input-number-widget-a1f32860.js → input-number-widget-4d8ffe85.js} +18 -18
- package/{input-widget-2a492bc1.js → input-widget-a604030f.js} +19 -19
- package/{install-designer-a5bbb00d.js → install-designer-a9cd4727.js} +27 -27
- package/{item-d327ea29.js → item-284c9f6f.js} +2 -2
- package/{itemDetail-6e627632.js → itemDetail-6e8db3b7.js} +2 -2
- package/{label-wrapper-aab86ae6.js → label-wrapper-51609c14.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-00ee9f1f.js → label-wrapper.vue_vue_type_style_index_0_lang-b14c0192.js} +3 -3
- package/{link-widget-d66694e7.js → link-widget-2d4e3b58.js} +19 -19
- package/{ltable-col-widget-b06170e5.js → ltable-col-widget-cefb6bd5.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-eb82d6a8.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b8fb820c.js} +9 -9
- package/{ltable-widget-a819fded.js → ltable-widget-92d41a4d.js} +5 -5
- package/{menu-widget-616e60c5.js → menu-widget-c37acf39.js} +17 -17
- package/{model-widget-7c1150b3.js → model-widget-8f69e223.js} +16 -16
- package/{multirow-6a1f983a.js → multirow-63cda10c.js} +6 -6
- package/{multirow-widget-d05a079c.js → multirow-widget-bf9f7e01.js} +18 -18
- package/{name-editor-245fd57e.js → name-editor-2c7c7318.js} +14 -14
- package/{optionItem-f31150f7.js → optionItem-50d41373.js} +175 -171
- package/package.json +1 -1
- package/{pagination-widget-4f1e254a.js → pagination-widget-2760bd40.js} +16 -16
- package/{picture-upload-widget-2131aab5.js → picture-upload-widget-5e9f7e7e.js} +19 -19
- package/{progress-widget-496d1d1b.js → progress-widget-fddc06db.js} +17 -17
- package/{property-base-190cbdac.js → property-base-f0d677ee.js} +3 -3
- package/{propresult-0adda2f7.js → propresult-4d35be3b.js} +1 -1
- package/{qrcode-widget-a509f1ca.js → qrcode-widget-153ce193.js} +16 -16
- package/{radio-widget-7131ff56.js → radio-widget-af4c577e.js} +18 -18
- package/{range-widget-cee8d4c3.js → range-widget-0e30d4fc.js} +19 -19
- package/{rate-widget-2a61768b.js → rate-widget-501ef996.js} +18 -18
- package/{reg-editor.vue_vue_type_script_setup_true_lang-a180daae.js → reg-editor.vue_vue_type_script_setup_true_lang-acc38de0.js} +3 -3
- package/{result-widget-3c666ac6.js → result-widget-58763cb1.js} +17 -17
- package/{rich-editor-widget-0538578d.js → rich-editor-widget-46c4fda6.js} +18 -18
- package/{router-widget-599f2236.js → router-widget-3fa49c2c.js} +16 -16
- package/{schemaData-aec8dcb4.js → schemaData-15070e90.js} +4 -4
- package/{select-widget-43b37436.js → select-widget-3f1f285c.js} +18 -18
- package/{sfc-edcb2261.js → sfc-5169d8e0.js} +10 -10
- package/{sfcview-be427eb2.js → sfcview-23bac484.js} +8 -8
- package/{share-editor-41edac48.js → share-editor-0c763b5a.js} +4 -4
- package/{share-event-5d45d16e.js → share-event-8058bcca.js} +2 -2
- package/{share-field-b1fad9ce.js → share-field-639cbbc5.js} +8 -8
- package/{share-file-bc002b8c.js → share-file-6c20d2a6.js} +5 -5
- package/{size-editor-c529e35a.js → size-editor-a4522fb8.js} +19 -18
- package/{slider-widget-5ccf8c1f.js → slider-widget-1b556f75.js} +18 -18
- package/{slot-c01d5cc8.js → slot-b5de9db6.js} +4 -4
- package/{static-text-widget-267f0608.js → static-text-widget-a7e43b12.js} +17 -17
- package/{steps-widget-38f364e0.js → steps-widget-c96d73bc.js} +16 -16
- package/{subMenu-widget-9664db1a.js → subMenu-widget-4a877740.js} +7 -7
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-4739c591.js → subMenu-widget.vue_vue_type_script_setup_true_lang-d1519ee9.js} +3 -3
- package/{switch-widget-edf04bc6.js → switch-widget-93cd812c.js} +18 -18
- package/{tab-pane-widget-811666f2.js → tab-pane-widget-e788dcd3.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-a16390ec.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7887c8f7.js} +9 -9
- package/table-col-widget-e8748655.js +26 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8c9c064c.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8d782c08.js} +5 -5
- package/table-widget-f872a7f8.js +230 -0
- package/{tabs-widget-ffe4e01a.js → tabs-widget-9415f449.js} +7 -7
- package/{tag-widget-9a9048ed.js → tag-widget-f06db3bd.js} +19 -19
- package/{target-code-aa65837c.js → target-code-f086f044.js} +7 -7
- package/{target-datasource-b1146f42.js → target-datasource-fae18460.js} +37 -37
- package/{target-link-0b007154.js → target-link-a73105fe.js} +36 -36
- package/{target-saveForm-59b7f133.js → target-saveForm-ca148cb5.js} +36 -36
- package/{target-widget-fce724ef.js → target-widget-865c2f48.js} +1 -1
- package/{target-window-017f5505.js → target-window-43a33f8c.js} +8 -8
- package/{text-widget-545aecaa.js → text-widget-4ce5b6fb.js} +19 -19
- package/{textarea-widget-57406c38.js → textarea-widget-7ea87efc.js} +18 -18
- package/{time-picker-range-widget-6688eb0d.js → time-picker-range-widget-6994f6e5.js} +18 -18
- package/{time-picker-widget-349b948d.js → time-picker-widget-1c31f465.js} +18 -18
- package/{time-select-widget-10aed128.js → time-select-widget-e6298570.js} +18 -18
- package/{tmpl-widget-20a78143.js → tmpl-widget-18b87b9e.js} +17 -17
- package/{tree-select-widget-7d838927.js → tree-select-widget-a23aff77.js} +18 -18
- package/{tree-widget-8659567a.js → tree-widget-3ac4175d.js} +16 -16
- package/{value-editor-4aa2fa68.js → value-editor-d099f5b8.js} +14 -14
- package/{verifycode-widget-e77637c4.js → verifycode-widget-d1d3b279.js} +16 -16
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d80d59db.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e3e6139c.js} +7 -7
- package/{wrapper-widget-641e5a5c.js → wrapper-widget-b57193fb.js} +6 -6
- package/_share_size.vue_vue_type_script_setup_true_lang-2d6352e5.js +0 -255
- package/common-editor-d307b414.js +0 -26
- package/default-slot-widget-4937a9ca.js +0 -29
- package/feedback-widget-0b6da76f.js +0 -30
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f2b43d49.js +0 -41
- package/table-col-widget-49f47013.js +0 -26
- package/table-widget-c9b84e06.js +0 -211
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, computed as X, ref as Y, onMounted as ee, watch as j, resolveComponent as P, openBlock as M, createBlock as k, withCtx as _, renderSlot as oe, createVNode as v, unref as re, createElementBlock as ne, Fragment as ie, renderList as ce } from "vue";
|
|
2
|
-
import { o as W, d as Z, j as le, v as y, U as z, i as m, a as R, c as te } from "./enum-type-47be887b.js";
|
|
3
|
-
import { S as O } from "./enum-type-11580589.js";
|
|
4
|
-
import { s as ue } from "./_share_wrapper-8f1243a5.js";
|
|
5
|
-
import { p as se, g as ae } from "./index-feab7b92.js";
|
|
6
|
-
function V(b) {
|
|
7
|
-
return b.trim().replace(/[^a-zA-Z0-9]+(.)/g, (t, s) => s.toUpperCase()).replace(/^[A-Z]/, (t) => t.toLowerCase());
|
|
8
|
-
}
|
|
9
|
-
function A(b, t = "_") {
|
|
10
|
-
return b.replace(
|
|
11
|
-
/[A-Z]/g,
|
|
12
|
-
(s, w) => (w > 0 ? t : "") + s.toLowerCase()
|
|
13
|
-
).replace(/([a-z])([0-9])/g, `$1${t}$2`).replace(/([0-9])([a-z])/g, `$1${t}$2`);
|
|
14
|
-
}
|
|
15
|
-
function de(b, t = "camel") {
|
|
16
|
-
const s = b.replace(/[\s_-]+/g, " ").trim();
|
|
17
|
-
switch (t) {
|
|
18
|
-
case "camel":
|
|
19
|
-
return V(s);
|
|
20
|
-
case "pascal":
|
|
21
|
-
const w = V(s);
|
|
22
|
-
return w.charAt(0).toUpperCase() + w.slice(1);
|
|
23
|
-
case "snake":
|
|
24
|
-
return A(V(s), "_");
|
|
25
|
-
case "kebab":
|
|
26
|
-
return A(V(s), "-");
|
|
27
|
-
default:
|
|
28
|
-
throw new Error(`不支持的格式: ${t}`);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function fe() {
|
|
32
|
-
return {
|
|
33
|
-
splitNumericUnit: (t) => {
|
|
34
|
-
if (t === O.auto)
|
|
35
|
-
return {
|
|
36
|
-
original: t,
|
|
37
|
-
numeric: null,
|
|
38
|
-
unit: t,
|
|
39
|
-
valid: !0
|
|
40
|
-
};
|
|
41
|
-
const s = t == null ? void 0 : t.replace(/\s+/g, ""), w = s == null ? void 0 : s.match(/^(-?\d*\.?\d+)([^\d]*)$/);
|
|
42
|
-
if (!w)
|
|
43
|
-
return {
|
|
44
|
-
original: t,
|
|
45
|
-
numeric: null,
|
|
46
|
-
unit: "",
|
|
47
|
-
valid: !1
|
|
48
|
-
};
|
|
49
|
-
const N = parseFloat(w[1]), L = w[2] || "";
|
|
50
|
-
return {
|
|
51
|
-
original: t,
|
|
52
|
-
numeric: isNaN(N) ? null : N,
|
|
53
|
-
unit: L,
|
|
54
|
-
valid: L !== null && !isNaN(N)
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function me() {
|
|
60
|
-
const b = (e, p) => e == null ? void 0 : e.map((c) => {
|
|
61
|
-
var r;
|
|
62
|
-
let o = {};
|
|
63
|
-
return (r = Object.keys(c == null ? void 0 : c.declarations)) == null || r.forEach((a) => {
|
|
64
|
-
const u = c == null ? void 0 : c.declarations[a];
|
|
65
|
-
if (y(u))
|
|
66
|
-
return;
|
|
67
|
-
const i = de(a, p ? "camel" : "kebab");
|
|
68
|
-
o[i] = u;
|
|
69
|
-
}), { selector: c.selector, declarations: o };
|
|
70
|
-
}), t = (e) => new Promise((p) => {
|
|
71
|
-
se(e).then((c) => {
|
|
72
|
-
var o = b(c, !0);
|
|
73
|
-
p(o);
|
|
74
|
-
});
|
|
75
|
-
}), s = (e) => new Promise((p) => {
|
|
76
|
-
var o;
|
|
77
|
-
var c = b(e, !1);
|
|
78
|
-
(o = ae(c)) == null || o.then((r) => {
|
|
79
|
-
p(r);
|
|
80
|
-
});
|
|
81
|
-
}), w = (e) => new Promise((p) => {
|
|
82
|
-
const c = (o) => {
|
|
83
|
-
var d;
|
|
84
|
-
const r = ["top", "bottom", "left", "right"], a = (l) => y(l) ? [] : (l == null ? void 0 : l.split(" ")) || [], u = (l, n) => {
|
|
85
|
-
var H, J, Q;
|
|
86
|
-
let h = {};
|
|
87
|
-
const C = l == null ? void 0 : l.toLowerCase();
|
|
88
|
-
if (["margin", "padding"].includes(C)) {
|
|
89
|
-
var f = a(n);
|
|
90
|
-
f && ((f == null ? void 0 : f.length) === 1 ? r == null || r.forEach((g) => {
|
|
91
|
-
var $ = V(`${C}-${g}`);
|
|
92
|
-
m(o == null ? void 0 : o[$]) && (h[$] = n);
|
|
93
|
-
}) : (f == null ? void 0 : f.length) === 2 ? [["top", "bottom"], ["left", "right"]].forEach((g, $) => {
|
|
94
|
-
g == null || g.forEach((U) => {
|
|
95
|
-
var E = V(`${C}-${U}`);
|
|
96
|
-
m(o == null ? void 0 : o[E]) && (h[E] = f == null ? void 0 : f[$]);
|
|
97
|
-
});
|
|
98
|
-
}) : (f == null ? void 0 : f.length) > 2 && (r == null || r.forEach((g, $) => {
|
|
99
|
-
var U = V(`${C}-${g}`), E = f == null ? void 0 : f[$];
|
|
100
|
-
m(o == null ? void 0 : o[U]) && !m(E) && (h[U] = E);
|
|
101
|
-
})));
|
|
102
|
-
} else if (["border", "border-left", "border-right", "border-top", "border-bottom"].includes(C)) {
|
|
103
|
-
var [D, T, q] = a(n);
|
|
104
|
-
if (!m(D) && !m(T) && !m(q)) {
|
|
105
|
-
var F = C === "border" ? r : [(H = C.split("-")) == null ? void 0 : H[1]];
|
|
106
|
-
F == null || F.forEach((g) => {
|
|
107
|
-
var $ = V(`${C}-${g}-width`), U = V(`${C}-${g}-style`), E = V(`${C}-${g}-color`);
|
|
108
|
-
m(o == null ? void 0 : o[$]) && (h[$] = D), m(o == null ? void 0 : o[U]) && (h[U] = T), m(o == null ? void 0 : o[E]) && (h[E] = q);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
} else if (["border-radius"].includes(C))
|
|
112
|
-
["top-left", "top-right", "bottom-let", "bottom-right"].forEach((g) => {
|
|
113
|
-
var $ = V(`border-${g}-radius`);
|
|
114
|
-
m(o == null ? void 0 : o[$]) && (h[$] = n);
|
|
115
|
-
});
|
|
116
|
-
else if (["background"].includes(C)) {
|
|
117
|
-
var [x, S] = a(n);
|
|
118
|
-
y(x) || (h.backgroundColor = x), !y(S) && R(S) && (h.backgroundImage = (J = S == null ? void 0 : S.replace("url(", "")) == null ? void 0 : J.replace(")", ""));
|
|
119
|
-
} else if (["opacity"].includes(C)) {
|
|
120
|
-
if (!n.endsWith("%")) {
|
|
121
|
-
var G = parseFloat(n);
|
|
122
|
-
isNaN(G) || (h[l] = `${G * 100}%`);
|
|
123
|
-
}
|
|
124
|
-
} else
|
|
125
|
-
["backgroundimage"].includes(C) && !y(n) && R(n) && (h[l] = (Q = n == null ? void 0 : n.replace("url(", "")) == null ? void 0 : Q.replace(")", ""));
|
|
126
|
-
return h;
|
|
127
|
-
};
|
|
128
|
-
let i = {};
|
|
129
|
-
return (d = W(o)) == null || d.forEach((l) => {
|
|
130
|
-
if (!l)
|
|
131
|
-
return;
|
|
132
|
-
const n = o == null ? void 0 : o[l];
|
|
133
|
-
y(n) || Z(i, u(l, n));
|
|
134
|
-
}), i;
|
|
135
|
-
};
|
|
136
|
-
t(e).then((o) => {
|
|
137
|
-
let r = {};
|
|
138
|
-
["active", "focus", "hover", "default"].forEach((a) => {
|
|
139
|
-
var d, l;
|
|
140
|
-
const u = a === "default" ? ":root" : ":root:" + a;
|
|
141
|
-
var i = (d = o == null ? void 0 : o.find((n) => (n == null ? void 0 : n.selector) == u)) == null ? void 0 : d.declarations;
|
|
142
|
-
((l = W(i)) == null ? void 0 : l.length) > 0 ? r[a] = Z(le(i), c(i)) : r == null || delete r[a];
|
|
143
|
-
}), p(r);
|
|
144
|
-
});
|
|
145
|
-
}), N = (e) => new Promise((p) => {
|
|
146
|
-
const c = [], o = (u, i) => {
|
|
147
|
-
const d = u == null ? void 0 : u.toLowerCase();
|
|
148
|
-
if (["opacity"].includes(d)) {
|
|
149
|
-
if (i != null && i.endsWith("%")) {
|
|
150
|
-
var l = parseFloat(i.replace("%", ""));
|
|
151
|
-
isNaN(l) || (i = l / 100);
|
|
152
|
-
}
|
|
153
|
-
} else
|
|
154
|
-
["backgroundimage"].includes(d) && (i != null && i.startsWith("url(") || (i = `url(${i})`));
|
|
155
|
-
return { [u]: i };
|
|
156
|
-
}, r = (u) => {
|
|
157
|
-
var l;
|
|
158
|
-
let i = {};
|
|
159
|
-
var d = ["margin", "padding", "border", "borderradius", "background"];
|
|
160
|
-
return (l = W(u)) == null || l.forEach((n) => {
|
|
161
|
-
if (!n || d.includes(n == null ? void 0 : n.toLocaleLowerCase()))
|
|
162
|
-
return;
|
|
163
|
-
let h = u == null ? void 0 : u[n];
|
|
164
|
-
y(h) || Z(i, o(n, h));
|
|
165
|
-
}), i;
|
|
166
|
-
}, a = (u) => r(te(u));
|
|
167
|
-
e != null && e.default && !z(e == null ? void 0 : e.default) && c.push({ selector: ":root", declarations: a(e.default) }), e != null && e.active && !z(e == null ? void 0 : e.active) && c.push({ selector: ":root:active", declarations: a(e.active) }), e != null && e.focus && !z(e == null ? void 0 : e.focus) && c.push({ selector: ":root:focus", declarations: a(e.focus) }), e != null && e.hover && !z(e == null ? void 0 : e.hover) && c.push({ selector: ":root:hover", declarations: a(e.hover) }), p(c);
|
|
168
|
-
});
|
|
169
|
-
return {
|
|
170
|
-
changeListener: (e) => new Promise((p) => {
|
|
171
|
-
N(e).then((c) => {
|
|
172
|
-
s(c).then((o) => {
|
|
173
|
-
p(o);
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
}),
|
|
177
|
-
switchColor: (e) => e ? "var(--el-color-primary)" : "var(--el-color-info)",
|
|
178
|
-
switchColorClass: (e) => e ? "primary" : "info",
|
|
179
|
-
toStateInf: w
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
const we = /* @__PURE__ */ I({
|
|
183
|
-
__name: "_share_size",
|
|
184
|
-
props: {
|
|
185
|
-
modelValue: null,
|
|
186
|
-
label: null,
|
|
187
|
-
color: null,
|
|
188
|
-
options: null
|
|
189
|
-
},
|
|
190
|
-
emits: ["update:modelValue"],
|
|
191
|
-
setup(b, { emit: t }) {
|
|
192
|
-
const s = b, { splitNumericUnit: w } = fe(), N = (o, r) => r === O.auto || m(o) ? r : `${o}${r}`, L = X(() => N(e.value, K.value) || ""), B = () => {
|
|
193
|
-
m(s.modelValue) && L.value === "" || t("update:modelValue", L.value);
|
|
194
|
-
}, K = Y(), e = Y(), p = (o) => {
|
|
195
|
-
const r = w(o || s.modelValue);
|
|
196
|
-
K.value = r == null ? void 0 : r.unit, e.value = r == null ? void 0 : r.numeric;
|
|
197
|
-
}, c = X(() => K.value === O.auto);
|
|
198
|
-
return ee(() => {
|
|
199
|
-
p();
|
|
200
|
-
}), j(() => K.value, (o, r) => {
|
|
201
|
-
o === O.auto ? e.value = "" : r == O.auto && (e.value = "10"), B();
|
|
202
|
-
}), j(() => e.value, () => {
|
|
203
|
-
B();
|
|
204
|
-
}), j(() => s.modelValue, (o) => {
|
|
205
|
-
p(o);
|
|
206
|
-
}), (o, r) => {
|
|
207
|
-
const a = P("el-option"), u = P("el-select"), i = P("el-input");
|
|
208
|
-
return M(), k(ue, {
|
|
209
|
-
label: b.label,
|
|
210
|
-
color: b.color
|
|
211
|
-
}, {
|
|
212
|
-
label: _(() => [
|
|
213
|
-
oe(o.$slots, "label")
|
|
214
|
-
]),
|
|
215
|
-
input: _(() => [
|
|
216
|
-
v(i, {
|
|
217
|
-
type: "number",
|
|
218
|
-
readonly: re(c),
|
|
219
|
-
modelValue: e.value,
|
|
220
|
-
"onUpdate:modelValue": r[1] || (r[1] = (d) => e.value = d),
|
|
221
|
-
class: "hide-spin-button"
|
|
222
|
-
}, {
|
|
223
|
-
append: _(() => [
|
|
224
|
-
v(u, {
|
|
225
|
-
modelValue: K.value,
|
|
226
|
-
"onUpdate:modelValue": r[0] || (r[0] = (d) => K.value = d),
|
|
227
|
-
"suffix-icon": "",
|
|
228
|
-
style: { width: "60px" },
|
|
229
|
-
placeholder: " ",
|
|
230
|
-
teleported: !1
|
|
231
|
-
}, {
|
|
232
|
-
default: _(() => [
|
|
233
|
-
(M(!0), ne(ie, null, ce(b.options, (d) => (M(), k(a, {
|
|
234
|
-
key: d.value,
|
|
235
|
-
label: d.label,
|
|
236
|
-
value: d.value
|
|
237
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
238
|
-
]),
|
|
239
|
-
_: 1
|
|
240
|
-
}, 8, ["modelValue"])
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["readonly", "modelValue"])
|
|
244
|
-
]),
|
|
245
|
-
_: 3
|
|
246
|
-
}, 8, ["label", "color"]);
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
export {
|
|
251
|
-
we as _,
|
|
252
|
-
fe as a,
|
|
253
|
-
de as c,
|
|
254
|
-
me as u
|
|
255
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-28dcd1e4.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./property-base-190cbdac.js";
|
|
4
|
-
import "./enum-type-11580589.js";
|
|
5
|
-
import "./enum-type-47be887b.js";
|
|
6
|
-
import "./baseImp-89aa0fb0.js";
|
|
7
|
-
import "./expression-07f162f0.js";
|
|
8
|
-
import "./source-map-b04aec4a.js";
|
|
9
|
-
import "./uuid-009aae31.js";
|
|
10
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
|
-
import "./esprima-e8d15055.js";
|
|
12
|
-
import "./icon-6342f929.js";
|
|
13
|
-
import "./dialog-7911c683.js";
|
|
14
|
-
import "element-plus";
|
|
15
|
-
import "./editor-wrapper-0d9f8651.js";
|
|
16
|
-
import "./share-event-5d45d16e.js";
|
|
17
|
-
import "./emitter-06eac599.js";
|
|
18
|
-
import "./share-editor-41edac48.js";
|
|
19
|
-
import "./index-d924658d.js";
|
|
20
|
-
import "./optionItem-f31150f7.js";
|
|
21
|
-
import "./index-92ffe642.js";
|
|
22
|
-
import "./index-c8784c90.js";
|
|
23
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
-
export {
|
|
25
|
-
o as default
|
|
26
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-2954f3b8.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./enum-type-47be887b.js";
|
|
4
|
-
import "./field-base-5547436d.js";
|
|
5
|
-
import "./widget-base-4c2d6265.js";
|
|
6
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d80d59db.js";
|
|
7
|
-
import "./index-d924658d.js";
|
|
8
|
-
import "./uuid-009aae31.js";
|
|
9
|
-
import "./enum-type-11580589.js";
|
|
10
|
-
import "./optionItem-f31150f7.js";
|
|
11
|
-
import "./baseImp-89aa0fb0.js";
|
|
12
|
-
import "./expression-07f162f0.js";
|
|
13
|
-
import "./source-map-b04aec4a.js";
|
|
14
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./esprima-e8d15055.js";
|
|
16
|
-
import "./icon-6342f929.js";
|
|
17
|
-
import "./dialog-7911c683.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./index-92ffe642.js";
|
|
20
|
-
import "./index-c8784c90.js";
|
|
21
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./fieldobj-6f4ef217.js";
|
|
23
|
-
import "./slot-c01d5cc8.js";
|
|
24
|
-
import "./index-feab7b92.js";
|
|
25
|
-
import "./content-wrapper.vue_vue_type_script_setup_true_lang-56c337c9.js";
|
|
26
|
-
import "./drag-wrapper-7220907f.js";
|
|
27
|
-
export {
|
|
28
|
-
o as default
|
|
29
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2312a563.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./widget-base-4c2d6265.js";
|
|
4
|
-
import "./drag-wrapper-7220907f.js";
|
|
5
|
-
import "./enum-type-47be887b.js";
|
|
6
|
-
import "./baseImp-89aa0fb0.js";
|
|
7
|
-
import "./enum-type-11580589.js";
|
|
8
|
-
import "./expression-07f162f0.js";
|
|
9
|
-
import "./source-map-b04aec4a.js";
|
|
10
|
-
import "./uuid-009aae31.js";
|
|
11
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
-
import "./esprima-e8d15055.js";
|
|
13
|
-
import "./icon-6342f929.js";
|
|
14
|
-
import "./dialog-7911c683.js";
|
|
15
|
-
import "element-plus";
|
|
16
|
-
import "./index-d924658d.js";
|
|
17
|
-
import "./optionItem-f31150f7.js";
|
|
18
|
-
import "./index-92ffe642.js";
|
|
19
|
-
import "./slot-c01d5cc8.js";
|
|
20
|
-
import "./index-feab7b92.js";
|
|
21
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d80d59db.js";
|
|
23
|
-
import "./index-c8784c90.js";
|
|
24
|
-
import "./fieldobj-6f4ef217.js";
|
|
25
|
-
import "./share-field-b1fad9ce.js";
|
|
26
|
-
import "./emitter-06eac599.js";
|
|
27
|
-
import "./multirow-6a1f983a.js";
|
|
28
|
-
export {
|
|
29
|
-
o as default
|
|
30
|
-
};
|
package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f2b43d49.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as l, reactive as w, openBlock as y, createBlock as C, mergeProps as c, unref as t, withCtx as O, createVNode as W } from "vue";
|
|
2
|
-
import { w as k } from "./expression-07f162f0.js";
|
|
3
|
-
import { I as x } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { D as A } from "./drag-wrapper-7220907f.js";
|
|
5
|
-
import { _ as b } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d80d59db.js";
|
|
6
|
-
import { c as j } from "./share-field-b1fad9ce.js";
|
|
7
|
-
import { c as H } from "./slot-c01d5cc8.js";
|
|
8
|
-
const $ = m({ componentName: k.ContainerWidget }), S = /* @__PURE__ */ m({
|
|
9
|
-
...$,
|
|
10
|
-
__name: "grid-col-widget",
|
|
11
|
-
props: {
|
|
12
|
-
...x
|
|
13
|
-
},
|
|
14
|
-
setup(d, { expose: g }) {
|
|
15
|
-
const n = d, { attrs: o, fieldObj: u, extendAttrs: i, exposed: f } = j(n), v = l(() => n.propOptions.colHeight ? { height: n.propOptions.colHeight } : {}), { componentWrapperClass: _ } = H({ widget: n.widget }), h = l(() => (Object.keys(o.value).forEach((e) => {
|
|
16
|
-
var r, s;
|
|
17
|
-
var a = ["xs", "sm", "md", "lg", "xl"], p = ["span"];
|
|
18
|
-
!((r = o.value) != null && r.responsive) && a.includes(e) && delete o.value[e], (s = o.value) != null && s.responsive && p.includes(e) && delete o.value[e];
|
|
19
|
-
}), w(o.value)));
|
|
20
|
-
return g({ ...f }), (e, a) => {
|
|
21
|
-
var p, r, s;
|
|
22
|
-
return y(), C(b, c(e.$props, {
|
|
23
|
-
showWrapperComponent: !0,
|
|
24
|
-
"component-name": "el-col",
|
|
25
|
-
key: (p = e.widget) == null ? void 0 : p.id,
|
|
26
|
-
"prop-options": { fieldObj: { ...t(u), attrs: t(h) }, class: ["content-cell", "nopadding", "nomargin", (r = t(i)) == null ? void 0 : r.horizontalAlign, (s = t(i)) == null ? void 0 : s.verticalAlign], style: t(v) }
|
|
27
|
-
}), {
|
|
28
|
-
default: O(() => [
|
|
29
|
-
W(A, c(e.$props, {
|
|
30
|
-
dragClass: "dragSize1",
|
|
31
|
-
"component-class": t(_)
|
|
32
|
-
}), null, 16, ["component-class"])
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}, 16, ["prop-options"]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
S as _
|
|
41
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8c9c064c.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./enum-type-47be887b.js";
|
|
4
|
-
import "./baseImp-89aa0fb0.js";
|
|
5
|
-
import "./enum-type-11580589.js";
|
|
6
|
-
import "./expression-07f162f0.js";
|
|
7
|
-
import "./source-map-b04aec4a.js";
|
|
8
|
-
import "./uuid-009aae31.js";
|
|
9
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
-
import "./esprima-e8d15055.js";
|
|
11
|
-
import "./icon-6342f929.js";
|
|
12
|
-
import "./dialog-7911c683.js";
|
|
13
|
-
import "element-plus";
|
|
14
|
-
import "./drag-wrapper-7220907f.js";
|
|
15
|
-
import "./widget-base-4c2d6265.js";
|
|
16
|
-
import "./index-d924658d.js";
|
|
17
|
-
import "./optionItem-f31150f7.js";
|
|
18
|
-
import "./index-92ffe642.js";
|
|
19
|
-
import "./slot-c01d5cc8.js";
|
|
20
|
-
import "./index-feab7b92.js";
|
|
21
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./multirow-6a1f983a.js";
|
|
23
|
-
import "./emitter-06eac599.js";
|
|
24
|
-
export {
|
|
25
|
-
o as default
|
|
26
|
-
};
|
package/table-widget-c9b84e06.js
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as k, computed as U, reactive as Ne, onMounted as xe, resolveComponent as b, resolveDirective as Oe, openBlock as d, createBlock as S, mergeProps as H, unref as t, withCtx as z, withDirectives as Pe, createElementBlock as J, createVNode as E, createElementVNode as ke, toDisplayString as ze, createCommentVNode as q, toHandlers as Ce, createTextVNode as je, Fragment as Re, renderList as Ee } from "vue";
|
|
2
|
-
import { I as Fe } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as De } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d80d59db.js";
|
|
4
|
-
import { c as Te } from "./share-field-b1fad9ce.js";
|
|
5
|
-
import { w as Ie, e as Me } from "./expression-07f162f0.js";
|
|
6
|
-
import { _ as We } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8c9c064c.js";
|
|
7
|
-
import { G as Ae, e as F, n as Q, a as Ve, f as we, t as Be, o as Le } from "./enum-type-47be887b.js";
|
|
8
|
-
import { F as $e } from "./slot-c01d5cc8.js";
|
|
9
|
-
import { b as Ge, p as X } from "./multirow-6a1f983a.js";
|
|
10
|
-
import { N as Ke } from "./baseImp-89aa0fb0.js";
|
|
11
|
-
import { S as Ue } from "./index-c8784c90.js";
|
|
12
|
-
import "./widget-base-4c2d6265.js";
|
|
13
|
-
import "./index-d924658d.js";
|
|
14
|
-
import "./uuid-009aae31.js";
|
|
15
|
-
import "./enum-type-11580589.js";
|
|
16
|
-
import "./optionItem-f31150f7.js";
|
|
17
|
-
import "./index-92ffe642.js";
|
|
18
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
19
|
-
import "./fieldobj-6f4ef217.js";
|
|
20
|
-
import "./emitter-06eac599.js";
|
|
21
|
-
import "./icon-6342f929.js";
|
|
22
|
-
import "./source-map-b04aec4a.js";
|
|
23
|
-
import "./esprima-e8d15055.js";
|
|
24
|
-
import "./drag-wrapper-7220907f.js";
|
|
25
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
26
|
-
import "./index-feab7b92.js";
|
|
27
|
-
import "./dialog-7911c683.js";
|
|
28
|
-
import "element-plus";
|
|
29
|
-
const He = { key: 1 }, Je = { style: { display: "inline-block", "margin-left": "3px", "margin-top": "3px" } }, qe = Y({ componentName: Ie.FieldWidget }), Pt = /* @__PURE__ */ Y({
|
|
30
|
-
...qe,
|
|
31
|
-
__name: "table-widget",
|
|
32
|
-
props: { ...Fe },
|
|
33
|
-
setup(Z, { expose: ee }) {
|
|
34
|
-
var W;
|
|
35
|
-
const C = Z, { fieldName: D, exposed: n, fieldEditor: te, fieldKey: ae, attrs: g, extendAttrs: u, events: oe, optionItems: v, watchOption: re, fieldObj: ne, propResultOpt: le, getFieldOptions: ie } = Te({ ...C, exposedWholeInstance: !0 }), { toModel: se } = Ge({
|
|
36
|
-
...C,
|
|
37
|
-
fieldName: D.value
|
|
38
|
-
}), _ = k(1), N = k((W = u.value) == null ? void 0 : W.pageSize), j = k(10), ue = (e) => {
|
|
39
|
-
N.value = e;
|
|
40
|
-
}, pe = (e) => {
|
|
41
|
-
_.value = e;
|
|
42
|
-
}, R = k(!1), c = k(), me = U(() => {
|
|
43
|
-
var r;
|
|
44
|
-
if (C.designState)
|
|
45
|
-
return [{}];
|
|
46
|
-
if ((r = u.value) != null && r.allowPage) {
|
|
47
|
-
var e = Ae(c.value, _.value, N.value);
|
|
48
|
-
return j.value = e == null ? void 0 : e.totalItems, e == null ? void 0 : e.data;
|
|
49
|
-
} else
|
|
50
|
-
return c.value;
|
|
51
|
-
}), de = () => {
|
|
52
|
-
_.value = 1, j.value = 0, c.value = [];
|
|
53
|
-
}, T = (e = !1) => new Promise((r, i) => {
|
|
54
|
-
const l = (a) => {
|
|
55
|
-
c.value = a, R.value = !1, r(a);
|
|
56
|
-
};
|
|
57
|
-
re(e, Me.data, () => {
|
|
58
|
-
de(), R.value = !0;
|
|
59
|
-
}, (a) => {
|
|
60
|
-
var s, p;
|
|
61
|
-
(s = u.value) != null && s.beforeTableRender ? (p = u.value) == null || p.beforeTableRender(a, (m) => {
|
|
62
|
-
l(m);
|
|
63
|
-
}) : l(a);
|
|
64
|
-
});
|
|
65
|
-
}), ce = (e) => {
|
|
66
|
-
Ve(e) && (e = we(e)), c.value = Be(e, !0);
|
|
67
|
-
}, fe = () => c.value, I = Ne({}), ge = D.value;
|
|
68
|
-
$e.globalProvide({
|
|
69
|
-
globalFormName: ge,
|
|
70
|
-
globalDataModel: I
|
|
71
|
-
});
|
|
72
|
-
const ve = F.i18nt("designer.hint.noData"), _e = () => {
|
|
73
|
-
var r;
|
|
74
|
-
var e = {};
|
|
75
|
-
return (r = Object.keys(n == null ? void 0 : n.allRefList)) == null || r.forEach((i) => {
|
|
76
|
-
var s, p, m;
|
|
77
|
-
var l = (m = (p = (s = n == null ? void 0 : n.allRefList[i]) == null ? void 0 : s.exposed) == null ? void 0 : p.getField) == null ? void 0 : m.call(p);
|
|
78
|
-
if (l) {
|
|
79
|
-
const o = X(i);
|
|
80
|
-
if (!(o != null && o.groupName) || (o == null ? void 0 : o.groupName) === "header")
|
|
81
|
-
return;
|
|
82
|
-
var a = e[o == null ? void 0 : o.groupName];
|
|
83
|
-
a || (a = []), a.push(l), e[o == null ? void 0 : o.groupName] = a;
|
|
84
|
-
}
|
|
85
|
-
}), Le(e).map((i) => se(I, e[i]));
|
|
86
|
-
}, ye = (e) => {
|
|
87
|
-
var r;
|
|
88
|
-
!e || e.length <= 0 || (r = Object.keys(n == null ? void 0 : n.allRefList)) == null || r.forEach((i) => {
|
|
89
|
-
var m, o, y, x, O, f, P;
|
|
90
|
-
var l = (y = (o = (m = n == null ? void 0 : n.allRefList[i]) == null ? void 0 : m.exposed) == null ? void 0 : o.getField) == null ? void 0 : y.call(o);
|
|
91
|
-
if (!l)
|
|
92
|
-
return;
|
|
93
|
-
const a = X(i);
|
|
94
|
-
if (!(a != null && a.groupName))
|
|
95
|
-
return;
|
|
96
|
-
var s = e == null ? void 0 : e[parseInt(a == null ? void 0 : a.groupName)];
|
|
97
|
-
const p = (x = l == null ? void 0 : l._source) == null ? void 0 : x.name;
|
|
98
|
-
(s == null ? void 0 : s[p]) != null && ((P = (f = (O = n == null ? void 0 : n.allRefList[i]) == null ? void 0 : O.exposed) == null ? void 0 : f.setValue) == null || P.call(f, s == null ? void 0 : s[p]));
|
|
99
|
-
});
|
|
100
|
-
}, he = U(() => {
|
|
101
|
-
var e;
|
|
102
|
-
return (e = u.value) == null ? void 0 : e.enableExport;
|
|
103
|
-
}), { exporting: be, exportExcel: Se } = Ke(), M = (e) => {
|
|
104
|
-
var i, l, a;
|
|
105
|
-
const r = {
|
|
106
|
-
filename: (i = u.value) == null ? void 0 : i.exportFileName,
|
|
107
|
-
sheetName: (l = u.value) == null ? void 0 : l.exportSheetName,
|
|
108
|
-
autoWidth: (a = u.value) == null ? void 0 : a.exportAutoWidth
|
|
109
|
-
};
|
|
110
|
-
return Se(c.value, v == null ? void 0 : v.value, { ...r, ...e });
|
|
111
|
-
};
|
|
112
|
-
return xe(() => {
|
|
113
|
-
C.designState || T(!0);
|
|
114
|
-
}), ee({
|
|
115
|
-
...n,
|
|
116
|
-
setValue: ce,
|
|
117
|
-
getValue: fe,
|
|
118
|
-
refresh: T,
|
|
119
|
-
getTableData: _e,
|
|
120
|
-
setTableData: ye,
|
|
121
|
-
exporting: be,
|
|
122
|
-
exportToExcel: M,
|
|
123
|
-
currentPage: () => _.value,
|
|
124
|
-
pageSize: () => N.value
|
|
125
|
-
}), (e, r) => {
|
|
126
|
-
const i = b("el-empty"), l = b("el-button"), a = b("el-col"), s = b("el-row"), p = b("el-table"), m = b("el-pagination"), o = Oe("loading");
|
|
127
|
-
return d(), S(De, H(e.$props, {
|
|
128
|
-
"prop-options": { fieldObj: t(ne) }
|
|
129
|
-
}), {
|
|
130
|
-
default: z(({ data: y }) => {
|
|
131
|
-
var x, O, f, P, A, V, w, B, L, $, G, K;
|
|
132
|
-
return [
|
|
133
|
-
!t(v) || ((x = t(v)) == null ? void 0 : x.length) <= 0 || ((O = t(v)) == null ? void 0 : O[0]) == null ? (d(), S(i, {
|
|
134
|
-
key: 0,
|
|
135
|
-
description: t(F).i18nt("designer.hint.tableSetting")
|
|
136
|
-
}, null, 8, ["description"])) : Pe((d(), J("div", He, [
|
|
137
|
-
t(he) ? (d(), S(s, {
|
|
138
|
-
key: 0,
|
|
139
|
-
justify: "end"
|
|
140
|
-
}, {
|
|
141
|
-
default: z(() => [
|
|
142
|
-
E(a, {
|
|
143
|
-
span: 24,
|
|
144
|
-
style: { "text-align": "right", margin: "10px" }
|
|
145
|
-
}, {
|
|
146
|
-
default: z(() => [
|
|
147
|
-
E(l, { onClick: M }, {
|
|
148
|
-
default: z(() => [
|
|
149
|
-
E(Ue, { name: "@custom-xls" }),
|
|
150
|
-
ke("span", Je, ze(t(F).i18nt("designer.hint.export")), 1)
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
})
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
})
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
})) : q("", !0),
|
|
160
|
-
(d(), S(p, H({
|
|
161
|
-
ref_key: "fieldEditor",
|
|
162
|
-
ref: te
|
|
163
|
-
}, t(g), Ce(t(oe)), {
|
|
164
|
-
key: t(ae),
|
|
165
|
-
"row-key": "uuid",
|
|
166
|
-
"empty-text": ((f = t(g)) == null ? void 0 : f.emptyText) || t(ve),
|
|
167
|
-
size: y.size,
|
|
168
|
-
defaultSort: t(Q)((P = t(g)) == null ? void 0 : P.defaultSort) ? (A = t(g)) == null ? void 0 : A.defaultSort : void 0,
|
|
169
|
-
treeProps: t(Q)((V = t(g)) == null ? void 0 : V.treeProps) ? (w = t(g)) == null ? void 0 : w.treeProps : void 0,
|
|
170
|
-
class: y.injectClass,
|
|
171
|
-
style: y.injectStyle,
|
|
172
|
-
data: t(me)
|
|
173
|
-
}), {
|
|
174
|
-
default: z(() => [
|
|
175
|
-
je('Class" :style="data.injectStyle" :data="tableData"> '),
|
|
176
|
-
(d(!0), J(Re, null, Ee(t(ie)("optionItems"), (h, Qe) => (d(), S(We, {
|
|
177
|
-
key: h.uuid,
|
|
178
|
-
options: h,
|
|
179
|
-
designer: e.designer,
|
|
180
|
-
propResultOpt: t(le),
|
|
181
|
-
designState: e.designState
|
|
182
|
-
}, null, 8, ["options", "designer", "propResultOpt", "designState"]))), 128))
|
|
183
|
-
]),
|
|
184
|
-
_: 2
|
|
185
|
-
}, 1040, ["empty-text", "size", "defaultSort", "treeProps", "class", "style", "data"])),
|
|
186
|
-
(B = t(u)) != null && B.allowPage ? (d(), S(m, {
|
|
187
|
-
key: 1,
|
|
188
|
-
"current-page": _.value,
|
|
189
|
-
"onUpdate:current-page": r[0] || (r[0] = (h) => _.value = h),
|
|
190
|
-
"page-size": N.value,
|
|
191
|
-
"onUpdate:page-size": r[1] || (r[1] = (h) => N.value = h),
|
|
192
|
-
"page-sizes": (L = t(u)) == null ? void 0 : L.pageSizes,
|
|
193
|
-
hideOnSinglePage: ($ = t(u)) == null ? void 0 : $.hideOnSinglePage,
|
|
194
|
-
layout: (K = (G = t(u)) == null ? void 0 : G.layout) == null ? void 0 : K.join(","),
|
|
195
|
-
total: j.value,
|
|
196
|
-
onSizeChange: ue,
|
|
197
|
-
onCurrentChange: pe
|
|
198
|
-
}, null, 8, ["current-page", "page-size", "page-sizes", "hideOnSinglePage", "layout", "total"])) : q("", !0)
|
|
199
|
-
])), [
|
|
200
|
-
[o, !e.designState && R.value]
|
|
201
|
-
])
|
|
202
|
-
];
|
|
203
|
-
}),
|
|
204
|
-
_: 1
|
|
205
|
-
}, 16, ["prop-options"]);
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
export {
|
|
210
|
-
Pt as default
|
|
211
|
-
};
|