@web-utils/component 3.8.2 → 4.0.0
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/card/index.mjs +13 -13
- package/chat/index.mjs +2 -2
- package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- package/dialog-form/index.mjs +6 -6
- package/flow/index.mjs +30 -32
- package/flow-designer/index.mjs +1 -1
- package/flow-node/index.mjs +1 -1
- package/form-holder/index.mjs +18 -36
- package/form-view/index.mjs +21 -23
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +141 -137
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +27 -19
- package/fy-dynamic/index.mjs +64 -57
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form-design/index.mjs +15 -16
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +56 -51
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +46 -38
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +3 -3
- package/highlight-j-s/index.mjs +1 -1
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +10 -12
- package/package.json +17 -17
- package/pageable-table/index.mjs +33 -37
- package/pageable-view/index.mjs +53 -57
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +3 -3
- package/table-view/index.mjs +1 -3
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +117 -97
- package/vue-quill-editor/index.mjs +24 -13
- package/vue-tags-input/index.mjs +21 -10
- package/vue-video-player/index.mjs +10 -12
- package/web-types.json +2 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
3
|
"description": "Web Components",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
"@tinymce/tinymce-vue": "3.2.8",
|
|
18
18
|
"@wangeditor/editor": "^5.1.23",
|
|
19
19
|
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
20
|
-
"@web-utils/core": "^
|
|
21
|
-
"@web-utils/integrations": "^
|
|
22
|
-
"@web-utils/vue": "^
|
|
23
|
-
"bpmn-js": "^18.
|
|
24
|
-
"bpmn-js-token-simulation": "^0.
|
|
25
|
-
"codemirror": "^5.65.
|
|
26
|
-
"countup.js": "^2.
|
|
20
|
+
"@web-utils/core": "^5.0.1",
|
|
21
|
+
"@web-utils/integrations": "^5.0.1",
|
|
22
|
+
"@web-utils/vue": "^5.0.1",
|
|
23
|
+
"bpmn-js": "^18.13.1",
|
|
24
|
+
"bpmn-js-token-simulation": "^0.39.3",
|
|
25
|
+
"codemirror": "^5.65.20",
|
|
26
|
+
"countup.js": "^2.10.0",
|
|
27
27
|
"cronosjs": "^1.7.1",
|
|
28
|
-
"dayjs": "^1.11.
|
|
29
|
-
"diagram-js": "15.
|
|
28
|
+
"dayjs": "^1.11.20",
|
|
29
|
+
"diagram-js": "15.9.1",
|
|
30
30
|
"echarts": "^6.0.0",
|
|
31
31
|
"highlight.js": "^11.11.1",
|
|
32
|
-
"lodash-es": "^4.17.
|
|
33
|
-
"min-dash": "^
|
|
34
|
-
"min-dom": "^5.
|
|
35
|
-
"monaco-editor": "^0.
|
|
36
|
-
"overlayscrollbars": "^2.
|
|
32
|
+
"lodash-es": "^4.17.23",
|
|
33
|
+
"min-dash": "^5.0.0",
|
|
34
|
+
"min-dom": "^5.3.0",
|
|
35
|
+
"monaco-editor": "^0.55.1",
|
|
36
|
+
"overlayscrollbars": "^2.14.0",
|
|
37
37
|
"photoswipe": "^5.4.4",
|
|
38
38
|
"qrcode": "^1.5.4",
|
|
39
39
|
"quill": "^1.3.7",
|
|
40
40
|
"resize-detector": "^0.3.0",
|
|
41
41
|
"simple-uploader.js": "^0.6.0",
|
|
42
|
-
"tiny-svg": "^4.1.
|
|
42
|
+
"tiny-svg": "^4.1.4",
|
|
43
43
|
"tinymce": "4.9.11",
|
|
44
|
-
"video.js": "^8.23.
|
|
44
|
+
"video.js": "^8.23.7",
|
|
45
45
|
"viewerjs": "^1.11.7",
|
|
46
46
|
"vue-cropper": "^0.6.5",
|
|
47
47
|
"vuedraggable": "^2.24.3",
|
package/pageable-table/index.mjs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
var _ = Object.defineProperty, $ = Object.defineProperties;
|
|
2
2
|
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var p = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, o = (t, e) => {
|
|
6
6
|
for (var a in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
b.call(e, a) && f(t, a, e[a]);
|
|
8
8
|
if (p)
|
|
9
9
|
for (var a of p(e))
|
|
10
|
-
|
|
10
|
+
m.call(e, a) && f(t, a, e[a]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, c = (t, e) => $(t, w(e));
|
|
13
13
|
var y = (t, e) => {
|
|
14
14
|
var a = {};
|
|
15
15
|
for (var s in t)
|
|
16
|
-
|
|
16
|
+
b.call(t, s) && e.indexOf(s) < 0 && (a[s] = t[s]);
|
|
17
17
|
if (t != null && p)
|
|
18
18
|
for (var s of p(t))
|
|
19
|
-
e.indexOf(s) < 0 &&
|
|
19
|
+
e.indexOf(s) < 0 && m.call(t, s) && (a[s] = t[s]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var g = (t, e, a) => new Promise((s, l) => {
|
|
23
|
+
var u = (r) => {
|
|
24
24
|
try {
|
|
25
25
|
i(a.next(r));
|
|
26
|
-
} catch (
|
|
27
|
-
l(
|
|
26
|
+
} catch (h) {
|
|
27
|
+
l(h);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, d = (r) => {
|
|
30
30
|
try {
|
|
31
31
|
i(a.throw(r));
|
|
32
|
-
} catch (
|
|
33
|
-
l(
|
|
32
|
+
} catch (h) {
|
|
33
|
+
l(h);
|
|
34
34
|
}
|
|
35
|
-
}, i = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(
|
|
35
|
+
}, i = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(u, d);
|
|
36
36
|
i((a = a.apply(t, e)).next());
|
|
37
37
|
});
|
|
38
38
|
import { hasOwn as v } from "@web-utils/core";
|
|
39
39
|
import { cloneDeep as S, merge as C } from "@web-utils/integrations/lodash";
|
|
40
40
|
import { f as T, h as k, i as B } from "../chunks/index.MAFc4eFi.mjs";
|
|
41
41
|
import { n as P } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
42
|
-
const
|
|
42
|
+
const n = {
|
|
43
43
|
loading: 1,
|
|
44
44
|
error: -1,
|
|
45
45
|
empty: 2,
|
|
@@ -121,13 +121,13 @@ const o = {
|
|
|
121
121
|
},
|
|
122
122
|
data() {
|
|
123
123
|
let t = { rules: [] };
|
|
124
|
-
this.rules && this.rules.length > 0 && (t.rules = this.rules), this.filters && (t = this.filters), this.filter && (t =
|
|
124
|
+
this.rules && this.rules.length > 0 && (t.rules = this.rules), this.filters && (t = this.filters), this.filter && (t = o(o({}, t), this.filter));
|
|
125
125
|
let e = {};
|
|
126
126
|
this.model && (e = S(this.model));
|
|
127
127
|
const a = this.pageSize;
|
|
128
128
|
return {
|
|
129
|
-
TABLE_STATUS: Object.freeze(
|
|
130
|
-
tableStatus:
|
|
129
|
+
TABLE_STATUS: Object.freeze(n),
|
|
130
|
+
tableStatus: n.empty,
|
|
131
131
|
records: [],
|
|
132
132
|
currentRow: null,
|
|
133
133
|
page: {
|
|
@@ -206,9 +206,7 @@ const o = {
|
|
|
206
206
|
e && ((a = e.$refs.tooltip) == null || a.hide()), this.$emit("row-dblclick", ...t);
|
|
207
207
|
},
|
|
208
208
|
updateTableScrollPosition() {
|
|
209
|
-
|
|
210
|
-
this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
211
|
-
});
|
|
209
|
+
this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
212
210
|
},
|
|
213
211
|
filterTableProperties: B,
|
|
214
212
|
filterTableEvents: k,
|
|
@@ -246,7 +244,7 @@ const o = {
|
|
|
246
244
|
a > -1 && e.splice(a, 1);
|
|
247
245
|
},
|
|
248
246
|
addFilter({ field: t, op: e, value: a }) {
|
|
249
|
-
this.page.filters =
|
|
247
|
+
this.page.filters = c(o({}, this.page.filters), {
|
|
250
248
|
rules: [
|
|
251
249
|
{
|
|
252
250
|
field: t,
|
|
@@ -267,7 +265,7 @@ const o = {
|
|
|
267
265
|
this.setModel(this.model), this.getPage();
|
|
268
266
|
},
|
|
269
267
|
getPage() {
|
|
270
|
-
return
|
|
268
|
+
return g(this, null, function* () {
|
|
271
269
|
var r;
|
|
272
270
|
if (v(this.$attrs, "data")) {
|
|
273
271
|
this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
|
|
@@ -275,13 +273,13 @@ const o = {
|
|
|
275
273
|
}
|
|
276
274
|
this.records = [];
|
|
277
275
|
let t;
|
|
278
|
-
const i = this.page, { filters: e } = i, a = y(i, ["filters"]), s =
|
|
276
|
+
const i = this.page, { filters: e } = i, a = y(i, ["filters"]), s = o({}, a);
|
|
279
277
|
if ((r = e == null ? void 0 : e.rules) != null && r.length && (s.filters = { rules: e.rules }), this.api || this.url) {
|
|
280
|
-
this.tableStatus =
|
|
278
|
+
this.tableStatus = n.loading;
|
|
281
279
|
try {
|
|
282
280
|
this.api && (t = yield this.api(s)), this.url && (t = yield this.method(this.url, s));
|
|
283
|
-
} catch (
|
|
284
|
-
this.tableStatus =
|
|
281
|
+
} catch (h) {
|
|
282
|
+
this.tableStatus = n.error, console.error(h);
|
|
285
283
|
return;
|
|
286
284
|
}
|
|
287
285
|
} else {
|
|
@@ -291,20 +289,18 @@ const o = {
|
|
|
291
289
|
});
|
|
292
290
|
return;
|
|
293
291
|
}
|
|
294
|
-
const { data: l } = t || {}, { total:
|
|
295
|
-
this.page.total = Number(
|
|
292
|
+
const { data: l } = t || {}, { total: u, records: d } = l || {};
|
|
293
|
+
this.page.total = Number(u), this.records = d, !d || !d.length ? this.tableStatus = n.empty : this.tableStatus = n.success, this.$refs.table.doLayout(), this.$emit("page-loaded", l);
|
|
296
294
|
});
|
|
297
295
|
},
|
|
298
296
|
refresh() {
|
|
299
|
-
return
|
|
297
|
+
return g(this, null, function* () {
|
|
300
298
|
yield this.getPage();
|
|
301
299
|
});
|
|
302
300
|
},
|
|
303
301
|
reload() {
|
|
304
|
-
|
|
305
|
-
this.page
|
|
306
|
-
total: this.page.total
|
|
307
|
-
});
|
|
302
|
+
this.page = c(o({}, this.$options.data.call(this).page), {
|
|
303
|
+
total: this.page.total
|
|
308
304
|
});
|
|
309
305
|
},
|
|
310
306
|
scrollTo(t, e) {
|
|
@@ -343,7 +339,7 @@ var x = function() {
|
|
|
343
339
|
null,
|
|
344
340
|
null
|
|
345
341
|
);
|
|
346
|
-
const
|
|
342
|
+
const j = R.exports;
|
|
347
343
|
export {
|
|
348
|
-
|
|
344
|
+
j as default
|
|
349
345
|
};
|
package/pageable-view/index.mjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
var $ = Object.defineProperty, T = Object.defineProperties;
|
|
2
2
|
var _ = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var c = Object.getOwnPropertySymbols;
|
|
4
|
+
var m = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var u = (e, t, s) => t in e ? $(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, r = (e, t) => {
|
|
6
6
|
for (var s in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
7
|
+
m.call(t, s) && u(e, s, t[s]);
|
|
8
|
+
if (c)
|
|
9
|
+
for (var s of c(t))
|
|
10
|
+
b.call(t, s) && u(e, s, t[s]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, p = (e, t) => T(e, _(t));
|
|
13
|
+
var S = (e, t) => {
|
|
14
14
|
var s = {};
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var
|
|
19
|
-
t.indexOf(
|
|
15
|
+
for (var l in e)
|
|
16
|
+
m.call(e, l) && t.indexOf(l) < 0 && (s[l] = e[l]);
|
|
17
|
+
if (e != null && c)
|
|
18
|
+
for (var l of c(e))
|
|
19
|
+
t.indexOf(l) < 0 && b.call(e, l) && (s[l] = e[l]);
|
|
20
20
|
return s;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var g = (
|
|
22
|
+
var f = (e, t, s) => new Promise((l, o) => {
|
|
23
|
+
var g = (i) => {
|
|
24
24
|
try {
|
|
25
|
-
a(s.next(
|
|
26
|
-
} catch (
|
|
27
|
-
|
|
25
|
+
a(s.next(i));
|
|
26
|
+
} catch (h) {
|
|
27
|
+
o(h);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, n = (i) => {
|
|
30
30
|
try {
|
|
31
|
-
a(s.throw(
|
|
32
|
-
} catch (
|
|
33
|
-
|
|
31
|
+
a(s.throw(i));
|
|
32
|
+
} catch (h) {
|
|
33
|
+
o(h);
|
|
34
34
|
}
|
|
35
|
-
}, a = (
|
|
35
|
+
}, a = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(g, n);
|
|
36
36
|
a((s = s.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import { cloneDeep as
|
|
39
|
-
import {
|
|
38
|
+
import { cloneDeep as y, merge as w } from "@web-utils/integrations/lodash";
|
|
39
|
+
import { hasOwn as P, copy as C } from "@web-utils/core";
|
|
40
40
|
import { f as v, h as x, i as O } from "../chunks/index.MAFc4eFi.mjs";
|
|
41
41
|
import { n as R } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
42
42
|
function k(e) {
|
|
@@ -46,7 +46,7 @@ function k(e) {
|
|
|
46
46
|
`;
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const d = {
|
|
50
50
|
loading: 1,
|
|
51
51
|
error: -1,
|
|
52
52
|
empty: 2,
|
|
@@ -111,13 +111,13 @@ const c = {
|
|
|
111
111
|
},
|
|
112
112
|
data() {
|
|
113
113
|
let e = { rules: [] };
|
|
114
|
-
this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e =
|
|
114
|
+
this.rules && this.rules.length > 0 && (e.rules = this.rules), this.filters && (e = this.filters), this.filter && (e = r(r({}, e), this.filter));
|
|
115
115
|
let t = {};
|
|
116
|
-
this.model && (t =
|
|
116
|
+
this.model && (t = y(this.model));
|
|
117
117
|
const s = this.pageSize;
|
|
118
118
|
return {
|
|
119
119
|
// TABLE_STATUS: Object.freeze(TABLE_STATUS),
|
|
120
|
-
tableStatus:
|
|
120
|
+
tableStatus: d.empty,
|
|
121
121
|
records: [],
|
|
122
122
|
loading: !1,
|
|
123
123
|
currentRow: null,
|
|
@@ -190,9 +190,7 @@ const c = {
|
|
|
190
190
|
},
|
|
191
191
|
methods: {
|
|
192
192
|
updateTableScrollPosition() {
|
|
193
|
-
|
|
194
|
-
this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
195
|
-
});
|
|
193
|
+
this.$refs.scroller && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
|
|
196
194
|
},
|
|
197
195
|
filterTableProperties: O,
|
|
198
196
|
filterTableEvents: x,
|
|
@@ -200,7 +198,7 @@ const c = {
|
|
|
200
198
|
onTableScroll() {
|
|
201
199
|
this.tableScrollTop = this.$refs.scroller.scrollTop, this.tableScrollLeft = this.$refs.scroller.scrollLeft;
|
|
202
200
|
},
|
|
203
|
-
copy: (e) =>
|
|
201
|
+
copy: (e) => C(k(e)),
|
|
204
202
|
onSortChange({ prop: e, order: t }) {
|
|
205
203
|
this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "";
|
|
206
204
|
},
|
|
@@ -221,17 +219,17 @@ const c = {
|
|
|
221
219
|
this.$set(this.page.model, e, t);
|
|
222
220
|
},
|
|
223
221
|
setModel(e) {
|
|
224
|
-
this.page.page = 1, this.page.model =
|
|
222
|
+
this.page.page = 1, this.page.model = y(e);
|
|
225
223
|
},
|
|
226
224
|
deleteModelField(e) {
|
|
227
225
|
delete this.page.model[e];
|
|
228
226
|
},
|
|
229
227
|
removeRule(e) {
|
|
230
|
-
const t = this.page.filters.rules, s = t.findIndex((
|
|
228
|
+
const t = this.page.filters.rules, s = t.findIndex((l) => l.field === e);
|
|
231
229
|
s > -1 && t.splice(s, 1);
|
|
232
230
|
},
|
|
233
231
|
addFilter({ field: e, op: t, value: s }) {
|
|
234
|
-
this.page.filters =
|
|
232
|
+
this.page.filters = p(r({}, this.page.filters), {
|
|
235
233
|
rules: [
|
|
236
234
|
{
|
|
237
235
|
field: e,
|
|
@@ -252,21 +250,21 @@ const c = {
|
|
|
252
250
|
this.setModel(this.model), this.getPage();
|
|
253
251
|
},
|
|
254
252
|
getPage() {
|
|
255
|
-
return
|
|
256
|
-
var
|
|
257
|
-
if (
|
|
253
|
+
return f(this, null, function* () {
|
|
254
|
+
var i;
|
|
255
|
+
if (P(this.$attrs, "data")) {
|
|
258
256
|
this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
|
|
259
257
|
return;
|
|
260
258
|
}
|
|
261
259
|
this.records = [];
|
|
262
260
|
let e;
|
|
263
|
-
const a = this.page, { filters: t } = a, s =
|
|
264
|
-
if ((
|
|
265
|
-
this.tableStatus =
|
|
261
|
+
const a = this.page, { filters: t } = a, s = S(a, ["filters"]), l = r({}, s);
|
|
262
|
+
if ((i = t == null ? void 0 : t.rules) != null && i.length && (l.filters = { rules: t.rules }), this.api || this.url) {
|
|
263
|
+
this.tableStatus = d.loading;
|
|
266
264
|
try {
|
|
267
|
-
this.loading = !0, this.api && (e = yield this.api(
|
|
268
|
-
} catch (
|
|
269
|
-
this.tableStatus =
|
|
265
|
+
this.loading = !0, this.api && (e = yield this.api(l)), this.url && (e = yield this.method(this.url, l)), this.loading = !1;
|
|
266
|
+
} catch (h) {
|
|
267
|
+
this.tableStatus = d.error, console.error(h), this.loading = !1;
|
|
270
268
|
return;
|
|
271
269
|
}
|
|
272
270
|
} else {
|
|
@@ -276,20 +274,18 @@ const c = {
|
|
|
276
274
|
});
|
|
277
275
|
return;
|
|
278
276
|
}
|
|
279
|
-
const { data:
|
|
280
|
-
this.page.total = Number(g), this.records =
|
|
277
|
+
const { data: o } = e || {}, { total: g, records: n } = o || {};
|
|
278
|
+
this.page.total = Number(g), this.records = n, !n || !n.length ? this.tableStatus = d.empty : this.tableStatus = d.success, this.$refs.table && (this.$refs.scroller.scrollTop = 0), this.$emit("page-loaded", o);
|
|
281
279
|
});
|
|
282
280
|
},
|
|
283
281
|
refresh() {
|
|
284
|
-
return
|
|
282
|
+
return f(this, null, function* () {
|
|
285
283
|
yield this.getPage();
|
|
286
284
|
});
|
|
287
285
|
},
|
|
288
286
|
reload() {
|
|
289
|
-
|
|
290
|
-
this.page
|
|
291
|
-
total: this.page.total
|
|
292
|
-
});
|
|
287
|
+
this.page = p(r({}, this.$options.data.call(this).page), {
|
|
288
|
+
total: this.page.total
|
|
293
289
|
});
|
|
294
290
|
},
|
|
295
291
|
scrollTo(e, t) {
|
|
@@ -299,10 +295,10 @@ const c = {
|
|
|
299
295
|
};
|
|
300
296
|
var F = function() {
|
|
301
297
|
var t = this, s = t._self._c;
|
|
302
|
-
return s("div", { staticClass: "work", staticStyle: { height: "100%", "background-color": "#fff" } }, [s("div", { staticClass: "flex-column list-content", staticStyle: { height: "100%" } }, [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], staticClass: "flex-item-relative", attrs: { "element-loading-text": "加载中...", "element-loading-background": "#fff" } }, [s("div", { ref: "scroller", staticClass: "scroll-wrapper" }, [s("div", { staticClass: "cards-block" }, [t._t("prepend"), t._l(t.records, function(
|
|
303
|
-
return [t._t("default", null, { item:
|
|
304
|
-
}), t._t("append")], 2)])]), s("ElPagination", { staticClass: "flex-not-shrink", staticStyle: { "border-top": "1px solid #ebeef5" }, attrs: { "current-page": t.page.page, "hide-on-single-page": t.hideOnSinglePage, "page-size": t.page.limit, total: t.page.total, background: "", layout: "total, prev, pager, next, jumper" }, on: { "current-change": (
|
|
305
|
-
t.page.page =
|
|
298
|
+
return s("div", { staticClass: "work", staticStyle: { height: "100%", "background-color": "#fff" } }, [s("div", { staticClass: "flex-column list-content", staticStyle: { height: "100%" } }, [s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], staticClass: "flex-item-relative", attrs: { "element-loading-text": "加载中...", "element-loading-background": "#fff" } }, [s("div", { ref: "scroller", staticClass: "scroll-wrapper" }, [s("div", { staticClass: "cards-block" }, [t._t("prepend"), t._l(t.records, function(l) {
|
|
299
|
+
return [t._t("default", null, { item: l })];
|
|
300
|
+
}), t._t("append")], 2)])]), s("ElPagination", { staticClass: "flex-not-shrink", staticStyle: { "border-top": "1px solid #ebeef5" }, attrs: { "current-page": t.page.page, "hide-on-single-page": t.hideOnSinglePage, "page-size": t.page.limit, total: t.page.total, background: "", layout: "total, prev, pager, next, jumper" }, on: { "current-change": (l) => {
|
|
301
|
+
t.page.page = l;
|
|
306
302
|
} } })], 1)]);
|
|
307
303
|
}, L = [], M = /* @__PURE__ */ R(
|
|
308
304
|
E,
|
package/record-video/index.mjs
CHANGED
package/search/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as p } from "../chunks/util.
|
|
2
|
-
import { i } from "../chunks/init.
|
|
1
|
+
import { D as p } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
|
+
import { i } from "../chunks/init.DAsXSoLW.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
const l = {
|
package/search-popover/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ var c = (r, e, t) => new Promise((s, i) => {
|
|
|
16
16
|
});
|
|
17
17
|
import { isInContainer as u, copy as d } from "@web-utils/core";
|
|
18
18
|
import p from "element-ui/lib/utils/clickoutside";
|
|
19
|
-
import { z as f } from "../chunks/util.
|
|
19
|
+
import { z as f } from "../chunks/util.DqFv_pWg.mjs";
|
|
20
20
|
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
21
21
|
const m = {
|
|
22
22
|
name: "SearchPopover",
|
package/sign/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as v } from "../chunks/util.
|
|
1
|
+
import { s as v } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
3
|
function p(e, s, n, r, t, o) {
|
|
4
4
|
e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
|
package/split-pane/index.mjs
CHANGED
|
@@ -23,19 +23,19 @@ function g(e, t) {
|
|
|
23
23
|
return !0;
|
|
24
24
|
return !1;
|
|
25
25
|
}
|
|
26
|
-
const h = function() {
|
|
26
|
+
const h = (function() {
|
|
27
27
|
return document.addEventListener ? function(e, t, s) {
|
|
28
28
|
e && t && s && e.addEventListener(t, s, !1);
|
|
29
29
|
} : function(e, t, s) {
|
|
30
30
|
e && t && s && e.attachEvent(`on${t}`, s);
|
|
31
31
|
};
|
|
32
|
-
}(), p = function() {
|
|
32
|
+
})(), p = (function() {
|
|
33
33
|
return document.removeEventListener ? function(e, t, s) {
|
|
34
34
|
e && t && e.removeEventListener(t, s, !1);
|
|
35
35
|
} : function(e, t, s) {
|
|
36
36
|
e && t && e.detachEvent(`on${t}`, s);
|
|
37
37
|
};
|
|
38
|
-
}(), m = {
|
|
38
|
+
})(), m = {
|
|
39
39
|
name: "Trigger",
|
|
40
40
|
props: {
|
|
41
41
|
mode: String,
|
package/table-view/index.mjs
CHANGED
|
@@ -160,9 +160,7 @@ const P = [
|
|
|
160
160
|
this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
|
|
161
161
|
},
|
|
162
162
|
activated() {
|
|
163
|
-
|
|
164
|
-
this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
|
|
165
|
-
});
|
|
163
|
+
this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
|
|
166
164
|
},
|
|
167
165
|
methods: {
|
|
168
166
|
onTreeScroll() {
|
package/text-ellipsis/index.mjs
CHANGED
package/verify/index.mjs
CHANGED