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