iking-web-ui-pro 0.2.21 → 0.2.22
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/IKExpandCollapse/ik.index.es.js +79 -73
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +302 -296
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +117 -111
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +242 -236
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +83 -77
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +434 -428
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +140 -134
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +383 -377
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1135 -1129
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2960 -2954
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +111 -105
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +74 -68
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +720 -714
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +223 -217
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5502 -5496
- package/dist/index.umd.js +78 -78
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
if (l.install = (
|
|
6
|
-
for (const
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
for (const [
|
|
10
|
-
l[
|
|
1
|
+
import { defineComponent as M, openBlock as c, createElementBlock as m, createElementVNode as C, computed as O, resolveComponent as N, withModifiers as H, normalizeClass as S, normalizeStyle as x, createCommentVNode as E, createBlock as T, withCtx as g, createTextVNode as V, toDisplayString as L, ref as D, watch as ee, unref as w, createVNode as B, Transition as se, renderSlot as R, mergeModels as G, useModel as ie, resolveDirective as ue, Fragment as J, withDirectives as K, mergeProps as Q, createSlots as re, renderList as ce, pushScopeId as de, popScopeId as pe } from "vue";
|
|
2
|
+
import { ikColor as ve, _ as I, ikStore as P } from "iking-utils-pro";
|
|
3
|
+
import fe from "vuedraggable";
|
|
4
|
+
const X = (l, h) => {
|
|
5
|
+
if (l.install = (a) => {
|
|
6
|
+
for (const e of [l, ...Object.values(h ?? {})])
|
|
7
|
+
a.component(e.name, e);
|
|
8
|
+
}, h)
|
|
9
|
+
for (const [a, e] of Object.entries(h))
|
|
10
|
+
l[a] = e;
|
|
11
11
|
return l;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var me = /* @__PURE__ */ M({
|
|
15
15
|
name: "DCaret",
|
|
16
16
|
__name: "d-caret",
|
|
17
17
|
setup(l) {
|
|
18
|
-
return (
|
|
18
|
+
return (h, a) => (c(), m("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 1024 1024"
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
C("path", {
|
|
23
23
|
fill: "currentColor",
|
|
24
24
|
d: "m512 128 288 320H224zM224 576h576L512 896z"
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}), ge =
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
for (const [
|
|
32
|
-
e
|
|
33
|
-
return
|
|
34
|
-
},
|
|
28
|
+
}), ge = me;
|
|
29
|
+
const Y = (l, h) => {
|
|
30
|
+
const a = l.__vccOpts || l;
|
|
31
|
+
for (const [e, d] of h)
|
|
32
|
+
a[e] = d;
|
|
33
|
+
return a;
|
|
34
|
+
}, ye = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
37
|
-
},
|
|
37
|
+
}, he = {
|
|
38
38
|
key: 1,
|
|
39
39
|
class: "h-[1em] w-[1em]",
|
|
40
40
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
41
|
+
}, ke = ["xlink:href"], be = ["src"], _e = {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "h-[1em] w-[1em]",
|
|
44
44
|
"aria-hidden": "true"
|
|
45
|
-
},
|
|
45
|
+
}, we = ["xlink:href"], Se = ["src"], Ce = /* @__PURE__ */ M({
|
|
46
46
|
name: "IkSvgIcon",
|
|
47
47
|
__name: "index",
|
|
48
48
|
props: {
|
|
@@ -68,11 +68,12 @@ const X = (l, y) => {
|
|
|
68
68
|
warning: { type: Boolean },
|
|
69
69
|
width: {}
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
emits: ["click"],
|
|
72
|
+
setup(l, { emit: h }) {
|
|
73
|
+
const a = l, e = O(() => a), d = O(() => {
|
|
73
74
|
const { name: t } = e.value;
|
|
74
75
|
return /^http?:\/\//.test(t) ? "img" : /i-[^:]+:[^:]+/.test(t) ? "unocss" : t != null && t.startsWith("iksig") ? "iksig" : t != null && t.includes(":") ? "iconify" : t != null && t.startsWith("iksvg") ? "svg" : "i";
|
|
75
|
-
}),
|
|
76
|
+
}), s = O(() => {
|
|
76
77
|
const t = [];
|
|
77
78
|
if (e.value.flip)
|
|
78
79
|
switch (e.value.flip) {
|
|
@@ -87,27 +88,30 @@ const X = (l, y) => {
|
|
|
87
88
|
break;
|
|
88
89
|
}
|
|
89
90
|
e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
90
|
-
const
|
|
91
|
+
const p = {
|
|
91
92
|
...e.value.color && { color: e.value.color },
|
|
92
93
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
93
94
|
...t.length && { transform: t.join(" ") },
|
|
94
95
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
95
|
-
...e.value.color &&
|
|
96
|
+
...e.value.color && d.value !== "iksig" ? {
|
|
96
97
|
"--ik-color-icon-dark": e.value.color,
|
|
97
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
98
|
+
"--ik-color-icon-light": e.value.colorLight || ve.setOpacity(e.value.color, e.value.opacity)
|
|
98
99
|
} : {}
|
|
99
100
|
};
|
|
100
|
-
return e.value.width && (
|
|
101
|
-
})
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
|
|
102
|
+
}), $ = h, z = (t) => {
|
|
103
|
+
e.value.disabled || $("click", t);
|
|
104
|
+
};
|
|
105
|
+
return (t, p) => {
|
|
106
|
+
const b = N("el-tooltip"), v = N("el-button");
|
|
107
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), m("span", ye, [
|
|
108
|
+
e.value.notip || !e.value.title ? (c(), m(
|
|
106
109
|
"i",
|
|
107
110
|
{
|
|
108
111
|
key: 0,
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
onClick: H(z, ["stop"]),
|
|
113
|
+
class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
114
|
+
[t.name]: d.value === "unocss",
|
|
111
115
|
"show-bg": e.value.showBg || e.value.bg,
|
|
112
116
|
default: e.value.size === "default",
|
|
113
117
|
small: e.value.size === "small",
|
|
@@ -119,34 +123,34 @@ const X = (l, y) => {
|
|
|
119
123
|
active: e.value.active,
|
|
120
124
|
disabled: e.value.disabled
|
|
121
125
|
}]),
|
|
122
|
-
style:
|
|
126
|
+
style: x(s.value)
|
|
123
127
|
},
|
|
124
128
|
[
|
|
125
129
|
E(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
126
|
-
|
|
130
|
+
d.value === "iksig" ? (c(), m(
|
|
127
131
|
"i",
|
|
128
132
|
{
|
|
129
133
|
key: 0,
|
|
130
|
-
class:
|
|
131
|
-
style:
|
|
134
|
+
class: S(`iksig ${e.value.name}`),
|
|
135
|
+
style: x(s.value)
|
|
132
136
|
},
|
|
133
137
|
null,
|
|
134
138
|
6
|
|
135
139
|
/* CLASS, STYLE */
|
|
136
|
-
)) :
|
|
137
|
-
|
|
140
|
+
)) : d.value === "svg" ? (c(), m("svg", he, [
|
|
141
|
+
C("use", {
|
|
138
142
|
"xlink:href": `#${e.value.name}`
|
|
139
|
-
}, null, 8,
|
|
140
|
-
])) :
|
|
143
|
+
}, null, 8, ke)
|
|
144
|
+
])) : d.value === "img" ? (c(), m("img", {
|
|
141
145
|
key: 2,
|
|
142
146
|
src: e.value.name,
|
|
143
147
|
class: "h-[1em] w-[1em]"
|
|
144
|
-
}, null, 8,
|
|
148
|
+
}, null, 8, be)) : (c(), m(
|
|
145
149
|
"i",
|
|
146
150
|
{
|
|
147
151
|
key: 3,
|
|
148
|
-
class:
|
|
149
|
-
style:
|
|
152
|
+
class: S(e.value.name),
|
|
153
|
+
style: x(s.value)
|
|
150
154
|
},
|
|
151
155
|
null,
|
|
152
156
|
6
|
|
@@ -155,17 +159,17 @@ const X = (l, y) => {
|
|
|
155
159
|
],
|
|
156
160
|
6
|
|
157
161
|
/* CLASS, STYLE */
|
|
158
|
-
)) : (
|
|
162
|
+
)) : (c(), T(b, {
|
|
159
163
|
key: 1,
|
|
160
164
|
content: e.value.title,
|
|
161
165
|
placement: "top"
|
|
162
166
|
}, {
|
|
163
167
|
default: g(() => [
|
|
164
|
-
|
|
168
|
+
C(
|
|
165
169
|
"i",
|
|
166
170
|
{
|
|
167
|
-
class:
|
|
168
|
-
[t.name]:
|
|
171
|
+
class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
172
|
+
[t.name]: d.value === "unocss",
|
|
169
173
|
"show-bg": e.value.showBg || e.value.bg,
|
|
170
174
|
default: e.value.size === "default",
|
|
171
175
|
small: e.value.size === "small",
|
|
@@ -176,33 +180,34 @@ const X = (l, y) => {
|
|
|
176
180
|
error: e.value.error || e.value.type === "error",
|
|
177
181
|
active: e.value.active
|
|
178
182
|
}]),
|
|
179
|
-
|
|
183
|
+
onClick: H(z, ["stop"]),
|
|
184
|
+
style: x(s.value)
|
|
180
185
|
},
|
|
181
186
|
[
|
|
182
|
-
|
|
187
|
+
d.value === "iksig" ? (c(), m(
|
|
183
188
|
"i",
|
|
184
189
|
{
|
|
185
190
|
key: 0,
|
|
186
|
-
class:
|
|
187
|
-
style:
|
|
191
|
+
class: S(`iksig ${e.value.name}`),
|
|
192
|
+
style: x(s.value)
|
|
188
193
|
},
|
|
189
194
|
null,
|
|
190
195
|
6
|
|
191
196
|
/* CLASS, STYLE */
|
|
192
|
-
)) :
|
|
193
|
-
|
|
197
|
+
)) : d.value === "svg" ? (c(), m("svg", _e, [
|
|
198
|
+
C("use", {
|
|
194
199
|
"xlink:href": `#${e.value.name}`
|
|
195
|
-
}, null, 8,
|
|
196
|
-
])) :
|
|
200
|
+
}, null, 8, we)
|
|
201
|
+
])) : d.value === "img" ? (c(), m("img", {
|
|
197
202
|
key: 2,
|
|
198
203
|
src: e.value.name,
|
|
199
204
|
class: "h-[1em] w-[1em]"
|
|
200
|
-
}, null, 8,
|
|
205
|
+
}, null, 8, Se)) : (c(), m(
|
|
201
206
|
"i",
|
|
202
207
|
{
|
|
203
208
|
key: 3,
|
|
204
|
-
class:
|
|
205
|
-
style:
|
|
209
|
+
class: S(e.value.name),
|
|
210
|
+
style: x(s.value)
|
|
206
211
|
},
|
|
207
212
|
null,
|
|
208
213
|
6
|
|
@@ -216,13 +221,14 @@ const X = (l, y) => {
|
|
|
216
221
|
_: 1
|
|
217
222
|
/* STABLE */
|
|
218
223
|
}, 8, ["content"]))
|
|
219
|
-
])) : (
|
|
224
|
+
])) : (c(), T(v, {
|
|
220
225
|
key: 1,
|
|
221
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
226
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
|
|
227
|
+
onClick: H(z, ["stop"])
|
|
222
228
|
}, {
|
|
223
229
|
default: g(() => [
|
|
224
|
-
|
|
225
|
-
|
|
230
|
+
V(
|
|
231
|
+
L(e.value.title),
|
|
226
232
|
1
|
|
227
233
|
/* TEXT */
|
|
228
234
|
)
|
|
@@ -233,7 +239,7 @@ const X = (l, y) => {
|
|
|
233
239
|
};
|
|
234
240
|
}
|
|
235
241
|
});
|
|
236
|
-
const Ie = /* @__PURE__ */
|
|
242
|
+
const Ie = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-4a1004b9"]]), xe = X(Ie), Z = {
|
|
237
243
|
animation: 200,
|
|
238
244
|
group: "gl",
|
|
239
245
|
disabled: !1,
|
|
@@ -384,90 +390,90 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-a7ec508a"]]), xe = P(Ie)
|
|
|
384
390
|
}
|
|
385
391
|
})
|
|
386
392
|
}
|
|
387
|
-
},
|
|
393
|
+
}, $e = /* @__PURE__ */ M({
|
|
388
394
|
__name: "IkDragList",
|
|
389
395
|
props: Be,
|
|
390
396
|
emits: ["change"],
|
|
391
|
-
setup(l, { emit:
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
() =>
|
|
397
|
+
setup(l, { emit: h }) {
|
|
398
|
+
const a = l, e = h, d = D([]);
|
|
399
|
+
ee(
|
|
400
|
+
() => a.list,
|
|
395
401
|
(p) => {
|
|
396
|
-
|
|
402
|
+
d.value = I.cloneDeep(p);
|
|
397
403
|
},
|
|
398
404
|
{
|
|
399
405
|
immediate: !0,
|
|
400
406
|
deep: !0
|
|
401
407
|
}
|
|
402
408
|
);
|
|
403
|
-
const
|
|
404
|
-
...
|
|
405
|
-
...
|
|
409
|
+
const s = O(() => ({
|
|
410
|
+
...Z,
|
|
411
|
+
...a,
|
|
406
412
|
itemStyle: {
|
|
407
|
-
...
|
|
408
|
-
...
|
|
413
|
+
...Z.itemStyle,
|
|
414
|
+
...a.itemStyle
|
|
409
415
|
}
|
|
410
|
-
})),
|
|
411
|
-
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
...
|
|
416
|
+
})), $ = D(!1), z = () => {
|
|
417
|
+
$.value = !0;
|
|
418
|
+
}, t = (p) => {
|
|
419
|
+
$.value = !1;
|
|
420
|
+
const b = a.list[p.oldIndex];
|
|
421
|
+
e("change", d.value, {
|
|
422
|
+
...b,
|
|
417
423
|
oldIndex: p.oldIndex,
|
|
418
424
|
newIndex: p.newIndex
|
|
419
425
|
});
|
|
420
426
|
};
|
|
421
|
-
return (p,
|
|
422
|
-
const v =
|
|
423
|
-
return
|
|
424
|
-
modelValue:
|
|
425
|
-
"onUpdate:modelValue":
|
|
426
|
-
class:
|
|
427
|
+
return (p, b) => {
|
|
428
|
+
const v = N("el-icon");
|
|
429
|
+
return c(), T(w(fe), {
|
|
430
|
+
modelValue: d.value,
|
|
431
|
+
"onUpdate:modelValue": b[0] || (b[0] = (i) => d.value = i),
|
|
432
|
+
class: S(["list-group", [s.value.groupClass]]),
|
|
427
433
|
tag: "ul",
|
|
428
|
-
attrs:
|
|
429
|
-
animation:
|
|
430
|
-
group:
|
|
431
|
-
disabled:
|
|
432
|
-
"ghost-class":
|
|
433
|
-
"force-fallback":
|
|
434
|
+
attrs: s.value,
|
|
435
|
+
animation: s.value.animation,
|
|
436
|
+
group: s.value.group,
|
|
437
|
+
disabled: s.value.disabled,
|
|
438
|
+
"ghost-class": s.value.ghostClass,
|
|
439
|
+
"force-fallback": s.value.ghostClass,
|
|
434
440
|
"item-key": "order",
|
|
435
|
-
onStart:
|
|
436
|
-
onEnd:
|
|
441
|
+
onStart: z,
|
|
442
|
+
onEnd: t
|
|
437
443
|
}, {
|
|
438
|
-
item: g(({ element:
|
|
439
|
-
|
|
440
|
-
|
|
444
|
+
item: g(({ element: i }) => [
|
|
445
|
+
B(
|
|
446
|
+
se,
|
|
441
447
|
{
|
|
442
448
|
type: "transition",
|
|
443
449
|
name: "flip-list"
|
|
444
450
|
},
|
|
445
451
|
{
|
|
446
452
|
default: g(() => [
|
|
447
|
-
p.$slots.item ?
|
|
453
|
+
p.$slots.item ? R(p.$slots, "item", {
|
|
448
454
|
key: 0,
|
|
449
|
-
item:
|
|
450
|
-
}, void 0, !0) : (
|
|
455
|
+
item: i
|
|
456
|
+
}, void 0, !0) : (c(), m(
|
|
451
457
|
"li",
|
|
452
458
|
{
|
|
453
459
|
key: 1,
|
|
454
|
-
class:
|
|
455
|
-
style:
|
|
456
|
-
borderRadius: `${
|
|
457
|
-
marginBottom: `${
|
|
458
|
-
backgroundColor: `${
|
|
460
|
+
class: S(["list-group-item", [s.value.itemClass]]),
|
|
461
|
+
style: x({
|
|
462
|
+
borderRadius: `${s.value.itemStyle.radius}px`,
|
|
463
|
+
marginBottom: `${s.value.itemStyle.bottom}px`,
|
|
464
|
+
backgroundColor: `${s.value.itemStyle.background}`
|
|
459
465
|
})
|
|
460
466
|
},
|
|
461
467
|
[
|
|
462
|
-
|
|
468
|
+
s.value.showIcon && !p.$slots.icon ? (c(), T(v, { key: 0 }, {
|
|
463
469
|
default: g(() => [
|
|
464
|
-
|
|
470
|
+
B(w(ge))
|
|
465
471
|
]),
|
|
466
472
|
_: 1
|
|
467
473
|
/* STABLE */
|
|
468
|
-
})) :
|
|
469
|
-
|
|
470
|
-
" " +
|
|
474
|
+
})) : R(p.$slots, "icon", { key: 1 }, void 0, !0),
|
|
475
|
+
V(
|
|
476
|
+
" " + L(i.label),
|
|
471
477
|
1
|
|
472
478
|
/* TEXT */
|
|
473
479
|
)
|
|
@@ -489,15 +495,15 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-a7ec508a"]]), xe = P(Ie)
|
|
|
489
495
|
};
|
|
490
496
|
}
|
|
491
497
|
});
|
|
492
|
-
const
|
|
498
|
+
const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze), De = (l) => (de("data-v-b5ed17ed"), l = l(), pe(), l), Ne = /* @__PURE__ */ De(() => /* @__PURE__ */ C(
|
|
493
499
|
"i",
|
|
494
500
|
{ class: "ik ik-shezhi" },
|
|
495
501
|
null,
|
|
496
502
|
-1
|
|
497
503
|
/* HOISTED */
|
|
498
|
-
)),
|
|
504
|
+
)), Te = { class: "check-right" }, Le = { class: "dialog-footer" }, Oe = /* @__PURE__ */ M({
|
|
499
505
|
__name: "IkBtnSetting",
|
|
500
|
-
props: /* @__PURE__ */
|
|
506
|
+
props: /* @__PURE__ */ G({
|
|
501
507
|
list: {
|
|
502
508
|
type: Array,
|
|
503
509
|
default: () => []
|
|
@@ -553,104 +559,104 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
553
559
|
},
|
|
554
560
|
modelModifiers: {}
|
|
555
561
|
}),
|
|
556
|
-
emits: /* @__PURE__ */
|
|
557
|
-
setup(l, { emit:
|
|
558
|
-
const
|
|
559
|
-
const
|
|
560
|
-
return !
|
|
561
|
-
}), U = (
|
|
562
|
-
var
|
|
563
|
-
const
|
|
564
|
-
|
|
565
|
-
var
|
|
562
|
+
emits: /* @__PURE__ */ G(["sort"], ["update:modelValue"]),
|
|
563
|
+
setup(l, { emit: h }) {
|
|
564
|
+
const a = l, e = h, d = ie(l, "modelValue"), { t: s, dialog: $, path: z, user: t } = a.config, p = O(() => `${t == null ? void 0 : t.id}_${z}${a.tab !== "" ? `_${a.tab}` : ""}`), b = D([]), v = D([]), i = D([]), F = /* @__PURE__ */ new Map(), A = D(!1), te = O(() => {
|
|
565
|
+
const u = v.value.length && v.value.length !== a.list.length;
|
|
566
|
+
return !u && v.value.length && (A.value = !0), !!u;
|
|
567
|
+
}), U = (u) => {
|
|
568
|
+
var r;
|
|
569
|
+
const o = I.cloneDeep(i.value);
|
|
570
|
+
o == null || o.forEach((n) => {
|
|
571
|
+
var _;
|
|
566
572
|
if (!v.value.length)
|
|
567
|
-
|
|
568
|
-
else if (!v.value.includes(
|
|
569
|
-
const
|
|
570
|
-
|
|
573
|
+
i.value = [];
|
|
574
|
+
else if (!v.value.includes(n == null ? void 0 : n.key)) {
|
|
575
|
+
const k = (_ = i.value) == null ? void 0 : _.findIndex((f) => f.key === n.key);
|
|
576
|
+
k !== -1 && i.value.splice(k, 1), n.show = !1, F.set(n.key, n);
|
|
571
577
|
}
|
|
572
|
-
}), v.value.forEach((
|
|
573
|
-
var
|
|
574
|
-
if (((
|
|
575
|
-
const
|
|
576
|
-
|
|
578
|
+
}), v.value.forEach((n) => {
|
|
579
|
+
var k;
|
|
580
|
+
if (((k = i.value) == null ? void 0 : k.findIndex((f) => (f == null ? void 0 : f.key) === n)) === -1) {
|
|
581
|
+
const f = F.get(n);
|
|
582
|
+
f && (f.show = !0, i.value.push(f));
|
|
577
583
|
}
|
|
578
|
-
}), (
|
|
579
|
-
},
|
|
580
|
-
if (
|
|
581
|
-
v.value =
|
|
584
|
+
}), (r = i.value) != null && r.length || (i.value = I.cloneDeep(a.list)), u === !0 && (e("sort", I.cloneDeep(i.value)), d.value = I.cloneDeep(i.value));
|
|
585
|
+
}, le = (u) => {
|
|
586
|
+
if (u)
|
|
587
|
+
v.value = a.list.map((o) => o.key);
|
|
582
588
|
else {
|
|
583
|
-
const
|
|
584
|
-
v.value =
|
|
589
|
+
const o = a.list.find((r) => !r.key || r.label === "操作");
|
|
590
|
+
v.value = o ? [o.key] : [];
|
|
585
591
|
}
|
|
586
592
|
U();
|
|
587
593
|
}, W = () => {
|
|
588
|
-
const
|
|
594
|
+
const u = P.local.getItem(p.value);
|
|
589
595
|
try {
|
|
590
|
-
const
|
|
591
|
-
if ((!
|
|
596
|
+
const o = I.cloneDeep(a == null ? void 0 : a.list);
|
|
597
|
+
if ((!u || !(u != null && u.length)) && P.local.setItem(
|
|
592
598
|
p.value,
|
|
593
|
-
|
|
594
|
-
show:
|
|
595
|
-
key:
|
|
596
|
-
type:
|
|
597
|
-
label:
|
|
598
|
-
width:
|
|
599
|
-
minWidth:
|
|
600
|
-
align:
|
|
599
|
+
o.map(({ show: r, type: n, key: _, label: k, width: f, minWidth: y, align: ne }) => ({
|
|
600
|
+
show: r,
|
|
601
|
+
key: _,
|
|
602
|
+
type: n,
|
|
603
|
+
label: k,
|
|
604
|
+
width: f,
|
|
605
|
+
minWidth: y,
|
|
606
|
+
align: ne
|
|
601
607
|
}))
|
|
602
|
-
),
|
|
603
|
-
...(
|
|
604
|
-
...
|
|
605
|
-
show:
|
|
608
|
+
), b.value = [
|
|
609
|
+
...(o == null ? void 0 : o.map((r) => (F.set(r.key, r), {
|
|
610
|
+
...r,
|
|
611
|
+
show: r.show || !1
|
|
606
612
|
}))) || []
|
|
607
|
-
],
|
|
608
|
-
const
|
|
609
|
-
v.value = [...
|
|
613
|
+
], u) {
|
|
614
|
+
const r = u.filter((n) => n.show).map((n) => n.key);
|
|
615
|
+
v.value = [...r];
|
|
610
616
|
} else {
|
|
611
|
-
const
|
|
612
|
-
v.value =
|
|
617
|
+
const r = b.value.filter((n) => n.show);
|
|
618
|
+
v.value = r.map((n) => n.key);
|
|
613
619
|
}
|
|
614
620
|
U(!0);
|
|
615
|
-
} catch (
|
|
616
|
-
console.info("error: ",
|
|
621
|
+
} catch (o) {
|
|
622
|
+
console.info("error: ", o);
|
|
617
623
|
}
|
|
618
624
|
};
|
|
619
|
-
W(),
|
|
625
|
+
W(), ee(() => a.list, () => {
|
|
620
626
|
W();
|
|
621
627
|
}, { deep: !0 });
|
|
622
|
-
const j =
|
|
628
|
+
const j = D(!1), q = () => {
|
|
623
629
|
j.value = !0;
|
|
624
|
-
},
|
|
625
|
-
|
|
626
|
-
},
|
|
627
|
-
j.value = !1,
|
|
630
|
+
}, ae = (u) => {
|
|
631
|
+
i.value = u;
|
|
632
|
+
}, oe = () => {
|
|
633
|
+
j.value = !1, P.local.setItem(
|
|
628
634
|
p.value,
|
|
629
|
-
|
|
630
|
-
show:
|
|
631
|
-
key:
|
|
632
|
-
label:
|
|
633
|
-
value:
|
|
634
|
-
width:
|
|
635
|
-
minWidth:
|
|
636
|
-
align:
|
|
635
|
+
i.value.map(({ show: u, key: o, label: r, value: n, width: _, minWidth: k, align: f }) => ({
|
|
636
|
+
show: u,
|
|
637
|
+
key: o,
|
|
638
|
+
label: r,
|
|
639
|
+
value: n,
|
|
640
|
+
width: _,
|
|
641
|
+
minWidth: k,
|
|
642
|
+
align: f
|
|
637
643
|
}))
|
|
638
|
-
),
|
|
644
|
+
), e("sort", I.cloneDeep(i.value)), d.value = I.cloneDeep(i.value);
|
|
639
645
|
};
|
|
640
|
-
return (
|
|
641
|
-
const
|
|
642
|
-
return
|
|
643
|
-
|
|
646
|
+
return (u, o) => {
|
|
647
|
+
const r = N("el-button"), n = N("el-checkbox"), _ = N("el-checkbox-group"), k = N("el-dialog"), f = ue("role");
|
|
648
|
+
return c(), m(
|
|
649
|
+
J,
|
|
644
650
|
null,
|
|
645
651
|
[
|
|
646
|
-
l.btnType === "button" ?
|
|
652
|
+
l.btnType === "button" ? K((c(), T(r, Q({ key: 0 }, u.$attrs, {
|
|
647
653
|
circle: l.circle,
|
|
648
654
|
type: l.type,
|
|
649
655
|
style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
|
|
650
|
-
onClick:
|
|
651
|
-
}),
|
|
656
|
+
onClick: q
|
|
657
|
+
}), re({
|
|
652
658
|
icon: g(() => [
|
|
653
|
-
|
|
659
|
+
Ne
|
|
654
660
|
]),
|
|
655
661
|
_: 2
|
|
656
662
|
/* DYNAMIC */
|
|
@@ -659,8 +665,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
659
665
|
name: "default",
|
|
660
666
|
fn: g(() => [
|
|
661
667
|
E(' {{ t("action.setting") }} '),
|
|
662
|
-
|
|
663
|
-
" " +
|
|
668
|
+
V(
|
|
669
|
+
" " + L(w(s)("设置")),
|
|
664
670
|
1
|
|
665
671
|
/* TEXT */
|
|
666
672
|
)
|
|
@@ -668,27 +674,27 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
668
674
|
key: "0"
|
|
669
675
|
}
|
|
670
676
|
]), 1040, ["circle", "type", "style"])), [
|
|
671
|
-
[
|
|
677
|
+
[f, u.$props.role]
|
|
672
678
|
]) : E("v-if", !0),
|
|
673
|
-
l.btnType === "icon" ?
|
|
674
|
-
|
|
675
|
-
|
|
679
|
+
l.btnType === "icon" ? K((c(), T(
|
|
680
|
+
w(xe),
|
|
681
|
+
Q({
|
|
676
682
|
key: 1,
|
|
677
683
|
name: "iksvg_shezhi-daohang",
|
|
678
684
|
"show-bg": "",
|
|
679
685
|
size: "default"
|
|
680
|
-
},
|
|
686
|
+
}, u.$attrs, { onClick: q }),
|
|
681
687
|
null,
|
|
682
688
|
16
|
|
683
689
|
/* FULL_PROPS */
|
|
684
690
|
)), [
|
|
685
|
-
[
|
|
691
|
+
[f, u.$props.role]
|
|
686
692
|
]) : E("v-if", !0),
|
|
687
|
-
|
|
693
|
+
B(k, {
|
|
688
694
|
modelValue: j.value,
|
|
689
|
-
"onUpdate:modelValue":
|
|
695
|
+
"onUpdate:modelValue": o[3] || (o[3] = (y) => j.value = y),
|
|
690
696
|
draggable: "",
|
|
691
|
-
width: l.inline ?
|
|
697
|
+
width: l.inline ? w($).l : w($).sl,
|
|
692
698
|
"close-on-click-modal": !1,
|
|
693
699
|
"close-on-press-escape": !1,
|
|
694
700
|
title: "显示字段",
|
|
@@ -696,13 +702,13 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
696
702
|
onOpen: W
|
|
697
703
|
}, {
|
|
698
704
|
footer: g(() => [
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
onClick:
|
|
705
|
+
C("div", Le, [
|
|
706
|
+
B(r, {
|
|
707
|
+
onClick: o[2] || (o[2] = (y) => j.value = !1)
|
|
702
708
|
}, {
|
|
703
709
|
default: g(() => [
|
|
704
|
-
|
|
705
|
-
|
|
710
|
+
V(
|
|
711
|
+
L(w(s)("关闭")) + " ",
|
|
706
712
|
1
|
|
707
713
|
/* TEXT */
|
|
708
714
|
),
|
|
@@ -711,14 +717,14 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
711
717
|
_: 1
|
|
712
718
|
/* STABLE */
|
|
713
719
|
}),
|
|
714
|
-
|
|
720
|
+
B(r, {
|
|
715
721
|
type: "primary",
|
|
716
|
-
disabled:
|
|
717
|
-
onClick:
|
|
722
|
+
disabled: i.value.length < 2,
|
|
723
|
+
onClick: oe
|
|
718
724
|
}, {
|
|
719
725
|
default: g(() => [
|
|
720
|
-
|
|
721
|
-
|
|
726
|
+
V(
|
|
727
|
+
L(i.value.length < 2 ? "至少选择一个字段" : w(s)("确定")),
|
|
722
728
|
1
|
|
723
729
|
/* TEXT */
|
|
724
730
|
)
|
|
@@ -729,48 +735,48 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
729
735
|
])
|
|
730
736
|
]),
|
|
731
737
|
default: g(() => [
|
|
732
|
-
|
|
738
|
+
C(
|
|
733
739
|
"div",
|
|
734
740
|
{
|
|
735
|
-
class:
|
|
741
|
+
class: S(["view-fields", [l.inline ? null : "un-inline"]])
|
|
736
742
|
},
|
|
737
743
|
[
|
|
738
|
-
|
|
744
|
+
C(
|
|
739
745
|
"div",
|
|
740
746
|
{
|
|
741
|
-
style:
|
|
747
|
+
style: x({ flex: l.inline ? 2 : 1 })
|
|
742
748
|
},
|
|
743
749
|
[
|
|
744
|
-
|
|
750
|
+
B(n, {
|
|
745
751
|
modelValue: A.value,
|
|
746
|
-
"onUpdate:modelValue":
|
|
752
|
+
"onUpdate:modelValue": o[0] || (o[0] = (y) => A.value = y),
|
|
747
753
|
class: "single-line",
|
|
748
|
-
indeterminate:
|
|
749
|
-
onChange:
|
|
754
|
+
indeterminate: te.value,
|
|
755
|
+
onChange: le
|
|
750
756
|
}, {
|
|
751
757
|
default: g(() => [
|
|
752
|
-
|
|
758
|
+
V(" 全选 ")
|
|
753
759
|
]),
|
|
754
760
|
_: 1
|
|
755
761
|
/* STABLE */
|
|
756
762
|
}, 8, ["modelValue", "indeterminate"]),
|
|
757
|
-
|
|
763
|
+
B(_, {
|
|
758
764
|
modelValue: v.value,
|
|
759
|
-
"onUpdate:modelValue":
|
|
765
|
+
"onUpdate:modelValue": o[1] || (o[1] = (y) => v.value = y),
|
|
760
766
|
onChange: U
|
|
761
767
|
}, {
|
|
762
768
|
default: g(() => [
|
|
763
|
-
(
|
|
764
|
-
|
|
769
|
+
(c(!0), m(
|
|
770
|
+
J,
|
|
765
771
|
null,
|
|
766
|
-
|
|
767
|
-
key:
|
|
768
|
-
disabled: !
|
|
769
|
-
label:
|
|
772
|
+
ce(b.value, (y) => (c(), T(n, {
|
|
773
|
+
key: y.key,
|
|
774
|
+
disabled: !y.key,
|
|
775
|
+
label: y.key
|
|
770
776
|
}, {
|
|
771
777
|
default: g(() => [
|
|
772
|
-
|
|
773
|
-
|
|
778
|
+
V(
|
|
779
|
+
L(y.label),
|
|
774
780
|
1
|
|
775
781
|
/* TEXT */
|
|
776
782
|
)
|
|
@@ -789,11 +795,11 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
789
795
|
4
|
|
790
796
|
/* STYLE */
|
|
791
797
|
),
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
list:
|
|
798
|
+
C("div", Te, [
|
|
799
|
+
B(w(Ve), {
|
|
800
|
+
list: i.value,
|
|
795
801
|
"item-style": { bottom: 4 },
|
|
796
|
-
onChange:
|
|
802
|
+
onChange: ae
|
|
797
803
|
}, null, 8, ["list"])
|
|
798
804
|
])
|
|
799
805
|
],
|
|
@@ -811,8 +817,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
811
817
|
};
|
|
812
818
|
}
|
|
813
819
|
});
|
|
814
|
-
const
|
|
820
|
+
const je = /* @__PURE__ */ Y(Oe, [["__scopeId", "data-v-b5ed17ed"]]), Ae = X(je);
|
|
815
821
|
export {
|
|
816
|
-
|
|
817
|
-
|
|
822
|
+
Ae as IkBtnSetting,
|
|
823
|
+
Ae as default
|
|
818
824
|
};
|