fangguo-component 1.1.0 → 1.1.2
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 +36 -1
- package/README.md +13 -11
- package/dist/{CustomInputV2-DYEcbu5_.js → CustomInputV2-uARhbFc8.js} +12 -12
- package/dist/CustomInputV2.css +1 -1
- package/dist/DragResizable.css +1 -1
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js +179 -0
- package/dist/FgCascader.css +1 -1
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js +1656 -0
- package/dist/{HSelect-Bqz2yTMf.js → HSelect-Drf6YBwO.js} +69 -69
- package/dist/{HSelectAll.vue_vue_type_script_setup_true_lang-C8i6LF_k.js → HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js} +1 -1
- package/dist/{HSelectSJ-BieRp2gG.js → HSelectSJ-D3GrXmvj.js} +104 -104
- package/dist/SelectTree-Dm5259kY.js +911 -0
- package/dist/SelectTree.css +1 -1
- package/dist/TextCopy-hOj-Wj2H.js +41 -0
- package/dist/TextCopy.css +1 -0
- package/dist/VirtualTable-BWugJiQ5.js +349 -0
- package/dist/VirtualTable.css +1 -1
- package/dist/components/VirtualTable/VirtualTable.vue.d.ts +3 -3
- package/dist/components/VirtualTable/index.d.ts +1 -0
- package/dist/components/VirtualTable/index.js +1 -1
- package/dist/components/cascader/cascader/ElCascader.vue.d.ts +3 -0
- package/dist/components/cascader/cascader/FgCascader.vue.d.ts +16 -4
- package/dist/components/cascader/cascader/cascader.d.ts +1 -0
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/citySelect/demos/mockAddressTree.d.ts +8 -0
- package/dist/components/customInputV2/CustomInputV2.vue.d.ts +1 -1
- package/dist/components/customInputV2/index.js +1 -1
- package/dist/components/dragResizable/DragResizable.vue.d.ts +2 -0
- package/dist/components/dragResizable/index.js +1 -1
- package/dist/components/hSelect/demos/mockApi.d.ts +12 -0
- package/dist/components/hSelect/index.js +1 -1
- package/dist/components/hSelectAll/demos/mockApi.d.ts +10 -0
- package/dist/components/hSelectAll/index.js +1 -1
- package/dist/components/hSelectSJ/demos/mockApi.d.ts +11 -0
- package/dist/components/hSelectSJ/index.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +42 -46
- package/dist/components/selectAddress/demos/mockAddressTree.d.ts +7 -0
- package/dist/components/selectTimePicker/SelectTimePicker.vue.d.ts +1 -1
- package/dist/components/selectTree/demos/treeData.d.ts +9 -0
- package/dist/components/selectTree/index.js +1 -1
- package/dist/components/textCopy/index.js +1 -1
- package/dist/index-BRcBDlVs.js +68 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +145 -149
- package/dist/vue-virtual-scroller.esm-CH-jx4ri.js +1051 -0
- package/package.json +8 -8
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-DYL6TUPE.js +0 -167
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-OnqaEAao.js +0 -1807
- package/dist/SelectTree-C7lBZnZH.js +0 -306
- package/dist/SortTransfer.css +0 -1
- package/dist/SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js +0 -153
- package/dist/TextCopy.vue_vue_type_script_setup_true_lang-DbhZGH_z.js +0 -29
- package/dist/TipInput-CIskitOV.js +0 -117
- package/dist/TipInput.css +0 -1
- package/dist/VirtualTable-BYTfwDC1.js +0 -353
- package/dist/components/sortTransfer/SortTransfer.vue.d.ts +0 -97
- package/dist/components/sortTransfer/index.d.ts +0 -1
- package/dist/components/sortTransfer/index.js +0 -4
- package/dist/components/tipInput/TipInput.vue.d.ts +0 -56
- package/dist/components/tipInput/index.d.ts +0 -1
- package/dist/components/tipInput/index.js +0 -4
- package/dist/debounce-BLrZUqsA.js +0 -84
- package/dist/index-BKzmtfeu.js +0 -72
- package/dist/isEqual-qYQTJBU6.js +0 -506
- package/dist/isObject-CO569sPG.js +0 -35
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import './SelectTree.css';var S = (t, J, w) => new Promise((d, a) => {
|
|
2
|
-
var y = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
v(w.next(o));
|
|
5
|
-
} catch (b) {
|
|
6
|
-
a(b);
|
|
7
|
-
}
|
|
8
|
-
}, x = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
v(w.throw(o));
|
|
11
|
-
} catch (b) {
|
|
12
|
-
a(b);
|
|
13
|
-
}
|
|
14
|
-
}, v = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(y, x);
|
|
15
|
-
v((w = w.apply(t, J)).next());
|
|
16
|
-
});
|
|
17
|
-
import { defineComponent as oe, ref as m, watch as T, computed as ce, nextTick as B, onMounted as se, resolveComponent as k, openBlock as K, createBlock as X, withCtx as f, createElementBlock as P, toDisplayString as D, createCommentVNode as E, createVNode as g, createElementVNode as C, normalizeStyle as Y, normalizeClass as z, createTextVNode as W, withDirectives as ue, withModifiers as Z, vModelText as ne } from "vue";
|
|
18
|
-
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const ie = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "select-tree-normal-value"
|
|
22
|
-
}, re = { class: "max-h-[280px] overflow-y-auto" }, ve = { class: "select-tree-normal-placeholder cursor-default" }, he = ["disabled", "placeholder"], pe = ["title"], fe = /* @__PURE__ */ oe({
|
|
23
|
-
__name: "SelectTree",
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: {},
|
|
26
|
-
placeholder: { default: "请选择" },
|
|
27
|
-
data: {},
|
|
28
|
-
checkoutAll: { type: Boolean, default: !0 },
|
|
29
|
-
multiple: { type: Boolean, default: !0 },
|
|
30
|
-
disabled: { type: Boolean, default: !1 },
|
|
31
|
-
props: {},
|
|
32
|
-
height: {},
|
|
33
|
-
width: {},
|
|
34
|
-
calcWidth: {},
|
|
35
|
-
filter: {},
|
|
36
|
-
wrapclass: {},
|
|
37
|
-
inputClass: {},
|
|
38
|
-
selectAllNode: { type: Boolean, default: !1 }
|
|
39
|
-
},
|
|
40
|
-
emits: ["update:modelValue", "change", "visible-change"],
|
|
41
|
-
setup(t, { expose: J, emit: w }) {
|
|
42
|
-
const d = w, a = t, y = m([]), x = (l, e) => {
|
|
43
|
-
var i, p, s;
|
|
44
|
-
const c = ((i = a.props) == null ? void 0 : i.label) || "label";
|
|
45
|
-
return ((p = (e[c] || "").toLowerCase()) == null ? void 0 : p.includes(l.toLowerCase())) || ((s = e.searchKey || "") == null ? void 0 : s.toLocaleLowerCase().includes(l.toLowerCase()));
|
|
46
|
-
}, v = m(!1), o = m(null), b = m([]), O = m([]), u = m([]), h = m(""), N = m(!1), $ = m("");
|
|
47
|
-
T(v, (l) => {
|
|
48
|
-
o.value.setExpandedKeys([]), d("visible-change", v.value), l ? F.value.focus() : (h.value = "", F.value.blur(), o.value && o.value.filter("")), !a.multiple && (h.value = $.value, o.value.filter(""));
|
|
49
|
-
});
|
|
50
|
-
const F = m(null), q = (l) => {
|
|
51
|
-
o.value.filter(l.target.value);
|
|
52
|
-
}, _ = (l) => {
|
|
53
|
-
a.multiple || l.children || ($.value = l[a.props && a.props.label || "label"], h.value = l[a.props && a.props.label || "label"], v.value = !1, d("update:modelValue", l[n.value]), d("change", l[n.value], o.value.getCheckedNodes()));
|
|
54
|
-
}, n = ce(() => a.props && a.props.value ? a.props.value : "id"), R = (l) => {
|
|
55
|
-
o.value.setChecked(l[n.value], !1), H({
|
|
56
|
-
checkedKeys: o.value.getCheckedKeys(),
|
|
57
|
-
checkedNodes: o.value.getCheckedNodes()
|
|
58
|
-
}), d("update:modelValue", u.value.map((e) => e[n.value])), d("change", u.value.map((e) => e[n.value]), o.value.getCheckedNodes());
|
|
59
|
-
}, H = (l) => {
|
|
60
|
-
b.value = l.checkedKeys, O.value = l.checkedNodes, u.value = l.checkedNodes.filter((e) => !e.children);
|
|
61
|
-
}, ee = (l, e) => {
|
|
62
|
-
if (a.multiple && F.value.focus(), !a.selectAllNode && l && l.children && h.value) {
|
|
63
|
-
const c = l.children.filter((s) => (a.filter || x)(h.value, s)).map((s) => s[n.value]);
|
|
64
|
-
if (!c.length) {
|
|
65
|
-
A();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const p = !b.value.includes(c[0]) ? [...u.value.map((s) => s[n.value]), ...c.map((s) => s)] : u.value.map((s) => s[n.value]).filter((s) => !c.includes(s));
|
|
69
|
-
d("update:modelValue", p), d("change", p, o.value.getCheckedNodes());
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
H(e), d("update:modelValue", u.value.map((c) => c[n.value])), d("change", u.value.map((c) => c[n.value]), o.value.getCheckedNodes());
|
|
73
|
-
};
|
|
74
|
-
T(N, () => {
|
|
75
|
-
var l;
|
|
76
|
-
if (N.value) {
|
|
77
|
-
let e = [], c = [];
|
|
78
|
-
y.value.forEach((i) => {
|
|
79
|
-
if (a.selectAllNode && (a.filter || x)(h.value, i)) {
|
|
80
|
-
const { children: p } = i;
|
|
81
|
-
e.push(i[n.value]), e = e.concat(p.map((s) => s[n.value])), c = c.concat(p.map((s) => s[n.value]));
|
|
82
|
-
} else {
|
|
83
|
-
const { children: p } = i, s = [];
|
|
84
|
-
let L = !0;
|
|
85
|
-
p.forEach((V) => {
|
|
86
|
-
(a.filter || x)(h.value, V) ? s.push(V[n.value]) : L = !1;
|
|
87
|
-
}), L && e.push(i[n.value]), e = e.concat(s), c = c.concat(s);
|
|
88
|
-
}
|
|
89
|
-
}), d("update:modelValue", c), d("change", c, o.value.getCheckedNodes());
|
|
90
|
-
} else
|
|
91
|
-
(l = o.value) == null || l.setCheckedKeys([]), b.value = [], O.value = [], u.value = [], d("update:modelValue", u.value.map((e) => e[n.value])), d("change", u.value.map((e) => e[n.value]), o.value.getCheckedNodes());
|
|
92
|
-
});
|
|
93
|
-
const U = () => {
|
|
94
|
-
var l;
|
|
95
|
-
if (!a.multiple) {
|
|
96
|
-
$.value = "", h.value = "", d("update:modelValue", ""), d("change", "", o.value.getCheckedNodes());
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
(l = o.value) == null || l.setCheckedKeys([]), b.value = [], O.value = [], u.value = [], N.value = !1, d("update:modelValue", u.value.map((e) => e[n.value])), d("change", u.value.map((e) => e[n.value]), o.value.getCheckedNodes());
|
|
100
|
-
}, A = () => S(null, null, function* () {
|
|
101
|
-
var l;
|
|
102
|
-
if (a.multiple) {
|
|
103
|
-
const e = [...a.modelValue || []];
|
|
104
|
-
(l = o.value) == null || l.setCheckedKeys([...e]), yield B(), H({
|
|
105
|
-
checkedKeys: o.value.getCheckedKeys(),
|
|
106
|
-
checkedNodes: o.value.getCheckedNodes()
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
T(() => [a.data], () => S(null, null, function* () {
|
|
111
|
-
y.value = JSON.parse(JSON.stringify(a.data)), yield B(), I(), A();
|
|
112
|
-
}), {
|
|
113
|
-
deep: !0
|
|
114
|
-
});
|
|
115
|
-
const I = () => {
|
|
116
|
-
if (!(!y.value.length || a.multiple)) {
|
|
117
|
-
if (a.modelValue === null || !String(a.modelValue))
|
|
118
|
-
return h.value = "";
|
|
119
|
-
j(y.value, a.modelValue);
|
|
120
|
-
}
|
|
121
|
-
}, j = (l, e) => {
|
|
122
|
-
l.forEach((c) => {
|
|
123
|
-
if (c.children)
|
|
124
|
-
return j(c.children, e);
|
|
125
|
-
c.id === e && (h.value = c[a.props && a.props.label || "label"]);
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
J({
|
|
129
|
-
clearCheaked: U,
|
|
130
|
-
togglePopperVisible: (l) => {
|
|
131
|
-
v.value = l;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
const G = (l) => {
|
|
135
|
-
try {
|
|
136
|
-
return JSON.stringify(l);
|
|
137
|
-
} catch (e) {
|
|
138
|
-
return l;
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
return T(() => a.modelValue, (l, e) => S(null, null, function* () {
|
|
142
|
-
const c = G(l), i = G(e);
|
|
143
|
-
c !== i && (yield B(), I(), A());
|
|
144
|
-
})), se(() => S(null, null, function* () {
|
|
145
|
-
yield B(), y.value = JSON.parse(JSON.stringify(a.data)), I(), setTimeout(() => {
|
|
146
|
-
A();
|
|
147
|
-
});
|
|
148
|
-
})), (l, e) => {
|
|
149
|
-
const c = k("el-tag"), i = k("DynamicScrollerItem"), p = k("DynamicScroller"), s = k("LazyPopover"), L = k("ArrowDown"), V = k("el-icon"), Q = k("CircleClose"), le = k("el-tree-v2"), te = k("el-popover");
|
|
150
|
-
return K(), X(te, {
|
|
151
|
-
visible: v.value,
|
|
152
|
-
"onUpdate:visible": e[4] || (e[4] = (r) => v.value = r),
|
|
153
|
-
disabled: t.disabled,
|
|
154
|
-
placement: "bottom",
|
|
155
|
-
trigger: "click",
|
|
156
|
-
width: `${t.width}`
|
|
157
|
-
}, {
|
|
158
|
-
reference: f(() => [
|
|
159
|
-
C("div", {
|
|
160
|
-
class: z(["select-tree", t.wrapclass]),
|
|
161
|
-
style: Y({ width: (t.calcWidth ? t.calcWidth : t.width) + "px" })
|
|
162
|
-
}, [
|
|
163
|
-
C("div", {
|
|
164
|
-
class: z(["select-tree-wrapper", { "is-focused": v.value }]),
|
|
165
|
-
style: Y({ width: t.calcWidth ? "100%" : t.width + "px", backgroundColor: t.disabled ? "#F5F9FF" : "" })
|
|
166
|
-
}, [
|
|
167
|
-
u.value.length ? (K(), P("div", ie, [
|
|
168
|
-
g(c, {
|
|
169
|
-
class: "m-val-tag mx-[5px]",
|
|
170
|
-
type: "info",
|
|
171
|
-
title: u.value[0][t.props && t.props.label || "label"],
|
|
172
|
-
closable: "",
|
|
173
|
-
onClose: e[0] || (e[0] = (r) => R(u.value[0]))
|
|
174
|
-
}, {
|
|
175
|
-
default: f(() => [
|
|
176
|
-
W(D(u.value[0][t.props && t.props.label || "label"]), 1)
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["title"]),
|
|
180
|
-
u.value.length > 1 ? (K(), X(s, {
|
|
181
|
-
key: 0,
|
|
182
|
-
width: `${t.width}px`
|
|
183
|
-
}, {
|
|
184
|
-
reference: f(() => [
|
|
185
|
-
g(c, { type: "info" }, {
|
|
186
|
-
default: f(() => [
|
|
187
|
-
W("+ " + D(u.value.length - 1), 1)
|
|
188
|
-
]),
|
|
189
|
-
_: 1
|
|
190
|
-
})
|
|
191
|
-
]),
|
|
192
|
-
default: f(() => [
|
|
193
|
-
C("div", re, [
|
|
194
|
-
g(p, {
|
|
195
|
-
ref: "DynamicScrollerRef",
|
|
196
|
-
class: "dynamic-scroller-ref",
|
|
197
|
-
style: { height: "280px" },
|
|
198
|
-
keyField: n.value,
|
|
199
|
-
items: u.value.filter((r, M) => M !== 0),
|
|
200
|
-
"min-item-size": 20
|
|
201
|
-
}, {
|
|
202
|
-
default: f(({ item: r, index: M, active: ae }) => [
|
|
203
|
-
g(i, {
|
|
204
|
-
item: r,
|
|
205
|
-
active: ae,
|
|
206
|
-
"data-index": M
|
|
207
|
-
}, {
|
|
208
|
-
default: f(() => [
|
|
209
|
-
g(c, {
|
|
210
|
-
class: "mr-[5px] mt-[5px]",
|
|
211
|
-
closable: "",
|
|
212
|
-
onClose: (ge) => R(r)
|
|
213
|
-
}, {
|
|
214
|
-
default: f(() => [
|
|
215
|
-
W(D(r[t.props && t.props.label || "label"]), 1)
|
|
216
|
-
]),
|
|
217
|
-
_: 2
|
|
218
|
-
}, 1032, ["onClose"])
|
|
219
|
-
]),
|
|
220
|
-
_: 2
|
|
221
|
-
}, 1032, ["item", "active", "data-index"])
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}, 8, ["keyField", "items"])
|
|
225
|
-
])
|
|
226
|
-
]),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 8, ["width"])) : E("", !0)
|
|
229
|
-
])) : E("", !0),
|
|
230
|
-
C("div", ve, [
|
|
231
|
-
ue(C("input", {
|
|
232
|
-
ref_key: "inputRef",
|
|
233
|
-
ref: F,
|
|
234
|
-
"onUpdate:modelValue": e[1] || (e[1] = (r) => h.value = r),
|
|
235
|
-
class: z(t.inputClass),
|
|
236
|
-
disabled: t.disabled,
|
|
237
|
-
style: { height: "24px" },
|
|
238
|
-
type: "text",
|
|
239
|
-
placeholder: t.placeholder,
|
|
240
|
-
onKeydown: e[2] || (e[2] = Z(() => {
|
|
241
|
-
}, ["stop"])),
|
|
242
|
-
onInput: q
|
|
243
|
-
}, null, 42, he), [
|
|
244
|
-
[ne, h.value]
|
|
245
|
-
])
|
|
246
|
-
]),
|
|
247
|
-
C("div", {
|
|
248
|
-
class: z(["select-tree-arrow", { "is-focused": v.value }])
|
|
249
|
-
}, [
|
|
250
|
-
g(V, null, {
|
|
251
|
-
default: f(() => [
|
|
252
|
-
g(L)
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
})
|
|
256
|
-
], 2),
|
|
257
|
-
!t.disabled && (t.multiple && u.value.length || !t.multiple && t.modelValue) ? (K(), P("div", {
|
|
258
|
-
key: 1,
|
|
259
|
-
class: "select-tree-clear",
|
|
260
|
-
onClick: Z(U, ["stop"])
|
|
261
|
-
}, [
|
|
262
|
-
g(V, null, {
|
|
263
|
-
default: f(() => [
|
|
264
|
-
g(Q)
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
})
|
|
268
|
-
])) : E("", !0)
|
|
269
|
-
], 6)
|
|
270
|
-
], 6)
|
|
271
|
-
]),
|
|
272
|
-
default: f(() => [
|
|
273
|
-
t.multiple && t.checkoutAll ? (K(), P("div", {
|
|
274
|
-
key: 0,
|
|
275
|
-
class: "px-[10px] pb-[10px] border-b-[1px] mb-[5px] border-b-[#f5f5f5] cursor-pointer",
|
|
276
|
-
onClick: e[3] || (e[3] = (r) => N.value = !N.value)
|
|
277
|
-
}, D(N.value ? "全部取消" : "全部选择当前"), 1)) : E("", !0),
|
|
278
|
-
g(le, {
|
|
279
|
-
ref_key: "tree",
|
|
280
|
-
ref: o,
|
|
281
|
-
style: { width: "100%" },
|
|
282
|
-
class: "custom-select-tree-box",
|
|
283
|
-
data: y.value,
|
|
284
|
-
props: t.props,
|
|
285
|
-
"show-checkbox": t.multiple,
|
|
286
|
-
height: t.height,
|
|
287
|
-
"filter-method": t.filter || x,
|
|
288
|
-
onNodeClick: _,
|
|
289
|
-
onCheck: ee
|
|
290
|
-
}, {
|
|
291
|
-
default: f(({ node: r }) => [
|
|
292
|
-
C("span", {
|
|
293
|
-
title: r.label
|
|
294
|
-
}, D(r.label), 9, pe)
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
}, 8, ["data", "props", "show-checkbox", "height", "filter-method"])
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
}, 8, ["visible", "disabled", "width"]);
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
}), Ce = /* @__PURE__ */ de(fe, [["__scopeId", "data-v-9e85273f"]]);
|
|
304
|
-
export {
|
|
305
|
-
Ce as S
|
|
306
|
-
};
|
package/dist/SortTransfer.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sort-transfer .el-checkbox__label{padding-left:3px}.sort-transfer .el-checkbox{height:24px}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import './SortTransfer.css';var q = Object.defineProperty, z = Object.defineProperties;
|
|
2
|
-
var G = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var N = Object.getOwnPropertySymbols;
|
|
4
|
-
var H = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var S = (o, l, n) => l in o ? q(o, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[l] = n, V = (o, l) => {
|
|
6
|
-
for (var n in l || (l = {}))
|
|
7
|
-
H.call(l, n) && S(o, n, l[n]);
|
|
8
|
-
if (N)
|
|
9
|
-
for (var n of N(l))
|
|
10
|
-
J.call(l, n) && S(o, n, l[n]);
|
|
11
|
-
return o;
|
|
12
|
-
}, D = (o, l) => z(o, G(l));
|
|
13
|
-
import { defineComponent as K, reactive as O, ref as L, onMounted as P, resolveComponent as m, openBlock as f, createBlock as Q, withCtx as i, createElementVNode as a, renderSlot as R, toDisplayString as x, createElementBlock as g, Fragment as B, renderList as U, withModifiers as k, createVNode as _, createTextVNode as h } from "vue";
|
|
14
|
-
const W = { class: "flex flex-col" }, X = { class: "flex mt-[10px]" }, Y = { class: "w-[80px] flex-shrink-0 text-right pr-[5px]" }, Z = { class: "flex flex-auto flex-wrap p-[5px] border rounded-[5px]" }, ee = ["onDragstart", "onDragover"], te = ["onClick"], oe = { class: "flex mt-[10px]" }, le = { class: "w-[80px] flex-shrink-0 text-right pr-[5px]" }, ne = { class: "flex flex-auto flex-wrap p-[5px] border rounded-[5px]" }, re = /* @__PURE__ */ K({
|
|
15
|
-
__name: "SortTransfer",
|
|
16
|
-
props: {
|
|
17
|
-
show: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: () => !1
|
|
20
|
-
},
|
|
21
|
-
title: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: () => "订单操作按钮配置"
|
|
24
|
-
},
|
|
25
|
-
label1: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: () => "展示"
|
|
28
|
-
},
|
|
29
|
-
label2: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: () => "更多操作"
|
|
32
|
-
},
|
|
33
|
-
sortList: {
|
|
34
|
-
type: Array,
|
|
35
|
-
default: () => []
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["close", "done"],
|
|
39
|
-
setup(o, { emit: l }) {
|
|
40
|
-
const n = o, d = O({
|
|
41
|
-
old: -1,
|
|
42
|
-
new: -1
|
|
43
|
-
}), w = l, s = L([]), r = L([]);
|
|
44
|
-
P(() => {
|
|
45
|
-
r.value = [...n.sortList].map((e, t) => D(V({}, e), { id: `originId-${t}` })), C();
|
|
46
|
-
});
|
|
47
|
-
const y = () => {
|
|
48
|
-
w("close");
|
|
49
|
-
}, E = () => {
|
|
50
|
-
w("done", s.value);
|
|
51
|
-
}, C = () => {
|
|
52
|
-
s.value = r.value.filter((e) => !!e.show).sort((e, t) => e.sort - t.sort);
|
|
53
|
-
}, M = (e) => {
|
|
54
|
-
const t = s.value.splice(e, 1)[0], u = r.value.findIndex((v) => v.id === t.id);
|
|
55
|
-
r.value[u].show = !1;
|
|
56
|
-
}, T = (e, t) => {
|
|
57
|
-
r.value[e].show = t, r.value[e].sort = t ? s.value[s.value.length - 1].sort + 1 : -1, C();
|
|
58
|
-
}, $ = (e) => {
|
|
59
|
-
d.old = e;
|
|
60
|
-
}, A = (e) => {
|
|
61
|
-
d.new = e;
|
|
62
|
-
}, F = () => {
|
|
63
|
-
if (d.new === d.old) return;
|
|
64
|
-
const e = s.value.splice(d.old, 1)[0];
|
|
65
|
-
s.value.splice(d.new, 0, e), s.value.forEach((t, u) => {
|
|
66
|
-
t.sort = u + 1;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
return (e, t) => {
|
|
70
|
-
const u = m("el-tag"), v = m("el-checkbox"), I = m("el-button"), j = m("el-dialog");
|
|
71
|
-
return f(), Q(j, {
|
|
72
|
-
"model-value": n.show,
|
|
73
|
-
title: o.title,
|
|
74
|
-
closeable: "",
|
|
75
|
-
class: "sort-transfer",
|
|
76
|
-
draggable: "",
|
|
77
|
-
onClose: y,
|
|
78
|
-
"close-on-click-modal": !1
|
|
79
|
-
}, {
|
|
80
|
-
footer: i(() => [
|
|
81
|
-
_(I, { onClick: y }, {
|
|
82
|
-
default: i(() => [...t[1] || (t[1] = [
|
|
83
|
-
h("取消", -1)
|
|
84
|
-
])]),
|
|
85
|
-
_: 1
|
|
86
|
-
}),
|
|
87
|
-
_(I, {
|
|
88
|
-
onClick: E,
|
|
89
|
-
type: "primary"
|
|
90
|
-
}, {
|
|
91
|
-
default: i(() => [...t[2] || (t[2] = [
|
|
92
|
-
h("确定修改", -1)
|
|
93
|
-
])]),
|
|
94
|
-
_: 1
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
default: i(() => [
|
|
98
|
-
a("div", W, [
|
|
99
|
-
R(e.$slots, "desc"),
|
|
100
|
-
a("section", X, [
|
|
101
|
-
a("span", Y, x(o.label1), 1),
|
|
102
|
-
a("ul", Z, [
|
|
103
|
-
(f(!0), g(B, null, U(s.value, (c, p) => (f(), g("li", {
|
|
104
|
-
key: c.key,
|
|
105
|
-
class: "mr-[5px] mb-[5px]",
|
|
106
|
-
draggable: "true",
|
|
107
|
-
onDragstart: () => $(Number(p)),
|
|
108
|
-
onDragover: k(() => A(Number(p)), ["prevent"]),
|
|
109
|
-
onDrop: t[0] || (t[0] = k(() => F(), ["prevent"]))
|
|
110
|
-
}, [
|
|
111
|
-
_(u, { class: "cursor-pointer" }, {
|
|
112
|
-
default: i(() => [
|
|
113
|
-
h(x(c.label) + " ", 1),
|
|
114
|
-
a("i", {
|
|
115
|
-
onClick: k(() => M(Number(p)), ["prevent"]),
|
|
116
|
-
class: "iconfont icon-danchuangguanbi text-[10px]"
|
|
117
|
-
}, null, 8, te)
|
|
118
|
-
]),
|
|
119
|
-
_: 2
|
|
120
|
-
}, 1024)
|
|
121
|
-
], 40, ee))), 128))
|
|
122
|
-
])
|
|
123
|
-
]),
|
|
124
|
-
a("section", oe, [
|
|
125
|
-
a("span", le, x(o.label2), 1),
|
|
126
|
-
a("ul", ne, [
|
|
127
|
-
(f(!0), g(B, null, U(r.value, (c, p) => (f(), g("li", {
|
|
128
|
-
class: "mr-[10px] mb-[5px]",
|
|
129
|
-
key: c.key
|
|
130
|
-
}, [
|
|
131
|
-
_(v, {
|
|
132
|
-
modelValue: c.show,
|
|
133
|
-
"onUpdate:modelValue": (b) => c.show = b,
|
|
134
|
-
onChange: (b) => T(Number(p), b)
|
|
135
|
-
}, {
|
|
136
|
-
default: i(() => [
|
|
137
|
-
h(x(c.label), 1)
|
|
138
|
-
]),
|
|
139
|
-
_: 2
|
|
140
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
141
|
-
]))), 128))
|
|
142
|
-
])
|
|
143
|
-
])
|
|
144
|
-
])
|
|
145
|
-
]),
|
|
146
|
-
_: 3
|
|
147
|
-
}, 8, ["model-value", "title"]);
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
export {
|
|
152
|
-
re as _
|
|
153
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as o, createElementBlock as n, createElementVNode as r, normalizeStyle as a, toDisplayString as i, unref as c, createCommentVNode as m } from "vue";
|
|
2
|
-
import { m as s } from "./common-BIEgCXbl.js";
|
|
3
|
-
const x = { class: "leading-[16px]" }, y = /* @__PURE__ */ l({
|
|
4
|
-
__name: "TextCopy",
|
|
5
|
-
props: {
|
|
6
|
-
text: String,
|
|
7
|
-
defaultSymbol: {
|
|
8
|
-
default: "-"
|
|
9
|
-
},
|
|
10
|
-
color: {
|
|
11
|
-
default: "#0b0c24"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(t) {
|
|
15
|
-
return (d, e) => (o(), n("span", x, [
|
|
16
|
-
r("span", {
|
|
17
|
-
style: a({ color: t.color })
|
|
18
|
-
}, i(t.text || t.defaultSymbol), 5),
|
|
19
|
-
t.text ? (o(), n("i", {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "iconfont icon-fuzhidingdan ml-[4px] text-[12px] text-fill-900 cursor-pointer transition-all hover:text-primary",
|
|
22
|
-
onClick: e[0] || (e[0] = (f) => c(s)(t.text))
|
|
23
|
-
})) : m("", !0)
|
|
24
|
-
]));
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
y as _
|
|
29
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as p, computed as S, resolveComponent as $, openBlock as r, createElementBlock as v, normalizeClass as c, createElementVNode as o, toDisplayString as d, createBlock as B, withCtx as y, withDirectives as m, vModelDynamic as g, vShow as V, createCommentVNode as b } from "vue";
|
|
2
|
-
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import './TipInput.css';const F = ["maxlength", "type"], I = ["maxlength", "type"], N = { class: "flex items-center" }, R = /* @__PURE__ */ h({
|
|
4
|
-
__name: "TipInput",
|
|
5
|
-
props: {
|
|
6
|
-
placeholder: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: () => ""
|
|
9
|
-
},
|
|
10
|
-
value: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: () => ""
|
|
13
|
-
},
|
|
14
|
-
type: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: () => "text"
|
|
17
|
-
},
|
|
18
|
-
errorTip: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => ""
|
|
21
|
-
},
|
|
22
|
-
maxlength: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: () => 20
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:value"],
|
|
28
|
-
setup(i, { emit: x }) {
|
|
29
|
-
const s = p(), u = i, a = p(!1), l = p(u.type), k = x, n = S({
|
|
30
|
-
get() {
|
|
31
|
-
return u.value;
|
|
32
|
-
},
|
|
33
|
-
set(f) {
|
|
34
|
-
k("update:value", f);
|
|
35
|
-
}
|
|
36
|
-
}), w = () => {
|
|
37
|
-
l.value === "text" ? l.value = "password" : l.value = "text";
|
|
38
|
-
}, C = () => {
|
|
39
|
-
s.value.focus();
|
|
40
|
-
};
|
|
41
|
-
return (f, e) => {
|
|
42
|
-
const T = $("el-popover");
|
|
43
|
-
return r(), v("figure", {
|
|
44
|
-
class: c([{ focus: a.value || !!n.value }, "tip-input-wrap"])
|
|
45
|
-
}, [
|
|
46
|
-
o("div", {
|
|
47
|
-
class: "flex relative flex-1 items-center",
|
|
48
|
-
onClick: C
|
|
49
|
-
}, [
|
|
50
|
-
o("label", null, d(i.placeholder), 1),
|
|
51
|
-
u.errorTip ? (r(), B(T, {
|
|
52
|
-
key: 0,
|
|
53
|
-
placement: "left",
|
|
54
|
-
width: 188,
|
|
55
|
-
trigger: "click",
|
|
56
|
-
offset: 40
|
|
57
|
-
}, {
|
|
58
|
-
reference: y(() => [
|
|
59
|
-
m(o("input", {
|
|
60
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
|
|
61
|
-
onFocus: e[1] || (e[1] = (t) => a.value = !0),
|
|
62
|
-
onBlur: e[2] || (e[2] = (t) => a.value = !1),
|
|
63
|
-
maxlength: i.maxlength,
|
|
64
|
-
type: l.value,
|
|
65
|
-
ref_key: "inputRef",
|
|
66
|
-
ref: s
|
|
67
|
-
}, null, 40, F), [
|
|
68
|
-
[
|
|
69
|
-
g,
|
|
70
|
-
n.value,
|
|
71
|
-
void 0,
|
|
72
|
-
{ trim: !0 }
|
|
73
|
-
]
|
|
74
|
-
])
|
|
75
|
-
]),
|
|
76
|
-
default: y(() => [
|
|
77
|
-
o("p", null, d(u.errorTip), 1)
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
})) : m((r(), v("input", {
|
|
81
|
-
key: 1,
|
|
82
|
-
"onUpdate:modelValue": e[3] || (e[3] = (t) => n.value = t),
|
|
83
|
-
onFocus: e[4] || (e[4] = (t) => a.value = !0),
|
|
84
|
-
onBlur: e[5] || (e[5] = (t) => a.value = !1),
|
|
85
|
-
maxlength: i.maxlength,
|
|
86
|
-
type: l.value,
|
|
87
|
-
ref_key: "inputRef",
|
|
88
|
-
ref: s
|
|
89
|
-
}, null, 40, I)), [
|
|
90
|
-
[
|
|
91
|
-
g,
|
|
92
|
-
n.value,
|
|
93
|
-
void 0,
|
|
94
|
-
{ trim: !0 }
|
|
95
|
-
]
|
|
96
|
-
])
|
|
97
|
-
]),
|
|
98
|
-
o("div", N, [
|
|
99
|
-
m(o("i", {
|
|
100
|
-
class: "iconfont icon-danchuangguanbi",
|
|
101
|
-
onClick: e[6] || (e[6] = (t) => n.value = "")
|
|
102
|
-
}, null, 512), [
|
|
103
|
-
[V, !!n.value]
|
|
104
|
-
]),
|
|
105
|
-
u.type === "password" ? (r(), v("i", {
|
|
106
|
-
key: 0,
|
|
107
|
-
class: c(`eye iconfont !text-[16px] icon-${l.value === "password" ? "yincangmima-xin" : "xianshimima-xin"}`),
|
|
108
|
-
onClick: w
|
|
109
|
-
}, null, 2)) : b("", !0)
|
|
110
|
-
])
|
|
111
|
-
], 2);
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
}), U = /* @__PURE__ */ D(R, [["__scopeId", "data-v-9b8163e3"]]);
|
|
115
|
-
export {
|
|
116
|
-
U as T
|
|
117
|
-
};
|
package/dist/TipInput.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.tip-input-wrap.focus label[data-v-9b8163e3]{top:4px;font-size:12px;pointer-events:none}.tip-input-wrap[data-v-9b8163e3]{display:flex;padding:0 16px;height:52px;background:#f5f7fa;border-radius:8px}.tip-input-wrap input[data-v-9b8163e3]{display:block;padding:20px 0 0;width:100%;height:52px;font-size:16px;color:#222;background:none;border:none;outline:none;letter-spacing:0;line-height:16px;flex:1;-webkit-appearance:none;appearance:none}.tip-input-wrap label[data-v-9b8163e3]{position:absolute;top:calc(50% - 10px);left:0;font-size:16px;color:#828282;transition:all .1s linear}.tip-input-wrap .iconfont[data-v-9b8163e3]{font-size:12px;color:#ccc;cursor:pointer}.tip-input-wrap .iconfont.eye[data-v-9b8163e3]{margin-left:20px;color:#999}.tip-input-wrap .eye.icon-xianshimima[data-v-9b8163e3]{font-size:16px}
|