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