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
package/package.json
CHANGED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, resolveComponent as l, openBlock as f, createBlock as i, withCtx as o, renderSlot as n, createVNode as r, normalizeStyle as m, normalizeClass as d, unref as p } from "vue";
|
|
2
|
-
import { QuestionFilled as u } from "@element-plus/icons-vue";
|
|
3
|
-
import './ArgHover.css';const w = /* @__PURE__ */ s({
|
|
4
|
-
__name: "ArgHover",
|
|
5
|
-
props: {
|
|
6
|
-
text: String,
|
|
7
|
-
placement: {
|
|
8
|
-
default: "top"
|
|
9
|
-
},
|
|
10
|
-
effect: {
|
|
11
|
-
default: "light"
|
|
12
|
-
},
|
|
13
|
-
width: {
|
|
14
|
-
default: 200
|
|
15
|
-
},
|
|
16
|
-
color: {
|
|
17
|
-
default: "#9198A8"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(e) {
|
|
21
|
-
return (t, h) => {
|
|
22
|
-
const c = l("el-icon"), a = l("el-popover");
|
|
23
|
-
return f(), i(a, {
|
|
24
|
-
"popper-class": "arghover",
|
|
25
|
-
placement: e.placement,
|
|
26
|
-
effect: e.effect,
|
|
27
|
-
width: e.width,
|
|
28
|
-
content: e.text
|
|
29
|
-
}, {
|
|
30
|
-
reference: o(() => [
|
|
31
|
-
n(t.$slots, "default", {}, () => [
|
|
32
|
-
r(c, {
|
|
33
|
-
class: d(["fg-arg-hover-trigger", t.$attrs.class]),
|
|
34
|
-
style: m({ color: e.color }),
|
|
35
|
-
size: 16
|
|
36
|
-
}, {
|
|
37
|
-
default: o(() => [
|
|
38
|
-
r(p(u))
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 8, ["class", "style"])
|
|
42
|
-
])
|
|
43
|
-
]),
|
|
44
|
-
default: o(() => [
|
|
45
|
-
n(t.$slots, "content")
|
|
46
|
-
]),
|
|
47
|
-
_: 3
|
|
48
|
-
}, 8, ["placement", "effect", "width", "content"]);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
w as _
|
|
54
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import './ButtonGroup.css';var p = (_, b, a) => new Promise((i, r) => {
|
|
2
|
-
var u = (t) => {
|
|
3
|
-
try {
|
|
4
|
-
n(a.next(t));
|
|
5
|
-
} catch (s) {
|
|
6
|
-
r(s);
|
|
7
|
-
}
|
|
8
|
-
}, l = (t) => {
|
|
9
|
-
try {
|
|
10
|
-
n(a.throw(t));
|
|
11
|
-
} catch (s) {
|
|
12
|
-
r(s);
|
|
13
|
-
}
|
|
14
|
-
}, n = (t) => t.done ? i(t.value) : Promise.resolve(t.value).then(u, l);
|
|
15
|
-
n((a = a.apply(_, b)).next());
|
|
16
|
-
});
|
|
17
|
-
import { defineComponent as $, ref as d, onMounted as x, onUnmounted as B, watch as C, openBlock as m, createElementBlock as y, createElementVNode as w, normalizeClass as h, Fragment as R, renderList as G, toDisplayString as L, normalizeStyle as S, nextTick as E } from "vue";
|
|
18
|
-
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const M = ["onClick"], z = /* @__PURE__ */ $({
|
|
20
|
-
__name: "ButtonGroup",
|
|
21
|
-
props: {
|
|
22
|
-
data: {}
|
|
23
|
-
},
|
|
24
|
-
emits: ["change"],
|
|
25
|
-
setup(_, { emit: b }) {
|
|
26
|
-
const a = d(null), i = _, r = b, u = d([]), l = d({
|
|
27
|
-
width: 0,
|
|
28
|
-
left: 0
|
|
29
|
-
}), n = d([]);
|
|
30
|
-
let t = null;
|
|
31
|
-
function s() {
|
|
32
|
-
return p(this, null, function* () {
|
|
33
|
-
yield E();
|
|
34
|
-
const e = n.value.findIndex((c) => c.active);
|
|
35
|
-
if (e < 0) {
|
|
36
|
-
l.value = { width: 0, left: 0 };
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const o = u.value[e];
|
|
40
|
-
if (!o) {
|
|
41
|
-
l.value = { width: 0, left: 0 };
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
l.value = {
|
|
45
|
-
width: o.clientWidth,
|
|
46
|
-
left: o.offsetLeft
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
const g = (e, o) => {
|
|
51
|
-
const c = e.target.clientWidth || 0, f = e.target.offsetLeft || 0;
|
|
52
|
-
l.value = {
|
|
53
|
-
width: c,
|
|
54
|
-
left: f
|
|
55
|
-
}, n.value.forEach((v, k) => {
|
|
56
|
-
k === o ? v.active = !0 : v.active = !1;
|
|
57
|
-
}), r("change", n.value[o]);
|
|
58
|
-
};
|
|
59
|
-
return x(() => p(null, null, function* () {
|
|
60
|
-
n.value = i.data, yield s(), a.value && (t = new ResizeObserver(() => {
|
|
61
|
-
s();
|
|
62
|
-
}), t.observe(a.value));
|
|
63
|
-
})), B(() => {
|
|
64
|
-
t == null || t.disconnect(), t = null;
|
|
65
|
-
}), C(
|
|
66
|
-
() => i.data,
|
|
67
|
-
(e) => p(null, null, function* () {
|
|
68
|
-
n.value = e, yield s();
|
|
69
|
-
})
|
|
70
|
-
), (e, o) => (m(), y("div", {
|
|
71
|
-
ref_key: "btnGroupRef",
|
|
72
|
-
ref: a,
|
|
73
|
-
class: "flex"
|
|
74
|
-
}, [
|
|
75
|
-
w("div", {
|
|
76
|
-
class: h([e.$style["but-group-wrap"], "pattern-box"])
|
|
77
|
-
}, [
|
|
78
|
-
(m(!0), y(R, null, G(n.value, (c, f) => (m(), y("span", {
|
|
79
|
-
key: f,
|
|
80
|
-
class: h([e.$style["btn-items"], { [e.$style.active]: c.active }, { "pattern-active": c.active }, "pattern-box-btn"]),
|
|
81
|
-
ref_for: !0,
|
|
82
|
-
ref_key: "btnRefs",
|
|
83
|
-
ref: u,
|
|
84
|
-
onClick: (v) => g(v, f)
|
|
85
|
-
}, L(c.label), 11, M))), 128)),
|
|
86
|
-
w("div", {
|
|
87
|
-
class: h([e.$style["slide-bg"], "pattern-box-bg"]),
|
|
88
|
-
style: S({ width: `${l.value.width}px`, left: `${l.value.left}px` })
|
|
89
|
-
}, null, 6)
|
|
90
|
-
], 2)
|
|
91
|
-
], 512));
|
|
92
|
-
}
|
|
93
|
-
}), D = "_active_127vp_22", T = {
|
|
94
|
-
"but-group-wrap": "_but-group-wrap_127vp_1",
|
|
95
|
-
"btn-items": "_btn-items_127vp_10",
|
|
96
|
-
active: D,
|
|
97
|
-
"slide-bg": "_slide-bg_127vp_25"
|
|
98
|
-
}, W = {
|
|
99
|
-
$style: T
|
|
100
|
-
}, U = /* @__PURE__ */ I(z, [["__cssModules", W]]);
|
|
101
|
-
export {
|
|
102
|
-
U as B
|
|
103
|
-
};
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, ref as c, onMounted as B, watch as U, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as j, withCtx as y, Fragment as f, renderList as K, createBlock as v, createCommentVNode as w } from "vue";
|
|
2
|
-
const F = { class: "flex w-full" }, q = /* @__PURE__ */ M({
|
|
3
|
-
__name: "CitySelect",
|
|
4
|
-
props: {
|
|
5
|
-
provinceCode: {},
|
|
6
|
-
cityCode: {},
|
|
7
|
-
areaCode: {},
|
|
8
|
-
parentKey: { default: "parentCode" },
|
|
9
|
-
source: {},
|
|
10
|
-
valueKey: { default: "code" },
|
|
11
|
-
nameKey: { default: "name" },
|
|
12
|
-
level: { default: 3 }
|
|
13
|
-
},
|
|
14
|
-
emits: ["success"],
|
|
15
|
-
setup(N, { emit: A }) {
|
|
16
|
-
const t = N, m = A, u = c(null), s = c(null), i = c(null), L = c([]), h = c([]), g = c([]), d = c(/* @__PURE__ */ new Map()), V = (e) => {
|
|
17
|
-
if (!e.source.length)
|
|
18
|
-
return !1;
|
|
19
|
-
t.valueKey === "code" && (i.value = e.areaCode || "", s.value = e.cityCode || "", u.value = e.provinceCode || "");
|
|
20
|
-
const o = [];
|
|
21
|
-
e.source.forEach((l) => {
|
|
22
|
-
const n = {
|
|
23
|
-
name: l[e.nameKey],
|
|
24
|
-
code: l[e.valueKey],
|
|
25
|
-
parentCode: l[e.parentKey],
|
|
26
|
-
areasList: /* @__PURE__ */ new Map()
|
|
27
|
-
};
|
|
28
|
-
o.push({
|
|
29
|
-
name: l[e.nameKey],
|
|
30
|
-
code: l[e.valueKey],
|
|
31
|
-
parentCode: l[e.parentKey]
|
|
32
|
-
}), Array.isArray(l.areasList) && l.areasList.forEach((a) => {
|
|
33
|
-
const b = {
|
|
34
|
-
name: a[e.nameKey],
|
|
35
|
-
code: a[e.valueKey],
|
|
36
|
-
parentCode: a[e.parentKey],
|
|
37
|
-
areasList: /* @__PURE__ */ new Map()
|
|
38
|
-
};
|
|
39
|
-
Array.isArray(a.areasList) && a.areasList.forEach((C) => {
|
|
40
|
-
const x = {
|
|
41
|
-
name: C[e.nameKey],
|
|
42
|
-
code: C[e.valueKey],
|
|
43
|
-
parentCode: C[e.parentKey]
|
|
44
|
-
};
|
|
45
|
-
b.areasList.set(x.code, x);
|
|
46
|
-
}), n.areasList.set(a.code, b);
|
|
47
|
-
}), d.value.set(l.code, n);
|
|
48
|
-
}), L.value = o, e.provinceCode && (u.value = e.provinceCode, _(e.provinceCode)), e.cityCode && (s.value = e.cityCode, D(e.cityCode)), e.areaCode && (i.value = e.areaCode);
|
|
49
|
-
}, _ = (e) => {
|
|
50
|
-
const o = d.value.get(e);
|
|
51
|
-
if (!o) return;
|
|
52
|
-
const l = [];
|
|
53
|
-
o.areasList.forEach((n) => {
|
|
54
|
-
l.push({
|
|
55
|
-
name: n.name,
|
|
56
|
-
code: n.code,
|
|
57
|
-
parentCode: n.parentCode
|
|
58
|
-
});
|
|
59
|
-
}), s.value = null, i.value = null, h.value = l, t.level === 1 && m("success", {
|
|
60
|
-
level: 1,
|
|
61
|
-
provinceName: o.name || "",
|
|
62
|
-
provinceCode: o.code || ""
|
|
63
|
-
});
|
|
64
|
-
}, D = (e) => {
|
|
65
|
-
const o = d.value.get(u.value);
|
|
66
|
-
if (!o || !o.areasList) return;
|
|
67
|
-
const l = o.areasList.get(e), n = [];
|
|
68
|
-
!l || !l.areasList || (l.areasList.forEach((a) => {
|
|
69
|
-
n.push({
|
|
70
|
-
name: a.name,
|
|
71
|
-
code: a.code,
|
|
72
|
-
parentCode: a.parentCode
|
|
73
|
-
});
|
|
74
|
-
}), i.value = null, g.value = n, t.level === 2 && m("success", {
|
|
75
|
-
level: 2,
|
|
76
|
-
provinceName: o.name || "",
|
|
77
|
-
provinceCode: o.code || "",
|
|
78
|
-
cityName: l.name || "",
|
|
79
|
-
cityCode: l.code || ""
|
|
80
|
-
}));
|
|
81
|
-
}, E = (e) => {
|
|
82
|
-
const o = d.value.get(u.value), l = o.areasList.get(s.value), n = l.areasList.get(e), a = {
|
|
83
|
-
level: 3,
|
|
84
|
-
provinceName: o.name || "",
|
|
85
|
-
provinceCode: o.code || "",
|
|
86
|
-
cityName: l.name || "",
|
|
87
|
-
cityCode: l.code || "",
|
|
88
|
-
areaName: n.name || "",
|
|
89
|
-
areaCode: n.code || ""
|
|
90
|
-
};
|
|
91
|
-
m("success", a);
|
|
92
|
-
};
|
|
93
|
-
return B(() => {
|
|
94
|
-
V(t);
|
|
95
|
-
}), U(t, (e) => {
|
|
96
|
-
V(e);
|
|
97
|
-
}), (e, o) => {
|
|
98
|
-
const l = k("el-option"), n = k("el-select");
|
|
99
|
-
return r(), p("div", F, [
|
|
100
|
-
j(n, {
|
|
101
|
-
placeholder: "省",
|
|
102
|
-
class: "mr-[10px] flex-1",
|
|
103
|
-
modelValue: u.value,
|
|
104
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) => u.value = a),
|
|
105
|
-
filterable: "",
|
|
106
|
-
onChange: _
|
|
107
|
-
}, {
|
|
108
|
-
default: y(() => [
|
|
109
|
-
(r(!0), p(f, null, K(L.value, (a) => (r(), v(l, {
|
|
110
|
-
key: a.code,
|
|
111
|
-
value: a.code,
|
|
112
|
-
label: a.name
|
|
113
|
-
}, null, 8, ["value", "label"]))), 128))
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 8, ["modelValue"]),
|
|
117
|
-
t.level >= 2 ? (r(), v(n, {
|
|
118
|
-
key: 0,
|
|
119
|
-
placeholder: "市",
|
|
120
|
-
class: "mr-[10px] flex-1",
|
|
121
|
-
modelValue: s.value,
|
|
122
|
-
"onUpdate:modelValue": o[1] || (o[1] = (a) => s.value = a),
|
|
123
|
-
filterable: "",
|
|
124
|
-
onChange: D
|
|
125
|
-
}, {
|
|
126
|
-
default: y(() => [
|
|
127
|
-
(r(!0), p(f, null, K(h.value, (a) => (r(), v(l, {
|
|
128
|
-
key: a.code,
|
|
129
|
-
value: a.code,
|
|
130
|
-
label: a.name
|
|
131
|
-
}, null, 8, ["value", "label"]))), 128))
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["modelValue"])) : w("", !0),
|
|
135
|
-
t.level >= 3 ? (r(), v(n, {
|
|
136
|
-
key: 1,
|
|
137
|
-
placeholder: "区/县",
|
|
138
|
-
modelValue: i.value,
|
|
139
|
-
"onUpdate:modelValue": o[2] || (o[2] = (a) => i.value = a),
|
|
140
|
-
class: "flex-1",
|
|
141
|
-
filterable: "",
|
|
142
|
-
onChange: E
|
|
143
|
-
}, {
|
|
144
|
-
default: y(() => [
|
|
145
|
-
(r(!0), p(f, null, K(g.value.filter((a) => a.parentCode === s.value), (a) => (r(), v(l, {
|
|
146
|
-
key: a[t.valueKey],
|
|
147
|
-
value: a[t.valueKey],
|
|
148
|
-
label: a[t.nameKey]
|
|
149
|
-
}, null, 8, ["value", "label"]))), 128))
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["modelValue"])) : w("", !0)
|
|
153
|
-
]);
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
export {
|
|
158
|
-
q as _
|
|
159
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as n, createElementBlock as l, createElementVNode as c, normalizeClass as i, toDisplayString as r, renderSlot as a } from "vue";
|
|
2
|
-
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './ContentTitle.css';const _ = { class: "flex items-baseline gap-x-[4px]" }, m = /* @__PURE__ */ o({
|
|
4
|
-
__name: "ContentTitle",
|
|
5
|
-
props: {
|
|
6
|
-
title: {}
|
|
7
|
-
},
|
|
8
|
-
setup(e) {
|
|
9
|
-
const s = e;
|
|
10
|
-
return (t, u) => (n(), l("div", _, [
|
|
11
|
-
c("h3", {
|
|
12
|
-
class: i(t.$style["content-title"])
|
|
13
|
-
}, r(s.title), 3),
|
|
14
|
-
a(t.$slots, "default")
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
}), d = {
|
|
18
|
-
"content-title": "_content-title_1dl6y_1"
|
|
19
|
-
}, f = {
|
|
20
|
-
$style: d
|
|
21
|
-
}, x = /* @__PURE__ */ p(m, [["__cssModules", f]]);
|
|
22
|
-
export {
|
|
23
|
-
x as C
|
|
24
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, useModel as w, ref as f, useSlots as _, useAttrs as E, resolveComponent as d, openBlock as r, createElementBlock as v, Fragment as S, createVNode as n, mergeProps as F, unref as s, createSlots as P, withCtx as o, renderList as R, createBlock as z, renderSlot as M, createElementVNode as V, toDisplayString as A, createTextVNode as N, createCommentVNode as D, mergeModels as H } from "vue";
|
|
2
|
-
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './CustomInputV2.css';const T = { key: 0 }, Y = {
|
|
4
|
-
class: "py-[12px] text-fill-900",
|
|
5
|
-
style: { "font-family": "MicrosoftYaHei, sans-serif" }
|
|
6
|
-
}, j = { class: "pt-[24px] pb-[12px]" }, q = /* @__PURE__ */ I({
|
|
7
|
-
__name: "CustomInputV2",
|
|
8
|
-
props: /* @__PURE__ */ H({
|
|
9
|
-
placeholder: { default: "请输入" },
|
|
10
|
-
isShowCondition: { type: Boolean, default: !0 },
|
|
11
|
-
name: { default: "" },
|
|
12
|
-
isShowMultiple: { type: Boolean, default: !0 },
|
|
13
|
-
options: { default: () => [
|
|
14
|
-
{ label: "模糊匹配", value: !0 },
|
|
15
|
-
{ label: "精准匹配", value: !1 }
|
|
16
|
-
] }
|
|
17
|
-
}, {
|
|
18
|
-
modelValue: {},
|
|
19
|
-
modelModifiers: {},
|
|
20
|
-
condition: {},
|
|
21
|
-
conditionModifiers: {}
|
|
22
|
-
}),
|
|
23
|
-
emits: ["update:modelValue", "update:condition"],
|
|
24
|
-
setup(t) {
|
|
25
|
-
const u = w(t, "modelValue"), y = w(t, "condition"), m = t, k = f(), c = f("多个值以逗号隔开或空格隔开"), i = _(), B = E(), a = f(!1), x = (p) => {
|
|
26
|
-
const e = /,|,/;
|
|
27
|
-
return p.split(e);
|
|
28
|
-
};
|
|
29
|
-
return k.value = m.name || x(m.placeholder)[0], c.value = x(m.placeholder)[1], (p, e) => {
|
|
30
|
-
const g = d("el-option"), $ = d("el-select"), C = d("el-input"), b = d("el-button"), U = d("el-dialog");
|
|
31
|
-
return r(), v(S, null, [
|
|
32
|
-
n(C, F({ class: "custom-input" }, s(B), {
|
|
33
|
-
modelValue: u.value,
|
|
34
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
|
|
35
|
-
placeholder: t.placeholder
|
|
36
|
-
}), P({ _: 2 }, [
|
|
37
|
-
t.isShowCondition && !s(i).prepend ? {
|
|
38
|
-
name: "prepend",
|
|
39
|
-
fn: o(() => [
|
|
40
|
-
n($, {
|
|
41
|
-
class: "!w-[100px] flex-shrink-0",
|
|
42
|
-
modelValue: y.value,
|
|
43
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => y.value = l)
|
|
44
|
-
}, {
|
|
45
|
-
default: o(() => [
|
|
46
|
-
(r(!0), v(S, null, R(t.options, (l, h) => (r(), z(g, {
|
|
47
|
-
key: h,
|
|
48
|
-
label: l.label,
|
|
49
|
-
value: l.value
|
|
50
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 8, ["modelValue"])
|
|
54
|
-
]),
|
|
55
|
-
key: "0"
|
|
56
|
-
} : void 0,
|
|
57
|
-
s(i).prepend ? {
|
|
58
|
-
name: "prepend",
|
|
59
|
-
fn: o(() => [
|
|
60
|
-
M(p.$slots, "prepend", {}, void 0, !0)
|
|
61
|
-
]),
|
|
62
|
-
key: "1"
|
|
63
|
-
} : void 0,
|
|
64
|
-
t.isShowMultiple && !s(i).append ? {
|
|
65
|
-
name: "append",
|
|
66
|
-
fn: o(() => [
|
|
67
|
-
V("span", {
|
|
68
|
-
onClick: e[1] || (e[1] = (l) => a.value = !0)
|
|
69
|
-
}, "•••")
|
|
70
|
-
]),
|
|
71
|
-
key: "2"
|
|
72
|
-
} : void 0,
|
|
73
|
-
s(i).append ? {
|
|
74
|
-
name: "append",
|
|
75
|
-
fn: o(() => [
|
|
76
|
-
M(p.$slots, "append", {}, void 0, !0)
|
|
77
|
-
]),
|
|
78
|
-
key: "3"
|
|
79
|
-
} : void 0
|
|
80
|
-
]), 1040, ["modelValue", "placeholder"]),
|
|
81
|
-
t.isShowMultiple ? (r(), v("div", T, [
|
|
82
|
-
n(U, {
|
|
83
|
-
class: "order-dialog",
|
|
84
|
-
modelValue: a.value,
|
|
85
|
-
"onUpdate:modelValue": e[6] || (e[6] = (l) => a.value = l),
|
|
86
|
-
width: "480px",
|
|
87
|
-
title: k.value,
|
|
88
|
-
"align-center": "",
|
|
89
|
-
draggable: "",
|
|
90
|
-
"close-on-click-modal": !1
|
|
91
|
-
}, {
|
|
92
|
-
footer: o(() => [
|
|
93
|
-
V("div", j, [
|
|
94
|
-
n(b, {
|
|
95
|
-
type: "info",
|
|
96
|
-
plain: "",
|
|
97
|
-
onClick: e[4] || (e[4] = (l) => a.value = !1)
|
|
98
|
-
}, {
|
|
99
|
-
default: o(() => [...e[7] || (e[7] = [
|
|
100
|
-
N("取消", -1)
|
|
101
|
-
])]),
|
|
102
|
-
_: 1
|
|
103
|
-
}),
|
|
104
|
-
n(b, {
|
|
105
|
-
class: "!ml-[14px]",
|
|
106
|
-
type: "primary",
|
|
107
|
-
onClick: e[5] || (e[5] = (l) => a.value = !1)
|
|
108
|
-
}, {
|
|
109
|
-
default: o(() => [...e[8] || (e[8] = [
|
|
110
|
-
N("确认", -1)
|
|
111
|
-
])]),
|
|
112
|
-
_: 1
|
|
113
|
-
})
|
|
114
|
-
])
|
|
115
|
-
]),
|
|
116
|
-
default: o(() => [
|
|
117
|
-
V("div", Y, A(c.value), 1),
|
|
118
|
-
n(C, {
|
|
119
|
-
modelValue: u.value,
|
|
120
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) => u.value = l),
|
|
121
|
-
type: "textarea",
|
|
122
|
-
autosize: { minRows: 3, maxRows: 5 },
|
|
123
|
-
placeholder: c.value
|
|
124
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["modelValue", "title"])
|
|
128
|
-
])) : D("", !0)
|
|
129
|
-
], 64);
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
}), K = /* @__PURE__ */ L(q, [["__scopeId", "data-v-ce2bdbe3"]]);
|
|
133
|
-
export {
|
|
134
|
-
K as C
|
|
135
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as m, watch as N, resolveComponent as p, openBlock as v, createElementBlock as V, createVNode as a, withKeys as S, createSlots as I, withCtx as n, createElementVNode as r, createTextVNode as y, createCommentVNode as M } from "vue";
|
|
2
|
-
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './CustomMultipleInput.css';const $ = { class: "w-full" }, E = { key: 0 }, K = { class: "pt-[24px] pb-[12px]" }, R = /* @__PURE__ */ B({
|
|
4
|
-
__name: "CustomMultipleInput",
|
|
5
|
-
props: {
|
|
6
|
-
name: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: "请输入"
|
|
9
|
-
},
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0
|
|
13
|
-
},
|
|
14
|
-
multiple: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !0
|
|
17
|
-
},
|
|
18
|
-
clear: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !0
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: ["update:modelValue", "enter"],
|
|
24
|
-
setup(t, { emit: x }) {
|
|
25
|
-
const C = t, i = x, u = m("");
|
|
26
|
-
N(() => C.modelValue, (d) => u.value = d, { immediate: !0 });
|
|
27
|
-
const g = (d) => i("update:modelValue", d), s = m(""), o = m(!1), w = () => {
|
|
28
|
-
s.value = u.value, o.value = !0;
|
|
29
|
-
}, k = () => {
|
|
30
|
-
i("update:modelValue", s.value), o.value = !1;
|
|
31
|
-
}, _ = () => i("enter");
|
|
32
|
-
return (d, e) => {
|
|
33
|
-
const c = p("el-input"), f = p("el-button"), b = p("el-dialog");
|
|
34
|
-
return v(), V("div", $, [
|
|
35
|
-
a(c, {
|
|
36
|
-
class: "custom-input",
|
|
37
|
-
modelValue: u.value,
|
|
38
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => u.value = l),
|
|
39
|
-
placeholder: `${t.name}${t.multiple ? ",多个用逗号或空格分隔" : ""}`,
|
|
40
|
-
clearable: "",
|
|
41
|
-
onChange: g,
|
|
42
|
-
onKeydown: S(_, ["enter"])
|
|
43
|
-
}, I({ _: 2 }, [
|
|
44
|
-
t.multiple ? {
|
|
45
|
-
name: "append",
|
|
46
|
-
fn: n(() => [
|
|
47
|
-
r("span", { onClick: w }, "•••")
|
|
48
|
-
]),
|
|
49
|
-
key: "0"
|
|
50
|
-
} : void 0
|
|
51
|
-
]), 1032, ["modelValue", "placeholder"]),
|
|
52
|
-
t.multiple ? (v(), V("div", E, [
|
|
53
|
-
a(b, {
|
|
54
|
-
class: "order-dialog",
|
|
55
|
-
modelValue: o.value,
|
|
56
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) => o.value = l),
|
|
57
|
-
width: "480px",
|
|
58
|
-
title: t.name,
|
|
59
|
-
"align-center": "",
|
|
60
|
-
draggable: "",
|
|
61
|
-
"close-on-click-modal": !1
|
|
62
|
-
}, {
|
|
63
|
-
footer: n(() => [
|
|
64
|
-
r("div", K, [
|
|
65
|
-
a(f, {
|
|
66
|
-
type: "info",
|
|
67
|
-
plain: "",
|
|
68
|
-
onClick: e[2] || (e[2] = (l) => o.value = !1)
|
|
69
|
-
}, {
|
|
70
|
-
default: n(() => [...e[4] || (e[4] = [
|
|
71
|
-
y("取消", -1)
|
|
72
|
-
])]),
|
|
73
|
-
_: 1
|
|
74
|
-
}),
|
|
75
|
-
a(f, {
|
|
76
|
-
class: "!ml-[14px]",
|
|
77
|
-
type: "primary",
|
|
78
|
-
onClick: k
|
|
79
|
-
}, {
|
|
80
|
-
default: n(() => [...e[5] || (e[5] = [
|
|
81
|
-
y("确认", -1)
|
|
82
|
-
])]),
|
|
83
|
-
_: 1
|
|
84
|
-
})
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
default: n(() => [
|
|
88
|
-
e[6] || (e[6] = r("div", {
|
|
89
|
-
class: "py-[12px] text-fill-900",
|
|
90
|
-
style: { "font-family": "MicrosoftYaHei, sans-serif" }
|
|
91
|
-
}, " 多个值以逗号隔开或空格隔开 ", -1)),
|
|
92
|
-
a(c, {
|
|
93
|
-
modelValue: s.value,
|
|
94
|
-
"onUpdate:modelValue": e[1] || (e[1] = (l) => s.value = l),
|
|
95
|
-
type: "textarea",
|
|
96
|
-
autosize: { minRows: 3, maxRows: 5 },
|
|
97
|
-
placeholder: "多个用逗号或空格分隔"
|
|
98
|
-
}, null, 8, ["modelValue"])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["modelValue", "title"])
|
|
102
|
-
])) : M("", !0)
|
|
103
|
-
]);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
}), z = /* @__PURE__ */ U(R, [["__scopeId", "data-v-5686d705"]]);
|
|
107
|
-
export {
|
|
108
|
-
z as C
|
|
109
|
-
};
|