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