hlrender 0.0.216 → 0.0.217
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/{affix-widget-d8154097.js → affix-widget-29f3ad06.js} +6 -6
- package/{alert-widget-1cce8515.js → alert-widget-37007a9d.js} +6 -6
- package/{anchor-widget-bff633e8.js → anchor-widget-147289bd.js} +4 -4
- package/{auto-complete-widget-c183eab9.js → auto-complete-widget-4d9c9366.js} +6 -6
- package/{avatar-widget-f14b920c.js → avatar-widget-3b0f0789.js} +6 -6
- package/{backtop-widget-1ce9c0ce.js → backtop-widget-3516268d.js} +6 -6
- package/{badge-widget-55cd2223.js → badge-widget-7bbe0dbd.js} +6 -6
- package/{barcode-widget-f786ead5.js → barcode-widget-0c2345b3.js} +4 -4
- package/{breadcrumb-widget-1eef769a.js → breadcrumb-widget-c4494bb2.js} +4 -4
- package/{button-widget-0aed6cbb.js → button-widget-69f68c92.js} +6 -6
- package/{cache-widget-201b392d.js → cache-widget-8528cd1a.js} +5 -5
- package/{card-widget-685d5319.js → card-widget-3daaa2fe.js} +5 -5
- package/{carousel-widget-78c594ae.js → carousel-widget-d6993ced.js} +5 -5
- package/{cascader-widget-f4e282bd.js → cascader-widget-8b7a7a6a.js} +5 -5
- package/{chart-widget-6cfae586.js → chart-widget-6b92dd36.js} +4 -4
- package/{checkbox-widget-bc721d15.js → checkbox-widget-0284dd2d.js} +5 -5
- package/{collapse-widget-b9098e55.js → collapse-widget-8056684a.js} +5 -5
- package/{color-picker-widget-95266eb1.js → color-picker-widget-97678e4b.js} +5 -5
- package/{cont-cell-widget-56c2b657.js → cont-cell-widget-df95c60d.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d0ee5ee7.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ba8f7d05.js} +2 -2
- package/{cont-widget-55442630.js → cont-widget-b1cbe6f6.js} +3 -3
- package/{date-picker-range-widget-f934954e.js → date-picker-range-widget-98da8743.js} +5 -5
- package/{date-picker-widget-7ffa5ac6.js → date-picker-widget-9a9f785f.js} +5 -5
- package/{default-slot-widget-9189d348.js → default-slot-widget-b125582e.js} +4 -4
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0ef60093.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-f6a8711b.js} +2 -2
- package/{descriptions-widget-6c2ff467.js → descriptions-widget-811c6905.js} +5 -5
- package/{dialog-widget-e33080af.js → dialog-widget-7c9e5ab7.js} +6 -6
- package/{divider-widget-80e24428.js → divider-widget-39b24754.js} +6 -6
- package/{drag-wrapper-68793e33.js → drag-wrapper-fb2e0822.js} +2 -2
- package/{drawer-widget-35f3854f.js → drawer-widget-44c26f9c.js} +6 -6
- package/{dropdown-widget-7101e61c.js → dropdown-widget-b29fa60d.js} +5 -5
- package/{empty-widget-75804268.js → empty-widget-fb9f2575.js} +6 -6
- package/{feedback-widget-3405fc97.js → feedback-widget-83b58c0b.js} +6 -6
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-643cde1f.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f03b038a.js} +3 -3
- package/{file-upload-widget-4c5eba42.js → file-upload-widget-80fe2ea1.js} +7 -7
- package/{form-item-wrapper-6a703f42.js → form-item-wrapper-3b73728e.js} +2 -2
- package/{form-widget-ef8ca8e8.js → form-widget-de1b2c56.js} +5 -5
- package/{grid-col-widget-07772e75.js → grid-col-widget-6209fb04.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-990c945d.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ffcb5ad9.js} +3 -3
- package/{grid-widget-57d1c8da.js → grid-widget-8cf3bbc0.js} +3 -3
- package/{html-text-widget-81c85252.js → html-text-widget-90aa6f39.js} +4 -4
- package/{icon-widget-f06ed933.js → icon-widget-1240e92d.js} +4 -4
- package/{iframe-widget-177eaf65.js → iframe-widget-15b86106.js} +4 -4
- package/{image-widget-a8c9933e.js → image-widget-5e49daaf.js} +4 -4
- package/{index-0f946c75.js → index-edf17e74.js} +1012 -1012
- package/{input-number-widget-90983dae.js → input-number-widget-4b34e210.js} +5 -5
- package/{input-widget-455ed7aa.js → input-widget-bc69e43a.js} +6 -6
- package/{link-widget-e11aac01.js → link-widget-fb675844.js} +6 -6
- package/{ltable-col-widget-a3b73597.js → ltable-col-widget-0b2a234b.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-9af78989.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-47e411d0.js} +4 -4
- package/{ltable-widget-727fa3fb.js → ltable-widget-661b88ba.js} +3 -3
- package/{menu-widget-9d139058.js → menu-widget-d814d2aa.js} +4 -4
- package/{model-widget-4543a5b3.js → model-widget-7cede978.js} +4 -4
- package/{multirow-844c058f.js → multirow-7b2e4944.js} +1 -1
- package/{multirow-widget-eb87b40b.js → multirow-widget-df22678e.js} +5 -5
- package/package.json +1 -1
- package/{pagination-widget-1256c9a9.js → pagination-widget-6728eb59.js} +4 -4
- package/{picture-upload-widget-8a7d555d.js → picture-upload-widget-409167b0.js} +6 -6
- package/{progress-widget-02a7f347.js → progress-widget-c47fc865.js} +5 -5
- package/{qrcode-widget-c308a1c8.js → qrcode-widget-dd7ed50e.js} +4 -4
- package/{radio-widget-530219d6.js → radio-widget-85d0bfb0.js} +5 -5
- package/{range-widget-37d4a19b.js → range-widget-28d84c30.js} +6 -6
- package/{rate-widget-ae3bf99a.js → rate-widget-3360c150.js} +5 -5
- package/render.es.js +21 -21
- package/render.umd.js +108 -108
- package/{result-widget-d1b6db74.js → result-widget-f82586c7.js} +5 -5
- package/{rich-editor-widget-4485851c.js → rich-editor-widget-58da4c5a.js} +5 -5
- package/{router-widget-f939c67d.js → router-widget-23aaec60.js} +4 -4
- package/{select-widget-7de8f46e.js → select-widget-1be65b9e.js} +5 -5
- package/{sfc-def55229.js → sfc-ee5761ef.js} +1 -1
- package/{sfcview-9a526be0.js → sfcview-3c595592.js} +1 -1
- package/{share-field-77b98a95.js → share-field-2f0dc91d.js} +2 -2
- package/{share-file-5c581fb4.js → share-file-e0fea484.js} +1 -1
- package/{slider-widget-10be4602.js → slider-widget-b96c9f2c.js} +5 -5
- package/{static-text-widget-99e555be.js → static-text-widget-22215912.js} +4 -4
- package/{steps-widget-c09aaee4.js → steps-widget-69ad05ed.js} +4 -4
- package/{switch-widget-128822ce.js → switch-widget-8d6bd3b6.js} +5 -5
- package/{tab-pane-widget-d7762354.js → tab-pane-widget-8e732cb9.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b3552c48.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-dc60cfb9.js} +3 -3
- package/{table-col-widget-7eeb8368.js → table-col-widget-28622a19.js} +4 -4
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e1795295.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-f85260d3.js} +2 -2
- package/table-widget-3314f4ee.js +345 -0
- package/{tabs-widget-672ef33d.js → tabs-widget-4294b7b1.js} +4 -4
- package/{tag-widget-eae1e74b.js → tag-widget-7dfd41c8.js} +6 -6
- package/{text-widget-30ebbc73.js → text-widget-12fd6696.js} +6 -6
- package/{textarea-widget-2069eb0c.js → textarea-widget-a4aa2bae.js} +5 -5
- package/{time-picker-range-widget-bd1a4c32.js → time-picker-range-widget-178d370b.js} +5 -5
- package/{time-picker-widget-681cb95b.js → time-picker-widget-f41dafd1.js} +5 -5
- package/{time-select-widget-62c65900.js → time-select-widget-e8cb9645.js} +5 -5
- package/{tmpl-widget-31b78780.js → tmpl-widget-efd41e12.js} +5 -5
- package/{tree-select-widget-8a1b9c43.js → tree-select-widget-8d235ea6.js} +5 -5
- package/{tree-widget-c61d7d60.js → tree-widget-a6d130bf.js} +4 -4
- package/{verifycode-widget-b5cb07b3.js → verifycode-widget-72969b01.js} +4 -4
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-8c43a85e.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-43f2ed09.js} +1 -1
- package/{wrapper-widget-c6bb6d87.js → wrapper-widget-f10c4f90.js} +3 -3
- package/table-widget-c9a3ae55.js +0 -326
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as W, watch as h, defineComponent as C, resolveDirective as y, openBlock as w, createBlock as L, mergeProps as b, unref as s, withCtx as j, withDirectives as D, createElementBlock as O, normalizeClass as P, createVNode as x, createCommentVNode as z } from "vue";
|
|
2
2
|
import { I as R } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as S } from "./drag-wrapper-
|
|
4
|
-
import { _ as k } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
3
|
+
import { D as S } from "./drag-wrapper-fb2e0822.js";
|
|
4
|
+
import { _ as k } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-43f2ed09.js";
|
|
5
5
|
import { w as A } from "./expression-60a3c8f2.js";
|
|
6
6
|
import { W as v } from "./enum-type-3eee09cf.js";
|
|
7
|
-
import { b as B, a as F } from "./share-field-
|
|
7
|
+
import { b as B, a as F } from "./share-field-2f0dc91d.js";
|
|
8
8
|
import { c as N } from "./slot-fb6a57ce.js";
|
|
9
9
|
function $(i) {
|
|
10
10
|
const n = W({}), { componentWrapperClass: p, customClass: a } = N({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: c, fieldKey: m, fieldObj: f } = B(i), { setAllRefList: r } = F(n.value), g = (o = !1) => {
|
package/table-widget-c9a3ae55.js
DELETED
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import { defineComponent as se, ref as N, computed as k, reactive as Ae, onMounted as Be, resolveComponent as E, resolveDirective as Ue, openBlock as b, createBlock as F, mergeProps as re, unref as l, withCtx as W, withDirectives as Le, createElementBlock as ae, createElementVNode as oe, createVNode as $e, createTextVNode as Ge, toDisplayString as Ke, createCommentVNode as $, toHandlers as He, Fragment as Je, renderList as qe } from "vue";
|
|
2
|
-
import { a0 as De, x as Qe, e as A, g as G, t as le, v as Xe, a as Ye, f as Ze, o as we } from "./enum-type-af9f5bba.js";
|
|
3
|
-
import { L as Re, g as et, P as B, K as tt, b as nt, d as rt } from "./baseImp-1bec1392.js";
|
|
4
|
-
import { I as at } from "./field-base-5547436d.js";
|
|
5
|
-
import { _ as ot } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-8c43a85e.js";
|
|
6
|
-
import { b as lt } from "./share-field-77b98a95.js";
|
|
7
|
-
import { w as it, b as st } from "./expression-60a3c8f2.js";
|
|
8
|
-
import { _ as ut } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e1795295.js";
|
|
9
|
-
import { F as dt, d as ct } from "./slot-fb6a57ce.js";
|
|
10
|
-
import { c as pt, p as ie } from "./multirow-844c058f.js";
|
|
11
|
-
import { S as ft } from "./enum-type-3eee09cf.js";
|
|
12
|
-
import { D as mt } from "./drag-wrapper-68793e33.js";
|
|
13
|
-
import { Grid as gt } from "./index-ddd23411.js";
|
|
14
|
-
import "./icon-a0e0cdb0.js";
|
|
15
|
-
import "./dialog-3c8bd967.js";
|
|
16
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./uuid-59b631d4.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./widget-base-4c2d6265.js";
|
|
20
|
-
import "./index-0f946c75.js";
|
|
21
|
-
import "./index-d0ed190f.js";
|
|
22
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-0d6a0693.js";
|
|
24
|
-
import "./source-map-b04aec4a.js";
|
|
25
|
-
import "./esprima-e8d15055.js";
|
|
26
|
-
function vt() {
|
|
27
|
-
return {
|
|
28
|
-
splitNumericUnit: (m) => {
|
|
29
|
-
if (m === ft.auto)
|
|
30
|
-
return {
|
|
31
|
-
original: m,
|
|
32
|
-
numeric: null,
|
|
33
|
-
unit: m,
|
|
34
|
-
valid: !0
|
|
35
|
-
};
|
|
36
|
-
const g = m == null ? void 0 : m.replace(/\s+/g, ""), P = g == null ? void 0 : g.match(/^(-?\d*\.?\d+)([^\d]*)$/);
|
|
37
|
-
if (!P)
|
|
38
|
-
return {
|
|
39
|
-
original: m,
|
|
40
|
-
numeric: null,
|
|
41
|
-
unit: "",
|
|
42
|
-
valid: !1
|
|
43
|
-
};
|
|
44
|
-
const u = parseFloat(P[1]), j = P[2] || "";
|
|
45
|
-
return {
|
|
46
|
-
original: m,
|
|
47
|
-
numeric: isNaN(u) ? null : u,
|
|
48
|
-
unit: j,
|
|
49
|
-
valid: j !== null && !isNaN(u)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const ht = { key: 1 }, bt = { style: { flex: "1" } }, _t = se({ componentName: it.FieldWidget }), qt = /* @__PURE__ */ se({
|
|
55
|
-
..._t,
|
|
56
|
-
__name: "table-widget",
|
|
57
|
-
props: { ...at },
|
|
58
|
-
setup(K, { expose: m }) {
|
|
59
|
-
var X;
|
|
60
|
-
const g = K, { fieldName: P, exposed: u, fieldEditor: j, fieldKey: ue, attrs: _, slots: de, extendAttrs: p, events: ce, optionItems: v, watchOption: pe, fieldObj: fe, propResultOpt: M, getFieldOptions: me } = lt({ ...g, exposedWholeInstance: !0 }), { toModel: ge } = pt({
|
|
61
|
-
...g,
|
|
62
|
-
fieldName: P.value
|
|
63
|
-
}), H = N();
|
|
64
|
-
var ve = k(() => De(v == null ? void 0 : v.value, "children", (e) => B.getValue(e == null ? void 0 : e.filterable) || !1));
|
|
65
|
-
const he = (e) => {
|
|
66
|
-
var t, n;
|
|
67
|
-
H.value = { ...e }, (n = (t = _.value) == null ? void 0 : t.filterChange) == null || n.call(t, e);
|
|
68
|
-
}, be = (e, t, n) => {
|
|
69
|
-
if (!e || (e == null ? void 0 : e.length) <= 0)
|
|
70
|
-
return e;
|
|
71
|
-
let o = [...e];
|
|
72
|
-
return !t || t.length <= 0 || n && n.length > 0 && (n == null || n.forEach((r) => {
|
|
73
|
-
o = o == null ? void 0 : o.filter(
|
|
74
|
-
(i) => {
|
|
75
|
-
var f;
|
|
76
|
-
const s = r.prop, d = B.getValue(r == null ? void 0 : r.filterMethod), a = t[s];
|
|
77
|
-
if (!d || !G(a))
|
|
78
|
-
return !0;
|
|
79
|
-
const c = (f = le(a, !0)) == null ? void 0 : f.some((h) => tt(d, { value: h, row: i, col: { ...r, property: s }, ctx: I }));
|
|
80
|
-
return s && c;
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
})), o;
|
|
84
|
-
}, C = N([]), _e = (e, t) => {
|
|
85
|
-
if (!e || (e == null ? void 0 : e.length) <= 0)
|
|
86
|
-
return e;
|
|
87
|
-
const n = [...e];
|
|
88
|
-
if (t.length === 0)
|
|
89
|
-
return n;
|
|
90
|
-
const o = {
|
|
91
|
-
descending: "desc",
|
|
92
|
-
ascending: "asc"
|
|
93
|
-
};
|
|
94
|
-
var r = t == null ? void 0 : t.map((i) => ({
|
|
95
|
-
selector: (s, d) => {
|
|
96
|
-
var a, c;
|
|
97
|
-
return ((c = (a = i.column).sortBy) == null ? void 0 : c.call(a, s, d, I)) || s[i.prop];
|
|
98
|
-
},
|
|
99
|
-
method: i.column.sortMethod == null ? (s, d) => {
|
|
100
|
-
var a, c;
|
|
101
|
-
return (c = (a = i.column).sortMethod) == null ? void 0 : c.call(a, s, d, I);
|
|
102
|
-
} : void 0,
|
|
103
|
-
direction: o[i.order]
|
|
104
|
-
}));
|
|
105
|
-
return Xe(n, ...r);
|
|
106
|
-
}, ye = ({ column: e, prop: t, order: n }) => {
|
|
107
|
-
const o = C.value.findIndex((r) => r.prop === t);
|
|
108
|
-
if (n == null)
|
|
109
|
-
o !== -1 && C.value.splice(o, 1);
|
|
110
|
-
else {
|
|
111
|
-
const r = { column: e, prop: t, order: n };
|
|
112
|
-
o !== -1 ? C.value[o] = r : C.value.push(r);
|
|
113
|
-
}
|
|
114
|
-
y.value = 1;
|
|
115
|
-
}, y = N(1), O = N((X = p.value) == null ? void 0 : X.pageSize), U = N(10), Se = (e) => {
|
|
116
|
-
O.value = e;
|
|
117
|
-
}, Ne = (e) => {
|
|
118
|
-
y.value = e;
|
|
119
|
-
}, x = N(), Fe = k(() => {
|
|
120
|
-
var t;
|
|
121
|
-
if (g.designState)
|
|
122
|
-
return [{}];
|
|
123
|
-
if ((t = p.value) != null && t.allowPage) {
|
|
124
|
-
var e = Qe(L.value, y.value, O.value);
|
|
125
|
-
return U.value = e == null ? void 0 : e.totalItems, e == null ? void 0 : e.data;
|
|
126
|
-
} else
|
|
127
|
-
return L.value;
|
|
128
|
-
}), L = k(() => {
|
|
129
|
-
let e = x.value;
|
|
130
|
-
return e = be(e, H.value, ve.value), e = _e(e, C.value), e;
|
|
131
|
-
}), V = N(!1), Pe = () => {
|
|
132
|
-
y.value = 1, U.value = 0, x.value = [];
|
|
133
|
-
}, J = (e = !1) => new Promise((t, n) => {
|
|
134
|
-
const o = (r) => {
|
|
135
|
-
x.value = r, V.value = !1, t(r);
|
|
136
|
-
};
|
|
137
|
-
pe(e, st.data, () => {
|
|
138
|
-
Pe(), V.value = !0;
|
|
139
|
-
}, (r) => {
|
|
140
|
-
var i, s;
|
|
141
|
-
(i = p.value) != null && i.beforeTableRender ? (s = p.value) == null || s.beforeTableRender(r, (d) => {
|
|
142
|
-
o(d);
|
|
143
|
-
}) : o(r);
|
|
144
|
-
});
|
|
145
|
-
}), xe = (e) => {
|
|
146
|
-
Ye(e) && (e = Ze(e)), x.value = le(e, !0);
|
|
147
|
-
}, ze = () => x.value, Ce = (e = !0) => {
|
|
148
|
-
V.value = e;
|
|
149
|
-
}, q = Ae({}), Oe = P.value;
|
|
150
|
-
dt.globalProvide({
|
|
151
|
-
globalFormName: Oe,
|
|
152
|
-
globalDataModel: q
|
|
153
|
-
});
|
|
154
|
-
const Te = A.i18nt("designer.hint.noData"), ke = () => {
|
|
155
|
-
var t;
|
|
156
|
-
var e = {};
|
|
157
|
-
return (t = Object.keys(u == null ? void 0 : u.allRefList)) == null || t.forEach((n) => {
|
|
158
|
-
var i, s, d;
|
|
159
|
-
var o = (d = (s = (i = u == null ? void 0 : u.allRefList[n]) == null ? void 0 : i.exposed) == null ? void 0 : s.getField) == null ? void 0 : d.call(s);
|
|
160
|
-
if (o) {
|
|
161
|
-
const a = ie(n);
|
|
162
|
-
if (!(a != null && a.groupName) || (a == null ? void 0 : a.groupName) === "header")
|
|
163
|
-
return;
|
|
164
|
-
var r = e[a == null ? void 0 : a.groupName];
|
|
165
|
-
r || (r = []), r.push(o), e[a == null ? void 0 : a.groupName] = r;
|
|
166
|
-
}
|
|
167
|
-
}), we(e).map((n) => ge(q, e[n]));
|
|
168
|
-
}, Ee = (e) => {
|
|
169
|
-
var t;
|
|
170
|
-
!e || e.length <= 0 || (t = Object.keys(u == null ? void 0 : u.allRefList)) == null || t.forEach((n) => {
|
|
171
|
-
var d, a, c, f, h, S, T;
|
|
172
|
-
var o = (c = (a = (d = u == null ? void 0 : u.allRefList[n]) == null ? void 0 : d.exposed) == null ? void 0 : a.getField) == null ? void 0 : c.call(a);
|
|
173
|
-
if (!o)
|
|
174
|
-
return;
|
|
175
|
-
const r = ie(n);
|
|
176
|
-
if (!(r != null && r.groupName))
|
|
177
|
-
return;
|
|
178
|
-
var i = e == null ? void 0 : e[parseInt(r == null ? void 0 : r.groupName)];
|
|
179
|
-
const s = (f = o == null ? void 0 : o._source) == null ? void 0 : f.name;
|
|
180
|
-
(i == null ? void 0 : i[s]) != null && ((T = (S = (h = u == null ? void 0 : u.allRefList[n]) == null ? void 0 : h.exposed) == null ? void 0 : S.setValue) == null || T.call(S, i == null ? void 0 : i[s]));
|
|
181
|
-
});
|
|
182
|
-
}, je = k(() => {
|
|
183
|
-
var e;
|
|
184
|
-
return (e = p.value) == null ? void 0 : e.showToolbar;
|
|
185
|
-
}), Me = k(() => {
|
|
186
|
-
var e;
|
|
187
|
-
return (e = p.value) == null ? void 0 : e.enableExport;
|
|
188
|
-
}), { exporting: Ve, exportExcel: Ie } = Re(), { splitNumericUnit: We } = vt(), I = et({ instance: M == null ? void 0 : M.instance }), D = (e) => {
|
|
189
|
-
var t;
|
|
190
|
-
return ((t = e == null ? void 0 : e.filter((n) => !!B.getValue(n.exportable))) == null ? void 0 : t.map((n) => {
|
|
191
|
-
var i;
|
|
192
|
-
const { getWidgetOptionByPropValue: o } = nt({ options: n }), r = (i = We(n.width + "")) == null ? void 0 : i.numeric;
|
|
193
|
-
return {
|
|
194
|
-
prop: n.prop,
|
|
195
|
-
label: n.label,
|
|
196
|
-
children: D(n.children),
|
|
197
|
-
width: r,
|
|
198
|
-
formatter: (s, d, a, c) => {
|
|
199
|
-
const f = n.formatter;
|
|
200
|
-
if (!f || !B.getValue(f))
|
|
201
|
-
return a;
|
|
202
|
-
const h = { row: s, column: d, cellValue: a, index: c, ctx: I };
|
|
203
|
-
return rt(o(f), h);
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
})) || [];
|
|
207
|
-
}, Q = (e) => {
|
|
208
|
-
var o, r, i;
|
|
209
|
-
if (g.designState)
|
|
210
|
-
return;
|
|
211
|
-
const t = {
|
|
212
|
-
filename: (o = p.value) == null ? void 0 : o.exportFileName,
|
|
213
|
-
sheetName: (r = p.value) == null ? void 0 : r.exportSheetName,
|
|
214
|
-
autoWidth: (i = p.value) == null ? void 0 : i.exportAutoWidth
|
|
215
|
-
}, n = D(v == null ? void 0 : v.value);
|
|
216
|
-
return Ie(L.value, n, { ...t, ...e });
|
|
217
|
-
};
|
|
218
|
-
return Be(() => {
|
|
219
|
-
g.designState || J(!0);
|
|
220
|
-
}), m({
|
|
221
|
-
...u,
|
|
222
|
-
setValue: xe,
|
|
223
|
-
getValue: ze,
|
|
224
|
-
refresh: J,
|
|
225
|
-
getTableData: ke,
|
|
226
|
-
setTableData: Ee,
|
|
227
|
-
setLoading: Ce,
|
|
228
|
-
exporting: Ve,
|
|
229
|
-
exportToExcel: Q,
|
|
230
|
-
currentPage: () => y.value,
|
|
231
|
-
pageSize: () => O.value
|
|
232
|
-
}), (e, t) => {
|
|
233
|
-
const n = E("el-empty"), o = E("el-button"), r = E("el-row"), i = E("el-table"), s = E("el-pagination"), d = Ue("loading");
|
|
234
|
-
return b(), F(ot, re(e.$props, {
|
|
235
|
-
"prop-options": { fieldObj: l(fe) }
|
|
236
|
-
}), {
|
|
237
|
-
default: W(({ data: a }) => {
|
|
238
|
-
var c, f, h, S, T, Y, Z, w, R, ee, te, ne;
|
|
239
|
-
return [
|
|
240
|
-
!l(v) || ((c = l(v)) == null ? void 0 : c.length) <= 0 || ((f = l(v)) == null ? void 0 : f[0]) == null ? (b(), F(n, {
|
|
241
|
-
key: 0,
|
|
242
|
-
description: l(A).i18nt("designer.hint.tableSetting")
|
|
243
|
-
}, null, 8, ["description"])) : Le((b(), ae("div", ht, [
|
|
244
|
-
l(je) ? (b(), F(r, {
|
|
245
|
-
key: 0,
|
|
246
|
-
justify: "space-between",
|
|
247
|
-
style: { padding: "10px" }
|
|
248
|
-
}, {
|
|
249
|
-
default: W(() => [
|
|
250
|
-
oe("div", bt, [
|
|
251
|
-
$e(mt, {
|
|
252
|
-
designState: e.designState,
|
|
253
|
-
designer: e.designer,
|
|
254
|
-
widget: l(ct)(l(de), "toolbar"),
|
|
255
|
-
dragTip: l(A).i18nt("designer.hint.draggableArea1")
|
|
256
|
-
}, null, 8, ["designState", "designer", "widget", "dragTip"])
|
|
257
|
-
]),
|
|
258
|
-
oe("div", null, [
|
|
259
|
-
l(Me) ? (b(), F(o, {
|
|
260
|
-
key: 0,
|
|
261
|
-
link: "",
|
|
262
|
-
onClick: Q,
|
|
263
|
-
icon: l(gt)
|
|
264
|
-
}, {
|
|
265
|
-
default: W(() => [
|
|
266
|
-
Ge(Ke(l(A).i18nt("designer.hint.export")), 1)
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
}, 8, ["icon"])) : $("", !0)
|
|
270
|
-
])
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
})) : $("", !0),
|
|
274
|
-
(b(), F(i, re({
|
|
275
|
-
ref_key: "fieldEditor",
|
|
276
|
-
ref: j
|
|
277
|
-
}, l(_), He(l(ce)), {
|
|
278
|
-
key: l(ue),
|
|
279
|
-
"empty-text": ((h = l(_)) == null ? void 0 : h.emptyText) || l(Te),
|
|
280
|
-
size: a.size,
|
|
281
|
-
defaultSort: l(G)((S = l(_)) == null ? void 0 : S.defaultSort) ? (T = l(_)) == null ? void 0 : T.defaultSort : void 0,
|
|
282
|
-
treeProps: l(G)((Y = l(_)) == null ? void 0 : Y.treeProps) ? (Z = l(_)) == null ? void 0 : Z.treeProps : void 0,
|
|
283
|
-
class: a.injectClass,
|
|
284
|
-
style: a.injectStyle,
|
|
285
|
-
data: l(Fe),
|
|
286
|
-
onFilterChange: he,
|
|
287
|
-
onSortChange: ye
|
|
288
|
-
}), {
|
|
289
|
-
default: W(() => [
|
|
290
|
-
(b(!0), ae(Je, null, qe(l(me)("optionItems"), (z, yt) => (b(), F(ut, {
|
|
291
|
-
key: z.uuid,
|
|
292
|
-
options: z,
|
|
293
|
-
designer: e.designer,
|
|
294
|
-
propResultOpt: l(M),
|
|
295
|
-
designState: e.designState,
|
|
296
|
-
"real-table-data": x.value
|
|
297
|
-
}, null, 8, ["options", "designer", "propResultOpt", "designState", "real-table-data"]))), 128))
|
|
298
|
-
]),
|
|
299
|
-
_: 2
|
|
300
|
-
}, 1040, ["empty-text", "size", "defaultSort", "treeProps", "class", "style", "data"])),
|
|
301
|
-
(w = l(p)) != null && w.allowPage ? (b(), F(s, {
|
|
302
|
-
key: 1,
|
|
303
|
-
"current-page": y.value,
|
|
304
|
-
"onUpdate:current-page": t[0] || (t[0] = (z) => y.value = z),
|
|
305
|
-
"page-size": O.value,
|
|
306
|
-
"onUpdate:page-size": t[1] || (t[1] = (z) => O.value = z),
|
|
307
|
-
"page-sizes": (R = l(p)) == null ? void 0 : R.pageSizes,
|
|
308
|
-
hideOnSinglePage: (ee = l(p)) == null ? void 0 : ee.hideOnSinglePage,
|
|
309
|
-
layout: (ne = (te = l(p)) == null ? void 0 : te.layout) == null ? void 0 : ne.join(","),
|
|
310
|
-
total: U.value,
|
|
311
|
-
onSizeChange: Se,
|
|
312
|
-
onCurrentChange: Ne
|
|
313
|
-
}, null, 8, ["current-page", "page-size", "page-sizes", "hideOnSinglePage", "layout", "total"])) : $("", !0)
|
|
314
|
-
])), [
|
|
315
|
-
[d, !e.designState && V.value]
|
|
316
|
-
])
|
|
317
|
-
];
|
|
318
|
-
}),
|
|
319
|
-
_: 1
|
|
320
|
-
}, 16, ["prop-options"]);
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
export {
|
|
325
|
-
qt as default
|
|
326
|
-
};
|