fangguo-component 1.0.0 → 1.1.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/CHANGELOG.md +15 -0
- package/README.md +68 -36
- package/dist/ArgHover.css +1 -0
- package/dist/ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js +54 -0
- package/dist/ButtonGroup-C0yZEkxK.js +103 -0
- package/dist/ButtonGroup.css +1 -0
- package/dist/CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js +159 -0
- package/dist/ContentTitle-mqrusLjx.js +24 -0
- package/dist/ContentTitle.css +1 -0
- package/dist/CustomInputV2-DYEcbu5_.js +135 -0
- package/dist/CustomInputV2.css +1 -0
- package/dist/CustomMultipleInput-DDaqoHVU.js +109 -0
- package/dist/CustomMultipleInput.css +1 -0
- package/dist/DragResizable.css +1 -0
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-DYL6TUPE.js +167 -0
- package/dist/DragSort-CfDeFAIG.js +66 -0
- package/dist/DragSort.css +1 -0
- package/dist/ErrorImage-CTP_5sal.js +32 -0
- package/dist/ErrorImage.css +1 -0
- package/dist/FgCascader.css +1 -0
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-OnqaEAao.js +1807 -0
- package/dist/HSelect-Bqz2yTMf.js +468 -0
- package/dist/HSelect.css +1 -0
- package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-C8i6LF_k.js +36 -0
- package/dist/HSelectSJ-BieRp2gG.js +462 -0
- package/dist/HSelectSJ.css +1 -0
- package/dist/IdentifyAddress.vue_vue_type_script_setup_true_lang-BJheMI1q.js +4743 -0
- package/dist/ImageLoupe.vue_vue_type_script_setup_true_lang-BlX4VbRi.js +79 -0
- package/dist/LazyComponent.vue_vue_type_script_setup_true_lang-vNk68D8E.js +82 -0
- package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js +33 -0
- package/dist/LoadingBtn-BhbhNboo.js +66 -0
- package/dist/LoadingBtn.css +1 -0
- package/dist/{MInput-CO6YUVuZ.js → MInput-CpoW17Wh.js} +6 -6
- package/dist/MInput.css +1 -1
- package/dist/MyTable-DmwyEVJb.js +68 -0
- package/dist/MyTable.css +1 -0
- package/dist/NoRender.vue_vue_type_script_setup_true_lang-Do36nSsV.js +30 -0
- package/dist/SelectAddress-B4oK5erq.js +173 -0
- package/dist/SelectAddress.css +1 -0
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-BC3q2U8f.js +79 -0
- package/dist/SelectAll2.vue_vue_type_script_setup_true_lang-CaET5eli.js +74 -0
- package/dist/SelectCustomAll.css +1 -0
- package/dist/SelectCustomAll.vue_vue_type_style_index_0_lang-_wCRO217.js +83 -0
- package/dist/SelectTimePicker.vue_vue_type_script_setup_true_lang-Bj0KMOKv.js +45 -0
- package/dist/SelectTree-C7lBZnZH.js +306 -0
- package/dist/SelectTree.css +1 -0
- package/dist/SortTransfer.css +1 -0
- package/dist/SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js +153 -0
- package/dist/SvgIcon-C2ah8E0Z.js +30 -0
- package/dist/TextCopy.vue_vue_type_script_setup_true_lang-DbhZGH_z.js +29 -0
- package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-aZbEQmbM.js +112 -0
- package/dist/TipInput-CIskitOV.js +117 -0
- package/dist/TipInput.css +1 -0
- package/dist/VirtualTable-BYTfwDC1.js +353 -0
- package/dist/VirtualTable.css +1 -0
- package/dist/_commonjsHelpers-ByYUsBRP.js +33 -0
- package/dist/common-BIEgCXbl.js +7030 -0
- package/dist/components/VirtualTable/VirtualTable.vue.d.ts +127 -0
- package/dist/components/VirtualTable/index.d.ts +1 -0
- package/dist/components/VirtualTable/index.js +4 -0
- package/dist/components/argHover/ArgHover.vue.d.ts +51 -0
- package/dist/components/argHover/index.d.ts +1 -0
- package/dist/components/argHover/index.js +4 -0
- package/dist/components/buttonGroup/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/buttonGroup/index.d.ts +1 -0
- package/dist/components/buttonGroup/index.js +4 -0
- package/dist/components/cascader/cascader/{cascader.vue.d.ts → ElCascader.vue.d.ts} +43 -43
- package/dist/components/cascader/cascader/FgCascader.vue.d.ts +4192 -0
- package/dist/components/cascader/cascader/index.d.ts +1 -3
- package/dist/components/cascader/cascader-panel/index.vue.d.ts +8 -8
- package/dist/components/cascader/cascader-panel/menu.vue.d.ts +3 -3
- package/dist/components/cascader/cascader-panel/node.vue.d.ts +2 -2
- package/dist/components/cascader/index.d.ts +1 -3
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/cascader/utils/vue/props/util.d.ts +0 -1
- package/dist/components/cascader/utils/vue/size.d.ts +1 -1
- package/dist/components/citySelect/CitySelect.vue.d.ts +21 -0
- package/dist/components/citySelect/index.d.ts +1 -0
- package/dist/components/citySelect/index.js +4 -0
- package/dist/components/contentTitle/ContentTitle.vue.d.ts +20 -0
- package/dist/components/contentTitle/index.d.ts +1 -0
- package/dist/components/contentTitle/index.js +4 -0
- package/dist/components/customInputV2/CustomInputV2.vue.d.ts +47 -0
- package/dist/components/customInputV2/index.d.ts +1 -0
- package/dist/components/customInputV2/index.js +4 -0
- package/dist/components/customMultipleInput/CustomMultipleInput.vue.d.ts +46 -0
- package/dist/components/customMultipleInput/index.d.ts +1 -0
- package/dist/components/customMultipleInput/index.js +4 -0
- package/dist/components/dragResizable/DragResizable.vue.d.ts +57 -0
- package/dist/components/dragResizable/index.d.ts +1 -0
- package/dist/components/dragResizable/index.js +4 -0
- package/dist/components/dragSort/DragSort.vue.d.ts +34 -0
- package/dist/components/dragSort/index.d.ts +1 -0
- package/dist/components/dragSort/index.js +4 -0
- package/dist/components/errorImage/ErrorImage.vue.d.ts +23 -0
- package/dist/components/errorImage/index.d.ts +1 -0
- package/dist/components/errorImage/index.js +4 -0
- package/dist/components/hSelect/HSelect.vue.d.ts +103 -0
- package/dist/components/hSelect/index.d.ts +1 -0
- package/dist/components/hSelect/index.js +4 -0
- package/dist/components/hSelectAll/HSelectAll.vue.d.ts +10 -0
- package/dist/components/hSelectAll/index.d.ts +1 -0
- package/dist/components/hSelectAll/index.js +4 -0
- package/dist/components/hSelectSJ/HSelectSJ.vue.d.ts +105 -0
- package/dist/components/hSelectSJ/index.d.ts +1 -0
- package/dist/components/hSelectSJ/index.js +4 -0
- package/dist/components/identifyAddress/IdentifyAddress.vue.d.ts +10 -0
- package/dist/components/identifyAddress/index.d.ts +1 -0
- package/dist/components/identifyAddress/index.js +4 -0
- package/dist/components/imageLoupe/ImageLoupe.vue.d.ts +35 -0
- package/dist/components/imageLoupe/index.d.ts +1 -0
- package/dist/components/imageLoupe/index.js +4 -0
- package/dist/components/index.d.ts +31 -0
- package/dist/components/index.js +66 -4
- package/dist/components/lazyComponent/LazyComponent.vue.d.ts +37 -0
- package/dist/components/lazyComponent/index.d.ts +1 -0
- package/dist/components/lazyComponent/index.js +4 -0
- package/dist/components/lazyPopover/LazyPopover.vue.d.ts +31 -0
- package/dist/components/lazyPopover/index.d.ts +1 -0
- package/dist/components/lazyPopover/index.js +4 -0
- package/dist/components/loadingBtn/LoadingBtn.vue.d.ts +34 -0
- package/dist/components/loadingBtn/index.d.ts +1 -0
- package/dist/components/loadingBtn/index.js +4 -0
- package/dist/components/mInput/index.js +1 -1
- package/dist/components/myTable/MyTable.vue.d.ts +46 -0
- package/dist/components/myTable/index.d.ts +1 -0
- package/dist/components/myTable/index.js +4 -0
- package/dist/components/noRender/NoRender.vue.d.ts +23 -0
- package/dist/components/noRender/index.d.ts +1 -0
- package/dist/components/noRender/index.js +4 -0
- package/dist/components/selectAddress/SelectAddress.vue.d.ts +106 -0
- package/dist/components/selectAddress/index.d.ts +1 -0
- package/dist/components/selectAddress/index.js +4 -0
- package/dist/components/selectAll/SelectAll.vue.d.ts +124 -0
- package/dist/components/selectAll/index.d.ts +1 -0
- package/dist/components/selectAll/index.js +4 -0
- package/dist/components/selectAll2/SelectAll2.vue.d.ts +81 -0
- package/dist/components/selectAll2/index.d.ts +1 -0
- package/dist/components/selectAll2/index.js +4 -0
- package/dist/components/selectCustomAll/SelectCustomAll.vue.d.ts +77 -0
- package/dist/components/selectCustomAll/index.d.ts +1 -0
- package/dist/components/selectCustomAll/index.js +4 -0
- package/dist/components/selectTimePicker/SelectTimePicker.vue.d.ts +24 -0
- package/dist/components/selectTimePicker/index.d.ts +1 -0
- package/dist/components/selectTimePicker/index.js +4 -0
- package/dist/components/selectTree/SelectTree.vue.d.ts +39 -0
- package/dist/components/selectTree/index.d.ts +1 -0
- package/dist/components/selectTree/index.js +4 -0
- package/dist/components/sortTransfer/SortTransfer.vue.d.ts +97 -0
- package/dist/components/sortTransfer/index.d.ts +1 -0
- package/dist/components/sortTransfer/index.js +4 -0
- package/dist/components/svgIcon/index.d.ts +1 -0
- package/dist/components/svgIcon/index.js +4 -0
- package/dist/components/textCopy/TextCopy.vue.d.ts +21 -0
- package/dist/components/textCopy/index.d.ts +1 -0
- package/dist/components/textCopy/index.js +4 -0
- package/dist/components/textEllipsisTooltip/TextEllipsisTooltip.vue.d.ts +19 -0
- package/dist/components/textEllipsisTooltip/index.d.ts +1 -0
- package/dist/components/textEllipsisTooltip/index.js +4 -0
- package/dist/components/tipInput/TipInput.vue.d.ts +56 -0
- package/dist/components/tipInput/index.d.ts +1 -0
- package/dist/components/tipInput/index.js +4 -0
- package/dist/dateShortcuts-DDPtAhDI.js +26 -0
- package/dist/debounce-BLrZUqsA.js +84 -0
- package/dist/index-BKzmtfeu.js +72 -0
- package/dist/index-DIX8TpoT.js +118 -0
- package/dist/index-epuVZjZV.js +103 -0
- package/dist/index-uf7oyYDF.js +16847 -0
- package/dist/index.d.ts +161 -5
- package/dist/index.js +197 -46
- package/dist/isEqual-qYQTJBU6.js +506 -0
- package/dist/isObject-CO569sPG.js +35 -0
- package/dist/shims.d.ts +53 -13
- package/dist/tools/ImageParserUtils/common.d.ts +117 -0
- package/dist/tools/ImageParserUtils/etagBrowser.d.ts +4 -0
- package/dist/tools/ImageParserUtils/index.d.ts +7 -0
- package/dist/tools/ImageParserUtils/index.js +13116 -0
- package/dist/tools/ImageParserUtils/parseImage.d.ts +18 -0
- package/dist/tools/ImageParserUtils/parsePSD.d.ts +22 -0
- package/dist/tools/ImageParserUtils/parseTIFF.d.ts +18 -0
- package/dist/tools/common/common.d.ts +335 -23
- package/dist/tools/common/dateShortcuts.d.ts +5 -0
- package/dist/tools/common/index.d.ts +1 -0
- package/dist/tools/common/index.js +86 -5085
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +97 -8
- package/package.json +92 -81
- package/dist/cascader.css +0 -1
- package/dist/cascader.vue_vue_type_script_setup_true_lang-HFhhhQva.js +0 -2268
- package/dist/index-DihzpZcR.js +0 -14
- package/dist/index-wUcQXc_Z.js +0 -10
- package/dist/tools/Grid/Grid.d.ts +0 -48
- package/dist/tools/Grid/index.d.ts +0 -1
- package/dist/tools/Grid/index.js +0 -217
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as b, ref as u, computed as v, resolveComponent as M, openBlock as $, createElementBlock as k, Fragment as B, createElementVNode as r, createVNode as S, withDirectives as p, normalizeStyle as d, vShow as m } from "vue";
|
|
2
|
+
const C = ["src"], o = 100, X = /* @__PURE__ */ b({
|
|
3
|
+
__name: "ImageLoupe",
|
|
4
|
+
props: {
|
|
5
|
+
src: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: () => ""
|
|
8
|
+
},
|
|
9
|
+
hideOnClickModal: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: () => !1
|
|
12
|
+
},
|
|
13
|
+
isLeft: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: () => !1
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(n) {
|
|
19
|
+
const x = n, i = u(!1), h = u(null), a = 550 / o, t = u({ x: 0, y: 0, width: 0, height: 0, offsetY: 0, offsetX: 0 }), g = (c) => {
|
|
20
|
+
const l = h.value;
|
|
21
|
+
if (!l) return;
|
|
22
|
+
const e = l.getBoundingClientRect();
|
|
23
|
+
let s = c.clientX - e.left - o / 2, f = c.clientY - e.top - o / 2;
|
|
24
|
+
s = Math.max(0, Math.min(s, e.width - o)), f = Math.max(0, Math.min(f, e.height - o)), t.value = { x: s, y: f, width: e.width, height: e.height, offsetY: e.top, offsetX: x.isLeft ? e.left - 550 - 5 : e.right + 5 };
|
|
25
|
+
}, w = v(() => ({
|
|
26
|
+
width: `${o}px`,
|
|
27
|
+
height: `${o}px`,
|
|
28
|
+
transform: `translate(${t.value.x}px, ${t.value.y}px)`
|
|
29
|
+
})), y = v(() => ({
|
|
30
|
+
width: `${t.value.width * a}px`,
|
|
31
|
+
height: `${t.value.height * a}px`,
|
|
32
|
+
transform: `translate(${-t.value.x * a}px, ${-t.value.y * a}px)`
|
|
33
|
+
}));
|
|
34
|
+
return (c, l) => {
|
|
35
|
+
const e = M("el-image");
|
|
36
|
+
return $(), k(B, null, [
|
|
37
|
+
r("div", {
|
|
38
|
+
ref_key: "imgBoxRef",
|
|
39
|
+
ref: h,
|
|
40
|
+
class: "rounded-[10px] relative w-full h-full",
|
|
41
|
+
onMouseenter: l[0] || (l[0] = (s) => i.value = !0),
|
|
42
|
+
onMouseleave: l[1] || (l[1] = (s) => i.value = !1),
|
|
43
|
+
onMousemove: g
|
|
44
|
+
}, [
|
|
45
|
+
S(e, {
|
|
46
|
+
ref: "target",
|
|
47
|
+
src: n.src,
|
|
48
|
+
"preview-src-list": [n.src],
|
|
49
|
+
"preview-teleported": !0,
|
|
50
|
+
"hide-on-click-modal": n.hideOnClickModal,
|
|
51
|
+
fit: "contain",
|
|
52
|
+
style: { width: "100%", height: "100%" }
|
|
53
|
+
}, null, 8, ["src", "preview-src-list", "hide-on-click-modal"]),
|
|
54
|
+
p(r("div", {
|
|
55
|
+
class: "absolute bg-[rgba(0,0,0,0.2)] border border-white pointer-events-none left-0 top-0",
|
|
56
|
+
style: d(w.value)
|
|
57
|
+
}, null, 4), [
|
|
58
|
+
[m, i.value]
|
|
59
|
+
])
|
|
60
|
+
], 544),
|
|
61
|
+
p(r("div", {
|
|
62
|
+
class: "fixed w-[550px] h-[550px] border overflow-hidden z-[9999] bg-[#ddd]",
|
|
63
|
+
style: d({ top: t.value.offsetY + "px", left: t.value.offsetX + "px" })
|
|
64
|
+
}, [
|
|
65
|
+
r("img", {
|
|
66
|
+
class: "absolute top-0 left-0 max-w-[unset] object-contain",
|
|
67
|
+
src: n.src,
|
|
68
|
+
style: d(y.value)
|
|
69
|
+
}, null, 12, C)
|
|
70
|
+
], 4), [
|
|
71
|
+
[m, i.value && n.src]
|
|
72
|
+
])
|
|
73
|
+
], 64);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
X as _
|
|
79
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as b, ref as _, useAttrs as f, onMounted as m, onUnmounted as p, openBlock as w, createElementBlock as g, renderSlot as h, normalizeProps as O, mergeProps as z, unref as y, createCommentVNode as M } from "vue";
|
|
2
|
+
const C = /* @__PURE__ */ b({
|
|
3
|
+
__name: "LazyComponent",
|
|
4
|
+
props: {
|
|
5
|
+
global: { type: Boolean, default: !0 },
|
|
6
|
+
root: {},
|
|
7
|
+
rootMargin: { default: "100px" },
|
|
8
|
+
threshold: { default: 0.1 },
|
|
9
|
+
immediate: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
setup(i) {
|
|
12
|
+
const o = i, s = _(null), n = _(o.immediate), c = f(), u = () => {
|
|
13
|
+
window.__lazyObservers__ || (window.__lazyObservers__ = /* @__PURE__ */ new Map());
|
|
14
|
+
const e = `${o.rootMargin}_${o.threshold}`;
|
|
15
|
+
if (!window.__lazyObservers__.has(e)) {
|
|
16
|
+
const r = /* @__PURE__ */ new WeakMap(), t = new IntersectionObserver(
|
|
17
|
+
(v) => {
|
|
18
|
+
v.forEach((a) => {
|
|
19
|
+
if (a.isIntersecting) {
|
|
20
|
+
const l = r.get(a.target);
|
|
21
|
+
l == null || l(), t.unobserve(a.target);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
root: o.root,
|
|
27
|
+
rootMargin: o.rootMargin,
|
|
28
|
+
threshold: o.threshold
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
window.__lazyObservers__.set(e, { observer: t, callbacks: r });
|
|
32
|
+
}
|
|
33
|
+
return window.__lazyObservers__.get(e);
|
|
34
|
+
}, d = () => {
|
|
35
|
+
if (!o.global || !window.__lazyObservers__) return;
|
|
36
|
+
const e = `${o.rootMargin}_${o.threshold}`, r = window.__lazyObservers__.get(e);
|
|
37
|
+
r && s.value && (r.observer.unobserve(s.value), r.callbacks.delete(s.value));
|
|
38
|
+
};
|
|
39
|
+
return m(() => {
|
|
40
|
+
if (o.immediate) {
|
|
41
|
+
n.value = !0;
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!("IntersectionObserver" in window)) {
|
|
45
|
+
n.value = !0;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const e = s.value;
|
|
49
|
+
if (e)
|
|
50
|
+
if (o.global) {
|
|
51
|
+
const { observer: r, callbacks: t } = u();
|
|
52
|
+
t.set(e, () => {
|
|
53
|
+
n.value = !0;
|
|
54
|
+
}), r.observe(e);
|
|
55
|
+
} else {
|
|
56
|
+
const r = new IntersectionObserver(
|
|
57
|
+
([t]) => {
|
|
58
|
+
t != null && t.isIntersecting && (n.value = !0, r.disconnect());
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
root: o.root,
|
|
62
|
+
rootMargin: o.rootMargin,
|
|
63
|
+
threshold: o.threshold
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
r.observe(e), e.__localObserver__ = r;
|
|
67
|
+
}
|
|
68
|
+
}), p(() => {
|
|
69
|
+
d();
|
|
70
|
+
const e = s.value;
|
|
71
|
+
e != null && e.__localObserver__ && (e.__localObserver__.disconnect(), delete e.__localObserver__);
|
|
72
|
+
}), (e, r) => (w(), g("div", {
|
|
73
|
+
ref_key: "LayzComponentRef",
|
|
74
|
+
ref: s
|
|
75
|
+
}, [
|
|
76
|
+
n.value ? h(e.$slots, "default", O(z({ key: 0 }, y(c)))) : M("", !0)
|
|
77
|
+
], 512));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
C as _
|
|
82
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as a, ref as f, resolveComponent as c, openBlock as n, createElementBlock as m, renderSlot as o, createBlock as u, normalizeProps as v, mergeProps as _, withCtx as p } from "vue";
|
|
2
|
+
const k = /* @__PURE__ */ a({
|
|
3
|
+
__name: "LazyPopover",
|
|
4
|
+
props: {
|
|
5
|
+
props: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: () => ({})
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(s) {
|
|
11
|
+
const r = f(!1);
|
|
12
|
+
return (e, t) => {
|
|
13
|
+
const l = c("el-popover");
|
|
14
|
+
return r.value ? (n(), u(l, v(_({ key: 1 }, s.props)), {
|
|
15
|
+
reference: p(() => [
|
|
16
|
+
o(e.$slots, "reference")
|
|
17
|
+
]),
|
|
18
|
+
default: p(() => [
|
|
19
|
+
o(e.$slots, "default")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 16)) : (n(), m("span", {
|
|
23
|
+
key: 0,
|
|
24
|
+
onMouseenter: t[0] || (t[0] = (d) => r.value = !0)
|
|
25
|
+
}, [
|
|
26
|
+
o(e.$slots, "reference")
|
|
27
|
+
], 32));
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
k as _
|
|
33
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import './LoadingBtn.css';var k = (c, i, l) => new Promise((e, d) => {
|
|
2
|
+
var n = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
a(l.next(t));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
d(o);
|
|
7
|
+
}
|
|
8
|
+
}, u = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
a(l.throw(t));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
d(o);
|
|
13
|
+
}
|
|
14
|
+
}, a = (t) => t.done ? e(t.value) : Promise.resolve(t.value).then(n, u);
|
|
15
|
+
a((l = l.apply(c, i)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as h, useModel as C, ref as H, getCurrentInstance as p, watch as w, resolveComponent as B, openBlock as y, createBlock as I, mergeProps as V, withCtx as x, renderSlot as L, mergeModels as _ } from "vue";
|
|
18
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
+
const b = /* @__PURE__ */ h({
|
|
20
|
+
__name: "LoadingBtn",
|
|
21
|
+
props: /* @__PURE__ */ _({
|
|
22
|
+
stopHandle: { type: Function, default: () => !1 },
|
|
23
|
+
clickHandle: {}
|
|
24
|
+
}, {
|
|
25
|
+
modelValue: { type: Boolean, default: !1 },
|
|
26
|
+
modelModifiers: {}
|
|
27
|
+
}),
|
|
28
|
+
emits: /* @__PURE__ */ _(["click"], ["update:modelValue"]),
|
|
29
|
+
setup(c) {
|
|
30
|
+
const i = C(c, "modelValue"), l = H(!1), e = c, d = !1, n = p();
|
|
31
|
+
w(() => l.value, () => {
|
|
32
|
+
i.value = l.value;
|
|
33
|
+
});
|
|
34
|
+
const u = () => k(null, null, function* () {
|
|
35
|
+
var a, t, o, m, f, v, g;
|
|
36
|
+
if (!e.stopHandle() && !(!e.clickHandle && !((t = (a = n == null ? void 0 : n.vnode) == null ? void 0 : a.props) != null && t.onClick))) {
|
|
37
|
+
l.value = !0;
|
|
38
|
+
try {
|
|
39
|
+
const s = (m = (o = n == null ? void 0 : n.vnode) == null ? void 0 : o.props) == null ? void 0 : m.onClick;
|
|
40
|
+
if (s) {
|
|
41
|
+
let r = 0;
|
|
42
|
+
d || (r = /\)\s*\([^)]*\)\s*$/.test(s.toString()) ? 0 : s.length), yield s(r ? l : void 0), !r && (l.value = !1);
|
|
43
|
+
} else
|
|
44
|
+
yield (v = e == null ? void 0 : e.clickHandle) == null ? void 0 : v.call(e, (f = e == null ? void 0 : e.clickHandle) != null && f.length ? l : void 0), !((g = e == null ? void 0 : e.clickHandle) != null && g.length) && (l.value = !1);
|
|
45
|
+
} catch (s) {
|
|
46
|
+
throw l.value = !1, Error(s == null ? void 0 : s.message);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return (a, t) => {
|
|
51
|
+
const o = B("el-button");
|
|
52
|
+
return y(), I(o, V(e, {
|
|
53
|
+
loading: l.value,
|
|
54
|
+
onClick: u
|
|
55
|
+
}), {
|
|
56
|
+
default: x(() => [
|
|
57
|
+
L(a.$slots, "default", {}, void 0, !0)
|
|
58
|
+
]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 16, ["loading"]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}), F = /* @__PURE__ */ M(b, [["__scopeId", "data-v-650092a2"]]);
|
|
64
|
+
export {
|
|
65
|
+
F as L
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.el-button[data-v-650092a2] span{transition:transform .1s ease-in-out}.el-button[data-v-650092a2] .el-icon.is-loading{position:absolute;left:5px}.el-button[data-v-650092a2] .el-icon.is-loading+span{position:relative;transform:translate(6px);margin-left:0}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, ref as r, useModel as b, openBlock as m, createElementBlock as p, createVNode as d, unref as s, mergeProps as C, createSlots as B, withCtx as o, createElementVNode as v, renderSlot as D, toDisplayString as f, createCommentVNode as I, withKeys as N, withModifiers as $, createTextVNode as c, mergeModels as V } from "vue";
|
|
2
2
|
import { ElInput as y, ElDialog as h, ElButton as x } from "element-plus";
|
|
3
3
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import './MInput.css';const T = { class: "custom-input" }, U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "pb-[12px] text-fill-900",
|
|
7
7
|
style: { "font-family": "MicrosoftYaHei, sans-serif" }
|
|
8
|
-
}, K = /* @__PURE__ */
|
|
8
|
+
}, K = /* @__PURE__ */ E({
|
|
9
9
|
__name: "MInput",
|
|
10
10
|
props: /* @__PURE__ */ V({
|
|
11
11
|
tip: {},
|
|
@@ -18,9 +18,9 @@ import './MInput.css';const T = { class: "custom-input" }, U = {
|
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ V(["saveEvent"], ["update:modelValue"]),
|
|
20
20
|
setup(l, { emit: g }) {
|
|
21
|
-
const k = g, a = r(!1), i =
|
|
21
|
+
const k = g, a = r(!1), i = b(l, "modelValue"), n = r(""), M = () => {
|
|
22
22
|
n.value = i.value, a.value = !0;
|
|
23
|
-
},
|
|
23
|
+
}, w = () => {
|
|
24
24
|
i.value = n.value, a.value = !1, k("saveEvent", n.value);
|
|
25
25
|
};
|
|
26
26
|
return (u, e) => (m(), p("div", T, [
|
|
@@ -70,7 +70,7 @@ import './MInput.css';const T = { class: "custom-input" }, U = {
|
|
|
70
70
|
d(s(x), {
|
|
71
71
|
class: "!ml-[14px]",
|
|
72
72
|
type: "primary",
|
|
73
|
-
onClick:
|
|
73
|
+
onClick: w
|
|
74
74
|
}, {
|
|
75
75
|
default: o(() => [
|
|
76
76
|
c(f(l.saveBtnText || "确认"), 1)
|
|
@@ -95,7 +95,7 @@ import './MInput.css';const T = { class: "custom-input" }, U = {
|
|
|
95
95
|
}, 8, ["modelValue", "title"])
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
|
-
}), P = /* @__PURE__ */ S(K, [["__scopeId", "data-v-
|
|
98
|
+
}), P = /* @__PURE__ */ S(K, [["__scopeId", "data-v-d19cb983"]]);
|
|
99
99
|
export {
|
|
100
100
|
P as M
|
|
101
101
|
};
|
package/dist/MInput.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-input[data-v-
|
|
1
|
+
.custom-input[data-v-d19cb983]{background:var(--el-color-primary);display:inline-block;width:100%}.custom-input[data-v-d19cb983] .el-input-group__append{cursor:pointer;padding-left:0;padding-right:0}.custom-input[data-v-d19cb983] .el-input-group__append span{display:inline-block;line-height:30px;padding:0 8px}.custom-input[data-v-d19cb983] .input.active .el-input__wrapper{box-shadow:0 0 0 2px var(--el-color-primary) inset}.custom-input[data-v-d19cb983] .input.active .el-input-group__append{box-shadow:0 2px 0 0 var(--el-color-primary) inset,0 -2px 0 0 var(--el-color-primary) inset,-2px 0 0 0 var(--el-color-primary) inset}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent as R, useAttrs as k, ref as c, resolveComponent as a, resolveDirective as w, withDirectives as C, openBlock as T, createBlock as $, mergeProps as M, unref as z, createSlots as B, withCtx as l, renderSlot as i, renderList as P, normalizeProps as A, guardReactiveProps as D, createVNode as L } from "vue";
|
|
2
|
+
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './MyTable.css';const j = /* @__PURE__ */ R({
|
|
4
|
+
__name: "MyTable",
|
|
5
|
+
props: {
|
|
6
|
+
noTouchSelectColum: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default: () => []
|
|
9
|
+
},
|
|
10
|
+
noTouchSelect: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(u, { expose: p }) {
|
|
16
|
+
const f = k(), t = c(), _ = () => t.value.getSelectionRows(), m = (e) => {
|
|
17
|
+
t.value.toggleRowSelection(e, void 0);
|
|
18
|
+
}, v = () => t.value.clearSelection(), d = () => t.value.clearSort(), s = u, S = c(["操作", ...s.noTouchSelectColum]), y = (e, o, n) => {
|
|
19
|
+
!S.value.includes(o == null ? void 0 : o.label) && !s.noTouchSelect && (t.value.toggleRowSelection(e), t.value.$emit("select", t.value.store.states.selection.value, e));
|
|
20
|
+
};
|
|
21
|
+
return p({
|
|
22
|
+
getSelectionRows: _,
|
|
23
|
+
toggleRowSelection: m,
|
|
24
|
+
clearSelection: v,
|
|
25
|
+
clearSort: d,
|
|
26
|
+
tableRef: t
|
|
27
|
+
}), (e, o) => {
|
|
28
|
+
const n = a("el-empty"), b = a("el-table"), g = w("horizontal-scroll");
|
|
29
|
+
return C((T(), $(b, M(z(f), {
|
|
30
|
+
ref_key: "tableRef",
|
|
31
|
+
ref: t,
|
|
32
|
+
class: e.$style["feikuai-table"],
|
|
33
|
+
onRowClick: y
|
|
34
|
+
}), B({
|
|
35
|
+
default: l(() => [
|
|
36
|
+
i(e.$slots, "default")
|
|
37
|
+
]),
|
|
38
|
+
_: 2
|
|
39
|
+
}, [
|
|
40
|
+
P(e.$slots, (E, r) => ({
|
|
41
|
+
name: r,
|
|
42
|
+
fn: l((h) => [
|
|
43
|
+
i(e.$slots, r, A(D(h)))
|
|
44
|
+
])
|
|
45
|
+
})),
|
|
46
|
+
e.$slots.empty ? void 0 : {
|
|
47
|
+
name: "empty",
|
|
48
|
+
fn: l(() => [
|
|
49
|
+
L(n, {
|
|
50
|
+
description: "暂无数据",
|
|
51
|
+
"image-size": 80
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
key: "0"
|
|
55
|
+
}
|
|
56
|
+
]), 1040, ["class"])), [
|
|
57
|
+
[g]
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}), q = {
|
|
62
|
+
"feikuai-table": "_feikuai-table_i7sb4_1"
|
|
63
|
+
}, x = {
|
|
64
|
+
$style: q
|
|
65
|
+
}, H = /* @__PURE__ */ V(j, [["__cssModules", x]]);
|
|
66
|
+
export {
|
|
67
|
+
H as M
|
|
68
|
+
};
|
package/dist/MyTable.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._feikuai-table_i7sb4_1{border-top-left-radius:6px;border-top-right-radius:6px}._feikuai-table_i7sb4_1 thead{font-size:15px;font-family:MicrosoftYaHei,sans-serif;color:#0b0c24}._feikuai-table_i7sb4_1 thead .cell{color:#0b0c24}._feikuai-table_i7sb4_1 thead th{font-weight:400}._feikuai-table_i7sb4_1 th.el-table__cell{padding:5px 0;color:#0b0c24;background-color:#e2e8f7!important;border-color:#cfd6e7}._feikuai-table_i7sb4_1 th.el-table__cell .sort-caret.descending{border-top-color:#9198a8}._feikuai-table_i7sb4_1 th.el-table__cell .sort-caret.ascending{border-bottom-color:#9198a8}._feikuai-table_i7sb4_1 th.el-table__cell.descending .sort-caret.descending{border-top-color:#000}._feikuai-table_i7sb4_1 th.el-table__cell.ascending .sort-caret.ascending{border-bottom-color:#000}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as a, useAttrs as l, resolveComponent as p, openBlock as c, createBlock as m, mergeProps as s, unref as n, toHandlers as u } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ a({
|
|
3
|
+
__name: "NoRender",
|
|
4
|
+
props: {
|
|
5
|
+
pageNo: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: () => 1
|
|
8
|
+
},
|
|
9
|
+
pageSize: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: () => 10
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
const t = l();
|
|
16
|
+
return (i, d) => {
|
|
17
|
+
const o = p("el-table-column");
|
|
18
|
+
return c(), m(o, s(n(t), u(n(t)), {
|
|
19
|
+
type: "index",
|
|
20
|
+
index: (r) => (e.pageNo - 1) * e.pageSize + r + 1,
|
|
21
|
+
label: "序号",
|
|
22
|
+
align: "center",
|
|
23
|
+
width: "60"
|
|
24
|
+
}), null, 16, ["index"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
f as _
|
|
30
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent as F, ref as p, watch as I, resolveComponent as q, openBlock as v, createElementBlock as z, renderSlot as M, createVNode as k, withCtx as N, Fragment as S, renderList as D, createBlock as C, createCommentVNode as P } from "vue";
|
|
2
|
+
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import './SelectAddress.css';const j = { class: "select-address-area flex" }, G = /* @__PURE__ */ F({
|
|
4
|
+
__name: "SelectAddress",
|
|
5
|
+
props: {
|
|
6
|
+
province: {
|
|
7
|
+
type: [Number, String],
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
city: {
|
|
11
|
+
type: [Number, String],
|
|
12
|
+
required: !0
|
|
13
|
+
},
|
|
14
|
+
area: {
|
|
15
|
+
type: [Number, String],
|
|
16
|
+
required: !0
|
|
17
|
+
},
|
|
18
|
+
town: {
|
|
19
|
+
type: [Number, String],
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
list: {
|
|
23
|
+
type: Array
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "default"
|
|
28
|
+
},
|
|
29
|
+
type: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "code"
|
|
32
|
+
},
|
|
33
|
+
// 是否展示街道,针对跨境物流管理兼容
|
|
34
|
+
showTown: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
changeEmit: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["update:province", "update:city", "update:area", "update:town", "change"],
|
|
44
|
+
setup(c, { emit: x }) {
|
|
45
|
+
const l = c, m = p(""), i = p(""), d = p(""), r = p(""), L = p([]), f = p([]), b = p([]), g = p([]), o = x, t = {
|
|
46
|
+
province: {},
|
|
47
|
+
city: {},
|
|
48
|
+
area: {},
|
|
49
|
+
town: {},
|
|
50
|
+
current: ""
|
|
51
|
+
}, A = (n) => {
|
|
52
|
+
const e = L.value.find((u) => u[l.type] === n) || {};
|
|
53
|
+
t.province = { name: e.name, code: e.code }, t.city = {}, t.area = {}, t.town = {}, t.current = "province", f.value = e && e[l.type] ? e.areasList || [] : [], i.value = "", d.value = "", r.value = "", o("update:province", m.value), o("update:city", i.value), o("update:area", d.value), o("update:town", r.value), o("change", t);
|
|
54
|
+
}, U = (n) => {
|
|
55
|
+
const e = f.value.find((u) => u[l.type] === n) || {};
|
|
56
|
+
t.city = { name: e.name, code: e.code }, t.area = {}, t.town = {}, t.current = "city", b.value = e && e[l.type] ? e.areasList || [] : [], d.value = "", r.value = "", o("update:city", i.value), o("update:area", d.value), o("update:town", r.value), o("change", t);
|
|
57
|
+
}, E = (n) => {
|
|
58
|
+
const e = b.value.find((u) => u[l.type] === n) || {};
|
|
59
|
+
t.area = { name: e.name, code: e.code }, t.town = {}, t.current = "area", g.value = e && e[l.type] ? e.areasList || [] : [], r.value = "", o("update:area", n), o("update:town", r.value), o("change", t);
|
|
60
|
+
}, T = (n) => {
|
|
61
|
+
const e = g.value.find((u) => u[l.type] === n) || {};
|
|
62
|
+
t.town = { name: e.name, code: e.code }, t.current = "town", o("update:town", r.value), o("change", t);
|
|
63
|
+
};
|
|
64
|
+
return I([() => l.province, () => l.city, () => l.area, () => l.town, () => l.list], ([n, e, u, s, a]) => {
|
|
65
|
+
if (!a || !a.length) return;
|
|
66
|
+
if (L.value = a, l.type === "code" && (n && (n = Number(n)), e && (e = Number(e)), u && (u = Number(u)), s && (s = Number(s))), !n) {
|
|
67
|
+
m.value = "", i.value = "", d.value = "", r.value = "";
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
m.value = n || "";
|
|
71
|
+
const w = L.value.find((y) => y[l.type] === m.value) || {};
|
|
72
|
+
if (t.province = { name: w.name, code: w.code }, f.value = w && w[l.type] ? w.areasList || [] : [], !f.value.length) {
|
|
73
|
+
i.value = "", d.value = "", r.value = "";
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
i.value = e || "";
|
|
77
|
+
const h = f.value.find((y) => y[l.type] === i.value) || {};
|
|
78
|
+
if (t.city = { name: h.name, code: h.code }, b.value = h && h[l.type] ? h.areasList || [] : [], !b.value.length) {
|
|
79
|
+
d.value = "", r.value = "";
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
d.value = u || "";
|
|
83
|
+
const V = b.value.find((y) => y[l.type] === d.value) || {};
|
|
84
|
+
t.area = { name: V.name, code: V.code }, g.value = V && V[l.type] ? V.areasList || [] : [], r.value = g.value.length ? s : "";
|
|
85
|
+
const B = g.value.find((y) => y[l.type] === s) || {};
|
|
86
|
+
t.town = { name: B.name, code: B.code }, t.current = "", l.changeEmit && o("change", t);
|
|
87
|
+
}, { immediate: !0 }), (n, e) => {
|
|
88
|
+
const u = q("el-option"), s = q("el-select");
|
|
89
|
+
return v(), z("div", j, [
|
|
90
|
+
M(n.$slots, "default", {}, void 0, !0),
|
|
91
|
+
k(s, {
|
|
92
|
+
modelValue: m.value,
|
|
93
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => m.value = a),
|
|
94
|
+
siez: c.size,
|
|
95
|
+
onChange: A,
|
|
96
|
+
clearable: "",
|
|
97
|
+
filterable: "",
|
|
98
|
+
placeholder: "请选择省份"
|
|
99
|
+
}, {
|
|
100
|
+
default: N(() => [
|
|
101
|
+
(v(!0), z(S, null, D(L.value, (a) => (v(), C(u, {
|
|
102
|
+
key: a.code,
|
|
103
|
+
label: a.name,
|
|
104
|
+
value: a[c.type]
|
|
105
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["modelValue", "siez"]),
|
|
109
|
+
k(s, {
|
|
110
|
+
modelValue: i.value,
|
|
111
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => i.value = a),
|
|
112
|
+
placeholder: "请选择城市",
|
|
113
|
+
siez: c.size,
|
|
114
|
+
disabled: !m.value,
|
|
115
|
+
onChange: U,
|
|
116
|
+
clearable: "",
|
|
117
|
+
filterable: ""
|
|
118
|
+
}, {
|
|
119
|
+
default: N(() => [
|
|
120
|
+
(v(!0), z(S, null, D(f.value, (a) => (v(), C(u, {
|
|
121
|
+
key: a.code,
|
|
122
|
+
label: a.name,
|
|
123
|
+
value: a[c.type]
|
|
124
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["modelValue", "siez", "disabled"]),
|
|
128
|
+
k(s, {
|
|
129
|
+
modelValue: d.value,
|
|
130
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => d.value = a),
|
|
131
|
+
placeholder: "请选择区/县",
|
|
132
|
+
siez: c.size,
|
|
133
|
+
disabled: !i.value,
|
|
134
|
+
onChange: E,
|
|
135
|
+
clearable: "",
|
|
136
|
+
filterable: ""
|
|
137
|
+
}, {
|
|
138
|
+
default: N(() => [
|
|
139
|
+
(v(!0), z(S, null, D(b.value, (a) => (v(), C(u, {
|
|
140
|
+
key: a.code,
|
|
141
|
+
label: a.name,
|
|
142
|
+
value: a[c.type]
|
|
143
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["modelValue", "siez", "disabled"]),
|
|
147
|
+
c.showTown ? (v(), C(s, {
|
|
148
|
+
key: 0,
|
|
149
|
+
modelValue: r.value,
|
|
150
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => r.value = a),
|
|
151
|
+
placeholder: "请选择街道",
|
|
152
|
+
siez: c.size,
|
|
153
|
+
disabled: !d.value,
|
|
154
|
+
onChange: T,
|
|
155
|
+
clearable: "",
|
|
156
|
+
filterable: ""
|
|
157
|
+
}, {
|
|
158
|
+
default: N(() => [
|
|
159
|
+
(v(!0), z(S, null, D(g.value, (a) => (v(), C(u, {
|
|
160
|
+
key: a.code,
|
|
161
|
+
label: a.name,
|
|
162
|
+
value: a[c.type]
|
|
163
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["modelValue", "siez", "disabled"])) : P("", !0)
|
|
167
|
+
]);
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
}), K = /* @__PURE__ */ $(G, [["__scopeId", "data-v-5a82450f"]]);
|
|
171
|
+
export {
|
|
172
|
+
K as S
|
|
173
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.select-address-area>div[data-v-5a82450f]:not(:last-child){margin-right:12px}@media(max-width:1680px){.select-address-area>div[data-v-5a82450f]:not(:last-child){margin-right:10px}}@media(max-width:1550px){.select-address-area>div[data-v-5a82450f]:not(:last-child){margin-right:8px}}@media(max-width:1440px){.select-address-area>div[data-v-5a82450f]:not(:last-child){margin-right:6px}}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as g, ref as _, computed as h, resolveComponent as s, openBlock as o, createBlock as p, withCtx as v, createVNode as y, createElementBlock as V, Fragment as b, renderList as C } from "vue";
|
|
2
|
+
const S = /* @__PURE__ */ g({
|
|
3
|
+
__name: "SelectAll",
|
|
4
|
+
props: {
|
|
5
|
+
placeholder: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: () => ""
|
|
8
|
+
},
|
|
9
|
+
allValue: {
|
|
10
|
+
// 所有选项绑定的 id, 取数据的时候需要过滤掉
|
|
11
|
+
type: Number,
|
|
12
|
+
default: () => -10
|
|
13
|
+
},
|
|
14
|
+
all: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: () => "全部"
|
|
17
|
+
},
|
|
18
|
+
id: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: () => "id"
|
|
21
|
+
},
|
|
22
|
+
label: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: () => "name"
|
|
25
|
+
},
|
|
26
|
+
list: {
|
|
27
|
+
// 传入的列表
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
value: {
|
|
32
|
+
// 双向绑定的值
|
|
33
|
+
type: Array,
|
|
34
|
+
default: () => []
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
emits: ["update:value"],
|
|
38
|
+
setup(c, { emit: d }) {
|
|
39
|
+
const r = _([]), e = c, i = d, u = h({
|
|
40
|
+
get() {
|
|
41
|
+
return e.value;
|
|
42
|
+
},
|
|
43
|
+
set(t) {
|
|
44
|
+
i("update:value", t);
|
|
45
|
+
}
|
|
46
|
+
}), m = (t) => {
|
|
47
|
+
let l = [];
|
|
48
|
+
t.includes(e.allValue) ? r.value.length > e.list.length ? l = t.filter((a) => a > 0) : l = [e.allValue, ...e.list.map((a) => a.id)] : t.length === e.list.length ? l = [e.allValue, ...t] : l = t, u.value = l, r.value = [...l];
|
|
49
|
+
};
|
|
50
|
+
return (t, l) => {
|
|
51
|
+
const a = s("el-option"), f = s("el-select");
|
|
52
|
+
return o(), p(f, {
|
|
53
|
+
multiple: "",
|
|
54
|
+
"collapse-tags": "",
|
|
55
|
+
modelValue: u.value,
|
|
56
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => u.value = n),
|
|
57
|
+
clearable: "",
|
|
58
|
+
placeholder: e.placeholder,
|
|
59
|
+
onChange: m
|
|
60
|
+
}, {
|
|
61
|
+
default: v(() => [
|
|
62
|
+
y(a, {
|
|
63
|
+
value: e.allValue,
|
|
64
|
+
label: e.all
|
|
65
|
+
}, null, 8, ["value", "label"]),
|
|
66
|
+
(o(!0), V(b, null, C(e.list, (n) => (o(), p(a, {
|
|
67
|
+
key: n.id,
|
|
68
|
+
value: n[e.id],
|
|
69
|
+
label: n[e.label]
|
|
70
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["modelValue", "placeholder"]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
S as _
|
|
79
|
+
};
|