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