@lingshugroup/web-plus 1.0.8 → 1.0.10
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/useOptionHook/index.cjs +1 -1
- package/lib/packages/ls-components/components/_hooks/useOptionHook/index.js +31 -26
- package/lib/packages/ls-components/components/_hooks/useOptionHook/index.js.br +0 -0
- package/lib/packages/ls-components/components/_hooks/useOptionHook/index.js.gz +0 -0
- package/lib/packages/ls-components/components/_hooks/useTableListHook/index.cjs +1 -1
- package/lib/packages/ls-components/components/_hooks/useTableListHook/index.js +42 -40
- 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/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +53 -51
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +218 -180
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
- 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 +184 -178
- 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 +5 -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 +139 -132
- 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/tree/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/tree/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/tree/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/tree/Index.vue/index2.js +15 -17
- package/lib/packages/ls-components/components/tree/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/tree/Index.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var p=Object.defineProperty;var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var u=(n,a)=>p(n,"name",{value:a,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("lodash"),f=require("vue");function y(){const n={allOption:[],options:[],maps:{}},a=u(async(l,e,s)=>{const{labelKey:i="name",valueKey:c="id"}=e||{};if(l instanceof Function){let t=[];if(e){const o=d.merge({},e);delete o.labelKey,delete o.valueKey,t=(await l(o)).records}else t=await l();n.options=(t||[]).map(o=>{const r=o[c],v=o[i];return n.maps[r]={label:v},{value:r,label:v}}),n.allOption=(s||[{label:"全部",value:""}]).concat(n.options)}return n},"getSelOption");return{getSelOption:a,remoteSearchSelOption:u(async(l,e,s,i,c)=>{const t=f.ref([]);if(!c&&i){e[s]=i;const{options:r}=await a(l,e);t.value=r,delete e[s]}const{options:o}=await a(l,e);return t.value=d.merge(t.value,o),t.value},"remoteSearchSelOption")}}u(y,"useOptionHook");exports.default=y;
|
|
@@ -1,43 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (
|
|
3
|
-
import { merge as
|
|
4
|
-
import { ref as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var r = (n, a) => v(n, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { merge as f } from "lodash";
|
|
4
|
+
import { ref as m } from "vue";
|
|
5
|
+
function b() {
|
|
6
|
+
const n = {
|
|
7
7
|
allOption: [],
|
|
8
8
|
options: [],
|
|
9
9
|
maps: {}
|
|
10
|
-
},
|
|
11
|
-
const { labelKey:
|
|
12
|
-
if (
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
10
|
+
}, a = /* @__PURE__ */ r(async (l, e, i) => {
|
|
11
|
+
const { labelKey: s = "name", valueKey: u = "id" } = e || {};
|
|
12
|
+
if (l instanceof Function) {
|
|
13
|
+
let t = [];
|
|
14
|
+
if (e) {
|
|
15
|
+
const o = f({}, e);
|
|
16
|
+
delete o.labelKey, delete o.valueKey, t = (await l(o)).records;
|
|
17
|
+
} else
|
|
18
|
+
t = await l();
|
|
19
|
+
n.options = (t || []).map((o) => {
|
|
20
|
+
const c = o[u], p = o[s];
|
|
21
|
+
return n.maps[c] = {
|
|
17
22
|
label: p
|
|
18
23
|
}, {
|
|
19
24
|
value: c,
|
|
20
25
|
label: p
|
|
21
26
|
};
|
|
22
|
-
}),
|
|
27
|
+
}), n.allOption = (i || [{ label: "全部", value: "" }]).concat(n.options);
|
|
23
28
|
}
|
|
24
|
-
return
|
|
29
|
+
return n;
|
|
25
30
|
}, "getSelOption");
|
|
26
31
|
return {
|
|
27
|
-
getSelOption:
|
|
28
|
-
remoteSearchSelOption: /* @__PURE__ */ r(async (
|
|
29
|
-
const
|
|
30
|
-
if (!u &&
|
|
31
|
-
|
|
32
|
-
const { options: c } = await l
|
|
33
|
-
|
|
32
|
+
getSelOption: a,
|
|
33
|
+
remoteSearchSelOption: /* @__PURE__ */ r(async (l, e, i, s, u) => {
|
|
34
|
+
const t = m([]);
|
|
35
|
+
if (!u && s) {
|
|
36
|
+
e[i] = s;
|
|
37
|
+
const { options: c } = await a(l, e);
|
|
38
|
+
t.value = c, delete e[i];
|
|
34
39
|
}
|
|
35
|
-
const { options:
|
|
36
|
-
return
|
|
40
|
+
const { options: o } = await a(l, e);
|
|
41
|
+
return t.value = f(t.value, o), t.value;
|
|
37
42
|
}, "remoteSearchSelOption")
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
|
-
r(
|
|
45
|
+
r(b, "useOptionHook");
|
|
41
46
|
export {
|
|
42
|
-
|
|
47
|
+
b as default
|
|
43
48
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -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,46 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var l = (t,
|
|
3
|
-
import
|
|
4
|
-
import { ref as
|
|
5
|
-
function
|
|
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
6
|
const {
|
|
7
7
|
currentPageProp: d = 1,
|
|
8
8
|
pageSizeProp: g = 10,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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,
|
|
12
14
|
hasPanigation: y = !0,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = D || {}, h =
|
|
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) => {
|
|
17
19
|
if (y) {
|
|
18
|
-
if (
|
|
20
|
+
if (b) {
|
|
19
21
|
const a = e || [];
|
|
20
|
-
n.value = a || [], z.value = a,
|
|
22
|
+
n.value = a || [], z.value = a, i.value = Number(a.length);
|
|
21
23
|
} else if (S && typeof S == "function") {
|
|
22
24
|
const { data: a, total: v = 0 } = S(e);
|
|
23
|
-
n.value = a || [],
|
|
25
|
+
n.value = a || [], i.value = Number(v || 0);
|
|
24
26
|
} else {
|
|
25
27
|
const { records: a = [], total: v } = e || {};
|
|
26
|
-
n.value = a || [],
|
|
28
|
+
n.value = a || [], i.value = Number(v);
|
|
27
29
|
}
|
|
28
|
-
p && p(e, { tableData: n, total:
|
|
30
|
+
p && p(e, { tableData: n, total: i });
|
|
29
31
|
} else
|
|
30
32
|
n.value = e, p && p(e, {});
|
|
31
|
-
}, "disposeResponseData"),
|
|
33
|
+
}, "disposeResponseData"), w = /* @__PURE__ */ l(() => new Promise((e, a) => {
|
|
32
34
|
if (!t) {
|
|
33
35
|
a(new Error("requestFn is required"));
|
|
34
36
|
return;
|
|
35
37
|
}
|
|
36
|
-
const v = (typeof
|
|
38
|
+
const v = (typeof s == "function" ? s() : s) || {};
|
|
37
39
|
let T = {
|
|
38
40
|
currentPage: y ? u.value : null,
|
|
39
41
|
pageSize: y ? r.value : null,
|
|
40
42
|
...v
|
|
41
43
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
L && (T = L(T)), t(T).then((m) => {
|
|
45
|
+
P || k(m), e(m);
|
|
44
46
|
}).catch((m) => {
|
|
45
47
|
a(m);
|
|
46
48
|
}).finally(() => {
|
|
@@ -48,15 +50,15 @@ function O(t, o, D) {
|
|
|
48
50
|
h.value = !1;
|
|
49
51
|
}, 400);
|
|
50
52
|
});
|
|
51
|
-
}), "requestData"),
|
|
52
|
-
|
|
53
|
+
}), "requestData"), C = G(E || 300, (e) => {
|
|
54
|
+
k(e);
|
|
53
55
|
}), f = /* @__PURE__ */ l((e = !0, a = !1) => {
|
|
54
56
|
if (t && !(e && c.value)) {
|
|
55
|
-
if (e && (c.value = !0), a && (h.value = !0),
|
|
56
|
-
|
|
57
|
+
if (e && (c.value = !0), a && (h.value = !0), P) {
|
|
58
|
+
C.loadData(w);
|
|
57
59
|
return;
|
|
58
60
|
}
|
|
59
|
-
|
|
61
|
+
w().finally(() => {
|
|
60
62
|
c.value = !1;
|
|
61
63
|
});
|
|
62
64
|
}
|
|
@@ -67,35 +69,35 @@ function O(t, o, D) {
|
|
|
67
69
|
x(e);
|
|
68
70
|
});
|
|
69
71
|
const R = /* @__PURE__ */ l((e) => {
|
|
70
|
-
u.value = e,
|
|
72
|
+
u.value = e, b ? N(n, z, i, u, r) : f();
|
|
71
73
|
}, "handleCurrentPageChange"), x = /* @__PURE__ */ l((e) => {
|
|
72
|
-
r.value = e, u.value = 1,
|
|
73
|
-
}, "handleSizeChange"),
|
|
74
|
-
u.value = 1,
|
|
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(() => {
|
|
75
77
|
f();
|
|
76
78
|
});
|
|
77
79
|
}, "handleReset");
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
+
return I(() => {
|
|
81
|
+
H && (h.value = !0, f());
|
|
80
82
|
}), {
|
|
81
83
|
isFirst: h,
|
|
82
|
-
loading:
|
|
84
|
+
loading: P ? C.loading : c,
|
|
83
85
|
pageSize: r,
|
|
84
|
-
pageSizes:
|
|
86
|
+
pageSizes: M,
|
|
85
87
|
currentPage: u,
|
|
86
88
|
tableData: n,
|
|
87
|
-
total:
|
|
89
|
+
total: i,
|
|
88
90
|
handleCurrentPageChange: R,
|
|
89
91
|
handleSizeChange: x,
|
|
90
|
-
handleReset:
|
|
92
|
+
handleReset: q,
|
|
91
93
|
loadData: f
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
|
-
l(
|
|
95
|
-
function N(t,
|
|
96
|
-
t.value =
|
|
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;
|
|
97
99
|
}
|
|
98
100
|
l(N, "sliceTableData");
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
U as default
|
|
101
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;
|