hlrender 0.0.280 → 0.0.281
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-2faab4af.js → affix-widget-1a6310d4.js} +5 -5
- package/{alert-widget-e95490e8.js → alert-widget-571bba6e.js} +5 -5
- package/{anchor-widget-ca3c597f.js → anchor-widget-7f9b4704.js} +3 -3
- package/{auto-complete-widget-931e018a.js → auto-complete-widget-28e2a290.js} +4 -4
- package/{avatar-widget-42a7ad8f.js → avatar-widget-49f2752a.js} +5 -5
- package/{backtop-widget-a5ec4cb5.js → backtop-widget-30564189.js} +5 -5
- package/{badge-widget-9a654a6a.js → badge-widget-0818febb.js} +5 -5
- package/{barcode-widget-7789290b.js → barcode-widget-ffc961ea.js} +3 -3
- package/{breadcrumb-widget-5a86bad0.js → breadcrumb-widget-77002c24.js} +3 -3
- package/{button-widget-32dca2c5.js → button-widget-e8070fb5.js} +5 -5
- package/{cache-widget-200bdd48.js → cache-widget-6cc29c5e.js} +3 -3
- package/{card-widget-0bab1727.js → card-widget-ca2bb1ad.js} +4 -4
- package/{carousel-widget-b8a04501.js → carousel-widget-4ffc62fc.js} +4 -4
- package/{cascader-widget-35259793.js → cascader-widget-74a7b297.js} +3 -3
- package/{chart-widget-ea3c142e.js → chart-widget-e18a19f7.js} +3 -3
- package/{checkbox-widget-32987927.js → checkbox-widget-31023095.js} +3 -3
- package/{collapse-widget-2bf10c41.js → collapse-widget-50f525a9.js} +4 -4
- package/{color-picker-widget-daf9eeba.js → color-picker-widget-e624aa47.js} +3 -3
- package/{cont-cell-widget-4193e729.js → cont-cell-widget-f308c538.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b557f04f.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-98452cda.js} +3 -3
- package/{cont-widget-683f83da.js → cont-widget-41b64d3c.js} +3 -3
- package/{countdown-widget-7d350107.js → countdown-widget-4a53b867.js} +5 -5
- package/{date-picker-range-widget-949581d3.js → date-picker-range-widget-852eb4c0.js} +3 -3
- package/{date-picker-widget-52187886.js → date-picker-widget-d20afc47.js} +3 -3
- package/{default-slot-widget-825a6967.js → default-slot-widget-1f6e991f.js} +3 -3
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-6f15eb11.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-9e5c9bd8.js} +2 -2
- package/{descriptions-widget-4b70fe87.js → descriptions-widget-50eee1e8.js} +4 -4
- package/{dialog-widget-cbb372e4.js → dialog-widget-2dad7b95.js} +5 -5
- package/{divider-widget-bf30d1fd.js → divider-widget-01b38854.js} +5 -5
- package/{drag-wrapper-733d900b.js → drag-wrapper-d98cad09.js} +2 -2
- package/{drawer-widget-7c544c8f.js → drawer-widget-939bde62.js} +5 -5
- package/{dropdown-widget-35c5e1f1.js → dropdown-widget-3a3df408.js} +4 -4
- package/{empty-widget-add6aa1e.js → empty-widget-809007bc.js} +5 -5
- package/{feedback-widget-66402edd.js → feedback-widget-295b041f.js} +5 -5
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-469ca730.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-744d22c3.js} +3 -3
- package/{file-upload-widget-ad75ee6f.js → file-upload-widget-ab82c308.js} +5 -5
- package/{form-widget-4f508901.js → form-widget-551effdf.js} +4 -4
- package/{grid-col-widget-5fa52864.js → grid-col-widget-c02ffb7e.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-97251137.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2635b1fb.js} +3 -3
- package/{grid-widget-d5ac789b.js → grid-widget-7783b8a6.js} +3 -3
- package/{hcard-widget-a7735316.js → hcard-widget-d116f0b2.js} +4 -4
- package/{html-text-widget-3cfc4a4b.js → html-text-widget-fde30e97.js} +3 -3
- package/{icon-widget-b4f94e49.js → icon-widget-58f29aa4.js} +3 -3
- package/{iframe-widget-650e189a.js → iframe-widget-e8e0557b.js} +3 -3
- package/{image-widget-c9acf85d.js → image-widget-51e5ed47.js} +3 -3
- package/{input-number-widget-d1b25aab.js → input-number-widget-c5081b1b.js} +3 -3
- package/{input-tag-widget-59e43500.js → input-tag-widget-2ffdb2ec.js} +4 -4
- package/{input-widget-7695f32d.js → input-widget-29acc552.js} +4 -4
- package/{link-widget-2cfdad19.js → link-widget-a6a6e2ee.js} +5 -5
- package/{ltable-col-widget-a6196715.js → ltable-col-widget-4db824e1.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-542ace6a.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-77c5fb3e.js} +3 -3
- package/{ltable-widget-67b20dcd.js → ltable-widget-a3fb3718.js} +3 -3
- package/{mention-widget-ded8ea32.js → mention-widget-83f669d6.js} +4 -4
- package/{menu-widget-de67461f.js → menu-widget-92aff85b.js} +3 -3
- package/{model-widget-f73630f0.js → model-widget-e78a71d0.js} +3 -3
- package/{multirow-685f615b.js → multirow-e54c3ff7.js} +1 -1
- package/{multirow-widget-8b3c37ac.js → multirow-widget-71e28030.js} +4 -4
- package/package.json +1 -1
- package/{pagination-widget-5d9e11de.js → pagination-widget-9b4b03ef.js} +3 -3
- package/{picture-upload-widget-6db6e1e5.js → picture-upload-widget-fc052b6c.js} +4 -4
- package/{progress-widget-a81f02e2.js → progress-widget-c9044fa3.js} +4 -4
- package/{qrcode-widget-94066c8c.js → qrcode-widget-70e3e032.js} +3 -3
- package/{radio-widget-c76e2752.js → radio-widget-38b4713c.js} +3 -3
- package/{range-widget-de46fe1c.js → range-widget-1268a463.js} +4 -4
- package/{rate-widget-7d264c37.js → rate-widget-9d0fbe3b.js} +3 -3
- package/render.es.js +19 -19
- package/render.umd.js +150 -150
- package/{result-widget-e6222f24.js → result-widget-dff9b20e.js} +4 -4
- package/{rich-editor-widget-7667e493.js → rich-editor-widget-673f0312.js} +3 -3
- package/{router-widget-40777271.js → router-widget-2b256e76.js} +3 -3
- package/{segmented-widget-505e9aa3.js → segmented-widget-f94759b2.js} +3 -3
- package/{select-widget-5a895b69.js → select-widget-a5794d9d.js} +3 -3
- package/{sfc-70fea8b1.js → sfc-66e5b989.js} +1 -1
- package/{share-field-518be3d6.js → share-field-dc9be135.js} +2 -2
- package/{share-file-ec787a17.js → share-file-78434836.js} +1 -1
- package/{skeleton-widget-244c4a58.js → skeleton-widget-ebdbfd1b.js} +5 -5
- package/{skeletonItem-widget-9f418b95.js → skeletonItem-widget-d201868b.js} +3 -3
- package/{slider-widget-95d37e13.js → slider-widget-046814a0.js} +3 -3
- package/{slot-138aa61e.js → slot-100f7831.js} +1 -1
- package/{space-widget-f6b16905.js → space-widget-5e30a357.js} +4 -4
- package/{splitter-widget-cb39c839.js → splitter-widget-2fa37fc7.js} +4 -4
- package/{static-text-widget-e4434d9d.js → static-text-widget-24513e6b.js} +3 -3
- package/{statistic-widget-6ea4b23b.js → statistic-widget-9acbbea7.js} +5 -5
- package/{steps-widget-b9210f2a.js → steps-widget-38d93f31.js} +3 -3
- package/{switch-widget-993084af.js → switch-widget-0b65d046.js} +3 -3
- package/{tab-pane-widget-5e1057c7.js → tab-pane-widget-93f2901b.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-2ea7c3db.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ab5debe0.js} +3 -3
- package/{table-col-widget-7230eb66.js → table-col-widget-cbf9b823.js} +4 -4
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9a2862cc.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e4ff6a5d.js} +3 -3
- package/table-widget-906bd14a.js +360 -0
- package/{tabs-widget-53ecac4f.js → tabs-widget-652f9592.js} +2 -2
- package/{tag-widget-4f5e8c1b.js → tag-widget-b7dcc617.js} +5 -5
- package/{text-widget-3f722f87.js → text-widget-b029f026.js} +5 -5
- package/{textarea-widget-8f1cea5a.js → textarea-widget-d9c0bfdb.js} +3 -3
- package/{time-picker-range-widget-7f472ee1.js → time-picker-range-widget-a95172e3.js} +3 -3
- package/{time-picker-widget-961b087d.js → time-picker-widget-cd50707b.js} +3 -3
- package/{time-select-widget-89abcf8b.js → time-select-widget-5c310493.js} +3 -3
- package/{timeline-widget-9b1d6448.js → timeline-widget-4d95600d.js} +4 -4
- package/{tmpl-widget-5a6aee00.js → tmpl-widget-baa4063a.js} +4 -4
- package/{tooltip-widget-6c3c34ca.js → tooltip-widget-949acbc8.js} +4 -4
- package/{tour-widget-a9431487.js → tour-widget-b95b85c0.js} +3 -3
- package/{transfer-widget-084db50a.js → transfer-widget-80b58022.js} +4 -4
- package/{tree-select-widget-4560b80a.js → tree-select-widget-b3328139.js} +3 -3
- package/{tree-widget-65b00f9e.js → tree-widget-bb4b799f.js} +3 -3
- package/{verifycode-widget-a6ddfe58.js → verifycode-widget-ba096ca4.js} +3 -3
- package/{wrapper-widget-11c1e480.js → wrapper-widget-41ce114e.js} +3 -3
- package/table-widget-d5f990d8.js +0 -354
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as h, computed as l, resolveComponent as $, openBlock as m, createBlock as f, mergeProps as g, unref as p, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as P } from "vue";
|
|
2
2
|
import { I as R } from "./field-base-1acf3ada.js";
|
|
3
|
-
import { a as U } from "./share-field-
|
|
3
|
+
import { a as U } from "./share-field-dc9be135.js";
|
|
4
4
|
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2b5032e8.js";
|
|
5
5
|
import { b as a, w as G } from "./expression-843cb957.js";
|
|
6
6
|
import { s as n } from "./enum-type-54c8c6ff.js";
|
|
7
7
|
import "./widget-base-8eece820.js";
|
|
8
|
-
import "./multirow-
|
|
8
|
+
import "./multirow-e54c3ff7.js";
|
|
9
9
|
import "./baseImp-e43868e7.js";
|
|
10
10
|
import "./enum-type-90590ca7.js";
|
|
11
11
|
import "./icon-1fc5d00d.js";
|
|
@@ -15,7 +15,7 @@ import "./_commonjsHelpers-e7ea1525.js";
|
|
|
15
15
|
import "./uuid-aab81f94.js";
|
|
16
16
|
import "element-plus";
|
|
17
17
|
import "./index-e6ed9f5a.js";
|
|
18
|
-
import "./slot-
|
|
18
|
+
import "./slot-100f7831.js";
|
|
19
19
|
import "./index-ab77f273.js";
|
|
20
20
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
21
|
import "./fieldobj-eb2feee2.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, ref as v, onMounted as N, watch as k, openBlock as S, createElementBlock as w, createElementVNode as x, computed as C, nextTick as H, createBlock as P, mergeProps as b, unref as u, withCtx as W, createVNode as I } from "vue";
|
|
2
2
|
import { w as V } from "./expression-843cb957.js";
|
|
3
3
|
import { I as z } from "./field-base-1acf3ada.js";
|
|
4
|
-
import { a as T } from "./share-field-
|
|
4
|
+
import { a as T } from "./share-field-dc9be135.js";
|
|
5
5
|
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2b5032e8.js";
|
|
6
6
|
import { S as E } from "./enum-type-54c8c6ff.js";
|
|
7
7
|
import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
|
|
@@ -10,7 +10,7 @@ import "./uuid-aab81f94.js";
|
|
|
10
10
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
11
|
import "./esprima-e8d15055.js";
|
|
12
12
|
import "./widget-base-8eece820.js";
|
|
13
|
-
import "./multirow-
|
|
13
|
+
import "./multirow-e54c3ff7.js";
|
|
14
14
|
import "./baseImp-e43868e7.js";
|
|
15
15
|
import "./enum-type-90590ca7.js";
|
|
16
16
|
import "./icon-1fc5d00d.js";
|
|
@@ -18,7 +18,7 @@ import "axios";
|
|
|
18
18
|
import "./dialog-5573c8b7.js";
|
|
19
19
|
import "element-plus";
|
|
20
20
|
import "./index-e6ed9f5a.js";
|
|
21
|
-
import "./slot-
|
|
21
|
+
import "./slot-100f7831.js";
|
|
22
22
|
import "./index-ab77f273.js";
|
|
23
23
|
import "./fieldobj-eb2feee2.js";
|
|
24
24
|
const L = { class: "s-canvas" }, R = ["width", "height"], $ = /* @__PURE__ */ g({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as P, watch as j, defineComponent as y, computed as D, resolveDirective as L, openBlock as h, createBlock as O, mergeProps as C, unref as r, withCtx as F, withDirectives as S, createElementBlock as z, normalizeClass as R, createVNode as k, createCommentVNode as A } from "vue";
|
|
2
2
|
import { I as B } from "./widget-base-8eece820.js";
|
|
3
|
-
import { D as I } from "./drag-wrapper-
|
|
3
|
+
import { D as I } from "./drag-wrapper-d98cad09.js";
|
|
4
4
|
import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2b5032e8.js";
|
|
5
5
|
import { w as $ } from "./expression-843cb957.js";
|
|
6
6
|
import { W } from "./enum-type-90590ca7.js";
|
|
7
|
-
import { a as E, u as H } from "./share-field-
|
|
8
|
-
import { c as K, F as T } from "./slot-
|
|
7
|
+
import { a as E, u as H } from "./share-field-dc9be135.js";
|
|
8
|
+
import { c as K, F as T } from "./slot-100f7831.js";
|
|
9
9
|
function V(a) {
|
|
10
10
|
const d = P({}), { componentWrapperClass: c, customClass: i } = K({ widget: a.widget }), { exposed: e, attrs: l, extendAttrs: m, fieldKey: f, fieldObj: u } = E(a), { setAllRefList: p } = H(d.value), s = (o = !1) => {
|
|
11
11
|
var t;
|
package/table-widget-d5f990d8.js
DELETED
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
import { defineComponent as he, inject as Je, ref as k, computed as j, reactive as qe, onMounted as Qe, resolveComponent as M, resolveDirective as Xe, openBlock as g, createBlock as h, mergeProps as K, unref as o, withCtx as U, withDirectives as Ye, createElementBlock as W, createElementVNode as ce, createCommentVNode as x, createTextVNode as Ze, toDisplayString as Re, toHandlers as we, createSlots as et, renderList as pe, Fragment as D, resolveDynamicComponent as fe, createVNode as tt } from "vue";
|
|
2
|
-
import { a2 as rt, x as at, e as A, g as H, t as ge, v as nt, a as ot, f as it, o as lt } from "./enum-type-54c8c6ff.js";
|
|
3
|
-
import { L as st, g as ut, P as B, K as dt, b as ct, c as pt } from "./baseImp-e43868e7.js";
|
|
4
|
-
import { I as ft } from "./field-base-1acf3ada.js";
|
|
5
|
-
import { _ as gt } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2b5032e8.js";
|
|
6
|
-
import { a as mt } from "./share-field-518be3d6.js";
|
|
7
|
-
import { d as vt, s as ht, w as bt, b as yt } from "./expression-843cb957.js";
|
|
8
|
-
import { _ as St } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9a2862cc.js";
|
|
9
|
-
import { F as _t, d as Nt, g as Pt } from "./slot-138aa61e.js";
|
|
10
|
-
import { c as kt, p as me } from "./multirow-685f615b.js";
|
|
11
|
-
import { S as Ct } from "./enum-type-90590ca7.js";
|
|
12
|
-
import { D as ve } from "./drag-wrapper-733d900b.js";
|
|
13
|
-
import { Grid as Ft } from "./index-6bcfdc22.js";
|
|
14
|
-
import "./icon-1fc5d00d.js";
|
|
15
|
-
import "axios";
|
|
16
|
-
import "./dialog-5573c8b7.js";
|
|
17
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
-
import "./uuid-aab81f94.js";
|
|
19
|
-
import "element-plus";
|
|
20
|
-
import "./widget-base-8eece820.js";
|
|
21
|
-
import "./index-e6ed9f5a.js";
|
|
22
|
-
import "./index-ab77f273.js";
|
|
23
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
-
import "./fieldobj-eb2feee2.js";
|
|
25
|
-
import "./source-map-b04aec4a.js";
|
|
26
|
-
import "./esprima-e8d15055.js";
|
|
27
|
-
function xt() {
|
|
28
|
-
return {
|
|
29
|
-
splitNumericUnit: (v) => {
|
|
30
|
-
if (v === Ct.auto)
|
|
31
|
-
return {
|
|
32
|
-
original: v,
|
|
33
|
-
numeric: null,
|
|
34
|
-
unit: v,
|
|
35
|
-
valid: !0
|
|
36
|
-
};
|
|
37
|
-
const b = v == null ? void 0 : v.replace(/\s+/g, ""), C = b == null ? void 0 : b.match(/^(-?\d*\.?\d+)([^\d]*)$/);
|
|
38
|
-
if (!C)
|
|
39
|
-
return {
|
|
40
|
-
original: v,
|
|
41
|
-
numeric: null,
|
|
42
|
-
unit: "",
|
|
43
|
-
valid: !1
|
|
44
|
-
};
|
|
45
|
-
const c = parseFloat(C[1]), V = C[2] || "";
|
|
46
|
-
return {
|
|
47
|
-
original: v,
|
|
48
|
-
numeric: isNaN(c) ? null : c,
|
|
49
|
-
unit: V,
|
|
50
|
-
valid: V !== null && !isNaN(c)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const zt = { key: 1 }, Tt = { style: { flex: "1" } }, Ot = he({ componentName: bt.FieldWidget }), nr = /* @__PURE__ */ he({
|
|
56
|
-
...Ot,
|
|
57
|
-
__name: "table-widget",
|
|
58
|
-
props: { ...ft },
|
|
59
|
-
setup(J, { expose: v }) {
|
|
60
|
-
var ee;
|
|
61
|
-
const b = J, { fieldName: C, exposed: c, fieldEditor: V, fieldKey: be, attrs: N, slots: q, extendAttrs: p, events: ye, optionItems: y, watchOption: Se, fieldObj: _e, propResultOpt: Ne, getFieldOptions: Pe, instance: L } = mt(b), ke = Je(vt.globalConfig, {}), { toModel: Ce } = kt({
|
|
62
|
-
...b,
|
|
63
|
-
globalConfig: ke,
|
|
64
|
-
fieldName: C.value
|
|
65
|
-
}, L), Q = k();
|
|
66
|
-
var Fe = j(() => rt(y == null ? void 0 : y.value, "children", (e) => B.getValue(e == null ? void 0 : e.filterable) || !1));
|
|
67
|
-
const xe = (e) => {
|
|
68
|
-
var t, r;
|
|
69
|
-
Q.value = { ...e }, (r = (t = N.value) == null ? void 0 : t.filterChange) == null || r.call(t, e);
|
|
70
|
-
}, ze = (e, t, r) => {
|
|
71
|
-
if (!e || (e == null ? void 0 : e.length) <= 0)
|
|
72
|
-
return e;
|
|
73
|
-
let l = [...e];
|
|
74
|
-
return !t || t.length <= 0 || r && r.length > 0 && (r == null || r.forEach((n) => {
|
|
75
|
-
l = l == null ? void 0 : l.filter(
|
|
76
|
-
(i) => {
|
|
77
|
-
var m;
|
|
78
|
-
const s = n.prop, d = B.getValue(n == null ? void 0 : n.filterMethod), a = t[s];
|
|
79
|
-
if (!d || !H(a))
|
|
80
|
-
return !0;
|
|
81
|
-
const f = (m = ge(a, !0)) == null ? void 0 : m.some((S) => dt(d, { value: S, row: i, col: { ...n, property: s }, ctx: O }));
|
|
82
|
-
return s && f;
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
})), l;
|
|
86
|
-
}, z = k([]), Te = (e, t) => {
|
|
87
|
-
if (!e || (e == null ? void 0 : e.length) <= 0)
|
|
88
|
-
return e;
|
|
89
|
-
const r = [...e];
|
|
90
|
-
if (t.length === 0)
|
|
91
|
-
return r;
|
|
92
|
-
const l = {
|
|
93
|
-
descending: "desc",
|
|
94
|
-
ascending: "asc"
|
|
95
|
-
};
|
|
96
|
-
var n = t == null ? void 0 : t.map((i) => ({
|
|
97
|
-
selector: (s, d) => {
|
|
98
|
-
var a, f;
|
|
99
|
-
return ((f = (a = i.column).sortBy) == null ? void 0 : f.call(a, s, d, O)) || s[i.prop];
|
|
100
|
-
},
|
|
101
|
-
method: i.column.sortMethod == null ? (s, d) => {
|
|
102
|
-
var a, f;
|
|
103
|
-
return (f = (a = i.column).sortMethod) == null ? void 0 : f.call(a, s, d, O);
|
|
104
|
-
} : void 0,
|
|
105
|
-
direction: l[i.order]
|
|
106
|
-
}));
|
|
107
|
-
return nt(r, ...n);
|
|
108
|
-
}, Oe = ({ column: e, prop: t, order: r }) => {
|
|
109
|
-
const l = z.value.findIndex((n) => n.prop === t);
|
|
110
|
-
if (r == null)
|
|
111
|
-
l !== -1 && z.value.splice(l, 1);
|
|
112
|
-
else {
|
|
113
|
-
const n = { column: e, prop: t, order: r };
|
|
114
|
-
l !== -1 ? z.value[l] = n : z.value.push(n);
|
|
115
|
-
}
|
|
116
|
-
_.value = 1;
|
|
117
|
-
}, _ = k(1), T = k((ee = p.value) == null ? void 0 : ee.pageSize), $ = k(10), Ee = (e) => {
|
|
118
|
-
T.value = e;
|
|
119
|
-
}, X = (e) => {
|
|
120
|
-
_.value = e;
|
|
121
|
-
}, F = k(), je = j(() => {
|
|
122
|
-
var t;
|
|
123
|
-
if (b.designState)
|
|
124
|
-
return [{}];
|
|
125
|
-
if ((t = p.value) != null && t.allowPage) {
|
|
126
|
-
var e = at(G.value, _.value, T.value);
|
|
127
|
-
return $.value = e == null ? void 0 : e.totalItems, e == null ? void 0 : e.data;
|
|
128
|
-
} else
|
|
129
|
-
return G.value;
|
|
130
|
-
}), G = j(() => {
|
|
131
|
-
let e = F.value;
|
|
132
|
-
return e = ze(e, Q.value, Fe.value), e = Te(e, z.value), e;
|
|
133
|
-
}), I = k(!1), Me = () => {
|
|
134
|
-
_.value = 1, $.value = 0, F.value = [];
|
|
135
|
-
}, Y = (e = !0) => {
|
|
136
|
-
const t = _.value;
|
|
137
|
-
return new Promise((r, l) => {
|
|
138
|
-
const n = (i) => {
|
|
139
|
-
var s, d;
|
|
140
|
-
F.value = i, I.value = !1, e && t > 1 && X(t), (d = (s = p.value) == null ? void 0 : s.afterTableRender) == null || d.call(s, i), r(i);
|
|
141
|
-
};
|
|
142
|
-
Se(yt.data, () => {
|
|
143
|
-
Me(), I.value = !0;
|
|
144
|
-
}, (i) => {
|
|
145
|
-
var s, d;
|
|
146
|
-
if (!((s = p.value) != null && s.beforeTableRender)) {
|
|
147
|
-
n(i);
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
(d = p.value) == null || d.beforeTableRender(i, (a) => {
|
|
151
|
-
n(a);
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
}, Ve = (e) => {
|
|
156
|
-
ot(e) && (e = it(e)), F.value = ge(e, !0);
|
|
157
|
-
}, Ie = () => F.value, Ue = (e = !0) => {
|
|
158
|
-
I.value = e;
|
|
159
|
-
}, Z = qe({}), We = C.value;
|
|
160
|
-
_t.globalProvide({
|
|
161
|
-
globalFormName: We,
|
|
162
|
-
globalDataModel: Z
|
|
163
|
-
});
|
|
164
|
-
const Ae = A.i18nt("designer.hint.noData"), Be = () => {
|
|
165
|
-
var t;
|
|
166
|
-
var e = {};
|
|
167
|
-
return (t = Object.keys(c == null ? void 0 : c.allRefList)) == null || t.forEach((r) => {
|
|
168
|
-
var i, s, d;
|
|
169
|
-
var l = (d = (s = (i = c == null ? void 0 : c.allRefList[r]) == null ? void 0 : i.exposed) == null ? void 0 : s.getField) == null ? void 0 : d.call(s);
|
|
170
|
-
if (l) {
|
|
171
|
-
const a = me(r);
|
|
172
|
-
if (!(a != null && a.groupName) || (a == null ? void 0 : a.groupName) === "header")
|
|
173
|
-
return;
|
|
174
|
-
var n = e[a == null ? void 0 : a.groupName];
|
|
175
|
-
n || (n = []), n.push(l), e[a == null ? void 0 : a.groupName] = n;
|
|
176
|
-
}
|
|
177
|
-
}), lt(e).map((r) => Ce(Z, e[r]));
|
|
178
|
-
}, Le = (e) => {
|
|
179
|
-
var t;
|
|
180
|
-
!e || e.length <= 0 || (t = Object.keys(c == null ? void 0 : c.allRefList)) == null || t.forEach((r) => {
|
|
181
|
-
var d, a, f, m, S, P, E;
|
|
182
|
-
var l = (f = (a = (d = c == null ? void 0 : c.allRefList[r]) == null ? void 0 : d.exposed) == null ? void 0 : a.getField) == null ? void 0 : f.call(a);
|
|
183
|
-
if (!l)
|
|
184
|
-
return;
|
|
185
|
-
const n = me(r);
|
|
186
|
-
if (!(n != null && n.groupName))
|
|
187
|
-
return;
|
|
188
|
-
var i = e == null ? void 0 : e[parseInt(n == null ? void 0 : n.groupName)];
|
|
189
|
-
const s = (m = l == null ? void 0 : l._source) == null ? void 0 : m.name;
|
|
190
|
-
(i == null ? void 0 : i[s]) != null && ((E = (P = (S = c == null ? void 0 : c.allRefList[r]) == null ? void 0 : S.exposed) == null ? void 0 : P.setValue) == null || E.call(P, i == null ? void 0 : i[s]));
|
|
191
|
-
});
|
|
192
|
-
}, $e = j(() => {
|
|
193
|
-
var e;
|
|
194
|
-
return (e = p.value) == null ? void 0 : e.showToolbar;
|
|
195
|
-
}), Ge = j(() => {
|
|
196
|
-
var e;
|
|
197
|
-
return (e = p.value) == null ? void 0 : e.enableExport;
|
|
198
|
-
}), { exporting: Ke, exportExcel: De } = st(), { splitNumericUnit: He } = xt(), O = ut({ instance: L }), R = (e) => {
|
|
199
|
-
var t;
|
|
200
|
-
return ((t = e == null ? void 0 : e.filter((r) => !!B.getValue(r.exportable))) == null ? void 0 : t.map((r) => {
|
|
201
|
-
var i;
|
|
202
|
-
const { getWidgetOptionByPropValue: l } = ct({ options: r }, void 0, void 0, L), n = (i = He(r.width + "")) == null ? void 0 : i.numeric;
|
|
203
|
-
return {
|
|
204
|
-
prop: r.prop,
|
|
205
|
-
label: r.label,
|
|
206
|
-
children: R(r.children),
|
|
207
|
-
width: n,
|
|
208
|
-
formatter: (s, d, a, f) => {
|
|
209
|
-
const m = r.formatter;
|
|
210
|
-
if (!m || !B.getValue(m))
|
|
211
|
-
return a;
|
|
212
|
-
const S = { row: s, column: d, cellValue: a, index: f, ctx: O };
|
|
213
|
-
return pt(l(m), S);
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
})) || [];
|
|
217
|
-
}, w = (e) => {
|
|
218
|
-
var l, n, i;
|
|
219
|
-
if (b.designState)
|
|
220
|
-
return;
|
|
221
|
-
const t = {
|
|
222
|
-
filename: (l = p.value) == null ? void 0 : l.exportFileName,
|
|
223
|
-
sheetName: (n = p.value) == null ? void 0 : n.exportSheetName,
|
|
224
|
-
autoWidth: (i = p.value) == null ? void 0 : i.exportAutoWidth
|
|
225
|
-
}, r = R(y == null ? void 0 : y.value);
|
|
226
|
-
return De(G.value, r, { ...t, ...e });
|
|
227
|
-
};
|
|
228
|
-
return Qe(() => {
|
|
229
|
-
b.designState || Y();
|
|
230
|
-
}), v({
|
|
231
|
-
...c,
|
|
232
|
-
setValue: Ve,
|
|
233
|
-
getValue: Ie,
|
|
234
|
-
refresh: Y,
|
|
235
|
-
getTableData: Be,
|
|
236
|
-
setTableData: Le,
|
|
237
|
-
setLoading: Ue,
|
|
238
|
-
exporting: Ke,
|
|
239
|
-
exportToExcel: w,
|
|
240
|
-
currentPage: () => _.value,
|
|
241
|
-
pageSize: () => T.value
|
|
242
|
-
}), (e, t) => {
|
|
243
|
-
const r = M("el-empty"), l = M("el-button"), n = M("el-row"), i = M("el-table"), s = M("el-pagination"), d = Xe("loading");
|
|
244
|
-
return g(), h(gt, K(e.$props, {
|
|
245
|
-
"prop-options": { fieldObj: o(_e) }
|
|
246
|
-
}), {
|
|
247
|
-
default: U(({ data: a }) => {
|
|
248
|
-
var f, m, S, P, E, te, re, ae, ne, oe, ie, le;
|
|
249
|
-
return [
|
|
250
|
-
!o(y) || ((f = o(y)) == null ? void 0 : f.length) <= 0 || ((m = o(y)) == null ? void 0 : m[0]) == null ? (g(), h(r, {
|
|
251
|
-
key: 0,
|
|
252
|
-
description: o(A).i18nt("designer.hint.tableSetting")
|
|
253
|
-
}, null, 8, ["description"])) : Ye((g(), W("div", zt, [
|
|
254
|
-
$e.value ? (g(), h(n, {
|
|
255
|
-
key: 0,
|
|
256
|
-
justify: "space-between",
|
|
257
|
-
style: { padding: "10px" }
|
|
258
|
-
}, {
|
|
259
|
-
default: U(() => {
|
|
260
|
-
var u;
|
|
261
|
-
return [
|
|
262
|
-
ce("div", Tt, [
|
|
263
|
-
(u = o(p)) != null && u.slotable ? (g(), h(ve, {
|
|
264
|
-
key: 0,
|
|
265
|
-
designState: e.designState,
|
|
266
|
-
designer: e.designer,
|
|
267
|
-
widget: o(Nt)(o(q), "toolbar"),
|
|
268
|
-
dragTip: o(A).i18nt("designer.hint.draggableArea1")
|
|
269
|
-
}, null, 8, ["designState", "designer", "widget", "dragTip"])) : x("", !0)
|
|
270
|
-
]),
|
|
271
|
-
ce("div", null, [
|
|
272
|
-
Ge.value ? (g(), h(l, {
|
|
273
|
-
key: 0,
|
|
274
|
-
link: "",
|
|
275
|
-
onClick: w,
|
|
276
|
-
icon: o(Ft)
|
|
277
|
-
}, {
|
|
278
|
-
default: U(() => [
|
|
279
|
-
Ze(Re(o(A).i18nt("designer.hint.export")), 1)
|
|
280
|
-
]),
|
|
281
|
-
_: 1
|
|
282
|
-
}, 8, ["icon"])) : x("", !0)
|
|
283
|
-
])
|
|
284
|
-
];
|
|
285
|
-
}),
|
|
286
|
-
_: 1
|
|
287
|
-
})) : x("", !0),
|
|
288
|
-
(g(), h(i, K({
|
|
289
|
-
ref_key: "fieldEditor",
|
|
290
|
-
ref: V
|
|
291
|
-
}, o(N), we(o(ye)), {
|
|
292
|
-
key: o(be),
|
|
293
|
-
"empty-text": ((S = o(N)) == null ? void 0 : S.emptyText) || o(Ae),
|
|
294
|
-
size: a.size,
|
|
295
|
-
defaultSort: o(H)((P = o(N)) == null ? void 0 : P.defaultSort) ? (E = o(N)) == null ? void 0 : E.defaultSort : void 0,
|
|
296
|
-
treeProps: o(H)((te = o(N)) == null ? void 0 : te.treeProps) ? (re = o(N)) == null ? void 0 : re.treeProps : void 0,
|
|
297
|
-
class: a.injectClass,
|
|
298
|
-
style: a.injectStyle,
|
|
299
|
-
data: je.value,
|
|
300
|
-
onFilterChange: xe,
|
|
301
|
-
onSortChange: Oe
|
|
302
|
-
}), et({ _: 2 }, [
|
|
303
|
-
pe(o(Pt)(o(q), !1), (u) => ({
|
|
304
|
-
name: u.slotName,
|
|
305
|
-
fn: U(() => {
|
|
306
|
-
var se, ue;
|
|
307
|
-
return [
|
|
308
|
-
(u == null ? void 0 : u.slotName) === o(ht).default ? (g(), W(D, { key: 0 }, [
|
|
309
|
-
u != null && u.default && ((se = o(p)) != null && se.slotable) ? (g(), h(fe(u == null ? void 0 : u.default), { key: 0 })) : (g(!0), W(D, { key: 1 }, pe(o(Pe)("optionItems"), (de, Et) => (g(), h(St, {
|
|
310
|
-
key: de.uuid,
|
|
311
|
-
options: de,
|
|
312
|
-
designer: e.designer,
|
|
313
|
-
propResultParam: o(Ne),
|
|
314
|
-
ctx: o(O),
|
|
315
|
-
designState: e.designState,
|
|
316
|
-
"real-table-data": F.value
|
|
317
|
-
}, null, 8, ["options", "designer", "propResultParam", "ctx", "designState", "real-table-data"]))), 128))
|
|
318
|
-
], 64)) : (ue = o(p)) != null && ue.slotable ? (g(), W(D, { key: 1 }, [
|
|
319
|
-
u != null && u.default ? (g(), h(fe(u == null ? void 0 : u.default), { key: 0 })) : x("", !0),
|
|
320
|
-
tt(ve, K(e.$props, {
|
|
321
|
-
widget: u,
|
|
322
|
-
"drag-class": "dragSize1"
|
|
323
|
-
}), null, 16, ["widget"])
|
|
324
|
-
], 64)) : x("", !0)
|
|
325
|
-
];
|
|
326
|
-
})
|
|
327
|
-
}))
|
|
328
|
-
]), 1040, ["empty-text", "size", "defaultSort", "treeProps", "class", "style", "data"])),
|
|
329
|
-
(ae = o(p)) != null && ae.allowPage ? (g(), h(s, {
|
|
330
|
-
key: 1,
|
|
331
|
-
"current-page": _.value,
|
|
332
|
-
"onUpdate:currentPage": t[0] || (t[0] = (u) => _.value = u),
|
|
333
|
-
"page-size": T.value,
|
|
334
|
-
"onUpdate:pageSize": t[1] || (t[1] = (u) => T.value = u),
|
|
335
|
-
"page-sizes": (ne = o(p)) == null ? void 0 : ne.pageSizes,
|
|
336
|
-
hideOnSinglePage: (oe = o(p)) == null ? void 0 : oe.hideOnSinglePage,
|
|
337
|
-
layout: (le = (ie = o(p)) == null ? void 0 : ie.layout) == null ? void 0 : le.join(","),
|
|
338
|
-
total: $.value,
|
|
339
|
-
onSizeChange: Ee,
|
|
340
|
-
onCurrentChange: X
|
|
341
|
-
}, null, 8, ["current-page", "page-size", "page-sizes", "hideOnSinglePage", "layout", "total"])) : x("", !0)
|
|
342
|
-
])), [
|
|
343
|
-
[d, !e.designState && I.value]
|
|
344
|
-
])
|
|
345
|
-
];
|
|
346
|
-
}),
|
|
347
|
-
_: 1
|
|
348
|
-
}, 16, ["prop-options"]);
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
export {
|
|
353
|
-
nr as default
|
|
354
|
-
};
|