iking-web-ui-pro 0.2.22 → 0.2.25
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 +77 -82
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +727 -745
- package/dist/IKPreviewFile/ik.index.umd.js +46 -46
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +41 -33
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +167 -159
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +112 -130
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +237 -242
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +73 -65
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +78 -83
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +902 -920
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +135 -140
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +378 -383
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1305 -1302
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +41 -33
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2955 -2960
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +106 -111
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +69 -74
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +761 -779
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +218 -223
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +7089 -7099
- package/dist/index.umd.js +89 -89
- package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
5
|
-
for (const
|
|
6
|
-
|
|
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
|
+
if (s.install = (e) => {
|
|
5
|
+
for (const t of [s, ...Object.values(n ?? {})])
|
|
6
|
+
e.component(t.name, t);
|
|
7
7
|
}, n)
|
|
8
|
-
for (const [
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
const
|
|
13
|
-
for (const [
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
},
|
|
8
|
+
for (const [e, t] of Object.entries(n))
|
|
9
|
+
s[e] = t;
|
|
10
|
+
return s;
|
|
11
|
+
}, $ = (s, n) => {
|
|
12
|
+
const e = s.__vccOpts || s;
|
|
13
|
+
for (const [t, i] of n)
|
|
14
|
+
e[t] = i;
|
|
15
|
+
return e;
|
|
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: {
|
|
@@ -50,12 +50,11 @@ const C = (a, n) => {
|
|
|
50
50
|
warning: { type: Boolean },
|
|
51
51
|
width: {}
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const i = a, e = _(() => i), o = _(() => {
|
|
53
|
+
setup(s) {
|
|
54
|
+
const n = s, e = h(() => n), t = h(() => {
|
|
56
55
|
const { name: l } = e.value;
|
|
57
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";
|
|
58
|
-
}),
|
|
57
|
+
}), i = h(() => {
|
|
59
58
|
const l = [];
|
|
60
59
|
if (e.value.flip)
|
|
61
60
|
switch (e.value.flip) {
|
|
@@ -70,30 +69,28 @@ const C = (a, n) => {
|
|
|
70
69
|
break;
|
|
71
70
|
}
|
|
72
71
|
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
73
|
-
const
|
|
72
|
+
const a = {
|
|
73
|
+
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
74
74
|
...e.value.color && { color: e.value.color },
|
|
75
75
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
76
76
|
...l.length && { transform: l.join(" ") },
|
|
77
77
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
78
|
-
...e.value.color &&
|
|
78
|
+
...e.value.color && t.value !== "iksig" ? {
|
|
79
79
|
"--ik-color-icon-dark": e.value.color,
|
|
80
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
80
|
+
"--ik-color-icon-light": e.value.colorLight || F.setOpacity(e.value.color, e.value.opacity)
|
|
81
81
|
} : {}
|
|
82
82
|
};
|
|
83
|
-
return e.value.width && (
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), u("span", q, [
|
|
90
|
-
e.value.notip || !e.value.title ? (t(), u(
|
|
83
|
+
return e.value.width && (a.width = a.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), a;
|
|
84
|
+
});
|
|
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(
|
|
91
89
|
"i",
|
|
92
90
|
{
|
|
93
91
|
key: 0,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
[l.name]: o.value === "unocss",
|
|
92
|
+
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
93
|
+
[l.name]: t.value === "unocss",
|
|
97
94
|
"show-bg": e.value.showBg || e.value.bg,
|
|
98
95
|
default: e.value.size === "default",
|
|
99
96
|
small: e.value.size === "small",
|
|
@@ -105,34 +102,34 @@ const C = (a, n) => {
|
|
|
105
102
|
active: e.value.active,
|
|
106
103
|
disabled: e.value.disabled
|
|
107
104
|
}]),
|
|
108
|
-
style:
|
|
105
|
+
style: c(i.value)
|
|
109
106
|
},
|
|
110
107
|
[
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
109
|
+
t.value === "iksig" ? (o(), u(
|
|
113
110
|
"i",
|
|
114
111
|
{
|
|
115
112
|
key: 0,
|
|
116
|
-
class:
|
|
117
|
-
style:
|
|
113
|
+
class: r(`iksig ${e.value.name}`),
|
|
114
|
+
style: c(i.value)
|
|
118
115
|
},
|
|
119
116
|
null,
|
|
120
117
|
6
|
|
121
118
|
/* CLASS, STYLE */
|
|
122
|
-
)) :
|
|
123
|
-
|
|
119
|
+
)) : t.value === "svg" ? (o(), u("svg", E, [
|
|
120
|
+
g("use", {
|
|
124
121
|
"xlink:href": `#${e.value.name}`
|
|
125
|
-
}, null, 8,
|
|
126
|
-
])) :
|
|
122
|
+
}, null, 8, H)
|
|
123
|
+
])) : t.value === "img" ? (o(), u("img", {
|
|
127
124
|
key: 2,
|
|
128
125
|
src: e.value.name,
|
|
129
126
|
class: "h-[1em] w-[1em]"
|
|
130
|
-
}, null, 8,
|
|
127
|
+
}, null, 8, M)) : (o(), u(
|
|
131
128
|
"i",
|
|
132
129
|
{
|
|
133
130
|
key: 3,
|
|
134
|
-
class:
|
|
135
|
-
style:
|
|
131
|
+
class: r(e.value.name),
|
|
132
|
+
style: c(i.value)
|
|
136
133
|
},
|
|
137
134
|
null,
|
|
138
135
|
6
|
|
@@ -141,17 +138,17 @@ const C = (a, n) => {
|
|
|
141
138
|
],
|
|
142
139
|
6
|
|
143
140
|
/* CLASS, STYLE */
|
|
144
|
-
)) : (
|
|
141
|
+
)) : (o(), d(p, {
|
|
145
142
|
key: 1,
|
|
146
143
|
content: e.value.title,
|
|
147
144
|
placement: "top"
|
|
148
145
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
146
|
+
default: v(() => [
|
|
147
|
+
g(
|
|
151
148
|
"i",
|
|
152
149
|
{
|
|
153
|
-
class:
|
|
154
|
-
[l.name]:
|
|
150
|
+
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
151
|
+
[l.name]: t.value === "unocss",
|
|
155
152
|
"show-bg": e.value.showBg || e.value.bg,
|
|
156
153
|
default: e.value.size === "default",
|
|
157
154
|
small: e.value.size === "small",
|
|
@@ -162,34 +159,33 @@ const C = (a, n) => {
|
|
|
162
159
|
error: e.value.error || e.value.type === "error",
|
|
163
160
|
active: e.value.active
|
|
164
161
|
}]),
|
|
165
|
-
|
|
166
|
-
style: p(r.value)
|
|
162
|
+
style: c(i.value)
|
|
167
163
|
},
|
|
168
164
|
[
|
|
169
|
-
|
|
165
|
+
t.value === "iksig" ? (o(), u(
|
|
170
166
|
"i",
|
|
171
167
|
{
|
|
172
168
|
key: 0,
|
|
173
|
-
class:
|
|
174
|
-
style:
|
|
169
|
+
class: r(`iksig ${e.value.name}`),
|
|
170
|
+
style: c(i.value)
|
|
175
171
|
},
|
|
176
172
|
null,
|
|
177
173
|
6
|
|
178
174
|
/* CLASS, STYLE */
|
|
179
|
-
)) :
|
|
180
|
-
|
|
175
|
+
)) : t.value === "svg" ? (o(), u("svg", N, [
|
|
176
|
+
g("use", {
|
|
181
177
|
"xlink:href": `#${e.value.name}`
|
|
182
|
-
}, null, 8,
|
|
183
|
-
])) :
|
|
178
|
+
}, null, 8, q)
|
|
179
|
+
])) : t.value === "img" ? (o(), u("img", {
|
|
184
180
|
key: 2,
|
|
185
181
|
src: e.value.name,
|
|
186
182
|
class: "h-[1em] w-[1em]"
|
|
187
|
-
}, null, 8,
|
|
183
|
+
}, null, 8, L)) : (o(), u(
|
|
188
184
|
"i",
|
|
189
185
|
{
|
|
190
186
|
key: 3,
|
|
191
|
-
class:
|
|
192
|
-
style:
|
|
187
|
+
class: r(e.value.name),
|
|
188
|
+
style: c(i.value)
|
|
193
189
|
},
|
|
194
190
|
null,
|
|
195
191
|
6
|
|
@@ -203,14 +199,13 @@ const C = (a, n) => {
|
|
|
203
199
|
_: 1
|
|
204
200
|
/* STABLE */
|
|
205
201
|
}, 8, ["content"]))
|
|
206
|
-
])) : (
|
|
202
|
+
])) : (o(), d(y, {
|
|
207
203
|
key: 1,
|
|
208
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
209
|
-
onClick: b(c, ["stop"])
|
|
204
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
210
205
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
|
|
213
|
-
|
|
206
|
+
default: v(() => [
|
|
207
|
+
k(
|
|
208
|
+
b(e.value.title),
|
|
214
209
|
1
|
|
215
210
|
/* TEXT */
|
|
216
211
|
)
|
|
@@ -221,10 +216,7 @@ const C = (a, n) => {
|
|
|
221
216
|
};
|
|
222
217
|
}
|
|
223
218
|
});
|
|
224
|
-
const
|
|
225
|
-
key: 0,
|
|
226
|
-
class: "exit-main-page-maximize"
|
|
227
|
-
}, J = /* @__PURE__ */ h({
|
|
219
|
+
const X = /* @__PURE__ */ $(W, [["__scopeId", "data-v-52806adf"]]), z = I(X), Y = /* @__PURE__ */ m({
|
|
228
220
|
__name: "CloseIcon",
|
|
229
221
|
props: {
|
|
230
222
|
showBg: {
|
|
@@ -236,28 +228,18 @@ const A = /* @__PURE__ */ x(U, [["__scopeId", "data-v-4a1004b9"]]), $ = C(A), G
|
|
|
236
228
|
default: !1
|
|
237
229
|
}
|
|
238
230
|
},
|
|
239
|
-
setup(
|
|
240
|
-
return (n,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
error: ""
|
|
247
|
-
})
|
|
248
|
-
])) : (t(), g(k($), {
|
|
249
|
-
key: 1,
|
|
250
|
-
error: "",
|
|
251
|
-
name: "iksvg_guanbidanchuang",
|
|
252
|
-
title: "关闭",
|
|
253
|
-
size: 20
|
|
254
|
-
}))
|
|
255
|
-
]));
|
|
231
|
+
setup(s) {
|
|
232
|
+
return (n, e) => (o(), d(w(z), {
|
|
233
|
+
error: "",
|
|
234
|
+
name: "iksvg_guanbidanchuang",
|
|
235
|
+
title: "关闭",
|
|
236
|
+
size: 20
|
|
237
|
+
}));
|
|
256
238
|
}
|
|
257
239
|
});
|
|
258
|
-
const
|
|
240
|
+
const P = /* @__PURE__ */ $(Y, [["__scopeId", "data-v-e27fb022"]]), U = { class: "base-header" }, A = /* @__PURE__ */ m({
|
|
259
241
|
__name: "IkBaseDialog",
|
|
260
|
-
props: /* @__PURE__ */
|
|
242
|
+
props: /* @__PURE__ */ x({
|
|
261
243
|
title: { default: "" },
|
|
262
244
|
cancelText: { default: "取消" },
|
|
263
245
|
confirmText: { default: "确认" },
|
|
@@ -275,65 +257,65 @@ const K = /* @__PURE__ */ x(J, [["__scopeId", "data-v-79f49df8"]]), Q = { class:
|
|
|
275
257
|
modelModifiers: {}
|
|
276
258
|
}),
|
|
277
259
|
emits: ["update:modelValue"],
|
|
278
|
-
setup(
|
|
279
|
-
const n =
|
|
280
|
-
|
|
281
|
-
},
|
|
260
|
+
setup(s) {
|
|
261
|
+
const n = s, e = S(s, "modelValue"), t = V(n.fullscreen), i = () => {
|
|
262
|
+
t.value = !t.value;
|
|
263
|
+
}, l = m({
|
|
282
264
|
setup() {
|
|
283
|
-
return () =>
|
|
265
|
+
return () => T(P, {
|
|
284
266
|
showBg: n.showCloseBg,
|
|
285
267
|
fullscreen: n.fullscreen
|
|
286
268
|
});
|
|
287
269
|
}
|
|
288
270
|
});
|
|
289
|
-
return (
|
|
290
|
-
const
|
|
291
|
-
return
|
|
292
|
-
modelValue:
|
|
293
|
-
"onUpdate:modelValue":
|
|
294
|
-
},
|
|
295
|
-
"close-icon":
|
|
296
|
-
class: `ik-base-dialog ${
|
|
297
|
-
fullscreen:
|
|
271
|
+
return (a, p) => {
|
|
272
|
+
const y = _("el-dialog");
|
|
273
|
+
return o(), d(y, j({
|
|
274
|
+
modelValue: e.value,
|
|
275
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => e.value = C)
|
|
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,
|
|
298
280
|
"modal-class": "baseDialog"
|
|
299
|
-
}),
|
|
300
|
-
icon:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
281
|
+
}), D({
|
|
282
|
+
icon: v(() => [
|
|
283
|
+
f(a.$slots, "title", {}, () => [
|
|
284
|
+
k(
|
|
285
|
+
b(a.title),
|
|
304
286
|
1
|
|
305
287
|
/* TEXT */
|
|
306
288
|
)
|
|
307
289
|
])
|
|
308
290
|
]),
|
|
309
|
-
header:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
291
|
+
header: v(() => [
|
|
292
|
+
g("div", U, [
|
|
293
|
+
f(a.$slots, "header", {}, () => [
|
|
294
|
+
k(
|
|
295
|
+
b(a.title),
|
|
314
296
|
1
|
|
315
297
|
/* TEXT */
|
|
316
298
|
)
|
|
317
299
|
])
|
|
318
300
|
]),
|
|
319
|
-
|
|
301
|
+
a.$attrs.showClose ? (o(), d(w(z), {
|
|
320
302
|
key: 0,
|
|
321
|
-
onClick:
|
|
322
|
-
name:
|
|
303
|
+
onClick: i,
|
|
304
|
+
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
323
305
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
324
|
-
title:
|
|
325
|
-
}, null, 8, ["name", "title"])) :
|
|
306
|
+
title: t.value ? "退出全屏" : "全屏"
|
|
307
|
+
}, null, 8, ["name", "title"])) : B("v-if", !0)
|
|
326
308
|
]),
|
|
327
|
-
default:
|
|
328
|
-
|
|
309
|
+
default: v(() => [
|
|
310
|
+
f(a.$slots, "default")
|
|
329
311
|
]),
|
|
330
312
|
_: 2
|
|
331
313
|
/* DYNAMIC */
|
|
332
314
|
}, [
|
|
333
|
-
|
|
315
|
+
a.$slots.footer ? {
|
|
334
316
|
name: "footer",
|
|
335
|
-
fn:
|
|
336
|
-
|
|
317
|
+
fn: v(() => [
|
|
318
|
+
f(a.$slots, "footer")
|
|
337
319
|
]),
|
|
338
320
|
key: "0"
|
|
339
321
|
} : void 0
|
|
@@ -341,8 +323,8 @@ const K = /* @__PURE__ */ x(J, [["__scopeId", "data-v-79f49df8"]]), Q = { class:
|
|
|
341
323
|
};
|
|
342
324
|
}
|
|
343
325
|
});
|
|
344
|
-
const
|
|
326
|
+
const K = I(A);
|
|
345
327
|
export {
|
|
346
|
-
|
|
347
|
-
|
|
328
|
+
K as IkBaseDialog,
|
|
329
|
+
K as default
|
|
348
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,
|
|
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}
|