@lingshugroup/web-plus 1.0.7 → 1.0.9
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/README.md +5 -1
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/core/index/index.js +9 -9
- package/lib/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/core/index/index.js.br +0 -0
- package/lib/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/core/index/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index/index.js +6 -6
- package/lib/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index/index.js.br +0 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/utils/dom/style/index.js +3 -3
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/utils/dom/style/index.js.br +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/utils/dom/style/index.js.gz +0 -0
- package/lib/packages/ls-components/components/_directives/auth/index.cjs +1 -1
- package/lib/packages/ls-components/components/_directives/auth/index.js +25 -19
- package/lib/packages/ls-components/components/_directives/auth/index.js.br +0 -0
- package/lib/packages/ls-components/components/_directives/auth/index.js.gz +0 -0
- package/lib/packages/ls-components/components/_hooks/useDelayLoader/index.cjs +1 -0
- package/lib/packages/ls-components/components/_hooks/useDelayLoader/index.js +25 -0
- package/lib/packages/ls-components/components/_hooks/useTableListHook/index.cjs +1 -1
- package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js +90 -49
- package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js.br +0 -0
- package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js.gz +0 -0
- package/lib/packages/ls-components/components/button/Button.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/button/Button.vue/index.js +1 -1
- package/lib/packages/ls-components/components/button/Button.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/button/Button.vue/index2.js +26 -24
- package/lib/packages/ls-components/components/button/Button.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/button/Button.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/dialog/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js +43 -38
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/dialog/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/types/index.js +8 -4
- package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index.js +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.js +19 -19
- package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/list/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/types/index.js +4 -0
- package/lib/packages/ls-components/components/list/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/list/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/preview/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/preview/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview/Index.vue/index2.js +58 -55
- package/lib/packages/ls-components/components/preview/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/table/Table.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index.js +2 -2
- package/lib/packages/ls-components/components/table/Table.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index2.js +24 -24
- package/lib/packages/ls-components/components/table/Table.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/table/Table.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/upload/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js +99 -97
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/upload/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var a = (e, n) => M(e, "name", { value: n, configurable: !0 });
|
|
3
|
-
import { isString as V, noop as T, resolveUnref as I, tryOnScopeDispose as E,
|
|
3
|
+
import { isString as V, noop as T, resolveUnref as I, tryOnScopeDispose as E, isIOS as B, tryOnMounted as D, identity as z, isClient as J, isFunction as U, isDef as G } from "../../../../../@vueuse_shared@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index/index.js";
|
|
4
4
|
import { createFilterWrapper as me, debounceFilter as be, debouncedRef as _e, debouncedRef as ye, throttleFilter as ge, debouncedRef as Ie, useDebounceFn as he, useThrottleFn as we, useTimeoutFn as Ee } from "../../../../../@vueuse_shared@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index/index.js";
|
|
5
5
|
import { watch as _, ref as P, computed as W, getCurrentInstance as H } from "vue";
|
|
6
6
|
function m(e) {
|
|
@@ -9,7 +9,7 @@ function m(e) {
|
|
|
9
9
|
return (n = r == null ? void 0 : r.$el) != null ? n : r;
|
|
10
10
|
}
|
|
11
11
|
a(m, "unrefElement");
|
|
12
|
-
const y =
|
|
12
|
+
const y = J ? window : void 0;
|
|
13
13
|
function w(...e) {
|
|
14
14
|
let n, r, t, l;
|
|
15
15
|
if (V(e[0]) || Array.isArray(e[0]) ? ([r, t, l] = e, n = y) : [n, r, t, l] = e, !n)
|
|
@@ -30,7 +30,7 @@ function le(e, n, r = {}) {
|
|
|
30
30
|
const { window: t = y, ignore: l = [], capture: f = !0, detectIframe: s = !1 } = r;
|
|
31
31
|
if (!t)
|
|
32
32
|
return;
|
|
33
|
-
|
|
33
|
+
B && !N && (N = !0, Array.from(t.document.body.children).forEach((o) => o.addEventListener("click", T)));
|
|
34
34
|
let i = !0;
|
|
35
35
|
const d = /* @__PURE__ */ a((o) => l.some((u) => {
|
|
36
36
|
if (typeof u == "string")
|
|
@@ -65,7 +65,7 @@ function le(e, n, r = {}) {
|
|
|
65
65
|
a(le, "onClickOutside");
|
|
66
66
|
function L(e, n = !1) {
|
|
67
67
|
const r = P(), t = /* @__PURE__ */ a(() => r.value = !!e(), "update");
|
|
68
|
-
return t(),
|
|
68
|
+
return t(), D(t, n), r;
|
|
69
69
|
}
|
|
70
70
|
a(L, "useSupported");
|
|
71
71
|
function k(e) {
|
|
@@ -180,7 +180,7 @@ const se = {
|
|
|
180
180
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
181
181
|
};
|
|
182
182
|
oe({
|
|
183
|
-
linear:
|
|
183
|
+
linear: z
|
|
184
184
|
}, se);
|
|
185
185
|
function pe(e, n, r, t = {}) {
|
|
186
186
|
var l, f, s;
|
|
@@ -217,18 +217,18 @@ export {
|
|
|
217
217
|
be as debounceFilter,
|
|
218
218
|
_e as debouncedRef,
|
|
219
219
|
y as defaultWindow,
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
z as identity,
|
|
221
|
+
J as isClient,
|
|
222
222
|
G as isDef,
|
|
223
223
|
U as isFunction,
|
|
224
|
-
|
|
224
|
+
B as isIOS,
|
|
225
225
|
V as isString,
|
|
226
226
|
T as noop,
|
|
227
227
|
le as onClickOutside,
|
|
228
228
|
ye as refDebounced,
|
|
229
229
|
I as resolveUnref,
|
|
230
230
|
ge as throttleFilter,
|
|
231
|
-
|
|
231
|
+
D as tryOnMounted,
|
|
232
232
|
E as tryOnScopeDispose,
|
|
233
233
|
m as unrefElement,
|
|
234
234
|
ce as useCssVar,
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var F = Object.defineProperty;
|
|
2
2
|
var t = (e, i) => F(e, "name", { value: i, configurable: !0 });
|
|
3
|
-
import {
|
|
3
|
+
import { unref as b, getCurrentScope as S, onScopeDispose as C, ref as h, watch as O, getCurrentInstance as j, onMounted as A, nextTick as M, readonly as R } from "vue";
|
|
4
4
|
var g;
|
|
5
5
|
const y = typeof window < "u", V = /* @__PURE__ */ t((e) => typeof e < "u", "isDef"), k = /* @__PURE__ */ t((e) => typeof e == "function", "isFunction"), q = /* @__PURE__ */ t((e) => typeof e == "string", "isString"), m = /* @__PURE__ */ t(() => {
|
|
6
6
|
}, "noop"), z = y && ((g = window == null ? void 0 : window.navigator) == null ? void 0 : g.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
7
7
|
function p(e) {
|
|
8
|
-
return typeof e == "function" ? e() :
|
|
8
|
+
return typeof e == "function" ? e() : b(e);
|
|
9
9
|
}
|
|
10
10
|
t(p, "resolveUnref");
|
|
11
11
|
function P(e, i) {
|
|
@@ -54,7 +54,7 @@ function B(e) {
|
|
|
54
54
|
}
|
|
55
55
|
t(B, "identity");
|
|
56
56
|
function _(e) {
|
|
57
|
-
return
|
|
57
|
+
return S() ? (C(e), !0) : !1;
|
|
58
58
|
}
|
|
59
59
|
t(_, "tryOnScopeDispose");
|
|
60
60
|
function E(e, i = 200, u = {}) {
|
|
@@ -65,7 +65,7 @@ function G(e, i = 200, u = {}) {
|
|
|
65
65
|
const n = h(e.value), r = E(() => {
|
|
66
66
|
n.value = e.value;
|
|
67
67
|
}, i, u);
|
|
68
|
-
return
|
|
68
|
+
return O(e, () => r()), n;
|
|
69
69
|
}
|
|
70
70
|
t(G, "refDebounced");
|
|
71
71
|
function H(e, i = 200, u = !1, n = !0, r = !1) {
|
|
@@ -73,7 +73,7 @@ function H(e, i = 200, u = !1, n = !0, r = !1) {
|
|
|
73
73
|
}
|
|
74
74
|
t(H, "useThrottleFn");
|
|
75
75
|
function J(e, i = !0) {
|
|
76
|
-
|
|
76
|
+
j() ? A(e) : i ? e() : M(e);
|
|
77
77
|
}
|
|
78
78
|
t(J, "tryOnMounted");
|
|
79
79
|
function K(e, i, u = {}) {
|
|
@@ -95,7 +95,7 @@ function K(e, i, u = {}) {
|
|
|
95
95
|
}, p(i));
|
|
96
96
|
}
|
|
97
97
|
return t(l, "start"), n && (r.value = !0, y && l()), _(s), {
|
|
98
|
-
isPending:
|
|
98
|
+
isPending: R(r),
|
|
99
99
|
start: l,
|
|
100
100
|
stop: s
|
|
101
101
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var s = (t, r) => u(t, "name", { value: r, configurable: !0 });
|
|
3
3
|
import { isNumber as c, isStringNumber as m } from "../../types/index.js";
|
|
4
4
|
import { debugWarn as f } from "../../error/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { isString as d, camelize as l } from "../../../../../../../@vue_shared@3.4.38/node_modules/@vue/shared/dist/shared.esm-bundler/index.js";
|
|
6
6
|
import { isClient as p } from "../../../../../../../@vueuse_shared@9.13.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index/index.js";
|
|
7
7
|
const y = "utils/dom/style", a = /* @__PURE__ */ s((t = "") => t.split(" ").filter((r) => !!r.trim()), "classNameToArray"), w = /* @__PURE__ */ s((t, r) => {
|
|
8
8
|
if (!t || !r)
|
|
@@ -18,7 +18,7 @@ const y = "utils/dom/style", a = /* @__PURE__ */ s((t = "") => t.split(" ").filt
|
|
|
18
18
|
var o;
|
|
19
19
|
if (!p || !t || !r)
|
|
20
20
|
return "";
|
|
21
|
-
let i =
|
|
21
|
+
let i = l(r);
|
|
22
22
|
i === "float" && (i = "cssFloat");
|
|
23
23
|
try {
|
|
24
24
|
const n = t.style[i];
|
|
@@ -35,7 +35,7 @@ function E(t, r = "px") {
|
|
|
35
35
|
return "";
|
|
36
36
|
if (c(t) || m(t))
|
|
37
37
|
return `${t}${r}`;
|
|
38
|
-
if (
|
|
38
|
+
if (d(t))
|
|
39
39
|
return t;
|
|
40
40
|
f(y, "binding value must be a string or number");
|
|
41
41
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c={permissions:[],mounted(e,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c={permissions:[],mounted(e,r){const o=r.dir.permissions,{code:a,show:s}=r.value,d=document.createComment("v-auth"),m=e.getAttribute("aria-labelledby");if(e._auths={comment:d,parentNode:e.parentNode},m){const t=document.createComment("v-auth2");e._auths.elTabId=m,e._auths.comment2=t}if(a&&o&&!o.includes(a)||typeof s<"u"&&!s){if(m){const t=e.parentNode.parentNode.querySelector(`#${m}`);t&&(e._auths.tabItemNode=t,e._auths.tabItemParentNode=t.parentNode,t.parentNode.insertBefore(e._auths.comment2,t),t.remove())}e.parentNode.insertBefore(d,e),e.remove()}},updated(e,r){const o=r.dir.permissions,{code:a,show:s}=r.value,{comment:d,parentNode:m,elTabId:t}=e._auths;if(a&&o&&!o.includes(a)||typeof s<"u"&&!s){if(t){const{comment2:i}=e._auths,n=m.parentNode.querySelector(`#${t}`);n&&(e._auths.tabItemNode=n,e._auths.tabItemParentNode=n.parentNode,n.parentNode.insertBefore(i,n),n.remove())}e.parentNode&&(m.insertBefore(d,e),e.remove())}else{if(t){const{comment2:i,tabItemNode:n,tabItemParentNode:u}=e._auths;i.parentNode&&n&&u&&(u.insertBefore(n,i),i.remove())}d.parentNode&&(m.insertBefore(e,d),d.remove())}},unmounted(e){const{comment:r,comment2:o,tabItemNode:a,tabItemParentNode:s}=e._auths;r.parentNode&&r.remove(),o&&o.parentNode&&o.remove(),a&&a.remove(),s&&s.remove()}};exports.default=c;
|
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
const u = {
|
|
2
2
|
permissions: [],
|
|
3
|
-
mounted(e,
|
|
4
|
-
const
|
|
5
|
-
if (e._auths = { comment:
|
|
6
|
-
const
|
|
7
|
-
e._auths.elTabId = m, e._auths.comment2 =
|
|
3
|
+
mounted(e, a) {
|
|
4
|
+
const o = a.dir.permissions, { code: r, show: s } = a.value, d = document.createComment("v-auth"), m = e.getAttribute("aria-labelledby");
|
|
5
|
+
if (e._auths = { comment: d, parentNode: e.parentNode }, m) {
|
|
6
|
+
const t = document.createComment("v-auth2");
|
|
7
|
+
e._auths.elTabId = m, e._auths.comment2 = t;
|
|
8
|
+
}
|
|
9
|
+
if (r && o && !o.includes(r) || typeof s < "u" && !s) {
|
|
10
|
+
if (m) {
|
|
11
|
+
const t = e.parentNode.parentNode.querySelector(`#${m}`);
|
|
12
|
+
t && (e._auths.tabItemNode = t, e._auths.tabItemParentNode = t.parentNode, t.parentNode.insertBefore(e._auths.comment2, t), t.remove());
|
|
13
|
+
}
|
|
14
|
+
e.parentNode.insertBefore(d, e), e.remove();
|
|
8
15
|
}
|
|
9
|
-
(r && t && !t.includes(r) || typeof s < "u" && !s) && (e.parentNode.insertBefore(a, e), e.remove());
|
|
10
16
|
},
|
|
11
|
-
updated(e,
|
|
12
|
-
const
|
|
13
|
-
if (r &&
|
|
14
|
-
if (
|
|
15
|
-
const { comment2: i } = e._auths,
|
|
16
|
-
|
|
17
|
+
updated(e, a) {
|
|
18
|
+
const o = a.dir.permissions, { code: r, show: s } = a.value, { comment: d, parentNode: m, elTabId: t } = e._auths;
|
|
19
|
+
if (r && o && !o.includes(r) || typeof s < "u" && !s) {
|
|
20
|
+
if (t) {
|
|
21
|
+
const { comment2: i } = e._auths, n = m.parentNode.querySelector(`#${t}`);
|
|
22
|
+
n && (e._auths.tabItemNode = n, e._auths.tabItemParentNode = n.parentNode, n.parentNode.insertBefore(i, n), n.remove());
|
|
17
23
|
}
|
|
18
|
-
e.parentNode && (m.insertBefore(
|
|
24
|
+
e.parentNode && (m.insertBefore(d, e), e.remove());
|
|
19
25
|
} else {
|
|
20
|
-
if (
|
|
21
|
-
const { comment2: i, tabItemNode:
|
|
22
|
-
i.parentNode &&
|
|
26
|
+
if (t) {
|
|
27
|
+
const { comment2: i, tabItemNode: n, tabItemParentNode: c } = e._auths;
|
|
28
|
+
i.parentNode && n && c && (c.insertBefore(n, i), i.remove());
|
|
23
29
|
}
|
|
24
|
-
|
|
30
|
+
d.parentNode && (m.insertBefore(e, d), d.remove());
|
|
25
31
|
}
|
|
26
32
|
},
|
|
27
33
|
unmounted(e) {
|
|
28
|
-
const { comment:
|
|
29
|
-
|
|
34
|
+
const { comment: a, comment2: o, tabItemNode: r, tabItemParentNode: s } = e._auths;
|
|
35
|
+
a.parentNode && a.remove(), o && o.parentNode && o.remove(), r && r.remove(), s && s.remove();
|
|
30
36
|
}
|
|
31
37
|
};
|
|
32
38
|
export {
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var o=(e,t)=>d(e,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("vue");function c(e=500,t){const a=f.ref(!0);let l=null;async function n(s){a.value=!0;const i=Date.now();let u;try{u=await s()}finally{const r=Date.now()-i;r<e?l=setTimeout(()=>{a.value=!1,t(u),clearTimeout(l),l=null},e-r):(a.value=!1,t(u))}}return o(n,"loadData"),{loading:a,loadData:n}}o(c,"useDelayLoader");exports.default=c;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var n = (e, t) => i(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { ref as d } from "vue";
|
|
4
|
+
function D(e = 500, t) {
|
|
5
|
+
const a = d(!0);
|
|
6
|
+
let l = null;
|
|
7
|
+
async function u(s) {
|
|
8
|
+
a.value = !0;
|
|
9
|
+
const f = Date.now();
|
|
10
|
+
let o;
|
|
11
|
+
try {
|
|
12
|
+
o = await s();
|
|
13
|
+
} finally {
|
|
14
|
+
const r = Date.now() - f;
|
|
15
|
+
r < e ? l = setTimeout(() => {
|
|
16
|
+
a.value = !1, t(o), clearTimeout(l), l = null;
|
|
17
|
+
}, e - r) : (a.value = !1, t(o));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return n(u, "loadData"), { loading: a, loadData: u };
|
|
21
|
+
}
|
|
22
|
+
n(D, "useDelayLoader");
|
|
23
|
+
export {
|
|
24
|
+
D as default
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var E=Object.defineProperty;var t=(u,r)=>E(u,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../useDelayLoader/index.cjs"),l=require("vue");function O(u,r,P){const{currentPageProp:d=1,pageSizeProp:g=10,pageSizesProp:F=[10,20,30,40,50,100],isDelayLoader:y=!1,delayLoaderTime:N=300,isFullDose:D=!1,autoFetch:_=!0,hasPanigation:m=!0,dealParams:w,dealData:S,callbackAfter:h}=P||{},p=l.ref(!0),c=l.ref(!1),n=l.ref(d),i=l.ref(g),x=l.ref(F),o=l.ref([]),T=l.ref([]),s=l.ref(0),L=t(e=>{if(m){if(D){const a=e||[];o.value=a||[],T.value=a,s.value=Number(a.length)}else if(S&&typeof S=="function"){const{data:a,total:v=0}=S(e);o.value=a||[],s.value=Number(v||0)}else{const{records:a=[],total:v}=e||{};o.value=a||[],s.value=Number(v)}h&&h(e,{tableData:o,total:s})}else o.value=e,h&&h(e,{})},"disposeResponseData"),k=t(()=>new Promise((e,a)=>{if(!u){a(new Error("requestFn is required"));return}const v=(typeof r=="function"?r():r)||{};let z={currentPage:m?n.value:null,pageSize:m?i.value:null,...v};w&&(z=w(z)),u(z).then(b=>{y||L(b),e(b)}).catch(b=>{a(b)}).finally(()=>{c.value=!1,setTimeout(()=>{p.value=!1},400)})}),"requestData"),C=H.default(N||300,e=>{L(e)}),f=t((e=!0,a=!1)=>{if(u&&!(e&&c.value)){if(e&&(c.value=!0),a&&(p.value=!0),y){C.loadData(k);return}k().finally(()=>{c.value=!1})}},"loadData");l.watch(n,e=>{M(e)}),l.watch(i,e=>{R(e)});const M=t(e=>{n.value=e,D?q(o,T,s,n,i):f()},"handleCurrentPageChange"),R=t(e=>{i.value=e,n.value=1,D?q(o,T,s,n,i):f()},"handleSizeChange"),A=t(()=>{n.value=1,l.nextTick(()=>{f()})},"handleReset");return l.onMounted(()=>{_&&(p.value=!0,f())}),{isFirst:p,loading:y?C.loading:c,pageSize:i,pageSizes:x,currentPage:n,tableData:o,total:s,handleCurrentPageChange:M,handleSizeChange:R,handleReset:A,loadData:f}}t(O,"useTableListHook");function q(u,r,P,d,g){u.value=r.value.slice((d.value-1)*g.value,d.value*g.value),P.value=u.value.length}t(q,"sliceTableData");exports.default=O;
|
|
@@ -1,62 +1,103 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var l = (t, s) => B(t, "name", { value: s, configurable: !0 });
|
|
3
|
+
import G from "../useDelayLoader/index.js";
|
|
4
|
+
import { ref as o, watch as F, onMounted as I, nextTick as J } from "vue";
|
|
5
|
+
function U(t, s, D) {
|
|
6
|
+
const {
|
|
7
|
+
currentPageProp: d = 1,
|
|
8
|
+
pageSizeProp: g = 10,
|
|
9
|
+
pageSizesProp: A = [10, 20, 30, 40, 50, 100],
|
|
10
|
+
isDelayLoader: P = !1,
|
|
11
|
+
delayLoaderTime: E = 300,
|
|
12
|
+
isFullDose: b = !1,
|
|
13
|
+
autoFetch: H = !0,
|
|
14
|
+
hasPanigation: y = !0,
|
|
15
|
+
dealParams: L,
|
|
16
|
+
dealData: S,
|
|
17
|
+
callbackAfter: p
|
|
18
|
+
} = D || {}, h = o(!0), c = o(!1), u = o(d), r = o(g), M = o(A), n = o([]), z = o([]), i = o(0), k = /* @__PURE__ */ l((e) => {
|
|
19
|
+
if (y) {
|
|
20
|
+
if (b) {
|
|
21
|
+
const a = e || [];
|
|
22
|
+
n.value = a || [], z.value = a, i.value = Number(a.length);
|
|
23
|
+
} else if (S && typeof S == "function") {
|
|
24
|
+
const { data: a, total: v = 0 } = S(e);
|
|
25
|
+
n.value = a || [], i.value = Number(v || 0);
|
|
18
26
|
} else {
|
|
19
|
-
const { records:
|
|
20
|
-
|
|
27
|
+
const { records: a = [], total: v } = e || {};
|
|
28
|
+
n.value = a || [], i.value = Number(v);
|
|
21
29
|
}
|
|
22
|
-
|
|
30
|
+
p && p(e, { tableData: n, total: i });
|
|
31
|
+
} else
|
|
32
|
+
n.value = e, p && p(e, {});
|
|
33
|
+
}, "disposeResponseData"), w = /* @__PURE__ */ l(() => new Promise((e, a) => {
|
|
34
|
+
if (!t) {
|
|
35
|
+
a(new Error("requestFn is required"));
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const v = (typeof s == "function" ? s() : s) || {};
|
|
39
|
+
let T = {
|
|
40
|
+
currentPage: y ? u.value : null,
|
|
41
|
+
pageSize: y ? r.value : null,
|
|
42
|
+
...v
|
|
43
|
+
};
|
|
44
|
+
L && (T = L(T)), t(T).then((m) => {
|
|
45
|
+
P || k(m), e(m);
|
|
46
|
+
}).catch((m) => {
|
|
47
|
+
a(m);
|
|
23
48
|
}).finally(() => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
49
|
+
c.value = !1, setTimeout(() => {
|
|
50
|
+
h.value = !1;
|
|
51
|
+
}, 400);
|
|
27
52
|
});
|
|
53
|
+
}), "requestData"), C = G(E || 300, (e) => {
|
|
54
|
+
k(e);
|
|
55
|
+
}), f = /* @__PURE__ */ l((e = !0, a = !1) => {
|
|
56
|
+
if (t && !(e && c.value)) {
|
|
57
|
+
if (e && (c.value = !0), a && (h.value = !0), P) {
|
|
58
|
+
C.loadData(w);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
w().finally(() => {
|
|
62
|
+
c.value = !1;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
28
65
|
}, "loadData");
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
|
|
66
|
+
F(u, (e) => {
|
|
67
|
+
R(e);
|
|
68
|
+
}), F(r, (e) => {
|
|
69
|
+
x(e);
|
|
33
70
|
});
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
}, "handleCurrentPageChange"),
|
|
37
|
-
|
|
38
|
-
}, "handleSizeChange"),
|
|
39
|
-
|
|
40
|
-
|
|
71
|
+
const R = /* @__PURE__ */ l((e) => {
|
|
72
|
+
u.value = e, b ? N(n, z, i, u, r) : f();
|
|
73
|
+
}, "handleCurrentPageChange"), x = /* @__PURE__ */ l((e) => {
|
|
74
|
+
r.value = e, u.value = 1, b ? N(n, z, i, u, r) : f();
|
|
75
|
+
}, "handleSizeChange"), q = /* @__PURE__ */ l(() => {
|
|
76
|
+
u.value = 1, J(() => {
|
|
77
|
+
f();
|
|
41
78
|
});
|
|
42
79
|
}, "handleReset");
|
|
43
|
-
return
|
|
44
|
-
|
|
80
|
+
return I(() => {
|
|
81
|
+
H && (h.value = !0, f());
|
|
45
82
|
}), {
|
|
46
|
-
isFirst:
|
|
47
|
-
loading:
|
|
48
|
-
pageSize:
|
|
49
|
-
pageSizes:
|
|
50
|
-
currentPage:
|
|
51
|
-
tableData:
|
|
52
|
-
total:
|
|
53
|
-
handleCurrentPageChange:
|
|
54
|
-
handleSizeChange:
|
|
55
|
-
handleReset:
|
|
56
|
-
loadData:
|
|
83
|
+
isFirst: h,
|
|
84
|
+
loading: P ? C.loading : c,
|
|
85
|
+
pageSize: r,
|
|
86
|
+
pageSizes: M,
|
|
87
|
+
currentPage: u,
|
|
88
|
+
tableData: n,
|
|
89
|
+
total: i,
|
|
90
|
+
handleCurrentPageChange: R,
|
|
91
|
+
handleSizeChange: x,
|
|
92
|
+
handleReset: q,
|
|
93
|
+
loadData: f
|
|
57
94
|
};
|
|
58
95
|
}
|
|
59
|
-
|
|
96
|
+
l(U, "useTableListHook");
|
|
97
|
+
function N(t, s, D, d, g) {
|
|
98
|
+
t.value = s.value.slice((d.value - 1) * g.value, d.value * g.value), D.value = t.value.length;
|
|
99
|
+
}
|
|
100
|
+
l(N, "sliceTableData");
|
|
60
101
|
export {
|
|
61
|
-
|
|
102
|
+
U as default
|
|
62
103
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-50d2efe0"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50d2efe0"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */const e=require("vue"),p=,/* empty css */
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */const e=require("vue"),p=,/* empty css */f=,/* empty css */d=,/* empty css */m=,/* empty css */k=,/* empty css */y=e.defineComponent({name:"LSButton"}),B=e.defineComponent({...y,props:f.lsBtnProp,setup(S){const r=e.useSlots(),s=d.useNamespace("button").b(),n=e.inject(p.lsBtnKey,void 0),o=e.ref(""),a=e.ref(""),l=e.ref("");n&&(o.value=n.separator,a.value=n.separatorColor,l.value=n.separatorSize);const u=e.computed(()=>({color:a.value,fontSize:`${l.value}px`}));return(t,C)=>{const c=k.ElButton;return t.$attrs.icon&&!e.unref(r).default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(c,e.mergeProps(t.$attrs,{class:e.unref(s)}),null,16,["class"]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"separator",style:e.normalizeStyle(e.unref(u))},e.toDisplayString(e.unref(o)),5)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(c,e.mergeProps({key:1},t.$attrs,{class:e.unref(s)}),{default:e.withCtx(()=>{var i;return[!t.$attrs.icon&&((i=t.iconConfig)!=null&&i.name||e.unref(r).icon)?(e.openBlock(),e.createBlock(m.default,e.mergeProps({key:0,class:[e.unref(r).default?"":"only-icon"]},t.iconConfig),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},void 0,!0)]),_:3},16,["class"])):e.createCommentVNode("",!0),e.unref(r).default?e.renderSlot(t.$slots,"default",{key:1},void 0,!0):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"separator",style:e.normalizeStyle(e.unref(u))},e.toDisplayString(e.unref(o)),5)):e.createCommentVNode("",!0)]}),_:3},16,["class"]))}}});exports.default=B;
|
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { defineComponent as
|
|
3
|
+
import { defineComponent as _, useSlots as $, inject as g, ref as l, computed as z, unref as o, openBlock as r, createElementBlock as c, Fragment as b, createVNode as N, mergeProps as p, normalizeStyle as v, toDisplayString as S, createCommentVNode as n, createBlock as k, withCtx as B, renderSlot as C } from "vue";
|
|
4
4
|
import { lsBtnKey as P } from "../../_constants/token/index.js";
|
|
5
5
|
import { lsBtnProp as h } from "../types/index.js";
|
|
6
6
|
import { useNamespace as E } from "../../_hooks/useNamespace/index.js";
|
|
7
7
|
import L from "../../icon/Index.vue/index.js";
|
|
8
8
|
import { ElButton as V } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/button/index/index.js";
|
|
9
|
-
const j =
|
|
9
|
+
const j = _({
|
|
10
10
|
name: "LSButton"
|
|
11
|
-
}),
|
|
11
|
+
}), O = /* @__PURE__ */ _({
|
|
12
12
|
...j,
|
|
13
13
|
props: h,
|
|
14
14
|
setup(w) {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const s = $(), i = E("button").b(), a = g(P, void 0), e = l(""), u = l(""), m = l("");
|
|
16
|
+
a && (e.value = a.separator, u.value = a.separatorColor, m.value = a.separatorSize);
|
|
17
|
+
const f = z(() => ({
|
|
18
|
+
color: u.value,
|
|
19
|
+
fontSize: `${m.value}px`
|
|
18
20
|
}));
|
|
19
21
|
return (t, F) => {
|
|
20
|
-
const
|
|
21
|
-
return t.$attrs.icon && !o(
|
|
22
|
-
N(
|
|
23
|
-
o(
|
|
22
|
+
const d = V;
|
|
23
|
+
return t.$attrs.icon && !o(s).default ? (r(), c(b, { key: 0 }, [
|
|
24
|
+
N(d, p(t.$attrs, { class: o(i) }), null, 16, ["class"]),
|
|
25
|
+
o(e) ? (r(), c("div", {
|
|
24
26
|
key: 0,
|
|
25
27
|
class: "separator",
|
|
26
|
-
style:
|
|
27
|
-
},
|
|
28
|
-
], 64)) : (
|
|
29
|
-
default:
|
|
30
|
-
var
|
|
28
|
+
style: v(o(f))
|
|
29
|
+
}, S(o(e)), 5)) : n("", !0)
|
|
30
|
+
], 64)) : (r(), k(d, p({ key: 1 }, t.$attrs, { class: o(i) }), {
|
|
31
|
+
default: B(() => {
|
|
32
|
+
var y;
|
|
31
33
|
return [
|
|
32
|
-
!t.$attrs.icon && ((
|
|
34
|
+
!t.$attrs.icon && ((y = t.iconConfig) != null && y.name || o(s).icon) ? (r(), k(L, p({
|
|
33
35
|
key: 0,
|
|
34
|
-
class: [o(
|
|
36
|
+
class: [o(s).default ? "" : "only-icon"]
|
|
35
37
|
}, t.iconConfig), {
|
|
36
|
-
default:
|
|
37
|
-
|
|
38
|
+
default: B(() => [
|
|
39
|
+
C(t.$slots, "icon", {}, void 0, !0)
|
|
38
40
|
]),
|
|
39
41
|
_: 3
|
|
40
42
|
}, 16, ["class"])) : n("", !0),
|
|
41
|
-
o(
|
|
42
|
-
o(
|
|
43
|
+
o(s).default ? C(t.$slots, "default", { key: 1 }, void 0, !0) : n("", !0),
|
|
44
|
+
o(e) ? (r(), c("div", {
|
|
43
45
|
key: 2,
|
|
44
46
|
class: "separator",
|
|
45
|
-
style:
|
|
46
|
-
},
|
|
47
|
+
style: v(o(f))
|
|
48
|
+
}, S(o(e)), 5)) : n("", !0)
|
|
47
49
|
];
|
|
48
50
|
}),
|
|
49
51
|
_: 3
|
|
@@ -52,5 +54,5 @@ const j = S({
|
|
|
52
54
|
}
|
|
53
55
|
});
|
|
54
56
|
export {
|
|
55
|
-
|
|
57
|
+
O as default
|
|
56
58
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-95b402e2"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-95b402e2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var q=Object.defineProperty;var s=(t,r)=>q(t,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),B=,/* empty css */g=,/* empty css */n=,/* empty css */w=,/* empty css */y=,/* empty css */N=,/* empty css */P={class:"dialog-footer"},_=e.defineComponent({name:"LSDialog",inheritAttrs:!1,__name:"Index",props:e.mergeModels(g.lsDialogProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(g.lsEmitNames,["update:modelValue"]),setup(t,{emit:r}){const a=t,i=r,C=e.useSlots(),l=e.useModel(t,"modelValue"),v=B.useNamespace("dialog").b(),d=e.ref({width:"50%",closeOnClickModal:!1,closeOnPressEscape:!1,zIndex:2e3,maxHeight:"600px"}),u=e.computed(()=>n.default({txt:"取消"},a.btnCancelConfig)),c=e.computed(()=>n.default({type:"primary",txt:"确定"},a.btnConfirmConfig));function m(){l.value=!1,i("onCancel")}s(m,"handleClose");function h(){i("onConfirm")}return s(h,"handleConfirm"),(o,f)=>{const S=w.ElScrollbar,p=e.resolveComponent("LSButton"),V=y.ElDialog,b=N.vLoading;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(v))},[e.createVNode(V,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=k=>l.value=k)},e.unref(n.default)(e.unref(d),o.$attrs),{"show-close":!o.loading,onClose:m}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(S,e.normalizeProps(e.guardReactiveProps(e.unref(n.default)(e.unref(d),o.$attrs))),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3},16)),[[b,o.contentLoading]])]),_:2},[o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",P,[e.unref(C).footer?e.renderSlot(o.$slots,"footer",{key:0},void 0,!0):e.createCommentVNode("",!0),o.hasCancelBtn?(e.openBlock(),e.createBlock(p,e.mergeProps({key:1},e.unref(u),{disabled:o.loading,onClick:m}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).txt),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.createVNode(p,e.mergeProps(e.unref(c),{loading:o.loading,disabled:o.loading,onClick:h}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).txt),1)]),_:1},16,["loading","disabled"])])]),key:"0"}:void 0]),1040,["modelValue","show-close"])],2)}}});exports.default=_;
|