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