iking-web-ui-pro 0.2.21 → 0.2.24
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 +33 -32
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +470 -482
- package/dist/IKPreviewFile/ik.index.umd.js +45 -45
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +2 -1
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +393 -405
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +85 -97
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +2 -1
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +5 -4
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +535 -547
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +352 -364
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +5 -4
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +2 -1
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +2 -1
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +497 -509
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2 -1
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +5 -4
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +11 -10
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +321 -333
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +2 -1
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +2138 -2150
- package/dist/index.umd.js +62 -62
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as m, computed as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as h, resolveComponent as _, openBlock as o, createElementBlock as u, normalizeClass as r, normalizeStyle as c, createCommentVNode as B, createElementVNode as g, createBlock as d, withCtx as v, createTextVNode as k, toDisplayString as b, unref as w, mergeModels as x, useModel as S, ref as V, h as T, mergeProps as j, createSlots as D, renderSlot as f } from "vue";
|
|
2
|
+
import { ikColor as F } from "iking-utils-pro";
|
|
3
|
+
const I = (s, n) => {
|
|
4
4
|
if (s.install = (e) => {
|
|
5
|
-
for (const
|
|
6
|
-
e.component(
|
|
5
|
+
for (const t of [s, ...Object.values(n ?? {})])
|
|
6
|
+
e.component(t.name, t);
|
|
7
7
|
}, n)
|
|
8
|
-
for (const [e,
|
|
9
|
-
s[e] =
|
|
8
|
+
for (const [e, t] of Object.entries(n))
|
|
9
|
+
s[e] = t;
|
|
10
10
|
return s;
|
|
11
|
-
},
|
|
11
|
+
}, $ = (s, n) => {
|
|
12
12
|
const e = s.__vccOpts || s;
|
|
13
|
-
for (const [
|
|
14
|
-
e[
|
|
13
|
+
for (const [t, i] of n)
|
|
14
|
+
e[t] = i;
|
|
15
15
|
return e;
|
|
16
16
|
}, O = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
19
|
-
},
|
|
19
|
+
}, E = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "h-[1em] w-[1em]",
|
|
22
22
|
"aria-hidden": "true"
|
|
23
|
-
},
|
|
23
|
+
}, H = ["xlink:href"], M = ["src"], N = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "h-[1em] w-[1em]",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
27
|
+
}, q = ["xlink:href"], L = ["src"], W = /* @__PURE__ */ m({
|
|
28
28
|
name: "IkSvgIcon",
|
|
29
29
|
__name: "index",
|
|
30
30
|
props: {
|
|
@@ -51,10 +51,10 @@ const $ = (s, n) => {
|
|
|
51
51
|
width: {}
|
|
52
52
|
},
|
|
53
53
|
setup(s) {
|
|
54
|
-
const n = s, e =
|
|
54
|
+
const n = s, e = h(() => n), t = h(() => {
|
|
55
55
|
const { name: l } = e.value;
|
|
56
56
|
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";
|
|
57
|
-
}),
|
|
57
|
+
}), i = h(() => {
|
|
58
58
|
const l = [];
|
|
59
59
|
if (e.value.flip)
|
|
60
60
|
switch (e.value.flip) {
|
|
@@ -69,27 +69,28 @@ const $ = (s, n) => {
|
|
|
69
69
|
break;
|
|
70
70
|
}
|
|
71
71
|
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
72
|
-
const
|
|
72
|
+
const a = {
|
|
73
|
+
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
73
74
|
...e.value.color && { color: e.value.color },
|
|
74
75
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
75
76
|
...l.length && { transform: l.join(" ") },
|
|
76
77
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
77
|
-
...e.value.color &&
|
|
78
|
+
...e.value.color && t.value !== "iksig" ? {
|
|
78
79
|
"--ik-color-icon-dark": e.value.color,
|
|
79
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
80
|
+
"--ik-color-icon-light": e.value.colorLight || F.setOpacity(e.value.color, e.value.opacity)
|
|
80
81
|
} : {}
|
|
81
82
|
};
|
|
82
|
-
return e.value.width && (
|
|
83
|
+
return e.value.width && (a.width = a.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), a;
|
|
83
84
|
});
|
|
84
|
-
return (l,
|
|
85
|
-
const p =
|
|
86
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (
|
|
87
|
-
e.value.notip || !e.value.title ? (
|
|
85
|
+
return (l, a) => {
|
|
86
|
+
const p = _("el-tooltip"), y = _("el-button");
|
|
87
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (o(), u("span", O, [
|
|
88
|
+
e.value.notip || !e.value.title ? (o(), u(
|
|
88
89
|
"i",
|
|
89
90
|
{
|
|
90
91
|
key: 0,
|
|
91
92
|
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
92
|
-
[l.name]:
|
|
93
|
+
[l.name]: t.value === "unocss",
|
|
93
94
|
"show-bg": e.value.showBg || e.value.bg,
|
|
94
95
|
default: e.value.size === "default",
|
|
95
96
|
small: e.value.size === "small",
|
|
@@ -101,34 +102,34 @@ const $ = (s, n) => {
|
|
|
101
102
|
active: e.value.active,
|
|
102
103
|
disabled: e.value.disabled
|
|
103
104
|
}]),
|
|
104
|
-
style: c(
|
|
105
|
+
style: c(i.value)
|
|
105
106
|
},
|
|
106
107
|
[
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
109
|
+
t.value === "iksig" ? (o(), u(
|
|
109
110
|
"i",
|
|
110
111
|
{
|
|
111
112
|
key: 0,
|
|
112
113
|
class: r(`iksig ${e.value.name}`),
|
|
113
|
-
style: c(
|
|
114
|
+
style: c(i.value)
|
|
114
115
|
},
|
|
115
116
|
null,
|
|
116
117
|
6
|
|
117
118
|
/* CLASS, STYLE */
|
|
118
|
-
)) :
|
|
119
|
+
)) : t.value === "svg" ? (o(), u("svg", E, [
|
|
119
120
|
g("use", {
|
|
120
121
|
"xlink:href": `#${e.value.name}`
|
|
121
|
-
}, null, 8,
|
|
122
|
-
])) :
|
|
122
|
+
}, null, 8, H)
|
|
123
|
+
])) : t.value === "img" ? (o(), u("img", {
|
|
123
124
|
key: 2,
|
|
124
125
|
src: e.value.name,
|
|
125
126
|
class: "h-[1em] w-[1em]"
|
|
126
|
-
}, null, 8,
|
|
127
|
+
}, null, 8, M)) : (o(), u(
|
|
127
128
|
"i",
|
|
128
129
|
{
|
|
129
130
|
key: 3,
|
|
130
131
|
class: r(e.value.name),
|
|
131
|
-
style: c(
|
|
132
|
+
style: c(i.value)
|
|
132
133
|
},
|
|
133
134
|
null,
|
|
134
135
|
6
|
|
@@ -137,7 +138,7 @@ const $ = (s, n) => {
|
|
|
137
138
|
],
|
|
138
139
|
6
|
|
139
140
|
/* CLASS, STYLE */
|
|
140
|
-
)) : (
|
|
141
|
+
)) : (o(), d(p, {
|
|
141
142
|
key: 1,
|
|
142
143
|
content: e.value.title,
|
|
143
144
|
placement: "top"
|
|
@@ -147,7 +148,7 @@ const $ = (s, n) => {
|
|
|
147
148
|
"i",
|
|
148
149
|
{
|
|
149
150
|
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
150
|
-
[l.name]:
|
|
151
|
+
[l.name]: t.value === "unocss",
|
|
151
152
|
"show-bg": e.value.showBg || e.value.bg,
|
|
152
153
|
default: e.value.size === "default",
|
|
153
154
|
small: e.value.size === "small",
|
|
@@ -158,33 +159,33 @@ const $ = (s, n) => {
|
|
|
158
159
|
error: e.value.error || e.value.type === "error",
|
|
159
160
|
active: e.value.active
|
|
160
161
|
}]),
|
|
161
|
-
style: c(
|
|
162
|
+
style: c(i.value)
|
|
162
163
|
},
|
|
163
164
|
[
|
|
164
|
-
|
|
165
|
+
t.value === "iksig" ? (o(), u(
|
|
165
166
|
"i",
|
|
166
167
|
{
|
|
167
168
|
key: 0,
|
|
168
169
|
class: r(`iksig ${e.value.name}`),
|
|
169
|
-
style: c(
|
|
170
|
+
style: c(i.value)
|
|
170
171
|
},
|
|
171
172
|
null,
|
|
172
173
|
6
|
|
173
174
|
/* CLASS, STYLE */
|
|
174
|
-
)) :
|
|
175
|
+
)) : t.value === "svg" ? (o(), u("svg", N, [
|
|
175
176
|
g("use", {
|
|
176
177
|
"xlink:href": `#${e.value.name}`
|
|
177
|
-
}, null, 8,
|
|
178
|
-
])) :
|
|
178
|
+
}, null, 8, q)
|
|
179
|
+
])) : t.value === "img" ? (o(), u("img", {
|
|
179
180
|
key: 2,
|
|
180
181
|
src: e.value.name,
|
|
181
182
|
class: "h-[1em] w-[1em]"
|
|
182
|
-
}, null, 8,
|
|
183
|
+
}, null, 8, L)) : (o(), u(
|
|
183
184
|
"i",
|
|
184
185
|
{
|
|
185
186
|
key: 3,
|
|
186
187
|
class: r(e.value.name),
|
|
187
|
-
style: c(
|
|
188
|
+
style: c(i.value)
|
|
188
189
|
},
|
|
189
190
|
null,
|
|
190
191
|
6
|
|
@@ -198,13 +199,13 @@ const $ = (s, n) => {
|
|
|
198
199
|
_: 1
|
|
199
200
|
/* STABLE */
|
|
200
201
|
}, 8, ["content"]))
|
|
201
|
-
])) : (
|
|
202
|
+
])) : (o(), d(y, {
|
|
202
203
|
key: 1,
|
|
203
204
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
204
205
|
}, {
|
|
205
206
|
default: v(() => [
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
k(
|
|
208
|
+
b(e.value.title),
|
|
208
209
|
1
|
|
209
210
|
/* TEXT */
|
|
210
211
|
)
|
|
@@ -215,10 +216,7 @@ const $ = (s, n) => {
|
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
218
|
});
|
|
218
|
-
const
|
|
219
|
-
key: 0,
|
|
220
|
-
class: "exit-main-page-maximize"
|
|
221
|
-
}, U = /* @__PURE__ */ m({
|
|
219
|
+
const X = /* @__PURE__ */ $(W, [["__scopeId", "data-v-52806adf"]]), z = I(X), Y = /* @__PURE__ */ m({
|
|
222
220
|
__name: "CloseIcon",
|
|
223
221
|
props: {
|
|
224
222
|
showBg: {
|
|
@@ -231,27 +229,17 @@ const Y = /* @__PURE__ */ z(X, [["__scopeId", "data-v-a7ec508a"]]), B = $(Y), P
|
|
|
231
229
|
}
|
|
232
230
|
},
|
|
233
231
|
setup(s) {
|
|
234
|
-
return (n, e) => (
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
error: ""
|
|
241
|
-
})
|
|
242
|
-
])) : (t(), d(y(B), {
|
|
243
|
-
key: 1,
|
|
244
|
-
error: "",
|
|
245
|
-
name: "iksvg_guanbidanchuang",
|
|
246
|
-
title: "关闭",
|
|
247
|
-
size: 20
|
|
248
|
-
}))
|
|
249
|
-
]));
|
|
232
|
+
return (n, e) => (o(), d(w(z), {
|
|
233
|
+
error: "",
|
|
234
|
+
name: "iksvg_guanbidanchuang",
|
|
235
|
+
title: "关闭",
|
|
236
|
+
size: 20
|
|
237
|
+
}));
|
|
250
238
|
}
|
|
251
239
|
});
|
|
252
|
-
const
|
|
240
|
+
const P = /* @__PURE__ */ $(Y, [["__scopeId", "data-v-e27fb022"]]), U = { class: "base-header" }, A = /* @__PURE__ */ m({
|
|
253
241
|
__name: "IkBaseDialog",
|
|
254
|
-
props: /* @__PURE__ */
|
|
242
|
+
props: /* @__PURE__ */ x({
|
|
255
243
|
title: { default: "" },
|
|
256
244
|
cancelText: { default: "取消" },
|
|
257
245
|
confirmText: { default: "确认" },
|
|
@@ -270,64 +258,64 @@ const A = /* @__PURE__ */ z(U, [["__scopeId", "data-v-79f49df8"]]), G = { class:
|
|
|
270
258
|
}),
|
|
271
259
|
emits: ["update:modelValue"],
|
|
272
260
|
setup(s) {
|
|
273
|
-
const n = s, e = S(s, "modelValue"),
|
|
274
|
-
|
|
261
|
+
const n = s, e = S(s, "modelValue"), t = V(n.fullscreen), i = () => {
|
|
262
|
+
t.value = !t.value;
|
|
275
263
|
}, l = m({
|
|
276
264
|
setup() {
|
|
277
|
-
return () =>
|
|
265
|
+
return () => T(P, {
|
|
278
266
|
showBg: n.showCloseBg,
|
|
279
267
|
fullscreen: n.fullscreen
|
|
280
268
|
});
|
|
281
269
|
}
|
|
282
270
|
});
|
|
283
|
-
return (
|
|
284
|
-
const
|
|
285
|
-
return
|
|
271
|
+
return (a, p) => {
|
|
272
|
+
const y = _("el-dialog");
|
|
273
|
+
return o(), d(y, j({
|
|
286
274
|
modelValue: e.value,
|
|
287
275
|
"onUpdate:modelValue": p[0] || (p[0] = (C) => e.value = C)
|
|
288
|
-
},
|
|
289
|
-
"close-icon":
|
|
290
|
-
class: `ik-base-dialog ${
|
|
291
|
-
fullscreen:
|
|
276
|
+
}, a.$attrs, {
|
|
277
|
+
"close-icon": w(l),
|
|
278
|
+
class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
|
|
279
|
+
fullscreen: t.value,
|
|
292
280
|
"modal-class": "baseDialog"
|
|
293
|
-
}),
|
|
281
|
+
}), D({
|
|
294
282
|
icon: v(() => [
|
|
295
|
-
f(
|
|
296
|
-
|
|
297
|
-
|
|
283
|
+
f(a.$slots, "title", {}, () => [
|
|
284
|
+
k(
|
|
285
|
+
b(a.title),
|
|
298
286
|
1
|
|
299
287
|
/* TEXT */
|
|
300
288
|
)
|
|
301
289
|
])
|
|
302
290
|
]),
|
|
303
291
|
header: v(() => [
|
|
304
|
-
g("div",
|
|
305
|
-
f(
|
|
306
|
-
|
|
307
|
-
|
|
292
|
+
g("div", U, [
|
|
293
|
+
f(a.$slots, "header", {}, () => [
|
|
294
|
+
k(
|
|
295
|
+
b(a.title),
|
|
308
296
|
1
|
|
309
297
|
/* TEXT */
|
|
310
298
|
)
|
|
311
299
|
])
|
|
312
300
|
]),
|
|
313
|
-
|
|
301
|
+
a.$attrs.showClose ? (o(), d(w(z), {
|
|
314
302
|
key: 0,
|
|
315
|
-
onClick:
|
|
316
|
-
name:
|
|
303
|
+
onClick: i,
|
|
304
|
+
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
317
305
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
318
|
-
title:
|
|
319
|
-
}, null, 8, ["name", "title"])) :
|
|
306
|
+
title: t.value ? "退出全屏" : "全屏"
|
|
307
|
+
}, null, 8, ["name", "title"])) : B("v-if", !0)
|
|
320
308
|
]),
|
|
321
309
|
default: v(() => [
|
|
322
|
-
f(
|
|
310
|
+
f(a.$slots, "default")
|
|
323
311
|
]),
|
|
324
312
|
_: 2
|
|
325
313
|
/* DYNAMIC */
|
|
326
314
|
}, [
|
|
327
|
-
|
|
315
|
+
a.$slots.footer ? {
|
|
328
316
|
name: "footer",
|
|
329
317
|
fn: v(() => [
|
|
330
|
-
f(
|
|
318
|
+
f(a.$slots, "footer")
|
|
331
319
|
]),
|
|
332
320
|
key: "0"
|
|
333
321
|
} : void 0
|
|
@@ -335,8 +323,8 @@ const A = /* @__PURE__ */ z(U, [["__scopeId", "data-v-79f49df8"]]), G = { class:
|
|
|
335
323
|
};
|
|
336
324
|
}
|
|
337
325
|
});
|
|
338
|
-
const
|
|
326
|
+
const K = I(A);
|
|
339
327
|
export {
|
|
340
|
-
|
|
341
|
-
|
|
328
|
+
K as IkBaseDialog,
|
|
329
|
+
K as default
|
|
342
330
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.index={},r.vue,r["iking-utils-pro"]))})(this,function(r,e,g){"use strict";const p=(n,s)=>{if(n.install=l=>{for(const t of[n,...Object.values(s??{})])l.component(t.name,t)},s)for(const[l,t]of Object.entries(s))n[l]=t;return n},
|
|
1
|
+
(function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.index={},r.vue,r["iking-utils-pro"]))})(this,function(r,e,g){"use strict";const p=(n,s)=>{if(n.install=l=>{for(const t of[n,...Object.values(s??{})])l.component(t.name,t)},s)for(const[l,t]of Object.entries(s))n[l]=t;return n},d=(n,s)=>{const l=n.__vccOpts||n;for(const[t,i]of s)l[t]=i;return l},y={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},k={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},h=["xlink:href"],_=["src"],B={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},v=["xlink:href"],w=["src"],b=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(n){const s=n,l=e.computed(()=>s),t=e.computed(()=>{const{name:o}=l.value;return/^http?:\/\//.test(o)?"img":/i-[^:]+:[^:]+/.test(o)?"unocss":o!=null&&o.startsWith("iksig")?"iksig":o!=null&&o.includes(":")?"iconify":o!=null&&o.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const o=[];if(l.value.flip)switch(l.value.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}l.value.rotate&&o.push(`rotate(${l.value.rotate%360}deg)`);const a={pointerEvents:l.value.disabled?"none":"auto",...l.value.color&&{color:l.value.color},...l.value.size&&{fontSize:typeof l.value.size=="number"?`${l.value.size}px`:l.value.size},...o.length&&{transform:o.join(" ")},padding:l.value.showBg||l.value.bg?l.value.padding:0,...l.value.color&&t.value!=="iksig"?{"--ik-color-icon-dark":l.value.color,"--ik-color-icon-light":l.value.colorLight||g.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(a.width=a.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),a});return(o,a)=>{const c=e.resolveComponent("el-tooltip"),u=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock("span",y,[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:t.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:l.value.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active,disabled:l.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(i.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,h)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,_)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(c,{key:1,content:l.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:t.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:o.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active}]),style:e.normalizeStyle(i.value)},[t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(i.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",B,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,v)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,w)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(u,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),x="",f=p(d(b,[["__scopeId","data-v-52806adf"]])),C=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(n){return(s,l)=>(e.openBlock(),e.createBlock(e.unref(f),{error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))}}),V="",z=d(C,[["__scopeId","data-v-e27fb022"]]),I={class:"base-header"},S=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const s=n,l=e.useModel(n,"modelValue"),t=e.ref(s.fullscreen),i=()=>{t.value=!t.value},o=e.defineComponent({setup(){return()=>e.h(z,{showBg:s.showCloseBg,fullscreen:s.fullscreen})}});return(a,c)=>{const u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=$=>l.value=$)},a.$attrs,{"close-icon":e.unref(o),class:`ik-base-dialog ${a.noHeader?"no-header":""} ${a.noFooter?"no-footer":""}`,fullscreen:t.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",I,[e.renderSlot(a.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),a.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(f),{key:0,onClick:i,name:t.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:t.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[a.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),T="",m=p(S);r.IkBaseDialog=m,r.default=m,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}.exit-main-page-maximize[data-v-e27fb022]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-color-bg-icon);border-radius:50%}.exit-main-page-maximize span[data-v-e27fb022]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-e27fb022]{--ik-color-icon-dark: var(--ik-color-bgicon-dark);--ik-color-icon-light: var(--ik-color-bgicon-light)}.el-dialog.ik-base-dialog.no-header .el-dialog__header{height:0}.el-dialog.ik-base-dialog.no-header .el-dialog__header .base-header{overflow:hidden;display:none}.el-dialog.ik-base-dialog.no-header .el-dialog__header:after{display:none}.el-dialog.ik-base-dialog.no-footer .el-dialog__footer{height:0;overflow:hidden}
|
|
@@ -88,6 +88,7 @@ const X = (l, y) => {
|
|
|
88
88
|
}
|
|
89
89
|
e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
90
90
|
const k = {
|
|
91
|
+
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
91
92
|
...e.value.color && { color: e.value.color },
|
|
92
93
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
93
94
|
...t.length && { transform: t.join(" ") },
|
|
@@ -233,7 +234,7 @@ const X = (l, y) => {
|
|
|
233
234
|
};
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
|
-
const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-
|
|
237
|
+
const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie), Q = {
|
|
237
238
|
animation: 200,
|
|
238
239
|
group: "gl",
|
|
239
240
|
disabled: !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue,k["iking-utils-pro"],k.vuedraggable))})(this,function(k,e,y,T){"use strict";const v=(a,g)=>{if(a.install=t=>{for(const c of[a,...Object.values(g??{})])t.component(c.name,c)},g)for(const[t,c]of Object.entries(g))a[t]=c;return a};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(a){return(g,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(a,g)=>{const t=a.__vccOpts||a;for(const[c,d]of g)t[c]=d;return t},O={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(a){const g=a,t=e.computed(()=>g),c=e.computed(()=>{const{name:l}=t.value;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"}),d=e.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const _={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&c.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(_.width=_.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),_});return(l,_)=>{const S=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(d.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(d.value)},[c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(w,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-a7ec508a"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(a,{emit:g}){const t=a,c=g,d=e.ref([]);e.watch(()=>t.list,p=>{d.value=y._.cloneDeep(p)},{immediate:!0,deep:!0});const l=e.computed(()=>({...E,...t,itemStyle:{...E.itemStyle,...t.itemStyle}})),_=e.ref(!1),S=()=>{_.value=!0},w=p=>{_.value=!1;const B=t.list[p.oldIndex];c("change",d.value,{...B,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,B)=>{const m=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:d.value,"onUpdate:modelValue":B[0]||(B[0]=s=>d.value=s),class:e.normalizeClass(["list-group",[l.value.groupClass]]),tag:"ul",attrs:l.value,animation:l.value.animation,group:l.value.group,disabled:l.value.disabled,"ghost-class":l.value.ghostClass,"force-fallback":l.value.ghostClass,"item-key":"order",onStart:S,onEnd:w},{item:e.withCtx(({element:s})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:s},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[l.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${l.value.itemStyle.radius}px`,marginBottom:`${l.value.itemStyle.bottom}px`,backgroundColor:`${l.value.itemStyle.background}`})},[l.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(m,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(s.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(a=>(e.pushScopeId("data-v-b5ed17ed"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:a=>a,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(a,{emit:g}){const t=a,c=g,d=e.useModel(a,"modelValue"),{t:l,dialog:_,path:S,user:w}=t.config,p=e.computed(()=>`${w==null?void 0:w.id}_${S}${t.tab!==""?`_${t.tab}`:""}`),B=e.ref([]),m=e.ref([]),s=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const i=m.value.length&&m.value.length!==t.list.length;return!i&&m.value.length&&(I.value=!0),!!i}),N=i=>{var r;const o=y._.cloneDeep(s.value);o==null||o.forEach(n=>{var b;if(!m.value.length)s.value=[];else if(!m.value.includes(n==null?void 0:n.key)){const h=(b=s.value)==null?void 0:b.findIndex(u=>u.key===n.key);h!==-1&&s.value.splice(h,1),n.show=!1,V.set(n.key,n)}}),m.value.forEach(n=>{var h;if(((h=s.value)==null?void 0:h.findIndex(u=>(u==null?void 0:u.key)===n))===-1){const u=V.get(n);u&&(u.show=!0,s.value.push(u))}}),(r=s.value)!=null&&r.length||(s.value=y._.cloneDeep(t.list)),i===!0&&(c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value))},ee=i=>{if(i)m.value=t.list.map(o=>o.key);else{const o=t.list.find(r=>!r.key||r.label==="操作");m.value=o?[o.key]:[]}N()},z=()=>{const i=y.ikStore.local.getItem(p.value);try{const o=y._.cloneDeep(t==null?void 0:t.list);if((!i||!(i!=null&&i.length))&&y.ikStore.local.setItem(p.value,o.map(({show:r,type:n,key:b,label:h,width:u,minWidth:f,align:ae})=>({show:r,key:b,type:n,label:h,width:u,minWidth:f,align:ae}))),B.value=[...(o==null?void 0:o.map(r=>(V.set(r.key,r),{...r,show:r.show||!1})))||[]],i){const r=i.filter(n=>n.show).map(n=>n.key);m.value=[...r]}else{const r=B.value.filter(n=>n.show);m.value=r.map(n=>n.key)}N(!0)}catch(o){console.info("error: ",o)}};z(),e.watch(()=>t.list,()=>{z()},{deep:!0});const C=e.ref(!1),D=()=>{C.value=!0},te=i=>{s.value=i},le=()=>{C.value=!1,y.ikStore.local.setItem(p.value,s.value.map(({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u})=>({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u}))),c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value)};return(i,o)=>{const r=e.resolveComponent("el-button"),n=e.resolveComponent("el-checkbox"),b=e.resolveComponent("el-checkbox-group"),h=e.resolveComponent("el-dialog"),u=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[a.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(r,e.mergeProps({key:0},i.$attrs,{circle:a.circle,type:a.type,style:{minWidth:a.circle?"40px":"",minHeight:a.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[a.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),a.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},i.$attrs,{onClick:D}),null,16)),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":o[3]||(o[3]=f=>C.value=f),draggable:"",width:a.inline?e.unref(_).l:e.unref(_).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(r,{onClick:o[2]||(o[2]=f=>C.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(r,{type:"primary",disabled:s.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.length<2?"至少选择一个字段":e.unref(l)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[a.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:a.inline?2:1})},[e.createVNode(n,{modelValue:I.value,"onUpdate:modelValue":o[0]||(o[0]=f=>I.value=f),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":o[1]||(o[1]=f=>m.value=f),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,f=>(e.openBlock(),e.createBlock(n,{key:f.key,disabled:!f.key,label:f.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:s.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));k.IkBtnSetting=$,k.default=$,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue,k["iking-utils-pro"],k.vuedraggable))})(this,function(k,e,y,T){"use strict";const v=(a,g)=>{if(a.install=t=>{for(const c of[a,...Object.values(g??{})])t.component(c.name,c)},g)for(const[t,c]of Object.entries(g))a[t]=c;return a};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(a){return(g,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(a,g)=>{const t=a.__vccOpts||a;for(const[c,d]of g)t[c]=d;return t},O={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(a){const g=a,t=e.computed(()=>g),c=e.computed(()=>{const{name:l}=t.value;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"}),d=e.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const _={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&c.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(_.width=_.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),_});return(l,_)=>{const S=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(d.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(d.value)},[c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(w,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-52806adf"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(a,{emit:g}){const t=a,c=g,d=e.ref([]);e.watch(()=>t.list,p=>{d.value=y._.cloneDeep(p)},{immediate:!0,deep:!0});const l=e.computed(()=>({...E,...t,itemStyle:{...E.itemStyle,...t.itemStyle}})),_=e.ref(!1),S=()=>{_.value=!0},w=p=>{_.value=!1;const B=t.list[p.oldIndex];c("change",d.value,{...B,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,B)=>{const m=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:d.value,"onUpdate:modelValue":B[0]||(B[0]=s=>d.value=s),class:e.normalizeClass(["list-group",[l.value.groupClass]]),tag:"ul",attrs:l.value,animation:l.value.animation,group:l.value.group,disabled:l.value.disabled,"ghost-class":l.value.ghostClass,"force-fallback":l.value.ghostClass,"item-key":"order",onStart:S,onEnd:w},{item:e.withCtx(({element:s})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:s},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[l.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${l.value.itemStyle.radius}px`,marginBottom:`${l.value.itemStyle.bottom}px`,backgroundColor:`${l.value.itemStyle.background}`})},[l.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(m,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(s.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(a=>(e.pushScopeId("data-v-b5ed17ed"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:a=>a,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(a,{emit:g}){const t=a,c=g,d=e.useModel(a,"modelValue"),{t:l,dialog:_,path:S,user:w}=t.config,p=e.computed(()=>`${w==null?void 0:w.id}_${S}${t.tab!==""?`_${t.tab}`:""}`),B=e.ref([]),m=e.ref([]),s=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const i=m.value.length&&m.value.length!==t.list.length;return!i&&m.value.length&&(I.value=!0),!!i}),N=i=>{var r;const o=y._.cloneDeep(s.value);o==null||o.forEach(n=>{var b;if(!m.value.length)s.value=[];else if(!m.value.includes(n==null?void 0:n.key)){const h=(b=s.value)==null?void 0:b.findIndex(u=>u.key===n.key);h!==-1&&s.value.splice(h,1),n.show=!1,V.set(n.key,n)}}),m.value.forEach(n=>{var h;if(((h=s.value)==null?void 0:h.findIndex(u=>(u==null?void 0:u.key)===n))===-1){const u=V.get(n);u&&(u.show=!0,s.value.push(u))}}),(r=s.value)!=null&&r.length||(s.value=y._.cloneDeep(t.list)),i===!0&&(c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value))},ee=i=>{if(i)m.value=t.list.map(o=>o.key);else{const o=t.list.find(r=>!r.key||r.label==="操作");m.value=o?[o.key]:[]}N()},z=()=>{const i=y.ikStore.local.getItem(p.value);try{const o=y._.cloneDeep(t==null?void 0:t.list);if((!i||!(i!=null&&i.length))&&y.ikStore.local.setItem(p.value,o.map(({show:r,type:n,key:b,label:h,width:u,minWidth:f,align:ae})=>({show:r,key:b,type:n,label:h,width:u,minWidth:f,align:ae}))),B.value=[...(o==null?void 0:o.map(r=>(V.set(r.key,r),{...r,show:r.show||!1})))||[]],i){const r=i.filter(n=>n.show).map(n=>n.key);m.value=[...r]}else{const r=B.value.filter(n=>n.show);m.value=r.map(n=>n.key)}N(!0)}catch(o){console.info("error: ",o)}};z(),e.watch(()=>t.list,()=>{z()},{deep:!0});const C=e.ref(!1),D=()=>{C.value=!0},te=i=>{s.value=i},le=()=>{C.value=!1,y.ikStore.local.setItem(p.value,s.value.map(({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u})=>({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u}))),c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value)};return(i,o)=>{const r=e.resolveComponent("el-button"),n=e.resolveComponent("el-checkbox"),b=e.resolveComponent("el-checkbox-group"),h=e.resolveComponent("el-dialog"),u=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[a.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(r,e.mergeProps({key:0},i.$attrs,{circle:a.circle,type:a.type,style:{minWidth:a.circle?"40px":"",minHeight:a.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[a.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),a.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},i.$attrs,{onClick:D}),null,16)),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":o[3]||(o[3]=f=>C.value=f),draggable:"",width:a.inline?e.unref(_).l:e.unref(_).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(r,{onClick:o[2]||(o[2]=f=>C.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(r,{type:"primary",disabled:s.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.length<2?"至少选择一个字段":e.unref(l)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[a.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:a.inline?2:1})},[e.createVNode(n,{modelValue:I.value,"onUpdate:modelValue":o[0]||(o[0]=f=>I.value=f),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":o[1]||(o[1]=f=>m.value=f),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,f=>(e.openBlock(),e.createBlock(n,{key:f.key,disabled:!f.key,label:f.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:s.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));k.IkBtnSetting=$,k.default=$,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}.ghost[data-v-3716c05e]{opacity:.9;background:var(--el-color-primary)!important;color:var(--el-color-white)}.list-group[data-v-3716c05e]{height:100%;width:100%;color:var(--el-text-color-regular);transition:all .25s}.list-group-item[data-v-3716c05e]{cursor:move;border-radius:4px;background:var(--el-color-primary-light-9);margin-bottom:var(--base-m);padding:var(--base-p);-webkit-user-select:none;user-select:none;display:flex;align-items:center}.list-group-item[data-v-3716c05e]:hover{background:var(--el-color-primary-light-7)!important}.list-group-item i[data-v-3716c05e]{margin-right:calc(var(--base-m) / 2);cursor:pointer}.view-fields.un-inline .el-checkbox[data-v-b5ed17ed]{width:100%;background:var(--ik-sub-sidebar-menu-bg);margin:2px 0;padding:8px;border-radius:4px;height:37px}.view-fields[data-v-b5ed17ed]{display:flex;justify-content:space-between;max-height:55vh;overflow-y:auto;overflow-x:hidden}.view-fields .check-right[data-v-b5ed17ed]{margin-top:37px}.view-fields .single-line[data-v-b5ed17ed]{background-color:transparent!important}.view-fields>div[data-v-b5ed17ed]:nth-child(1){padding-right:8px;flex:2;border-right:1px solid var(--el-border-color)}.view-fields>div[data-v-b5ed17ed]:nth-child(2){flex:1;margin-left:8px}.view-fields>div:nth-child(2) .field-sort[data-v-b5ed17ed]{cursor:move;padding:calc(var(--base-p) / 2);color:var(--el-text-color-regular)}.view-fields .el-checkbox[data-v-b5ed17ed]{width:195px;margin-right:0}
|
|
@@ -24,7 +24,7 @@ const w = (s, o) => {
|
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "h-[1em] w-[1em]",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
27
|
+
}, E = ["xlink:href"], M = ["src"], L = /* @__PURE__ */ _({
|
|
28
28
|
name: "IkSvgIcon",
|
|
29
29
|
__name: "index",
|
|
30
30
|
props: {
|
|
@@ -70,6 +70,7 @@ const w = (s, o) => {
|
|
|
70
70
|
}
|
|
71
71
|
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
72
72
|
const r = {
|
|
73
|
+
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
73
74
|
...e.value.color && { color: e.value.color },
|
|
74
75
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
75
76
|
...l.length && { transform: l.join(" ") },
|
|
@@ -174,12 +175,12 @@ const w = (s, o) => {
|
|
|
174
175
|
)) : t.value === "svg" ? (a(), i("svg", O, [
|
|
175
176
|
v("use", {
|
|
176
177
|
"xlink:href": `#${e.value.name}`
|
|
177
|
-
}, null, 8,
|
|
178
|
+
}, null, 8, E)
|
|
178
179
|
])) : t.value === "img" ? (a(), i("img", {
|
|
179
180
|
key: 2,
|
|
180
181
|
src: e.value.name,
|
|
181
182
|
class: "h-[1em] w-[1em]"
|
|
182
|
-
}, null, 8,
|
|
183
|
+
}, null, 8, M)) : (a(), i(
|
|
183
184
|
"i",
|
|
184
185
|
{
|
|
185
186
|
key: 3,
|
|
@@ -215,7 +216,7 @@ const w = (s, o) => {
|
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
218
|
});
|
|
218
|
-
const W = /* @__PURE__ */ B(L, [["__scopeId", "data-v-
|
|
219
|
+
const W = /* @__PURE__ */ B(L, [["__scopeId", "data-v-52806adf"]]), X = w(W), Y = { class: "align-center flex justify-between" }, q = { class: "align-center flex" }, D = { style: { overflow: "hidden" } }, A = /* @__PURE__ */ _({
|
|
219
220
|
__name: "index",
|
|
220
221
|
props: /* @__PURE__ */ z({
|
|
221
222
|
showToggle: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,m){"use strict";const c=(n,a)=>{if(n.install=l=>{for(const o of[n,...Object.values(a??{})])l.component(o.name,o)},a)for(const[l,o]of Object.entries(a))n[l]=o;return n},d=(n,a)=>{const l=n.__vccOpts||n;for(const[o,s]of a)l[o]=s;return l},f={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},g=["xlink:href"],k=["src"],h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],v=["src"],B=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(n){const a=n,l=e.computed(()=>a),o=e.computed(()=>{const{name:t}=l.value;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"}),s=e.computed(()=>{const t=[];if(l.value.flip)switch(l.value.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}l.value.rotate&&t.push(`rotate(${l.value.rotate%360}deg)`);const r={
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,m){"use strict";const c=(n,a)=>{if(n.install=l=>{for(const o of[n,...Object.values(a??{})])l.component(o.name,o)},a)for(const[l,o]of Object.entries(a))n[l]=o;return n},d=(n,a)=>{const l=n.__vccOpts||n;for(const[o,s]of a)l[o]=s;return l},f={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},g=["xlink:href"],k=["src"],h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],v=["src"],B=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(n){const a=n,l=e.computed(()=>a),o=e.computed(()=>{const{name:t}=l.value;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"}),s=e.computed(()=>{const t=[];if(l.value.flip)switch(l.value.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}l.value.rotate&&t.push(`rotate(${l.value.rotate%360}deg)`);const r={pointerEvents:l.value.disabled?"none":"auto",...l.value.color&&{color:l.value.color},...l.value.size&&{fontSize:typeof l.value.size=="number"?`${l.value.size}px`:l.value.size},...t.length&&{transform:t.join(" ")},padding:l.value.showBg||l.value.bg?l.value.padding:0,...l.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":l.value.color,"--ik-color-icon-light":l.value.colorLight||m.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(r.width=r.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),r});return(t,r)=>{const p=e.resolveComponent("el-tooltip"),S=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock("span",f,[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:l.value.primary||l.value.type==="primary",success:t.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active,disabled:l.value.disabled}]),style:e.normalizeStyle(s.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(s.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",y,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,g)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,k)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(s.value)},null,6))],6)):(e.openBlock(),e.createBlock(p,{key:1,content:l.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:t.primary||l.value.type==="primary",success:t.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active}]),style:e.normalizeStyle(s.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(s.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,_)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,v)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(s.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(S,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),E="",b=c(d(B,[["__scopeId","data-v-52806adf"]])),w={class:"align-center flex justify-between"},C={class:"align-center flex"},z={style:{overflow:"hidden"}},x=e.defineComponent({__name:"index",props:e.mergeModels({showToggle:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const a=e.useModel(n,"modelValue"),l=()=>{a.value=!a.value};return(o,s)=>{const t=e.resolveComponent("el-button"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:e.normalizeClass(["ik-collapse-box-card",a.value?"hiddened":""]),shadow:"hover"},{header:e.withCtx(()=>[e.createElementVNode("div",w,[e.createCommentVNode(" card header左侧内容 "),e.renderSlot(o.$slots,"header-leaft",{},void 0,!0),e.createElementVNode("div",C,[e.createCommentVNode(" card header右侧内容 "),e.renderSlot(o.$slots,"header-right",{},void 0,!0),e.createCommentVNode(" 展开、收起按钮 "),n.showToggle?(e.openBlock(),e.createBlock(t,{key:0,link:"",class:"ml-[8px]",onClick:s[0]||(s[0]=p=>l())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value?"展开":"收起")+" ",1),e.createVNode(e.unref(b),{name:"iksvg_shouqi",size:16,class:e.normalizeClass(a.value?"toogle":null)},null,8,["class"])]),_:1})):e.createCommentVNode("v-if",!0)])])]),default:e.withCtx(()=>[e.createElementVNode("div",z,[e.renderSlot(o.$slots,"default",{},void 0,!0)])]),_:3},8,["class"])}}}),I="",u=c(d(x,[["__scopeId","data-v-eab56bfd"]]));i.IkCollapseCard=u,i.default=u,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}.ik-collapse-box-card[data-v-eab56bfd]{flex:1;margin-bottom:20px;--el-card-border-radius: 0}.ik-collapse-box-card[data-v-eab56bfd] .el-card__header{padding-right:0;color:var(--el-text-color-regular);background-color:var(--el-bg-color-page);border-bottom:none}.ik-collapse-box-card[data-v-eab56bfd] .el-card__header .el-button.is-link:hover{--ik-color-icon-dark: var(--ik-color-tag-primary);--ik-color-icon-light: var(--ik-color-icon-light-hover)}.ik-collapse-box-card[data-v-eab56bfd] .ik-svg-icon{transition:all .25s}.ik-collapse-box-card[data-v-eab56bfd] .ik-svg-icon.toogle{transform:rotate(-90deg)}.ik-collapse-box-card.hiddened[data-v-eab56bfd] .el-card__body{grid-template-rows:0fr;padding-top:0!important;padding-bottom:0!important;overflow:hidden;opacity:0}.ik-collapse-box-card[data-v-eab56bfd] .el-card__body{display:grid;grid-template-rows:1fr;padding:0;overflow:hidden!important;opacity:1;transition:all .25s ease}.ik-collapse-box-card[data-v-eab56bfd] .el-card__body table>tbody>tr>td>.cell .cell-icon{font-size:14px}.ik-collapse-box-card[data-v-eab56bfd] .el-card__body table>tbody>tr>td>.cell .el-button span{margin-left:3px}
|