@web-utils/component 2.70.0 → 3.0.1
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/address-input/index.mjs +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/page-skeleton/index.mjs
CHANGED
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from "@web-utils/component/page";
|
|
2
2
|
import "@web-utils/component/page/style.css";
|
|
3
|
-
import
|
|
3
|
+
import n from "@web-utils/component/nav-bar";
|
|
4
4
|
import "@web-utils/component/nav-bar/style.css";
|
|
5
|
-
import
|
|
5
|
+
import r from "@web-utils/component/page-header";
|
|
6
6
|
import "@web-utils/component/page-header/style.css";
|
|
7
|
+
import { s as l, r as a } from "../chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs";
|
|
7
8
|
import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
8
|
-
|
|
9
|
-
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
10
|
-
return n("Page", {
|
|
11
|
-
staticClass: "page-skeleton"
|
|
12
|
-
}, [e.header ? e._t("header", function() {
|
|
13
|
-
return [e.title ? n("PageHeader", {
|
|
14
|
-
attrs: {
|
|
15
|
-
title: e.title
|
|
16
|
-
}
|
|
17
|
-
}) : n("NavBar")];
|
|
18
|
-
}) : e._e(), n("div", {
|
|
19
|
-
class: ["page-content", {
|
|
20
|
-
"flex-column": e.flexColumn,
|
|
21
|
-
"flex-row": e.flexRow,
|
|
22
|
-
"content-scroll": e.contentScroll
|
|
23
|
-
}, e.contentClass]
|
|
24
|
-
}, [e._t("default")], 2)], 2);
|
|
25
|
-
}, i = [];
|
|
26
|
-
const _ = {
|
|
9
|
+
const i = {
|
|
27
10
|
name: "PageSkeleton",
|
|
28
11
|
components: {
|
|
29
|
-
Page:
|
|
30
|
-
NavBar:
|
|
31
|
-
PageHeader:
|
|
12
|
+
Page: t,
|
|
13
|
+
NavBar: n,
|
|
14
|
+
PageHeader: r
|
|
32
15
|
},
|
|
33
16
|
props: {
|
|
34
17
|
title: String,
|
|
@@ -45,23 +28,23 @@ const _ = {
|
|
|
45
28
|
}
|
|
46
29
|
}
|
|
47
30
|
}, o = {};
|
|
48
|
-
var
|
|
49
|
-
_,
|
|
50
|
-
c,
|
|
31
|
+
var m = /* @__PURE__ */ s(
|
|
51
32
|
i,
|
|
33
|
+
a,
|
|
34
|
+
l,
|
|
52
35
|
!1,
|
|
53
|
-
|
|
36
|
+
p,
|
|
54
37
|
null,
|
|
55
38
|
null,
|
|
56
39
|
null
|
|
57
40
|
);
|
|
58
|
-
function
|
|
59
|
-
for (let
|
|
60
|
-
this[
|
|
41
|
+
function p(c) {
|
|
42
|
+
for (let e in o)
|
|
43
|
+
this[e] = o[e];
|
|
61
44
|
}
|
|
62
|
-
const
|
|
63
|
-
return
|
|
45
|
+
const v = /* @__PURE__ */ function() {
|
|
46
|
+
return m.exports;
|
|
64
47
|
}();
|
|
65
48
|
export {
|
|
66
|
-
|
|
49
|
+
v as default
|
|
67
50
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { _ as a } from "../chunks/Page.81f4b8d9.mjs";
|
|
2
|
+
import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
5
|
+
return t(a, {
|
|
5
6
|
staticClass: "page-skeleton-new",
|
|
6
7
|
attrs: {
|
|
7
8
|
horizontal: ""
|
|
@@ -51,7 +52,7 @@ var s = function() {
|
|
|
51
52
|
}, [e._t("default", function() {
|
|
52
53
|
return [e._v("内容")];
|
|
53
54
|
})], 2)])]);
|
|
54
|
-
},
|
|
55
|
+
}, o = [];
|
|
55
56
|
const r = {
|
|
56
57
|
name: "PageSkeletonNew",
|
|
57
58
|
props: {
|
|
@@ -75,24 +76,24 @@ const r = {
|
|
|
75
76
|
default: "240px"
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
-
var
|
|
79
|
+
}, l = {};
|
|
80
|
+
var c = /* @__PURE__ */ s(
|
|
80
81
|
r,
|
|
81
|
-
s,
|
|
82
82
|
i,
|
|
83
|
+
o,
|
|
83
84
|
!1,
|
|
84
|
-
|
|
85
|
+
d,
|
|
85
86
|
null,
|
|
86
87
|
null,
|
|
87
88
|
null
|
|
88
89
|
);
|
|
89
|
-
function
|
|
90
|
-
for (let
|
|
91
|
-
this[
|
|
90
|
+
function d(e) {
|
|
91
|
+
for (let n in l)
|
|
92
|
+
this[n] = l[n];
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
-
return
|
|
94
|
+
const u = /* @__PURE__ */ function() {
|
|
95
|
+
return c.exports;
|
|
95
96
|
}();
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
u as default
|
|
98
99
|
};
|
package/pageable-table/index.mjs
CHANGED
|
@@ -1,189 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var w = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var p = Object.getOwnPropertySymbols;
|
|
4
|
-
var f = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
f.call(
|
|
4
|
+
var f = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var u = (e, t, s) => t in e ? w(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, g = (e, t) => {
|
|
6
|
+
for (var s in t || (t = {}))
|
|
7
|
+
f.call(t, s) && u(e, s, t[s]);
|
|
8
8
|
if (p)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var s of p(t))
|
|
10
|
+
m.call(t, s) && u(e, s, t[s]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var y = (e,
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
f.call(e,
|
|
12
|
+
}, b = (e, t) => B(e, P(t));
|
|
13
|
+
var y = (e, t) => {
|
|
14
|
+
var s = {};
|
|
15
|
+
for (var a in e)
|
|
16
|
+
f.call(e, a) && t.indexOf(a) < 0 && (s[a] = e[a]);
|
|
17
17
|
if (e != null && p)
|
|
18
|
-
for (var
|
|
19
|
-
|
|
20
|
-
return
|
|
18
|
+
for (var a of p(e))
|
|
19
|
+
t.indexOf(a) < 0 && m.call(e, a) && (s[a] = e[a]);
|
|
20
|
+
return s;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var d = (e, t, s) => new Promise((a, l) => {
|
|
23
|
+
var c = (i) => {
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
} catch (
|
|
27
|
-
l(
|
|
25
|
+
r(s.next(i));
|
|
26
|
+
} catch (n) {
|
|
27
|
+
l(n);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, h = (i) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
32
|
-
} catch (
|
|
33
|
-
l(
|
|
31
|
+
r(s.throw(i));
|
|
32
|
+
} catch (n) {
|
|
33
|
+
l(n);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, r = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(c, h);
|
|
36
|
+
r((s = s.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { hasOwn as
|
|
39
|
-
import { cloneDeep as
|
|
40
|
-
import { f as
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
44
|
-
return t("div", {
|
|
45
|
-
class: ["pageable-table", {
|
|
46
|
-
"auto-height": e.autoHeight
|
|
47
|
-
}]
|
|
48
|
-
}, [t("div", {
|
|
49
|
-
staticClass: "pageable-table-wrapper"
|
|
50
|
-
}, [e._t("toolbar"), t("ElTable", e._g(e._b({
|
|
51
|
-
ref: "table",
|
|
52
|
-
class: ["flex-item", {
|
|
53
|
-
"header-bold": e.headerBold
|
|
54
|
-
}],
|
|
55
|
-
attrs: {
|
|
56
|
-
data: e.records,
|
|
57
|
-
border: e.border
|
|
58
|
-
},
|
|
59
|
-
on: {
|
|
60
|
-
"hook:updated": e.updateTableScrollPosition,
|
|
61
|
-
"sort-change": e.onSortChange,
|
|
62
|
-
"row-dblclick": e.rowDbClick,
|
|
63
|
-
"current-change": e.onCurrentChange
|
|
64
|
-
},
|
|
65
|
-
scopedSlots: e._u([{
|
|
66
|
-
key: "empty",
|
|
67
|
-
fn: function() {
|
|
68
|
-
return [e._t("empty", function() {
|
|
69
|
-
return [e.tableStatus === e.TABLE_STATUS.loading ? [t("span", {
|
|
70
|
-
staticClass: "pageable-table-loading"
|
|
71
|
-
}, [t("i", {
|
|
72
|
-
staticClass: "table-status-icon el-icon-loading"
|
|
73
|
-
}), e._v(" 加载中...")])] : e.tableStatus === e.TABLE_STATUS.error ? [t("ElButton", {
|
|
74
|
-
staticClass: "pageable-table-error",
|
|
75
|
-
attrs: {
|
|
76
|
-
icon: "table-status-icon fa fa-frown-o"
|
|
77
|
-
},
|
|
78
|
-
on: {
|
|
79
|
-
click: e.refresh
|
|
80
|
-
}
|
|
81
|
-
}, [e._v(" 加载失败,点击重试! ")])] : [e._v(" 暂无数据 ")]];
|
|
82
|
-
})];
|
|
83
|
-
},
|
|
84
|
-
proxy: !0
|
|
85
|
-
}, {
|
|
86
|
-
key: "append",
|
|
87
|
-
fn: function() {
|
|
88
|
-
return [e._t("append")];
|
|
89
|
-
},
|
|
90
|
-
proxy: !0
|
|
91
|
-
}], null, !0)
|
|
92
|
-
}, "ElTable", e.filterTableProperties(e.mergeAttrs), !1), e.filterTableEvents(e.$listeners)), [e.multiple && e.selection ? t("TableColumn", {
|
|
93
|
-
key: "multiple",
|
|
94
|
-
attrs: {
|
|
95
|
-
type: "selection",
|
|
96
|
-
width: "45",
|
|
97
|
-
align: "center"
|
|
98
|
-
}
|
|
99
|
-
}) : e._e(), !e.multiple && e.selection ? t("TableColumn", {
|
|
100
|
-
key: "single",
|
|
101
|
-
attrs: {
|
|
102
|
-
type: "single-selection",
|
|
103
|
-
"class-name": "single-select-column",
|
|
104
|
-
width: "45",
|
|
105
|
-
align: "center"
|
|
106
|
-
},
|
|
107
|
-
scopedSlots: e._u([{
|
|
108
|
-
key: "header",
|
|
109
|
-
fn: function() {
|
|
110
|
-
return [t("ElRadio", {
|
|
111
|
-
attrs: {
|
|
112
|
-
value: !!e.currentRow,
|
|
113
|
-
label: !0
|
|
114
|
-
}
|
|
115
|
-
}, [t("span")])];
|
|
116
|
-
},
|
|
117
|
-
proxy: !0
|
|
118
|
-
}, {
|
|
119
|
-
key: "default",
|
|
120
|
-
fn: function(s) {
|
|
121
|
-
var l = s.row;
|
|
122
|
-
return [t("ElRadio", {
|
|
123
|
-
attrs: {
|
|
124
|
-
label: !0,
|
|
125
|
-
value: e.currentRow && e.currentRow[e.$attrs["row-key"] || "id"] === l[e.$attrs["row-key"] || "id"]
|
|
126
|
-
}
|
|
127
|
-
}, [t("span")])];
|
|
128
|
-
}
|
|
129
|
-
}], null, !1, 307797321)
|
|
130
|
-
}) : e._e(), e.index ? t("TableColumn", {
|
|
131
|
-
key: "order",
|
|
132
|
-
attrs: {
|
|
133
|
-
type: "index",
|
|
134
|
-
label: "序号",
|
|
135
|
-
width: e.indexWidth,
|
|
136
|
-
align: "center"
|
|
137
|
-
},
|
|
138
|
-
scopedSlots: e._u([{
|
|
139
|
-
key: "default",
|
|
140
|
-
fn: function(s) {
|
|
141
|
-
var l = s.$index;
|
|
142
|
-
return [e._v(" " + e._s((e.page.page - 1) * e.page.limit + l + 1 || l + 1) + " ")];
|
|
143
|
-
}
|
|
144
|
-
}], null, !1, 4238275121)
|
|
145
|
-
}) : e._e(), e._t("default", function() {
|
|
146
|
-
return [e.columns && e.columns.length ? e._l(e.headers, function(s, l) {
|
|
147
|
-
return t("TableColumn", e._b({
|
|
148
|
-
key: `${s.prop}-${l}`
|
|
149
|
-
}, "TableColumn", s, !1));
|
|
150
|
-
}) : t("TableColumn", {
|
|
151
|
-
attrs: {
|
|
152
|
-
label: "点击表格行复制模板"
|
|
153
|
-
},
|
|
154
|
-
scopedSlots: e._u([{
|
|
155
|
-
key: "default",
|
|
156
|
-
fn: function(s) {
|
|
157
|
-
var l = s.row;
|
|
158
|
-
return [t("pre", {
|
|
159
|
-
staticClass: "pointer"
|
|
160
|
-
}, [e._v(e._s(JSON.stringify(l, null, " ")))])];
|
|
161
|
-
}
|
|
162
|
-
}])
|
|
163
|
-
})];
|
|
164
|
-
})], 2), t("ElPagination", {
|
|
165
|
-
staticClass: "flex-not-shrink",
|
|
166
|
-
attrs: {
|
|
167
|
-
"current-page": e.page.page,
|
|
168
|
-
"hide-on-single-page": e.hideOnSinglePage,
|
|
169
|
-
"page-size": e.page.limit,
|
|
170
|
-
total: e.page.total,
|
|
171
|
-
background: "",
|
|
172
|
-
layout: "total, prev, pager, next, jumper"
|
|
173
|
-
},
|
|
174
|
-
on: {
|
|
175
|
-
"current-change": function(s) {
|
|
176
|
-
e.page.page = s;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
})], 2)]);
|
|
180
|
-
}, A = [];
|
|
38
|
+
import { hasOwn as _ } from "@web-utils/core";
|
|
39
|
+
import { cloneDeep as S, merge as v } from "@web-utils/integrations/lodash";
|
|
40
|
+
import { f as T, a as O, b as L } from "../chunks/index.d91bd77a.mjs";
|
|
41
|
+
import { s as x, r as A } from "../chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs";
|
|
42
|
+
import { n as C } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
181
43
|
const o = {
|
|
182
44
|
loading: 1,
|
|
183
45
|
error: -1,
|
|
184
46
|
empty: 2,
|
|
185
47
|
success: 0
|
|
186
|
-
},
|
|
48
|
+
}, M = {
|
|
187
49
|
name: "PageableTable",
|
|
188
50
|
bus: {
|
|
189
51
|
reloadTableView(e) {
|
|
@@ -261,9 +123,9 @@ const o = {
|
|
|
261
123
|
data() {
|
|
262
124
|
let e = { rules: [] };
|
|
263
125
|
this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e = Object.assign({}, e, this.filter));
|
|
264
|
-
let
|
|
265
|
-
this.model && (
|
|
266
|
-
const
|
|
126
|
+
let t = {};
|
|
127
|
+
this.model && (t = S(this.model));
|
|
128
|
+
const s = this.pageSize;
|
|
267
129
|
return {
|
|
268
130
|
TABLE_STATUS: Object.freeze(o),
|
|
269
131
|
tableStatus: o.empty,
|
|
@@ -272,10 +134,10 @@ const o = {
|
|
|
272
134
|
page: {
|
|
273
135
|
total: 0,
|
|
274
136
|
page: 1,
|
|
275
|
-
limit:
|
|
137
|
+
limit: s,
|
|
276
138
|
ascs: this.ascs,
|
|
277
139
|
descs: this.descs,
|
|
278
|
-
model:
|
|
140
|
+
model: t,
|
|
279
141
|
filters: e
|
|
280
142
|
}
|
|
281
143
|
};
|
|
@@ -303,11 +165,11 @@ const o = {
|
|
|
303
165
|
return e.length > 3 ? 50 + (e.length - 3) * 10 : 50;
|
|
304
166
|
},
|
|
305
167
|
mergeAttrs() {
|
|
306
|
-
return
|
|
168
|
+
return v({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
|
|
307
169
|
},
|
|
308
170
|
headers() {
|
|
309
171
|
var e;
|
|
310
|
-
return ((e = this.columns) == null ? void 0 : e.map(
|
|
172
|
+
return ((e = this.columns) == null ? void 0 : e.map(T)) || [];
|
|
311
173
|
}
|
|
312
174
|
},
|
|
313
175
|
watch: {
|
|
@@ -337,26 +199,26 @@ const o = {
|
|
|
337
199
|
},
|
|
338
200
|
methods: {
|
|
339
201
|
rowDbClick(...e) {
|
|
340
|
-
var
|
|
341
|
-
const
|
|
202
|
+
var s;
|
|
203
|
+
const t = this.$refs.table.$children.find((a) => {
|
|
342
204
|
var l;
|
|
343
|
-
return ((l =
|
|
205
|
+
return ((l = a.$options) == null ? void 0 : l.name) === "ElTableBody";
|
|
344
206
|
});
|
|
345
|
-
|
|
207
|
+
t && ((s = t.$refs.tooltip) == null || s.hide()), this.$emit("row-dblclick", ...e);
|
|
346
208
|
},
|
|
347
209
|
updateTableScrollPosition() {
|
|
348
|
-
return
|
|
210
|
+
return d(this, null, function* () {
|
|
349
211
|
this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
350
212
|
});
|
|
351
213
|
},
|
|
352
|
-
filterTableProperties:
|
|
353
|
-
filterTableEvents:
|
|
354
|
-
filterTableColumnProperties:
|
|
214
|
+
filterTableProperties: O,
|
|
215
|
+
filterTableEvents: L,
|
|
216
|
+
filterTableColumnProperties: T,
|
|
355
217
|
onTableScroll() {
|
|
356
218
|
this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
|
|
357
219
|
},
|
|
358
|
-
onSortChange({ prop: e, order:
|
|
359
|
-
this.page.ascs =
|
|
220
|
+
onSortChange({ prop: e, order: t }) {
|
|
221
|
+
this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
|
|
360
222
|
},
|
|
361
223
|
onCurrentChange(e) {
|
|
362
224
|
this.currentRow = e;
|
|
@@ -369,28 +231,28 @@ const o = {
|
|
|
369
231
|
this.removeRule(e.field), this.page.filters.rules.push(e);
|
|
370
232
|
},
|
|
371
233
|
addRules(e) {
|
|
372
|
-
e.forEach((
|
|
234
|
+
e.forEach((t) => this.addRule(t));
|
|
373
235
|
},
|
|
374
|
-
setModelField(e,
|
|
375
|
-
this.$set(this.page.model, e,
|
|
236
|
+
setModelField(e, t) {
|
|
237
|
+
this.$set(this.page.model, e, t);
|
|
376
238
|
},
|
|
377
239
|
setModel(e) {
|
|
378
|
-
this.page.page = 1, this.page.model =
|
|
240
|
+
this.page.page = 1, this.page.model = S(e);
|
|
379
241
|
},
|
|
380
242
|
deleteModelField(e) {
|
|
381
243
|
delete this.page.model[e];
|
|
382
244
|
},
|
|
383
245
|
removeRule(e) {
|
|
384
|
-
const
|
|
385
|
-
|
|
246
|
+
const t = this.page.filters.rules, s = t.findIndex((a) => a.field === e);
|
|
247
|
+
s > -1 && t.splice(s, 1);
|
|
386
248
|
},
|
|
387
|
-
addFilter({ field: e, op:
|
|
249
|
+
addFilter({ field: e, op: t, value: s }) {
|
|
388
250
|
this.page.filters = Object.assign({}, this.page.filters, {
|
|
389
251
|
rules: [
|
|
390
252
|
{
|
|
391
253
|
field: e,
|
|
392
|
-
op:
|
|
393
|
-
value:
|
|
254
|
+
op: t,
|
|
255
|
+
value: s
|
|
394
256
|
}
|
|
395
257
|
],
|
|
396
258
|
op: "and"
|
|
@@ -406,21 +268,21 @@ const o = {
|
|
|
406
268
|
this.setModel(this.model), this.getPage();
|
|
407
269
|
},
|
|
408
270
|
getPage() {
|
|
409
|
-
return
|
|
410
|
-
var
|
|
411
|
-
if (
|
|
271
|
+
return d(this, null, function* () {
|
|
272
|
+
var i;
|
|
273
|
+
if (_(this.$attrs, "data")) {
|
|
412
274
|
this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
|
|
413
275
|
return;
|
|
414
276
|
}
|
|
415
277
|
this.records = [];
|
|
416
278
|
let e;
|
|
417
|
-
const
|
|
418
|
-
if ((
|
|
279
|
+
const r = this.page, { filters: t } = r, s = y(r, ["filters"]), a = g({}, s);
|
|
280
|
+
if ((i = t == null ? void 0 : t.rules) != null && i.length && (a.filters = { rules: t.rules }), this.api || this.url) {
|
|
419
281
|
this.tableStatus = o.loading;
|
|
420
282
|
try {
|
|
421
|
-
this.api && (e = yield this.api(
|
|
422
|
-
} catch (
|
|
423
|
-
this.tableStatus = o.error, console.error(
|
|
283
|
+
this.api && (e = yield this.api(a)), this.url && (e = yield this.method(this.url, a));
|
|
284
|
+
} catch (n) {
|
|
285
|
+
this.tableStatus = o.error, console.error(n);
|
|
424
286
|
return;
|
|
425
287
|
}
|
|
426
288
|
} else {
|
|
@@ -430,44 +292,44 @@ const o = {
|
|
|
430
292
|
});
|
|
431
293
|
return;
|
|
432
294
|
}
|
|
433
|
-
const { data: l } = e || {}, { total:
|
|
434
|
-
this.page.total = Number(
|
|
295
|
+
const { data: l } = e || {}, { total: c, records: h } = l || {};
|
|
296
|
+
this.page.total = Number(c), this.records = h, !h || !h.length ? this.tableStatus = o.empty : this.tableStatus = o.success, this.$refs.table.doLayout(), this.$emit("page-loaded", l);
|
|
435
297
|
});
|
|
436
298
|
},
|
|
437
299
|
refresh() {
|
|
438
|
-
return
|
|
300
|
+
return d(this, null, function* () {
|
|
439
301
|
yield this.getPage();
|
|
440
302
|
});
|
|
441
303
|
},
|
|
442
304
|
reload() {
|
|
443
|
-
return
|
|
444
|
-
this.page =
|
|
305
|
+
return d(this, null, function* () {
|
|
306
|
+
this.page = b(g({}, this.$options.data.call(this).page), {
|
|
445
307
|
total: this.page.total
|
|
446
308
|
});
|
|
447
309
|
});
|
|
448
310
|
},
|
|
449
|
-
scrollTo(e,
|
|
450
|
-
e && (this.$refs.table.bodyWrapper.scrollTop = e),
|
|
311
|
+
scrollTo(e, t) {
|
|
312
|
+
e && (this.$refs.table.bodyWrapper.scrollTop = e), t && (this.$refs.table.bodyWrapper.scrollLeft = t);
|
|
451
313
|
}
|
|
452
314
|
}
|
|
453
|
-
},
|
|
454
|
-
var
|
|
455
|
-
|
|
456
|
-
E,
|
|
315
|
+
}, $ = {};
|
|
316
|
+
var R = /* @__PURE__ */ C(
|
|
317
|
+
M,
|
|
457
318
|
A,
|
|
319
|
+
x,
|
|
458
320
|
!1,
|
|
459
|
-
|
|
321
|
+
W,
|
|
460
322
|
null,
|
|
461
323
|
null,
|
|
462
324
|
null
|
|
463
325
|
);
|
|
464
|
-
function
|
|
465
|
-
for (let
|
|
466
|
-
this[
|
|
326
|
+
function W(e) {
|
|
327
|
+
for (let t in $)
|
|
328
|
+
this[t] = $[t];
|
|
467
329
|
}
|
|
468
|
-
const
|
|
469
|
-
return
|
|
330
|
+
const I = /* @__PURE__ */ function() {
|
|
331
|
+
return R.exports;
|
|
470
332
|
}();
|
|
471
333
|
export {
|
|
472
|
-
|
|
334
|
+
I as default
|
|
473
335
|
};
|