fangguo-component 1.1.2 → 1.1.4
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/dist/ArgHover.css +20 -1
- package/dist/ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js +56 -0
- package/dist/ButtonGroup-DqViorHX.js +134 -0
- package/dist/ButtonGroup.css +35 -1
- package/dist/CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js +224 -0
- package/dist/ContentTitle-By0Zk1u7.js +30 -0
- package/dist/ContentTitle.css +6 -1
- package/dist/CustomInputV2-BqhBSO53.js +157 -0
- package/dist/CustomInputV2.css +5 -1
- package/dist/CustomMultipleInput-DRMTUtkE.js +125 -0
- package/dist/CustomMultipleInput.css +8 -1
- package/dist/DragResizable.css +126 -1
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js +331 -0
- package/dist/DragSort-5WetnkmW.js +98 -0
- package/dist/DragSort.css +5 -1
- package/dist/ErrorImage-Ao9kEEUg.js +36 -0
- package/dist/ErrorImage.css +4 -1
- package/dist/FgCascader.css +37 -1
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-CM8FxFLJ.js +2424 -0
- package/dist/HSelect-BFkWiCFi.js +671 -0
- package/dist/HSelect.css +80 -1
- package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-BZX7ch2I.js +50 -0
- package/dist/HSelectSJ-DZmtdyjF.js +671 -0
- package/dist/HSelectSJ.css +88 -1
- package/dist/IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js +5202 -0
- package/dist/ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js +92 -0
- package/dist/LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js +107 -0
- package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-B2vtU4f4.js +34 -0
- package/dist/LoadingBtn-DWm2cY9k.js +87 -0
- package/dist/LoadingBtn.css +12 -1
- package/dist/MInput-s_P63myh.js +114 -0
- package/dist/MInput.css +21 -1
- package/dist/MyTable-CHvxPYgk.js +94 -0
- package/dist/MyTable.css +33 -1
- package/dist/NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js +31 -0
- package/dist/SelectAddress-CCepDxu8.js +254 -0
- package/dist/SelectAddress.css +18 -1
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js +101 -0
- package/dist/SelectAll2.vue_vue_type_script_setup_true_lang-CrsaohxU.js +103 -0
- package/dist/SelectCustomAll.css +8 -1
- package/dist/SelectCustomAll.vue_vue_type_style_index_0_lang-BEZwlGXa.js +111 -0
- package/dist/SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js +48 -0
- package/dist/SelectTree-DHbWogEU.js +1276 -0
- package/dist/SelectTree.css +74 -1
- package/dist/SvgIcon-DIg0upEk.js +33 -0
- package/dist/TextCopy-th0FAxwl.js +44 -0
- package/dist/TextCopy.css +7 -1
- package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js +174 -0
- package/dist/VirtualTable-Cm_L7q9W.js +703 -0
- package/dist/VirtualTable.css +185 -1
- package/dist/_commonjsHelpers-DnzVkjQg.js +38 -0
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +10 -0
- package/dist/common-B1nSpTGn.js +9669 -0
- package/dist/components/VirtualTable/index.js +2 -2
- package/dist/components/argHover/index.js +2 -2
- package/dist/components/buttonGroup/index.js +2 -2
- package/dist/components/cascader/index.js +2 -2
- package/dist/components/citySelect/index.js +2 -2
- package/dist/components/contentTitle/index.js +2 -2
- package/dist/components/customInputV2/index.js +2 -2
- package/dist/components/customMultipleInput/index.js +2 -2
- package/dist/components/dragResizable/index.js +2 -2
- package/dist/components/dragSort/index.js +2 -2
- package/dist/components/errorImage/index.js +2 -2
- package/dist/components/hSelect/index.js +2 -2
- package/dist/components/hSelectAll/index.js +2 -2
- package/dist/components/hSelectSJ/index.js +2 -2
- package/dist/components/identifyAddress/index.js +2 -2
- package/dist/components/imageLoupe/index.js +2 -2
- package/dist/components/index.js +62 -62
- package/dist/components/lazyComponent/index.js +2 -2
- package/dist/components/lazyPopover/index.js +2 -2
- package/dist/components/loadingBtn/index.js +2 -2
- package/dist/components/mInput/index.js +2 -2
- package/dist/components/myTable/index.js +2 -2
- package/dist/components/noRender/index.js +2 -2
- package/dist/components/selectAddress/index.js +2 -2
- package/dist/components/selectAll/index.js +2 -2
- package/dist/components/selectAll2/index.js +2 -2
- package/dist/components/selectCustomAll/index.js +2 -2
- package/dist/components/selectTimePicker/index.js +2 -2
- package/dist/components/selectTree/index.js +2 -2
- package/dist/components/svgIcon/index.js +2 -2
- package/dist/components/textCopy/index.js +2 -2
- package/dist/components/textEllipsisTooltip/index.js +2 -2
- package/dist/dateShortcuts-DjFC_Txu.js +27 -0
- package/dist/directive/index.js +2 -2
- package/dist/directive/loading/index.js +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/usePagination/index.js +2 -2
- package/dist/index-BPnixsfc.js +103 -0
- package/dist/index-C9zyi90j.js +165 -0
- package/dist/index-CSMWzzp0.js +8 -0
- package/dist/index-DfQiknXJ.js +8 -0
- package/dist/index-DzdLpetc.js +29184 -0
- package/dist/index-uQXqC9BF.js +68 -0
- package/dist/index.css +1 -1
- package/dist/index.js +204 -194
- package/dist/loading-CGrVcnNl.js +47 -0
- package/dist/loading.css +110 -1
- package/dist/tools/ImageParserUtils/index.js +17239 -9074
- package/dist/tools/common/index.js +86 -86
- package/dist/tools/index.js +95 -95
- package/dist/usePagination-C63IRXjZ.js +29 -0
- package/dist/vue-virtual-scroller.esm-ZgBoGAjX.js +1507 -0
- package/package.json +1 -1
- package/dist/ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js +0 -54
- package/dist/ButtonGroup-C0yZEkxK.js +0 -103
- package/dist/CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js +0 -159
- package/dist/ContentTitle-mqrusLjx.js +0 -24
- package/dist/CustomInputV2-uARhbFc8.js +0 -135
- package/dist/CustomMultipleInput-DDaqoHVU.js +0 -109
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js +0 -179
- package/dist/DragSort-CfDeFAIG.js +0 -66
- package/dist/ErrorImage-CTP_5sal.js +0 -32
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js +0 -1656
- package/dist/HSelect-Drf6YBwO.js +0 -468
- package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js +0 -36
- package/dist/HSelectSJ-D3GrXmvj.js +0 -462
- package/dist/IdentifyAddress.vue_vue_type_script_setup_true_lang-BJheMI1q.js +0 -4743
- package/dist/ImageLoupe.vue_vue_type_script_setup_true_lang-BlX4VbRi.js +0 -79
- package/dist/LazyComponent.vue_vue_type_script_setup_true_lang-vNk68D8E.js +0 -82
- package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js +0 -33
- package/dist/LoadingBtn-BhbhNboo.js +0 -66
- package/dist/MInput-CpoW17Wh.js +0 -101
- package/dist/MyTable-DmwyEVJb.js +0 -68
- package/dist/NoRender.vue_vue_type_script_setup_true_lang-Do36nSsV.js +0 -30
- package/dist/SelectAddress-B4oK5erq.js +0 -173
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-BC3q2U8f.js +0 -79
- package/dist/SelectAll2.vue_vue_type_script_setup_true_lang-CaET5eli.js +0 -74
- package/dist/SelectCustomAll.vue_vue_type_style_index_0_lang-_wCRO217.js +0 -83
- package/dist/SelectTimePicker.vue_vue_type_script_setup_true_lang-Bj0KMOKv.js +0 -45
- package/dist/SelectTree-Dm5259kY.js +0 -911
- package/dist/SvgIcon-C2ah8E0Z.js +0 -30
- package/dist/TextCopy-hOj-Wj2H.js +0 -41
- package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-aZbEQmbM.js +0 -112
- package/dist/VirtualTable-BWugJiQ5.js +0 -349
- package/dist/_commonjsHelpers-ByYUsBRP.js +0 -33
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/common-BIEgCXbl.js +0 -7030
- package/dist/dateShortcuts-DDPtAhDI.js +0 -26
- package/dist/index-BRcBDlVs.js +0 -68
- package/dist/index-CeWudY6u.js +0 -8
- package/dist/index-DIX8TpoT.js +0 -118
- package/dist/index-DpPsTMp0.js +0 -8
- package/dist/index-epuVZjZV.js +0 -103
- package/dist/index-uf7oyYDF.js +0 -16847
- package/dist/loading-DJVNc0eN.js +0 -36
- package/dist/usePagination-CwShBEjA.js +0 -20
- package/dist/vue-virtual-scroller.esm-CH-jx4ri.js +0 -1051
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/MInput-CpoW17Wh.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
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
|
-
import { ElInput as y, ElDialog as h, ElButton as x } from "element-plus";
|
|
3
|
-
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import './MInput.css';const T = { class: "custom-input" }, U = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "pb-[12px] text-fill-900",
|
|
7
|
-
style: { "font-family": "MicrosoftYaHei, sans-serif" }
|
|
8
|
-
}, K = /* @__PURE__ */ E({
|
|
9
|
-
__name: "MInput",
|
|
10
|
-
props: /* @__PURE__ */ V({
|
|
11
|
-
tip: {},
|
|
12
|
-
label: {},
|
|
13
|
-
placeholder: {},
|
|
14
|
-
saveBtnText: {}
|
|
15
|
-
}, {
|
|
16
|
-
modelValue: { default: "" },
|
|
17
|
-
modelModifiers: {}
|
|
18
|
-
}),
|
|
19
|
-
emits: /* @__PURE__ */ V(["saveEvent"], ["update:modelValue"]),
|
|
20
|
-
setup(l, { emit: g }) {
|
|
21
|
-
const k = g, a = r(!1), i = b(l, "modelValue"), n = r(""), M = () => {
|
|
22
|
-
n.value = i.value, a.value = !0;
|
|
23
|
-
}, w = () => {
|
|
24
|
-
i.value = n.value, a.value = !1, k("saveEvent", n.value);
|
|
25
|
-
};
|
|
26
|
-
return (u, e) => (m(), p("div", T, [
|
|
27
|
-
d(s(y), C({
|
|
28
|
-
class: "input",
|
|
29
|
-
modelValue: i.value,
|
|
30
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t)
|
|
31
|
-
}, u.$attrs, {
|
|
32
|
-
placeholder: l.placeholder,
|
|
33
|
-
clearable: ""
|
|
34
|
-
}), B({
|
|
35
|
-
append: o(() => [
|
|
36
|
-
v("span", { onClick: M }, "•••")
|
|
37
|
-
]),
|
|
38
|
-
_: 2
|
|
39
|
-
}, [
|
|
40
|
-
u.$slots.prepend ? {
|
|
41
|
-
name: "prepend",
|
|
42
|
-
fn: o(() => [
|
|
43
|
-
D(u.$slots, "prepend", {}, void 0, !0)
|
|
44
|
-
]),
|
|
45
|
-
key: "0"
|
|
46
|
-
} : void 0
|
|
47
|
-
]), 1040, ["modelValue", "placeholder"]),
|
|
48
|
-
d(s(h), {
|
|
49
|
-
class: "order-dialog",
|
|
50
|
-
modelValue: a.value,
|
|
51
|
-
"onUpdate:modelValue": e[4] || (e[4] = (t) => a.value = t),
|
|
52
|
-
width: "480px",
|
|
53
|
-
title: l.label,
|
|
54
|
-
"align-center": "",
|
|
55
|
-
draggable: "",
|
|
56
|
-
"close-on-click-modal": !1
|
|
57
|
-
}, {
|
|
58
|
-
footer: o(() => [
|
|
59
|
-
v("div", null, [
|
|
60
|
-
d(s(x), {
|
|
61
|
-
type: "info",
|
|
62
|
-
plain: "",
|
|
63
|
-
onClick: e[3] || (e[3] = (t) => a.value = !1)
|
|
64
|
-
}, {
|
|
65
|
-
default: o(() => [...e[5] || (e[5] = [
|
|
66
|
-
c("取消", -1)
|
|
67
|
-
])]),
|
|
68
|
-
_: 1
|
|
69
|
-
}),
|
|
70
|
-
d(s(x), {
|
|
71
|
-
class: "!ml-[14px]",
|
|
72
|
-
type: "primary",
|
|
73
|
-
onClick: w
|
|
74
|
-
}, {
|
|
75
|
-
default: o(() => [
|
|
76
|
-
c(f(l.saveBtnText || "确认"), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})
|
|
80
|
-
])
|
|
81
|
-
]),
|
|
82
|
-
default: o(() => [
|
|
83
|
-
l.tip ? (m(), p("div", U, f(l.tip), 1)) : I("", !0),
|
|
84
|
-
d(s(y), {
|
|
85
|
-
modelValue: n.value,
|
|
86
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) => n.value = t),
|
|
87
|
-
type: "textarea",
|
|
88
|
-
autosize: { minRows: 3, maxRows: 5 },
|
|
89
|
-
placeholder: l.placeholder,
|
|
90
|
-
onKeyup: e[2] || (e[2] = N($(() => {
|
|
91
|
-
}, ["stop"]), ["enter"]))
|
|
92
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
}, 8, ["modelValue", "title"])
|
|
96
|
-
]));
|
|
97
|
-
}
|
|
98
|
-
}), P = /* @__PURE__ */ S(K, [["__scopeId", "data-v-d19cb983"]]);
|
|
99
|
-
export {
|
|
100
|
-
P as M
|
|
101
|
-
};
|
package/dist/MyTable-DmwyEVJb.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,173 +0,0 @@
|
|
|
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
|
-
};
|