@web-utils/component 3.0.4 → 3.0.5
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 +22 -24
- package/awesome-button/index.mjs +29 -30
- package/card/index.mjs +40 -42
- package/carousel/index.mjs +25 -27
- package/chat/index.mjs +57 -67
- package/chunks/FormTemp.7f91629d.mjs +165 -0
- package/chunks/confirmable-mixin.817b542f.mjs +116 -0
- package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
- package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
- package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
- package/color-picker/index.mjs +128 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +32 -34
- package/data-card/index.mjs +33 -35
- package/data-cardtext/index.mjs +27 -29
- package/data-display/index.mjs +33 -35
- package/data-icons/index.mjs +28 -30
- package/data-imgtext/index.mjs +27 -30
- package/data-operatext/index.mjs +39 -41
- package/data-panel/index.mjs +36 -38
- package/data-pay/index.mjs +20 -23
- package/data-price/index.mjs +32 -34
- package/data-progress/index.mjs +27 -30
- package/data-rotate/index.mjs +17 -19
- package/data-table-picker/index.mjs +22 -23
- package/data-tabs/index.mjs +31 -33
- package/dialog-form/index.mjs +22 -27
- package/dynamic-table/index.mjs +36 -40
- package/editable-progress/index.mjs +14 -16
- package/editable-tree/index.mjs +139 -143
- package/egd-collapse-item/index.mjs +2 -1
- package/element-dialog/index.mjs +24 -25
- package/flow-designer/index.mjs +1095 -1111
- package/form-block/index.mjs +22 -24
- package/form-cascader/index.mjs +20 -20
- package/form-checkbox-group/index.mjs +24 -25
- package/form-date-picker/index.mjs +18 -19
- package/form-holder/index.mjs +14 -15
- package/form-input/index.mjs +23 -23
- package/form-input-email/index.mjs +17 -17
- package/form-input-id-card/index.mjs +24 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +26 -26
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +17 -17
- package/form-item/index.mjs +54 -56
- package/form-item-group/index.mjs +31 -33
- package/form-radio-group/index.mjs +51 -52
- package/form-select/index.mjs +31 -32
- package/form-switch/index.mjs +22 -22
- package/form-textarea/index.mjs +20 -20
- package/fy-array/index.mjs +61 -65
- package/fy-cascader/index.mjs +19 -20
- package/fy-checkbox/index.mjs +32 -37
- package/fy-code/index.mjs +13 -10
- package/fy-curd/index.mjs +638 -660
- package/fy-date/index.mjs +20 -21
- package/fy-draggable/index.mjs +19 -20
- package/fy-dynamic/index.mjs +26 -27
- package/fy-form/index.mjs +111 -122
- package/fy-form-design/index.mjs +1238 -1270
- package/fy-input/index.mjs +15 -17
- package/fy-input-color/index.mjs +25 -27
- package/fy-input-icon/index.mjs +20 -21
- package/fy-input-map/index.mjs +22 -24
- package/fy-input-number/index.mjs +22 -23
- package/fy-input-table/index.mjs +15 -17
- package/fy-input-tree/index.mjs +28 -32
- package/fy-progress/index.mjs +23 -24
- package/fy-radio/index.mjs +18 -23
- package/fy-rate/index.mjs +12 -13
- package/fy-select/index.mjs +40 -44
- package/fy-slider/index.mjs +17 -18
- package/fy-switch/index.mjs +20 -21
- package/fy-tabs/index.mjs +19 -21
- package/fy-time/index.mjs +14 -20
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +17 -21
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +22 -24
- package/image-cropper/index.mjs +50 -51
- package/image-preview/index.mjs +24 -26
- package/index.mjs +480 -477
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +23 -24
- package/login/index.mjs +35 -40
- package/nav-bar/index.mjs +13 -14
- package/notice/index.mjs +18 -19
- package/package.json +3 -3
- package/page-index/index.mjs +33 -34
- package/page-index-top/index.mjs +22 -24
- package/pageable-table/index.mjs +92 -96
- package/pageable-view/index.mjs +33 -34
- package/search/index.mjs +21 -23
- package/static-pageable-table/index.mjs +18 -20
- package/swiper/index.mjs +22 -23
- package/table-view/index.mjs +49 -53
- package/tag-render/index.mjs +19 -21
- package/text-ellipsis/index.mjs +11 -12
- package/tinymce-editor/index.mjs +50 -51
- package/toolbar-button/index.mjs +18 -19
- package/vue-cron/index.mjs +104 -112
- package/web-types.json +85 -1
- package/x-input-tag/index.mjs +47 -50
- package/chunks/FormTemp.d079292b.mjs +0 -139
- package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
- package/chunks/detail.d6f8e347.mjs +0 -29
package/search/index.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as i } from "../chunks/util.ae730cde.mjs";
|
|
2
2
|
import { i as n } from "../chunks/init.47f219b4.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
|
-
import l from "
|
|
5
|
-
|
|
6
|
-
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
7
|
-
var _ = function() {
|
|
4
|
+
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var h = function() {
|
|
8
6
|
var t = this, e = t.$createElement, r = t._self._c || e;
|
|
9
|
-
return r(
|
|
7
|
+
return r("ElRow", {
|
|
10
8
|
class: ["avue-search", {
|
|
11
9
|
"avue--card": t.isCard
|
|
12
10
|
}],
|
|
@@ -14,7 +12,7 @@ var _ = function() {
|
|
|
14
12
|
span: 24
|
|
15
13
|
}
|
|
16
14
|
}, t._l(t.columnOption, function(s) {
|
|
17
|
-
return r(
|
|
15
|
+
return r("ElCol", {
|
|
18
16
|
key: s.prop,
|
|
19
17
|
staticClass: "avue-search__item",
|
|
20
18
|
attrs: {
|
|
@@ -33,15 +31,15 @@ var _ = function() {
|
|
|
33
31
|
"avue-search__tags--active": t.getActive(a, s)
|
|
34
32
|
}],
|
|
35
33
|
on: {
|
|
36
|
-
click: function(
|
|
34
|
+
click: function(v) {
|
|
37
35
|
return t.handleClick(s, a);
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
38
|
}, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
|
|
41
39
|
})], 2)]);
|
|
42
40
|
}), 1);
|
|
43
|
-
},
|
|
44
|
-
const
|
|
41
|
+
}, u = [];
|
|
42
|
+
const c = {
|
|
45
43
|
name: "Search",
|
|
46
44
|
mixins: [n],
|
|
47
45
|
props: {
|
|
@@ -60,10 +58,10 @@ const f = {
|
|
|
60
58
|
return this.parentOption.props || {};
|
|
61
59
|
},
|
|
62
60
|
labelKey() {
|
|
63
|
-
return
|
|
61
|
+
return i.label;
|
|
64
62
|
},
|
|
65
63
|
valueKey() {
|
|
66
|
-
return
|
|
64
|
+
return i.value;
|
|
67
65
|
},
|
|
68
66
|
mainSlot() {
|
|
69
67
|
const t = [];
|
|
@@ -122,24 +120,24 @@ const f = {
|
|
|
122
120
|
}
|
|
123
121
|
}
|
|
124
122
|
}
|
|
125
|
-
},
|
|
126
|
-
var
|
|
127
|
-
f,
|
|
128
|
-
_,
|
|
123
|
+
}, p = {};
|
|
124
|
+
var _ = /* @__PURE__ */ l(
|
|
129
125
|
c,
|
|
126
|
+
h,
|
|
127
|
+
u,
|
|
130
128
|
!1,
|
|
131
|
-
|
|
129
|
+
f,
|
|
132
130
|
null,
|
|
133
131
|
null,
|
|
134
132
|
null
|
|
135
133
|
);
|
|
136
|
-
function
|
|
137
|
-
for (let e in
|
|
138
|
-
this[e] =
|
|
134
|
+
function f(t) {
|
|
135
|
+
for (let e in p)
|
|
136
|
+
this[e] = p[e];
|
|
139
137
|
}
|
|
140
|
-
const
|
|
141
|
-
return
|
|
138
|
+
const g = /* @__PURE__ */ function() {
|
|
139
|
+
return _.exports;
|
|
142
140
|
}();
|
|
143
141
|
export {
|
|
144
|
-
|
|
142
|
+
g as default
|
|
145
143
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { chunk as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
-
var p = function() {
|
|
1
|
+
import { chunk as n } from "@web-utils/integrations/lodash";
|
|
2
|
+
import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var o = function() {
|
|
6
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
7
5
|
return a("div", {
|
|
8
6
|
staticClass: "static-pageable-table"
|
|
9
|
-
}, [a(
|
|
7
|
+
}, [a("ElTable", e._g(e._b({
|
|
10
8
|
attrs: {
|
|
11
9
|
size: "mini",
|
|
12
10
|
data: e.records
|
|
13
11
|
}
|
|
14
12
|
}, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
|
|
15
13
|
return [e._v("请添加表格列")];
|
|
16
|
-
})], 2), a(
|
|
14
|
+
})], 2), a("ElPagination", {
|
|
17
15
|
attrs: {
|
|
18
16
|
"current-page": e.page.page,
|
|
19
17
|
"hide-on-single-page": !0,
|
|
@@ -23,13 +21,13 @@ var p = function() {
|
|
|
23
21
|
layout: "total, prev, pager, next"
|
|
24
22
|
},
|
|
25
23
|
on: {
|
|
26
|
-
"current-change": function(
|
|
27
|
-
e.page.page =
|
|
24
|
+
"current-change": function(s) {
|
|
25
|
+
e.page.page = s;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
})], 1);
|
|
31
|
-
},
|
|
32
|
-
const
|
|
29
|
+
}, l = [];
|
|
30
|
+
const c = {
|
|
33
31
|
name: "StaticPageableTable",
|
|
34
32
|
props: {
|
|
35
33
|
rows: {
|
|
@@ -68,27 +66,27 @@ const _ = {
|
|
|
68
66
|
},
|
|
69
67
|
methods: {
|
|
70
68
|
fetchData() {
|
|
71
|
-
this.records =
|
|
69
|
+
this.records = n(this.rows, this.page.limit)[this.page.page - 1];
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
}, r = {};
|
|
75
|
-
var
|
|
76
|
-
_,
|
|
77
|
-
p,
|
|
73
|
+
var p = /* @__PURE__ */ i(
|
|
78
74
|
c,
|
|
75
|
+
o,
|
|
76
|
+
l,
|
|
79
77
|
!1,
|
|
80
|
-
|
|
78
|
+
g,
|
|
81
79
|
null,
|
|
82
80
|
null,
|
|
83
81
|
null
|
|
84
82
|
);
|
|
85
|
-
function
|
|
83
|
+
function g(e) {
|
|
86
84
|
for (let t in r)
|
|
87
85
|
this[t] = r[t];
|
|
88
86
|
}
|
|
89
|
-
const
|
|
90
|
-
return
|
|
87
|
+
const h = /* @__PURE__ */ function() {
|
|
88
|
+
return p.exports;
|
|
91
89
|
}();
|
|
92
90
|
export {
|
|
93
|
-
|
|
91
|
+
h as default
|
|
94
92
|
};
|
package/swiper/index.mjs
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
var h = (t, e, s) => new Promise((i, r) => {
|
|
2
|
-
var
|
|
2
|
+
var d = (n) => {
|
|
3
3
|
try {
|
|
4
4
|
a(s.next(n));
|
|
5
5
|
} catch (o) {
|
|
6
6
|
r(o);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, c = (n) => {
|
|
9
9
|
try {
|
|
10
10
|
a(s.throw(n));
|
|
11
11
|
} catch (o) {
|
|
12
12
|
r(o);
|
|
13
13
|
}
|
|
14
|
-
}, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(
|
|
14
|
+
}, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(d, c);
|
|
15
15
|
a((s = s.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { getEleWidth as
|
|
18
|
-
import
|
|
17
|
+
import { getEleWidth as u } from "@web-utils/core";
|
|
18
|
+
import p from "@web-utils/component/resize-observer";
|
|
19
19
|
import "@web-utils/component/resize-observer/style.css";
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
var m = function() {
|
|
20
|
+
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
|
+
var w = function() {
|
|
23
22
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
24
23
|
return s("div", {
|
|
25
24
|
staticClass: "egd-swiper"
|
|
26
|
-
}, [s(
|
|
25
|
+
}, [s("ElButton", {
|
|
27
26
|
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
28
27
|
attrs: {
|
|
29
28
|
disabled: t.reachedLeft,
|
|
@@ -44,7 +43,7 @@ var m = function() {
|
|
|
44
43
|
ref: "swiperContent",
|
|
45
44
|
staticClass: "egd-swiper-content",
|
|
46
45
|
style: t.swiperContentStyle
|
|
47
|
-
}, [t._t("default")], 2)]), s(
|
|
46
|
+
}, [t._t("default")], 2)]), s("ElButton", {
|
|
48
47
|
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
49
48
|
attrs: {
|
|
50
49
|
disabled: t.reachedRight,
|
|
@@ -58,11 +57,11 @@ var m = function() {
|
|
|
58
57
|
notify: t.resize
|
|
59
58
|
}
|
|
60
59
|
})], 1);
|
|
61
|
-
},
|
|
60
|
+
}, m = [];
|
|
62
61
|
const v = {
|
|
63
62
|
name: "Swiper",
|
|
64
63
|
components: {
|
|
65
|
-
ResizeObserver:
|
|
64
|
+
ResizeObserver: p
|
|
66
65
|
},
|
|
67
66
|
data() {
|
|
68
67
|
return {
|
|
@@ -100,7 +99,7 @@ const v = {
|
|
|
100
99
|
let t = 0;
|
|
101
100
|
const e = [], { children: s } = this.$refs.swiperContent;
|
|
102
101
|
Array.prototype.forEach.call(s, (i) => {
|
|
103
|
-
const r =
|
|
102
|
+
const r = u(i);
|
|
104
103
|
t += r, e.push(r);
|
|
105
104
|
}), this.childrenWidth = e, this.swiperContentWidth = t;
|
|
106
105
|
},
|
|
@@ -161,24 +160,24 @@ const v = {
|
|
|
161
160
|
this.updateDuration(!1), this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend), this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
|
-
},
|
|
165
|
-
var
|
|
163
|
+
}, l = {};
|
|
164
|
+
var _ = /* @__PURE__ */ f(
|
|
166
165
|
v,
|
|
166
|
+
w,
|
|
167
167
|
m,
|
|
168
|
-
_,
|
|
169
168
|
!1,
|
|
170
|
-
|
|
169
|
+
X,
|
|
171
170
|
null,
|
|
172
171
|
null,
|
|
173
172
|
null
|
|
174
173
|
);
|
|
175
|
-
function
|
|
176
|
-
for (let e in
|
|
177
|
-
this[e] =
|
|
174
|
+
function X(t) {
|
|
175
|
+
for (let e in l)
|
|
176
|
+
this[e] = l[e];
|
|
178
177
|
}
|
|
179
|
-
const
|
|
180
|
-
return
|
|
178
|
+
const L = /* @__PURE__ */ function() {
|
|
179
|
+
return _.exports;
|
|
181
180
|
}();
|
|
182
181
|
export {
|
|
183
|
-
|
|
182
|
+
L as default
|
|
184
183
|
};
|
package/table-view/index.mjs
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var o = (e, r, t) => new Promise((s, l) => {
|
|
2
|
+
var a = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
c(t.next(
|
|
4
|
+
c(t.next(i));
|
|
5
5
|
} catch (h) {
|
|
6
6
|
l(h);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, b = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
c(t.throw(
|
|
10
|
+
c(t.throw(i));
|
|
11
11
|
} catch (h) {
|
|
12
12
|
l(h);
|
|
13
13
|
}
|
|
14
|
-
}, c = (
|
|
14
|
+
}, c = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(a, b);
|
|
15
15
|
c((t = t.apply(e, r)).next());
|
|
16
16
|
});
|
|
17
17
|
import { merge as n } from "@web-utils/integrations/lodash";
|
|
18
|
-
import { isString as d, isArray as
|
|
19
|
-
import { k as
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import $ from "element-ui/lib/row";
|
|
23
|
-
import S from "element-ui/lib/form";
|
|
24
|
-
import { n as T } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
25
|
-
var C = function() {
|
|
18
|
+
import { isString as d, isArray as m, trace as f, warning as _, toStringArray as g, isFunction as w, hasOwn as p } from "@web-utils/core";
|
|
19
|
+
import { k as v } from "../chunks/index.57f871af.mjs";
|
|
20
|
+
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
|
+
var P = function() {
|
|
26
22
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
27
23
|
return t("div", {
|
|
28
24
|
staticClass: "table-view"
|
|
@@ -73,7 +69,7 @@ var C = function() {
|
|
|
73
69
|
scopedSlots: e._u([{
|
|
74
70
|
key: "default",
|
|
75
71
|
fn: function(s) {
|
|
76
|
-
var l = s.node,
|
|
72
|
+
var l = s.node, a = s.data;
|
|
77
73
|
return [e._t("tree-node", function() {
|
|
78
74
|
return [t("span", [t("i", {
|
|
79
75
|
staticClass: "node-icon",
|
|
@@ -82,11 +78,11 @@ var C = function() {
|
|
|
82
78
|
return [e._v(e._s(l.label))];
|
|
83
79
|
}, {
|
|
84
80
|
node: l,
|
|
85
|
-
data:
|
|
81
|
+
data: a
|
|
86
82
|
})], 2)];
|
|
87
83
|
}, {
|
|
88
84
|
node: l,
|
|
89
|
-
data:
|
|
85
|
+
data: a
|
|
90
86
|
})];
|
|
91
87
|
}
|
|
92
88
|
}], null, !0)
|
|
@@ -115,7 +111,7 @@ var C = function() {
|
|
|
115
111
|
}
|
|
116
112
|
}, [e._m(0), t("div", {
|
|
117
113
|
staticClass: "slide-panel-content"
|
|
118
|
-
}, [t(
|
|
114
|
+
}, [t("ElForm", {
|
|
119
115
|
ref: "form",
|
|
120
116
|
attrs: {
|
|
121
117
|
"label-position": "right",
|
|
@@ -133,25 +129,25 @@ var C = function() {
|
|
|
133
129
|
block: "",
|
|
134
130
|
"wrap-col": !1
|
|
135
131
|
}
|
|
136
|
-
}, [t(
|
|
132
|
+
}, [t("ElRow", {
|
|
137
133
|
attrs: {
|
|
138
134
|
gutter: 0
|
|
139
135
|
}
|
|
140
136
|
}, [e._t("search-form", function() {
|
|
141
137
|
return [t("p", [e._v("请添加搜索条件!")])];
|
|
142
|
-
})], 2)], 1), t(
|
|
138
|
+
})], 2)], 1), t("ElFormItem", {
|
|
143
139
|
attrs: {
|
|
144
140
|
"label-width": "0"
|
|
145
141
|
}
|
|
146
142
|
}, [t("div", {
|
|
147
143
|
staticClass: "slide-panel-actions"
|
|
148
|
-
}, [t(
|
|
144
|
+
}, [t("ElButton", {
|
|
149
145
|
attrs: {
|
|
150
146
|
type: "primary",
|
|
151
147
|
"native-type": "submit",
|
|
152
148
|
size: "mini"
|
|
153
149
|
}
|
|
154
|
-
}, [e._v(" 开始搜索 ")]), t(
|
|
150
|
+
}, [e._v(" 开始搜索 ")]), t("ElButton", {
|
|
155
151
|
attrs: {
|
|
156
152
|
size: "mini"
|
|
157
153
|
},
|
|
@@ -159,7 +155,7 @@ var C = function() {
|
|
|
159
155
|
click: e.onClearClick
|
|
160
156
|
}
|
|
161
157
|
}, [e._v(" 清除条件 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
|
|
162
|
-
},
|
|
158
|
+
}, S = [function() {
|
|
163
159
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
164
160
|
return t("div", {
|
|
165
161
|
staticClass: "slide-panel-line"
|
|
@@ -167,7 +163,7 @@ var C = function() {
|
|
|
167
163
|
staticClass: "slide-panel-line-indicator"
|
|
168
164
|
})]);
|
|
169
165
|
}];
|
|
170
|
-
const
|
|
166
|
+
const $ = [
|
|
171
167
|
"back",
|
|
172
168
|
"create",
|
|
173
169
|
"save",
|
|
@@ -187,16 +183,16 @@ const k = [
|
|
|
187
183
|
"disabled",
|
|
188
184
|
"reload",
|
|
189
185
|
"slot"
|
|
190
|
-
],
|
|
186
|
+
], T = {
|
|
191
187
|
name: "TableView",
|
|
192
188
|
bus: {
|
|
193
189
|
reloadTableView(e, r) {
|
|
194
190
|
if (this._viewIds)
|
|
195
|
-
if (d(e) ||
|
|
191
|
+
if (d(e) || m(e)) {
|
|
196
192
|
let t = e;
|
|
197
|
-
d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (
|
|
193
|
+
d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
|
|
198
194
|
} else
|
|
199
|
-
|
|
195
|
+
_.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
200
196
|
}
|
|
201
197
|
},
|
|
202
198
|
props: {
|
|
@@ -264,20 +260,20 @@ const k = [
|
|
|
264
260
|
},
|
|
265
261
|
computed: {
|
|
266
262
|
buttonSlots() {
|
|
267
|
-
return
|
|
263
|
+
return $.filter((e) => this.$scopedSlots[e]);
|
|
268
264
|
},
|
|
269
265
|
toolbarProps() {
|
|
270
266
|
var s, l;
|
|
271
267
|
const e = {}, r = n(this.toolbarAttrs, e);
|
|
272
268
|
let t = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
|
|
273
|
-
return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons =
|
|
269
|
+
return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons = g(r.buttons), r.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), r;
|
|
274
270
|
},
|
|
275
271
|
treeProps() {
|
|
276
272
|
const e = {
|
|
277
273
|
treeProps: {
|
|
278
274
|
children: "children",
|
|
279
275
|
label: "label",
|
|
280
|
-
isLeaf: (r) =>
|
|
276
|
+
isLeaf: (r) => p(r, "hasChildren") ? !r.hasChildren : p(r, "hasChild") ? !r.hasChild : !0
|
|
281
277
|
},
|
|
282
278
|
show: !1,
|
|
283
279
|
lazy: !0,
|
|
@@ -309,7 +305,7 @@ const k = [
|
|
|
309
305
|
this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
|
|
310
306
|
},
|
|
311
307
|
activated() {
|
|
312
|
-
return
|
|
308
|
+
return o(this, null, function* () {
|
|
313
309
|
this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
|
|
314
310
|
});
|
|
315
311
|
},
|
|
@@ -321,17 +317,17 @@ const k = [
|
|
|
321
317
|
this.right = this.right === 0 ? -this.searchPanelProps.width : 0;
|
|
322
318
|
},
|
|
323
319
|
onSearchClick() {
|
|
324
|
-
return
|
|
320
|
+
return o(this, null, function* () {
|
|
325
321
|
this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
|
|
326
322
|
});
|
|
327
323
|
},
|
|
328
324
|
onClearClick() {
|
|
329
|
-
return
|
|
325
|
+
return o(this, null, function* () {
|
|
330
326
|
this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
|
|
331
327
|
});
|
|
332
328
|
},
|
|
333
329
|
openFrom(e) {
|
|
334
|
-
this.$router.push(
|
|
330
|
+
this.$router.push(v(this.formPath, e));
|
|
335
331
|
},
|
|
336
332
|
rowDbClick(e) {
|
|
337
333
|
var r;
|
|
@@ -345,10 +341,10 @@ const k = [
|
|
|
345
341
|
!((e = this.toolbarListeners) != null && e.create) && this.formPath && this.openFrom();
|
|
346
342
|
},
|
|
347
343
|
del() {
|
|
348
|
-
return
|
|
344
|
+
return o(this, null, function* () {
|
|
349
345
|
var r;
|
|
350
346
|
const e = this.deleteApi || this.$parent.del;
|
|
351
|
-
if (!((r = this.toolbarListeners) != null && r.del) &&
|
|
347
|
+
if (!((r = this.toolbarListeners) != null && r.del) && w(e)) {
|
|
352
348
|
if (!this.selectedRows.length) {
|
|
353
349
|
this.$message.warning("请选择要删除的记录!");
|
|
354
350
|
return;
|
|
@@ -361,11 +357,11 @@ const k = [
|
|
|
361
357
|
modal: !0,
|
|
362
358
|
dangerouslyUseHTMLString: !0,
|
|
363
359
|
closeOnClickModal: !1,
|
|
364
|
-
beforeClose: (t, s, l) =>
|
|
360
|
+
beforeClose: (t, s, l) => o(this, null, function* () {
|
|
365
361
|
if (t === "confirm")
|
|
366
362
|
try {
|
|
367
|
-
s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", yield e.call(this, this.selectedRows.map((
|
|
368
|
-
} catch (
|
|
363
|
+
s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", yield e.call(this, this.selectedRows.map((a) => a.id).join(",")), this.$message.success("删除成功"), yield this.reloadTable(), yield this.refreshTree();
|
|
364
|
+
} catch (a) {
|
|
369
365
|
}
|
|
370
366
|
l();
|
|
371
367
|
})
|
|
@@ -379,7 +375,7 @@ const k = [
|
|
|
379
375
|
(e = this.$refs.table) == null || e.reload();
|
|
380
376
|
},
|
|
381
377
|
refreshTable() {
|
|
382
|
-
return
|
|
378
|
+
return o(this, null, function* () {
|
|
383
379
|
var e;
|
|
384
380
|
yield (e = this.$refs.table) == null ? void 0 : e.getPage();
|
|
385
381
|
});
|
|
@@ -391,24 +387,24 @@ const k = [
|
|
|
391
387
|
return this.searchPanelProps.model;
|
|
392
388
|
}
|
|
393
389
|
}
|
|
394
|
-
},
|
|
395
|
-
var
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
390
|
+
}, u = {};
|
|
391
|
+
var C = /* @__PURE__ */ y(
|
|
392
|
+
T,
|
|
393
|
+
P,
|
|
394
|
+
S,
|
|
399
395
|
!1,
|
|
400
|
-
|
|
396
|
+
L,
|
|
401
397
|
null,
|
|
402
398
|
null,
|
|
403
399
|
null
|
|
404
400
|
);
|
|
405
|
-
function
|
|
406
|
-
for (let r in
|
|
407
|
-
this[r] =
|
|
401
|
+
function L(e) {
|
|
402
|
+
for (let r in u)
|
|
403
|
+
this[r] = u[r];
|
|
408
404
|
}
|
|
409
|
-
const
|
|
410
|
-
return
|
|
405
|
+
const M = /* @__PURE__ */ function() {
|
|
406
|
+
return C.exports;
|
|
411
407
|
}();
|
|
412
408
|
export {
|
|
413
|
-
|
|
409
|
+
M as default
|
|
414
410
|
};
|
package/tag-render/index.mjs
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
var
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
2
|
var r = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var l = (e, t, n) => t in e ?
|
|
3
|
+
var _ = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (e, t, n) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
|
|
5
5
|
for (var n in t || (t = {}))
|
|
6
|
-
|
|
6
|
+
_.call(t, n) && l(e, n, t[n]);
|
|
7
7
|
if (r)
|
|
8
8
|
for (var n of r(t))
|
|
9
9
|
m.call(t, n) && l(e, n, t[n]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
12
|
import { hasOwn as i } from "@web-utils/core";
|
|
13
|
-
import g from "
|
|
14
|
-
|
|
15
|
-
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
-
var d = function() {
|
|
13
|
+
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
14
|
+
var f = function() {
|
|
17
15
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
18
16
|
return n("div", {
|
|
19
17
|
staticClass: "tag-render"
|
|
20
18
|
}, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
|
|
21
|
-
return n(
|
|
19
|
+
return n("ElTag", {
|
|
22
20
|
key: a,
|
|
23
21
|
attrs: {
|
|
24
22
|
closable: e.enable,
|
|
@@ -26,7 +24,7 @@ var d = function() {
|
|
|
26
24
|
"disable-transitions": ""
|
|
27
25
|
},
|
|
28
26
|
on: {
|
|
29
|
-
close: function(
|
|
27
|
+
close: function(b) {
|
|
30
28
|
return e.$emit("close", e.tags[a], a);
|
|
31
29
|
}
|
|
32
30
|
}
|
|
@@ -37,7 +35,7 @@ var d = function() {
|
|
|
37
35
|
color: "#b5b5b5",
|
|
38
36
|
"line-height": "16px"
|
|
39
37
|
}
|
|
40
|
-
}, [e._v("无")])], e.enable ? n(
|
|
38
|
+
}, [e._v("无")])], e.enable ? n("ElButton", {
|
|
41
39
|
staticClass: "add-tag",
|
|
42
40
|
attrs: {
|
|
43
41
|
size: "mini"
|
|
@@ -50,8 +48,8 @@ var d = function() {
|
|
|
50
48
|
}, [e._v("+ 添加")]) : e._e(), e.count ? n("span", {
|
|
51
49
|
staticClass: "tags-count"
|
|
52
50
|
}, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
|
|
53
|
-
},
|
|
54
|
-
const
|
|
51
|
+
}, d = [];
|
|
52
|
+
const p = {
|
|
55
53
|
name: "TagRender",
|
|
56
54
|
inject: {
|
|
57
55
|
elFormItem: {
|
|
@@ -96,23 +94,23 @@ const v = {
|
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
}, u = {};
|
|
99
|
-
var
|
|
100
|
-
|
|
97
|
+
var h = /* @__PURE__ */ g(
|
|
98
|
+
p,
|
|
99
|
+
f,
|
|
101
100
|
d,
|
|
102
|
-
h,
|
|
103
101
|
!1,
|
|
104
|
-
|
|
102
|
+
v,
|
|
105
103
|
null,
|
|
106
104
|
null,
|
|
107
105
|
null
|
|
108
106
|
);
|
|
109
|
-
function
|
|
107
|
+
function v(e) {
|
|
110
108
|
for (let t in u)
|
|
111
109
|
this[t] = u[t];
|
|
112
110
|
}
|
|
113
|
-
const
|
|
114
|
-
return
|
|
111
|
+
const $ = /* @__PURE__ */ function() {
|
|
112
|
+
return h.exports;
|
|
115
113
|
}();
|
|
116
114
|
export {
|
|
117
|
-
|
|
115
|
+
$ as default
|
|
118
116
|
};
|