color-star-custom-components 0.0.15 → 0.0.16
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/es/CustomSelect.mjs +1 -1
- package/es/IconRenderer.mjs +1 -1
- package/es/IconSelect.mjs +1 -1
- package/es/SearchBar.mjs +23 -26
- package/es/TreeShowSelect.mjs +26 -28
- package/es/assets/SearchBar.css +1 -1
- package/es/assets/TreeShowSelect.css +1 -1
- package/es/chunks/BatchImport.B5inubHt.js +173 -0
- package/es/chunks/CustomSelect.DvKTT1Kn.js +5 -0
- package/es/chunks/CustomTitle.BBrGK8vA.js +5 -0
- package/es/chunks/FileList.CLb0j2ca.js +5 -0
- package/es/chunks/GlassProxy.Dek3zo-k.js +176 -0
- package/es/chunks/IconEmpty.DoCNu0jY.js +5 -0
- package/es/chunks/IconRenderer.DbLSQXFZ.js +60 -0
- package/es/chunks/IconSelect.DjNvTfvM.js +162 -0
- package/es/chunks/SearchBar.Dw1qAtAa.js +582 -0
- package/es/chunks/TreeSelect.BkF207wh.js +5 -0
- package/es/chunks/TreeShowSelect.DuVWWk73.js +87 -0
- package/es/chunks/UploadFile.Cll5_hce.js +5 -0
- package/es/chunks/_plugin-vue_export-helper.BgwWMokO.js +6 -0
- package/es/chunks/chunk.CWVlkNTZ.js +18 -0
- package/es/chunks/config.SfJn1-ON.js +24 -0
- package/es/chunks/config.j-piuAWF.js +24 -0
- package/es/chunks/config.t_HHFoB9.js +18 -0
- package/es/chunks/global.31sZWaXJ.js +15282 -0
- package/es/chunks/global.BEeKea4u.js +1955 -0
- package/es/chunks/global.ChqJEry4.js +7973 -0
- package/es/chunks/global.CnGuevjX.js +8168 -0
- package/es/chunks/layout.4utLpDo3.js +120 -0
- package/es/chunks/layout.84FMC7pU.js +121 -0
- package/es/chunks/layout.BsFtxlIJ.js +31 -0
- package/es/chunks/layout.C5pEEv-d.js +207 -0
- package/es/chunks/layout.CokqBzin.js +338 -0
- package/es/chunks/layout.Dix22XYV.js +113 -0
- package/es/chunks/layout.FqoRQKdx.js +59 -0
- package/es/chunks/utils.BFFtVZUp.js +10 -0
- package/es/index.mjs +1 -1
- package/lib/CustomSelect.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/TreeShowSelect.js +1 -1
- package/lib/assets/SearchBar.css +1 -1
- package/lib/assets/TreeShowSelect.css +1 -1
- package/lib/chunks/BatchImport.Be1Oddwm.js +1 -0
- package/lib/chunks/CustomSelect.qmizu8jb.js +1 -0
- package/lib/chunks/CustomTitle.C_V_RLwQ.js +1 -0
- package/lib/chunks/FileList.DK7Iz3hw.js +1 -0
- package/lib/chunks/GlassProxy.BurTd4Wo.js +1 -0
- package/lib/chunks/IconEmpty.MspO8cAH.js +1 -0
- package/lib/chunks/IconRenderer.CepZVN9N.js +1 -0
- package/lib/chunks/IconSelect.GFCG4dmy.js +1 -0
- package/lib/chunks/SearchBar.C1eP9H7z.js +1 -0
- package/lib/chunks/TreeSelect.CKdd24_v.js +1 -0
- package/lib/chunks/TreeShowSelect.D06Kgg9y.js +1 -0
- package/lib/chunks/UploadFile.FAeNJfgq.js +1 -0
- package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
- package/lib/chunks/chunk.D6xVHP8F.js +1 -0
- package/lib/chunks/config.CQdd5R1R.js +1 -0
- package/lib/chunks/config.x7rWDsG1.js +1 -0
- package/lib/chunks/global.BwmaGr1r.js +1 -0
- package/lib/chunks/global.C-GuAavy.js +1 -0
- package/lib/chunks/global.CCgRKoj5.js +1 -0
- package/lib/chunks/layout.0C5st371.js +1 -0
- package/lib/chunks/layout.966lkT12.js +1 -0
- package/lib/chunks/layout.C4airLP9.js +1 -0
- package/lib/chunks/layout.ChiWtlly.js +1 -0
- package/lib/chunks/layout.DF2j_cdu.js +1 -0
- package/lib/chunks/layout.DjMFll_s.js +1 -0
- package/lib/chunks/layout.DutPtWqI.js +1 -0
- package/lib/chunks/utils.a5Y3RKNY.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +8 -8
package/es/CustomSelect.mjs
CHANGED
package/es/IconRenderer.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as s } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { useCssVars as u, shallowRef as m, ref as f, watch as d, onMounted as p, createBlock as c, createCommentVNode as y, openBlock as l, unref as v, mergeProps as g, withCtx as b, resolveDynamicComponent as C } from "vue";
|
|
3
3
|
import { ElIcon as I } from "element-plus";
|
|
4
|
-
import { i, g as N } from "./chunks/config.
|
|
4
|
+
import { i, g as N } from "./chunks/config.j-piuAWF.js";
|
|
5
5
|
import { _ as h } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import './assets/IconRenderer.css';const w = /* @__PURE__ */ Object.assign({
|
|
7
7
|
name: "IconRenderer"
|
package/es/IconSelect.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { w as M } from "./chunks/index.bCzIhWFw.js";
|
|
|
2
2
|
import { useCssVars as $, ref as r, shallowRef as F, computed as P, watch as x, onMounted as R, createBlock as i, openBlock as l, unref as u, withCtx as s, createElementVNode as k, createVNode as I, createElementBlock as d, createSlots as U, resolveDynamicComponent as h, Fragment as V, renderList as D, normalizeClass as j, createCommentVNode as T, createTextVNode as q, markRaw as z } from "vue";
|
|
3
3
|
import { ElPopover as G, ElInput as H, ElIcon as w } from "element-plus";
|
|
4
4
|
import { _ as J } from "./chunks/layout.CJWd6Qr3.js";
|
|
5
|
-
import { i as N, g as K, a as Q } from "./chunks/config.
|
|
5
|
+
import { i as N, g as K, a as Q } from "./chunks/config.j-piuAWF.js";
|
|
6
6
|
import { _ as W } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/IconSelect.css';const X = { class: "icon-select-content flex flex-col overflow-hidden" }, Y = {
|
|
8
8
|
key: 0,
|
package/es/SearchBar.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { renderSlot as
|
|
1
|
+
import { w as ke } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { renderSlot as k, createElementBlock as $, openBlock as i, Fragment as F, renderList as E, createBlock as c, unref as t, withCtx as r, createTextVNode as V, toDisplayString as M, useCssVars as le, ref as p, computed as W, withModifiers as be, normalizeClass as N, mergeProps as g, createCommentVNode as O, withKeys as ge, onMounted as we, watch as Ve, createElementVNode as w, createVNode as m, createSlots as x, normalizeProps as H, guardReactiveProps as K, normalizeStyle as Ce } from "vue";
|
|
3
3
|
import { ElButton as T, ElForm as De, ElFormItem as oe, ElInput as Z, ElDatePicker as $e, ElInputNumber as Ee, ElSwitch as xe, ElRadioGroup as We, ElRadio as Fe, ElCheckboxGroup as Me, ElCheckbox as Be, ElAutoResizer as _, ElPopover as Ue, ElIcon as ee, ElDrawer as Ie } from "element-plus";
|
|
4
4
|
import { IconMagnify as Le, IconCheck as Pe, IconUp as Se, IconDown as Ne, IconShrink as Oe } from "color-message-lingyun-vue";
|
|
5
5
|
import { operationConfigMap as D, emitsMap as f, labelPositionMap as P, componentType as v, dateParamsMap as Te, dateFormat as ae } from "color-star-custom-methods";
|
|
6
|
-
import { _ as ze } from "./chunks/layout.
|
|
6
|
+
import { _ as ze } from "./chunks/layout.84FMC7pU.js";
|
|
7
7
|
import { _ as Re } from "./chunks/layout.8QJjTbpS.js";
|
|
8
8
|
import { _ as ne } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
9
|
import { C as te } from "./chunks/layout.DBrUEnal.js";
|
|
@@ -32,7 +32,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
32
32
|
const C = B, u = (h) => {
|
|
33
33
|
C(f.operation, h);
|
|
34
34
|
};
|
|
35
|
-
return (h, n) => h.$slots.operation ?
|
|
35
|
+
return (h, n) => h.$slots.operation ? k(h.$slots, "operation", {
|
|
36
36
|
key: 0,
|
|
37
37
|
operationList: a.operationList
|
|
38
38
|
}) : (i(!0), $(F, { key: 1 }, E(a.operationList, (y) => (i(), c(t(T), {
|
|
@@ -137,7 +137,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
137
137
|
[h.value]: !0,
|
|
138
138
|
"items-end display-grid": !a.isFilterPreview
|
|
139
139
|
}),
|
|
140
|
-
onSubmit: y[0] || (y[0] =
|
|
140
|
+
onSubmit: y[0] || (y[0] = be(() => {
|
|
141
141
|
}, ["prevent", "stop"]))
|
|
142
142
|
}, {
|
|
143
143
|
default: r(() => [
|
|
@@ -153,7 +153,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
153
153
|
]
|
|
154
154
|
}, { ref_for: !0 }, e), {
|
|
155
155
|
default: r(() => [
|
|
156
|
-
|
|
156
|
+
k(n.$slots, e.key, {
|
|
157
157
|
item: e,
|
|
158
158
|
formData: a.formData
|
|
159
159
|
}, () => [
|
|
@@ -256,7 +256,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
256
256
|
]),
|
|
257
257
|
_: 2
|
|
258
258
|
}, 1040, ["label", "prop", "show-label", "class"]))), 128)),
|
|
259
|
-
|
|
259
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
260
260
|
]),
|
|
261
261
|
_: 3
|
|
262
262
|
}, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
|
|
@@ -325,8 +325,8 @@ import './assets/SearchBar.css';const je = [
|
|
|
325
325
|
emits: [f.updateModelValue, f.operation, f.change],
|
|
326
326
|
setup(a, { expose: B, emit: C }) {
|
|
327
327
|
le((o) => ({
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
v6f01ec42: a.maxHeight + "px",
|
|
329
|
+
v0a879a66: S.value ? S.value + "px" : "100%"
|
|
330
330
|
}));
|
|
331
331
|
const u = a, h = C, n = p({}), y = p(!u.isExpand), e = p(null), l = p(!1), U = p(!1), z = p(!1), ie = W(() => {
|
|
332
332
|
const o = {};
|
|
@@ -408,15 +408,12 @@ import './assets/SearchBar.css';const je = [
|
|
|
408
408
|
onEnter: A
|
|
409
409
|
}, x({
|
|
410
410
|
default: r(() => [
|
|
411
|
-
a.isExpand && !a.filterMode ? (i(), c(t(oe), {
|
|
412
|
-
key: 0,
|
|
413
|
-
"label-width": "0"
|
|
414
|
-
}, {
|
|
411
|
+
a.isExpand && !a.filterMode ? (i(), c(t(oe), { key: 0 }, {
|
|
415
412
|
default: r(() => [
|
|
416
413
|
w("div", He, [
|
|
417
414
|
m(t(_), null, {
|
|
418
|
-
default: r(({ width:
|
|
419
|
-
V(M(me(
|
|
415
|
+
default: r(({ width: b }) => [
|
|
416
|
+
V(M(me(b)), 1)
|
|
420
417
|
]),
|
|
421
418
|
_: 1
|
|
422
419
|
})
|
|
@@ -427,10 +424,10 @@ import './assets/SearchBar.css';const je = [
|
|
|
427
424
|
]),
|
|
428
425
|
_: 2
|
|
429
426
|
}, [
|
|
430
|
-
E(J.value, (
|
|
431
|
-
name:
|
|
427
|
+
E(J.value, (b) => ({
|
|
428
|
+
name: b.key,
|
|
432
429
|
fn: r((pe) => [
|
|
433
|
-
|
|
430
|
+
k(o.$slots, b.key, H(K(pe)), void 0, !0)
|
|
434
431
|
])
|
|
435
432
|
}))
|
|
436
433
|
]), 1032, ["items", "form-data", "rules", "label-width", "label-position", "show-label", "min-width", "is-filter-preview", "fixedWidth"])
|
|
@@ -506,8 +503,8 @@ import './assets/SearchBar.css';const je = [
|
|
|
506
503
|
}, x({ _: 2 }, [
|
|
507
504
|
E(I.value, (s) => ({
|
|
508
505
|
name: s.key,
|
|
509
|
-
fn: r((
|
|
510
|
-
|
|
506
|
+
fn: r((b) => [
|
|
507
|
+
k(o.$slots, s.key, H(K(b)), void 0, !0)
|
|
511
508
|
])
|
|
512
509
|
}))
|
|
513
510
|
]), 1032, ["items", "form-data", "min-width"]),
|
|
@@ -519,7 +516,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
519
516
|
o.$slots.operation ? {
|
|
520
517
|
name: "operation",
|
|
521
518
|
fn: r(({ operationList: s }) => [
|
|
522
|
-
|
|
519
|
+
k(o.$slots, "operation", { operationList: s }, void 0, !0)
|
|
523
520
|
]),
|
|
524
521
|
key: "0"
|
|
525
522
|
} : void 0
|
|
@@ -547,7 +544,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
547
544
|
o.$slots.operation ? {
|
|
548
545
|
name: "operation",
|
|
549
546
|
fn: r(({ operationList: s }) => [
|
|
550
|
-
|
|
547
|
+
k(o.$slots, "operation", { operationList: s }, void 0, !0)
|
|
551
548
|
]),
|
|
552
549
|
key: "0"
|
|
553
550
|
} : void 0
|
|
@@ -594,8 +591,8 @@ import './assets/SearchBar.css';const je = [
|
|
|
594
591
|
}, x({ _: 2 }, [
|
|
595
592
|
E(I.value, (s) => ({
|
|
596
593
|
name: s.key,
|
|
597
|
-
fn: r((
|
|
598
|
-
|
|
594
|
+
fn: r((b) => [
|
|
595
|
+
k(o.$slots, s.key, H(K(b)), void 0, !0)
|
|
599
596
|
])
|
|
600
597
|
}))
|
|
601
598
|
]), 1032, ["items", "form-data", "min-width"])
|
|
@@ -608,7 +605,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
608
605
|
o.$slots.operation ? {
|
|
609
606
|
name: "operation",
|
|
610
607
|
fn: r(({ operationList: s }) => [
|
|
611
|
-
|
|
608
|
+
k(o.$slots, "operation", { operationList: s }, void 0, !0)
|
|
612
609
|
]),
|
|
613
610
|
key: "0"
|
|
614
611
|
} : void 0
|
|
@@ -619,7 +616,7 @@ import './assets/SearchBar.css';const je = [
|
|
|
619
616
|
}, 8, ["modelValue"])
|
|
620
617
|
], 2));
|
|
621
618
|
}
|
|
622
|
-
}), Ye = /* @__PURE__ */ ne(Xe, [["__scopeId", "data-v-
|
|
619
|
+
}), Ye = /* @__PURE__ */ ne(Xe, [["__scopeId", "data-v-43e6f39f"]]), ia = ke(Ye);
|
|
623
620
|
export {
|
|
624
621
|
ia as SearchBar,
|
|
625
622
|
ia as default
|
package/es/TreeShowSelect.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as P } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { useAttrs as L, ref as m, computed as v, watch as C, createBlock as D, openBlock as z, unref as
|
|
2
|
+
import { useAttrs as L, ref as m, computed as v, watch as C, createBlock as D, openBlock as z, unref as u, withCtx as p, createElementVNode as d, normalizeStyle as A, toDisplayString as _, createVNode as x, mergeProps as R, renderSlot as g } from "vue";
|
|
3
3
|
import { ElAutoResizer as j } from "element-plus";
|
|
4
|
-
import { T as
|
|
4
|
+
import { T as b } from "./chunks/layout.doc0wm3z.js";
|
|
5
5
|
import { _ as B } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent flex flex-col overflow-hidden" }, H = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, I = { class: "pd-r-12 pd-l-12 flex-1 overflow-hidden" }, M = { class: "right-box w-50-percent flex flex-col overflow-hidden" }, O = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, U = { class: "pd-r-12 pd-l-12 flex-1 selected-list overflow-hidden pd-t-8" }, $ = /* @__PURE__ */ Object.assign({
|
|
7
7
|
name: "TreeShowSelect"
|
|
@@ -20,50 +20,49 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
emits: ["getCheckedNode"],
|
|
23
|
-
setup(
|
|
24
|
-
const s =
|
|
25
|
-
const { selectedNode: l, selectedValue:
|
|
23
|
+
setup(w, { emit: N }) {
|
|
24
|
+
const s = w, S = N, r = L(), a = m(), y = v(() => r.treeProps ? r.treeProps : { value: "id", label: "label", children: "children" }), f = (e) => String(e).includes("%") ? e : e + "px", t = m([]), h = v(() => s.rightTreeList && s.rightTreeList.length > 0 ? s.rightTreeList : t.value), V = (e) => {
|
|
25
|
+
const { selectedNode: l, selectedValue: n, selectedParentNodes: i } = e;
|
|
26
26
|
t.value = l, S("getCheckedNode", {
|
|
27
|
-
selectedValue:
|
|
27
|
+
selectedValue: n,
|
|
28
28
|
// 选中节点的值的集合
|
|
29
29
|
selectedNode: l,
|
|
30
30
|
// // 选中节点的集合
|
|
31
|
-
selectedParentNodes:
|
|
31
|
+
selectedParentNodes: i
|
|
32
32
|
});
|
|
33
|
-
}, k = (e) => {
|
|
34
|
-
a.value?.setNodeCheckStatus(e[y.value.value], !1);
|
|
35
33
|
}, T = (e) => {
|
|
34
|
+
a.value?.setNodeCheckStatus(e[y.value.value], !1);
|
|
35
|
+
}, k = (e) => {
|
|
36
36
|
t.value = e || [];
|
|
37
37
|
};
|
|
38
38
|
return C(
|
|
39
39
|
() => s.modelValue,
|
|
40
40
|
(e) => {
|
|
41
|
-
|
|
41
|
+
k(e);
|
|
42
42
|
},
|
|
43
43
|
{ immediate: !0, deep: !0 }
|
|
44
|
-
), (e, l) => (z(), D(
|
|
45
|
-
default:
|
|
44
|
+
), (e, l) => (z(), D(u(j), null, {
|
|
45
|
+
default: p(({ width: n, height: i }) => [
|
|
46
46
|
d("div", {
|
|
47
47
|
class: "out-box flex radius-8 text-202434 overflow-hidden",
|
|
48
48
|
style: A({
|
|
49
|
-
width: f(
|
|
50
|
-
height: f(
|
|
49
|
+
width: f(n),
|
|
50
|
+
height: f(i)
|
|
51
51
|
})
|
|
52
52
|
}, [
|
|
53
53
|
d("div", E, [
|
|
54
54
|
d("div", H, _(a.value && a.value.allNodeNumbers || 0) + "项 ", 1),
|
|
55
55
|
d("div", I, [
|
|
56
|
-
x(
|
|
56
|
+
x(b, R({
|
|
57
57
|
modelValue: t.value,
|
|
58
58
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
|
|
59
59
|
ref_key: "treeRef",
|
|
60
60
|
ref: a
|
|
61
|
-
},
|
|
62
|
-
node:
|
|
61
|
+
}, u(r), { onHandleCheck: V }), {
|
|
62
|
+
node: p(({ node: o, data: c }) => [
|
|
63
63
|
g(e.$slots, "node", {
|
|
64
64
|
node: o,
|
|
65
|
-
data:
|
|
66
|
-
checkedNodes: t.value
|
|
65
|
+
data: c
|
|
67
66
|
}, void 0, !0)
|
|
68
67
|
]),
|
|
69
68
|
_: 3
|
|
@@ -71,23 +70,22 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
71
70
|
])
|
|
72
71
|
]),
|
|
73
72
|
d("div", M, [
|
|
74
|
-
d("div", O, _(
|
|
73
|
+
d("div", O, _(h.value.length) + "项 ", 1),
|
|
75
74
|
d("div", U, [
|
|
76
|
-
x(
|
|
75
|
+
x(b, {
|
|
77
76
|
modelValue: t.value,
|
|
78
77
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => t.value = o),
|
|
79
78
|
class: "tree-select-list",
|
|
80
|
-
treeProps:
|
|
81
|
-
treeList:
|
|
79
|
+
treeProps: u(r).treeProps,
|
|
80
|
+
treeList: h.value,
|
|
82
81
|
isListMode: !0,
|
|
83
82
|
isMultiple: !1,
|
|
84
|
-
onHandleDeleteNode:
|
|
83
|
+
onHandleDeleteNode: T
|
|
85
84
|
}, {
|
|
86
|
-
node:
|
|
85
|
+
node: p(({ node: o, data: c }) => [
|
|
87
86
|
g(e.$slots, "node", {
|
|
88
87
|
node: o,
|
|
89
|
-
data:
|
|
90
|
-
checkedNodes: n.value
|
|
88
|
+
data: c
|
|
91
89
|
}, void 0, !0)
|
|
92
90
|
]),
|
|
93
91
|
_: 3
|
|
@@ -99,7 +97,7 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
99
97
|
_: 3
|
|
100
98
|
}));
|
|
101
99
|
}
|
|
102
|
-
}), K = /* @__PURE__ */ B($, [["__scopeId", "data-v-
|
|
100
|
+
}), K = /* @__PURE__ */ B($, [["__scopeId", "data-v-f5dd42be"]]), W = P(K);
|
|
103
101
|
export {
|
|
104
102
|
W as TreeShowSelect,
|
|
105
103
|
W as default
|
package/es/assets/SearchBar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-form[data-v-79352bf5]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-79352bf5]{display:flex}.filter-preview-form .el-form-item[data-v-79352bf5]{width:var(--v1bc7ee80);margin-right:10px}.search-bar-form[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,minmax(var(--v1bc7ee80),1fr));gap:10px}.search-bar-form.search-bar-form-fixed[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,var(--v1bc7ee80))}.search-bar-form.search-bar-form-fixed.el-form--inline .el-form-item[data-v-79352bf5]{margin-bottom:18px}.search-bar-form.el-form--inline .el-form-item[data-v-79352bf5]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-79352bf5]{display:grid}.search-bar-item--wide[data-v-79352bf5]{grid-column:span 2}.is-collapsed[data-v-
|
|
1
|
+
.filter-form[data-v-79352bf5]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-79352bf5]{display:flex}.filter-preview-form .el-form-item[data-v-79352bf5]{width:var(--v1bc7ee80);margin-right:10px}.search-bar-form[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,minmax(var(--v1bc7ee80),1fr));gap:10px}.search-bar-form.search-bar-form-fixed[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,var(--v1bc7ee80))}.search-bar-form.search-bar-form-fixed.el-form--inline .el-form-item[data-v-79352bf5]{margin-bottom:18px}.search-bar-form.el-form--inline .el-form-item[data-v-79352bf5]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-79352bf5]{display:grid}.search-bar-item--wide[data-v-79352bf5]{grid-column:span 2}.is-collapsed[data-v-43e6f39f]{max-height:var(--v6f01ec42)}.operation-buttons[data-v-43e6f39f]{width:var(--v0a879a66);z-index:1}.h-32[data-v-43e6f39f]{height:32px}.drawer-header[data-v-43e6f39f]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-43e6f39f]{margin-left:auto}.border-top[data-v-43e6f39f]{border-top:1px solid var(--parting-line)}[data-v-43e6f39f] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-43e6f39f]{max-height:400px}[data-v-43e6f39f] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.w-50-percent[data-v-
|
|
1
|
+
.w-50-percent[data-v-f5dd42be]{width:50%}.out-box[data-v-f5dd42be]{border:1px solid var(--parting-line)}.out-box .head-box[data-v-f5dd42be]{border-bottom:1px solid var(--parting-line)}.out-box .left-box[data-v-f5dd42be]{border-right:1px solid var(--parting-line)}.out-box .selected-list .selected-item[data-v-f5dd42be]{height:32px}.out-box .selected-list .selected-item[data-v-f5dd42be]:hover{background:var(--primary-color-5)}.out-box .selected-list .virtual-scroller[data-v-f5dd42be]{height:100%}.tree-select-list[data-v-f5dd42be] .el-tree-node__content{margin-bottom:8px;padding:4px 0;height:32px;border-radius:8px}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { t as withInstall } from "./utils.BFFtVZUp.js";
|
|
2
|
+
import { t as layout_default$1 } from "./layout.C5pEEv-d.js";
|
|
3
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, mergeProps, openBlock, ref, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { ElButton, ElDialog, ElIcon } from "element-plus";
|
|
5
|
+
import { codeMap, emitsMap, messageSuccess, uploadFileType } from "color-star-custom-methods";
|
|
6
|
+
import { IconQuery } from "color-message-lingyun-vue";
|
|
7
|
+
var ImportResultContent_default = {
|
|
8
|
+
__name: "ImportResultContent",
|
|
9
|
+
props: {
|
|
10
|
+
uploadResData: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => ({})
|
|
13
|
+
},
|
|
14
|
+
templateConfig: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => ({})
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(e) {
|
|
20
|
+
let w = e, E = () => {
|
|
21
|
+
let { ossUrl: e, fileName: T } = w.uploadResData;
|
|
22
|
+
w.templateConfig.downloadErrorFile(T, e, w.templateConfig.isNeedTransform);
|
|
23
|
+
};
|
|
24
|
+
return (w, D) => (openBlock(), createElementBlock(Fragment, null, [createElementVNode("p", null, " 共" + toDisplayString(e.uploadResData.total || 0) + "条数据,其中" + toDisplayString(e.uploadResData.successTotal || 0) + "条数据成功," + toDisplayString(e.uploadResData.failureTotal || 0) + "条失败 ", 1), createElementVNode("p", { style: { color: "var(--text-color-4)" } }, [D[0] ||= createElementVNode("span", null, "失败原因请下载", -1), createElementVNode("span", {
|
|
25
|
+
class: "pointer",
|
|
26
|
+
style: { color: "var(--error-color-1)" },
|
|
27
|
+
onClick: E
|
|
28
|
+
}, " 错误报告 ")])], 64));
|
|
29
|
+
}
|
|
30
|
+
}, _hoisted_1 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "flex items-center"
|
|
33
|
+
}, _hoisted_2 = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "flex items-center flex-1 fz-12"
|
|
36
|
+
}, _hoisted_3 = { key: 1 };
|
|
37
|
+
const BatchImport = withInstall(/* @__PURE__ */ Object.assign({ name: "BatchImport" }, {
|
|
38
|
+
__name: "layout",
|
|
39
|
+
props: {
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
title: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "导入"
|
|
47
|
+
},
|
|
48
|
+
templateName: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "导入"
|
|
51
|
+
},
|
|
52
|
+
width: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 520
|
|
55
|
+
},
|
|
56
|
+
templateConfig: {
|
|
57
|
+
type: Object,
|
|
58
|
+
default: () => ({})
|
|
59
|
+
},
|
|
60
|
+
uploadFileConfig: {
|
|
61
|
+
type: Object,
|
|
62
|
+
default: () => {}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
emits: [emitsMap.updateModelValue, emitsMap.uploadSuccess],
|
|
66
|
+
setup(e, { emit: T }) {
|
|
67
|
+
let O = { templateFileName: "导入模板.xlsx" }, k = {
|
|
68
|
+
uploadFileType: [uploadFileType.xlsx, uploadFileType.xls],
|
|
69
|
+
isCustomRequest: !0,
|
|
70
|
+
multiple: !1,
|
|
71
|
+
rowCount: 1,
|
|
72
|
+
maxCount: 1
|
|
73
|
+
}, A = e, j = T, M = ref([]), N = computed({
|
|
74
|
+
get() {
|
|
75
|
+
return A.modelValue;
|
|
76
|
+
},
|
|
77
|
+
set(e) {
|
|
78
|
+
j(emitsMap.updateModelValue, e);
|
|
79
|
+
}
|
|
80
|
+
}), P = computed(() => R.value === "result" ? "导入结果" : A.title), F = computed(() => ({
|
|
81
|
+
...k,
|
|
82
|
+
...A.uploadFileConfig
|
|
83
|
+
})), I = computed(() => ({
|
|
84
|
+
...O,
|
|
85
|
+
...A.templateConfig
|
|
86
|
+
})), L = () => {
|
|
87
|
+
I.value.downloadTemplate({}, I.value.templateFileName);
|
|
88
|
+
}, R = ref("upload"), z = ref({}), B = () => {
|
|
89
|
+
N.value = !1;
|
|
90
|
+
};
|
|
91
|
+
function V(e, w) {
|
|
92
|
+
let T = `${w}.${e.name.split(".").pop()}`;
|
|
93
|
+
return new File([e], T, {
|
|
94
|
+
type: e.type,
|
|
95
|
+
lastModified: e.lastModified
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
let H = ref(null), U = async () => {
|
|
99
|
+
let e = A.uploadFileConfig?.fileName || M.value?.[0]?.raw?.name;
|
|
100
|
+
F.value?.apiConfig({
|
|
101
|
+
...F.value?.params,
|
|
102
|
+
file: V(M.value?.[0]?.raw, e)
|
|
103
|
+
}).then((e) => {
|
|
104
|
+
let { data: w } = e;
|
|
105
|
+
H.value = w;
|
|
106
|
+
let { failureTotal: T, successTotal: E } = w;
|
|
107
|
+
e.code === codeMap.success && (T ? (R.value = "result", z.value = w, E && j(emitsMap.uploadSuccess)) : (messageSuccess(`文件导入成功,共导入数据:${E}条`), j(emitsMap.uploadSuccess), N.value = !1));
|
|
108
|
+
});
|
|
109
|
+
}, W = () => {
|
|
110
|
+
N.value = !1;
|
|
111
|
+
};
|
|
112
|
+
return (T, E) => (openBlock(), createBlock(unref(ElDialog), {
|
|
113
|
+
modelValue: N.value,
|
|
114
|
+
"onUpdate:modelValue": E[1] ||= (e) => N.value = e,
|
|
115
|
+
title: P.value,
|
|
116
|
+
width: e.width,
|
|
117
|
+
"close-on-click-modal": !1,
|
|
118
|
+
"close-on-press-escape": !1,
|
|
119
|
+
onClose: W
|
|
120
|
+
}, {
|
|
121
|
+
footer: withCtx(() => [R.value === "upload" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
122
|
+
I.value?.downloadTemplate ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
123
|
+
createVNode(unref(ElIcon), {
|
|
124
|
+
size: 14,
|
|
125
|
+
color: "var(--text-color-4)"
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createVNode(unref(IconQuery))]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
E[2] ||= createElementVNode("div", { class: "text-74798c pd-l-4" }, "还没有模板?点击下载", -1),
|
|
131
|
+
createElementVNode("div", {
|
|
132
|
+
class: "text-3b64ff pointer",
|
|
133
|
+
onClick: L
|
|
134
|
+
}, " 《" + toDisplayString(e.templateName) + "模板》 ", 1)
|
|
135
|
+
])) : createCommentVNode("", !0),
|
|
136
|
+
createVNode(unref(ElButton), { onClick: W }, {
|
|
137
|
+
default: withCtx(() => [...E[3] ||= [createTextVNode("取消", -1)]]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
createVNode(unref(ElButton), {
|
|
141
|
+
type: "primary",
|
|
142
|
+
onClick: U,
|
|
143
|
+
disabled: !M.value?.length
|
|
144
|
+
}, {
|
|
145
|
+
default: withCtx(() => [...E[4] ||= [createTextVNode(" 确认 ", -1)]]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["disabled"])
|
|
148
|
+
])) : createCommentVNode("", !0), R.value === "result" ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(unref(ElButton), {
|
|
149
|
+
type: "primary",
|
|
150
|
+
onClick: B
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [...E[5] ||= [createTextVNode("我知道了", -1)]]),
|
|
153
|
+
_: 1
|
|
154
|
+
})])) : createCommentVNode("", !0)]),
|
|
155
|
+
default: withCtx(() => [R.value === "upload" ? (openBlock(), createBlock(layout_default$1, mergeProps({
|
|
156
|
+
key: 0,
|
|
157
|
+
modelValue: M.value,
|
|
158
|
+
"onUpdate:modelValue": E[0] ||= (e) => M.value = e
|
|
159
|
+
}, F.value), null, 16, ["modelValue"])) : createCommentVNode("", !0), R.value === "result" ? (openBlock(), createBlock(ImportResultContent_default, {
|
|
160
|
+
key: 1,
|
|
161
|
+
templateConfig: I.value,
|
|
162
|
+
uploadResData: z.value
|
|
163
|
+
}, null, 8, ["templateConfig", "uploadResData"])) : createCommentVNode("", !0)]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, [
|
|
166
|
+
"modelValue",
|
|
167
|
+
"title",
|
|
168
|
+
"width"
|
|
169
|
+
]));
|
|
170
|
+
}
|
|
171
|
+
}));
|
|
172
|
+
var BatchImport_default = BatchImport;
|
|
173
|
+
export { BatchImport_default as n, BatchImport as t };
|