iking-web-ui-pro 0.2.5 → 0.2.6
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/IKDetailPreviewFiles/ik.index.es.js +409 -406
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +358 -355
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +357 -354
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +530 -526
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +269 -266
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +50 -46
- package/dist/Provider/ik.index.umd.js +5 -5
- package/dist/index.es.js +7052 -7044
- package/dist/index.umd.js +36 -36
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, inject as q, computed as _, resolveComponent as S, openBlock as s, createElementBlock as u, normalizeClass as d, normalizeStyle as f, createCommentVNode as k, createElementVNode as h, createBlock as w, withCtx as j, createTextVNode as E, toDisplayString as b, Fragment as F, renderList as N, unref as O } from "vue";
|
|
2
2
|
import { ikColor as W } from "iking-utils-pro";
|
|
3
|
-
const
|
|
3
|
+
const K = (o, p) => {
|
|
4
4
|
if (o.install = (n) => {
|
|
5
|
-
for (const
|
|
6
|
-
n.component(
|
|
7
|
-
},
|
|
8
|
-
for (const [n,
|
|
9
|
-
o[n] =
|
|
5
|
+
for (const e of [o, ...Object.values(p ?? {})])
|
|
6
|
+
n.component(e.name, e);
|
|
7
|
+
}, p)
|
|
8
|
+
for (const [n, e] of Object.entries(p))
|
|
9
|
+
o[n] = e;
|
|
10
10
|
return o;
|
|
11
|
-
},
|
|
11
|
+
}, L = (o, p) => {
|
|
12
12
|
const n = o.__vccOpts || o;
|
|
13
|
-
for (const [
|
|
14
|
-
n[
|
|
13
|
+
for (const [e, a] of p)
|
|
14
|
+
n[e] = a;
|
|
15
15
|
return n;
|
|
16
16
|
}, X = {
|
|
17
17
|
key: 0,
|
|
@@ -24,7 +24,7 @@ const E = (o, t) => {
|
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "h-[1em] w-[1em]",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
}, H = ["xlink:href"], J = ["src"], M = /* @__PURE__ */
|
|
27
|
+
}, H = ["xlink:href"], J = ["src"], M = /* @__PURE__ */ T({
|
|
28
28
|
name: "IkSvgIcon",
|
|
29
29
|
__name: "index",
|
|
30
30
|
props: {
|
|
@@ -51,84 +51,87 @@ const E = (o, t) => {
|
|
|
51
51
|
tableIconType: { default: "icon" }
|
|
52
52
|
},
|
|
53
53
|
setup(o) {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}), a =
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
const p = o, n = q("iconConfig"), e = _(() => ({
|
|
55
|
+
...(n == null ? void 0 : n.value) || {},
|
|
56
|
+
...p
|
|
57
|
+
})), a = _(() => {
|
|
58
|
+
const { name: l } = e.value;
|
|
59
|
+
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";
|
|
60
|
+
}), v = _(() => {
|
|
61
|
+
const l = [];
|
|
62
|
+
if (e.value.flip)
|
|
63
|
+
switch (e.value.flip) {
|
|
61
64
|
case "horizontal":
|
|
62
|
-
|
|
65
|
+
l.push("rotateY(180deg)");
|
|
63
66
|
break;
|
|
64
67
|
case "vertical":
|
|
65
|
-
|
|
68
|
+
l.push("rotateX(180deg)");
|
|
66
69
|
break;
|
|
67
70
|
case "both":
|
|
68
|
-
|
|
71
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
69
72
|
break;
|
|
70
73
|
}
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
...
|
|
74
|
-
...
|
|
75
|
-
...
|
|
76
|
-
padding:
|
|
77
|
-
...
|
|
78
|
-
"--ik-color-icon-dark":
|
|
79
|
-
"--ik-color-icon-light":
|
|
74
|
+
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
75
|
+
const g = {
|
|
76
|
+
...e.value.color && { color: e.value.color },
|
|
77
|
+
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
78
|
+
...l.length && { transform: l.join(" ") },
|
|
79
|
+
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
80
|
+
...e.value.color && a.value !== "iksig" ? {
|
|
81
|
+
"--ik-color-icon-dark": e.value.color,
|
|
82
|
+
"--ik-color-icon-light": e.value.colorLight || W.setOpacity(e.value.color, e.value.opacity)
|
|
80
83
|
} : {}
|
|
81
84
|
};
|
|
82
|
-
return
|
|
85
|
+
return e.value.width && (g.width = g.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), g;
|
|
83
86
|
});
|
|
84
|
-
return (
|
|
85
|
-
const
|
|
86
|
-
return e.tableIconType === "icon" ? (s(), u("span", X, [
|
|
87
|
-
e.notip || !e.title ? (s(), u(
|
|
87
|
+
return (l, g) => {
|
|
88
|
+
const x = S("el-tooltip"), C = S("el-button");
|
|
89
|
+
return e.value.tableIconType === "icon" ? (s(), u("span", X, [
|
|
90
|
+
e.value.notip || !e.value.title ? (s(), u(
|
|
88
91
|
"i",
|
|
89
92
|
{
|
|
90
93
|
key: 0,
|
|
91
|
-
class:
|
|
92
|
-
[
|
|
93
|
-
"show-bg": e.showBg || e.bg,
|
|
94
|
-
default: e.size === "default",
|
|
95
|
-
small: e.size === "small",
|
|
96
|
-
big: e.size === "big",
|
|
97
|
-
warning: e.warning ||
|
|
98
|
-
primary: e.primary ||
|
|
99
|
-
success:
|
|
100
|
-
error: e.error ||
|
|
101
|
-
active: e.active,
|
|
102
|
-
disabled: e.disabled
|
|
94
|
+
class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
95
|
+
[l.name]: a.value === "unocss",
|
|
96
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
97
|
+
default: e.value.size === "default",
|
|
98
|
+
small: e.value.size === "small",
|
|
99
|
+
big: e.value.size === "big",
|
|
100
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
101
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
102
|
+
success: l.success || e.value.type === "success",
|
|
103
|
+
error: e.value.error || e.value.type === "error",
|
|
104
|
+
active: e.value.active,
|
|
105
|
+
disabled: e.value.disabled
|
|
103
106
|
}]),
|
|
104
|
-
style: f(
|
|
107
|
+
style: f(v.value)
|
|
105
108
|
},
|
|
106
109
|
[
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
k(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
111
|
+
a.value === "iksig" ? (s(), u(
|
|
109
112
|
"i",
|
|
110
113
|
{
|
|
111
114
|
key: 0,
|
|
112
|
-
class:
|
|
113
|
-
style: f(
|
|
115
|
+
class: d(`iksig ${e.value.name}`),
|
|
116
|
+
style: f(v.value)
|
|
114
117
|
},
|
|
115
118
|
null,
|
|
116
119
|
6
|
|
117
120
|
/* CLASS, STYLE */
|
|
118
|
-
)) :
|
|
119
|
-
|
|
120
|
-
"xlink:href": `#${e.name}`
|
|
121
|
+
)) : a.value === "svg" ? (s(), u("svg", Y, [
|
|
122
|
+
h("use", {
|
|
123
|
+
"xlink:href": `#${e.value.name}`
|
|
121
124
|
}, null, 8, A)
|
|
122
|
-
])) :
|
|
125
|
+
])) : a.value === "img" ? (s(), u("img", {
|
|
123
126
|
key: 2,
|
|
124
|
-
src: e.name,
|
|
127
|
+
src: e.value.name,
|
|
125
128
|
class: "h-[1em] w-[1em]"
|
|
126
129
|
}, null, 8, D)) : (s(), u(
|
|
127
130
|
"i",
|
|
128
131
|
{
|
|
129
132
|
key: 3,
|
|
130
|
-
class:
|
|
131
|
-
style: f(
|
|
133
|
+
class: d(e.value.name),
|
|
134
|
+
style: f(v.value)
|
|
132
135
|
},
|
|
133
136
|
null,
|
|
134
137
|
6
|
|
@@ -137,54 +140,54 @@ const E = (o, t) => {
|
|
|
137
140
|
],
|
|
138
141
|
6
|
|
139
142
|
/* CLASS, STYLE */
|
|
140
|
-
)) : (s(), w(
|
|
143
|
+
)) : (s(), w(x, {
|
|
141
144
|
key: 1,
|
|
142
|
-
content: e.title,
|
|
145
|
+
content: e.value.title,
|
|
143
146
|
placement: "top"
|
|
144
147
|
}, {
|
|
145
|
-
default:
|
|
146
|
-
|
|
148
|
+
default: j(() => [
|
|
149
|
+
h(
|
|
147
150
|
"i",
|
|
148
151
|
{
|
|
149
|
-
class:
|
|
150
|
-
[
|
|
151
|
-
"show-bg": e.showBg || e.bg,
|
|
152
|
-
default: e.size === "default",
|
|
153
|
-
small: e.size === "small",
|
|
154
|
-
big: e.size === "big",
|
|
155
|
-
warning: e.warning ||
|
|
156
|
-
primary:
|
|
157
|
-
success:
|
|
158
|
-
error: e.error ||
|
|
159
|
-
active: e.active
|
|
152
|
+
class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
153
|
+
[l.name]: a.value === "unocss",
|
|
154
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
155
|
+
default: e.value.size === "default",
|
|
156
|
+
small: e.value.size === "small",
|
|
157
|
+
big: e.value.size === "big",
|
|
158
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
159
|
+
primary: l.primary || e.value.type === "primary",
|
|
160
|
+
success: l.success || e.value.type === "success",
|
|
161
|
+
error: e.value.error || e.value.type === "error",
|
|
162
|
+
active: e.value.active
|
|
160
163
|
}]),
|
|
161
|
-
style: f(
|
|
164
|
+
style: f(v.value)
|
|
162
165
|
},
|
|
163
166
|
[
|
|
164
|
-
|
|
167
|
+
a.value === "iksig" ? (s(), u(
|
|
165
168
|
"i",
|
|
166
169
|
{
|
|
167
170
|
key: 0,
|
|
168
|
-
class:
|
|
169
|
-
style: f(
|
|
171
|
+
class: d(`iksig ${e.value.name}`),
|
|
172
|
+
style: f(v.value)
|
|
170
173
|
},
|
|
171
174
|
null,
|
|
172
175
|
6
|
|
173
176
|
/* CLASS, STYLE */
|
|
174
|
-
)) :
|
|
175
|
-
|
|
176
|
-
"xlink:href": `#${e.name}`
|
|
177
|
+
)) : a.value === "svg" ? (s(), u("svg", G, [
|
|
178
|
+
h("use", {
|
|
179
|
+
"xlink:href": `#${e.value.name}`
|
|
177
180
|
}, null, 8, H)
|
|
178
|
-
])) :
|
|
181
|
+
])) : a.value === "img" ? (s(), u("img", {
|
|
179
182
|
key: 2,
|
|
180
|
-
src: e.name,
|
|
183
|
+
src: e.value.name,
|
|
181
184
|
class: "h-[1em] w-[1em]"
|
|
182
185
|
}, null, 8, J)) : (s(), u(
|
|
183
186
|
"i",
|
|
184
187
|
{
|
|
185
188
|
key: 3,
|
|
186
|
-
class:
|
|
187
|
-
style: f(
|
|
189
|
+
class: d(e.value.name),
|
|
190
|
+
style: f(v.value)
|
|
188
191
|
},
|
|
189
192
|
null,
|
|
190
193
|
6
|
|
@@ -200,11 +203,11 @@ const E = (o, t) => {
|
|
|
200
203
|
}, 8, ["content"]))
|
|
201
204
|
])) : (s(), w(C, {
|
|
202
205
|
key: 1,
|
|
203
|
-
type: ["warning", "error"].includes(e.type) ? "danger" : ""
|
|
206
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
204
207
|
}, {
|
|
205
|
-
default:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
default: j(() => [
|
|
209
|
+
E(
|
|
210
|
+
b(e.value.title),
|
|
208
211
|
1
|
|
209
212
|
/* TEXT */
|
|
210
213
|
)
|
|
@@ -215,7 +218,7 @@ const E = (o, t) => {
|
|
|
215
218
|
};
|
|
216
219
|
}
|
|
217
220
|
});
|
|
218
|
-
const P = /* @__PURE__ */
|
|
221
|
+
const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q = { class: "content" }, R = { class: "top" }, U = ["onClick"], Z = ["id"], ee = ["onClick"], te = /* @__PURE__ */ T({
|
|
219
222
|
__name: "IKVerticalStepBar",
|
|
220
223
|
props: {
|
|
221
224
|
// 当前激活的下标
|
|
@@ -243,100 +246,100 @@ const P = /* @__PURE__ */ K(M, [["__scopeId", "data-v-7d95dbf5"]]), O = E(P), Q
|
|
|
243
246
|
}
|
|
244
247
|
},
|
|
245
248
|
emits: ["click", "update:active"],
|
|
246
|
-
setup(o, { emit:
|
|
247
|
-
const n = o,
|
|
249
|
+
setup(o, { emit: p }) {
|
|
250
|
+
const n = o, e = p, a = _(() => Number(
|
|
248
251
|
n.active.indexOf("-") > 0 ? n.active.split("-")[0] : n.active
|
|
249
|
-
)),
|
|
250
|
-
let
|
|
251
|
-
return
|
|
252
|
-
},
|
|
253
|
-
let
|
|
254
|
-
return
|
|
255
|
-
},
|
|
256
|
-
let
|
|
257
|
-
return
|
|
258
|
-
},
|
|
259
|
-
let
|
|
260
|
-
return c <
|
|
261
|
-
}, B = (r,
|
|
262
|
-
n.needClick && (r[n.propsField.children] || (
|
|
263
|
-
},
|
|
252
|
+
)), v = _(() => n.active.indexOf("-") > 0 ? Number(n.active.split("-")[1]) : 0), l = (r) => {
|
|
253
|
+
let i = "", t = r + 1;
|
|
254
|
+
return t < a.value ? i = "before-bg" : t === a.value ? i = "active-bg" : t > a.value && (i = "after-bg"), `${i} index`;
|
|
255
|
+
}, g = (r) => {
|
|
256
|
+
let i = "", t = r + 1;
|
|
257
|
+
return t < a.value ? i = "before-text" : t === a.value ? i = "active-text" : t > a.value && (i = "after-text"), `${i} text`;
|
|
258
|
+
}, x = (r) => {
|
|
259
|
+
let i = "", t = r + 1;
|
|
260
|
+
return t < a.value ? i = "before-style" : t < n.list.length && (i = "after-style"), `${i} bottom`;
|
|
261
|
+
}, C = (r, i) => {
|
|
262
|
+
let t = "", c = r + 1, y = i + 1;
|
|
263
|
+
return c < a.value ? t = "before-text" : c === a.value ? y < v.value ? t = "before-text" : y === v.value ? t = "active-text" : y > v.value && (t = "after-text") : c > a.value && (t = "after-text"), `${t} child-text`;
|
|
264
|
+
}, B = (r, i) => {
|
|
265
|
+
n.needClick && (r[n.propsField.children] || (e("update:active", i + ""), e("click", r)));
|
|
266
|
+
}, I = (r, i) => {
|
|
264
267
|
r.show = !r.show;
|
|
265
|
-
let
|
|
266
|
-
r.show ?
|
|
268
|
+
let t = document.getElementById(`children${i}`);
|
|
269
|
+
r.show ? t.style.display = "none" : t.style.display = "block";
|
|
267
270
|
};
|
|
268
|
-
return (r,
|
|
271
|
+
return (r, i) => (s(), u("div", Q, [
|
|
269
272
|
(s(!0), u(
|
|
270
|
-
|
|
273
|
+
F,
|
|
271
274
|
null,
|
|
272
|
-
|
|
273
|
-
var
|
|
275
|
+
N(o.list, (t, c) => {
|
|
276
|
+
var y, z;
|
|
274
277
|
return s(), u("div", {
|
|
275
278
|
class: "line-block",
|
|
276
279
|
key: c
|
|
277
280
|
}, [
|
|
278
|
-
|
|
279
|
-
|
|
281
|
+
h("div", R, [
|
|
282
|
+
h(
|
|
280
283
|
"div",
|
|
281
284
|
{
|
|
282
|
-
class:
|
|
285
|
+
class: d(l(c))
|
|
283
286
|
},
|
|
284
|
-
|
|
287
|
+
b(c + 1),
|
|
285
288
|
3
|
|
286
289
|
/* TEXT, CLASS */
|
|
287
290
|
),
|
|
288
|
-
|
|
289
|
-
class:
|
|
291
|
+
h("div", {
|
|
292
|
+
class: d(g(c)),
|
|
290
293
|
style: f(o.needClick ? "cursor: pointer;" : ""),
|
|
291
|
-
onClick: (
|
|
294
|
+
onClick: (m) => B(t, c + 1)
|
|
292
295
|
}, [
|
|
293
|
-
|
|
294
|
-
|
|
296
|
+
E(
|
|
297
|
+
b(t[o.propsField.name]) + " ",
|
|
295
298
|
1
|
|
296
299
|
/* TEXT */
|
|
297
300
|
),
|
|
298
|
-
|
|
301
|
+
k(` <i\r
|
|
299
302
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
300
303
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
301
304
|
@click="changeShow(item, index)"\r
|
|
302
305
|
></i> `),
|
|
303
|
-
(
|
|
306
|
+
(y = t[o.propsField.children]) != null && y.length && !t.show ? (s(), w(O(V), {
|
|
304
307
|
key: 0,
|
|
305
308
|
class: "ikapprove",
|
|
306
|
-
onClick: (
|
|
309
|
+
onClick: (m) => I(t, c),
|
|
307
310
|
name: "iksvg_zhankai"
|
|
308
|
-
}, null, 8, ["onClick"])) :
|
|
309
|
-
|
|
311
|
+
}, null, 8, ["onClick"])) : k("v-if", !0),
|
|
312
|
+
k(` <i\r
|
|
310
313
|
v-if="item[propsField.children]?.length && item.show"\r
|
|
311
314
|
@click="changeShow(item, index)"\r
|
|
312
315
|
class="ikapprove icon-a-putongjiantoushouqi"\r
|
|
313
316
|
></i> `),
|
|
314
|
-
(
|
|
317
|
+
(z = t[o.propsField.children]) != null && z.length && t.show ? (s(), w(O(V), {
|
|
315
318
|
key: 1,
|
|
316
319
|
class: "ikapprove",
|
|
317
|
-
onClick: (
|
|
320
|
+
onClick: (m) => I(t, c),
|
|
318
321
|
name: "iksvg_shouqi"
|
|
319
|
-
}, null, 8, ["onClick"])) :
|
|
322
|
+
}, null, 8, ["onClick"])) : k("v-if", !0)
|
|
320
323
|
], 14, U)
|
|
321
324
|
]),
|
|
322
|
-
|
|
325
|
+
h(
|
|
323
326
|
"ul",
|
|
324
327
|
{
|
|
325
|
-
class:
|
|
328
|
+
class: d(x(c))
|
|
326
329
|
},
|
|
327
330
|
[
|
|
328
|
-
|
|
331
|
+
h("div", {
|
|
329
332
|
id: `children${c}`
|
|
330
333
|
}, [
|
|
331
334
|
(s(!0), u(
|
|
332
|
-
|
|
335
|
+
F,
|
|
333
336
|
null,
|
|
334
|
-
|
|
335
|
-
class:
|
|
337
|
+
N(t[o.propsField.children], (m, $) => (s(), u("li", {
|
|
338
|
+
class: d(C(c, $)),
|
|
336
339
|
style: f(o.needClick ? "cursor: pointer;" : ""),
|
|
337
340
|
key: $,
|
|
338
|
-
onClick: (
|
|
339
|
-
},
|
|
341
|
+
onClick: (ae) => B(m, c + 1 + "-" + ($ + 1))
|
|
342
|
+
}, b(m.name), 15, ee))),
|
|
340
343
|
128
|
|
341
344
|
/* KEYED_FRAGMENT */
|
|
342
345
|
))
|
|
@@ -353,7 +356,7 @@ const P = /* @__PURE__ */ K(M, [["__scopeId", "data-v-7d95dbf5"]]), O = E(P), Q
|
|
|
353
356
|
]));
|
|
354
357
|
}
|
|
355
358
|
});
|
|
356
|
-
const
|
|
359
|
+
const le = /* @__PURE__ */ L(te, [["__scopeId", "data-v-240cff4f"]]), se = K(le);
|
|
357
360
|
export {
|
|
358
361
|
se as IKVerticalStepBar,
|
|
359
362
|
se as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(d,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):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.vue,d["iking-utils-pro"]))})(this,function(d,e,x){"use strict";const v=(s,u)=>{if(s.install=i=>{for(const t of[s,...Object.values(u??{})])i.component(t.name,t)},u)for(const[i,t]of Object.entries(u))s[i]=t;return s},B=(s,u)=>{const i=s.__vccOpts||s;for(const[t,o]of u)i[t]=o;return i},S={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},E={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$=["xlink:href"],N=["src"],V={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},I=["xlink:href"],j=["src"],F=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(s){const u=s,i=e.inject("iconConfig"),t=e.computed(()=>({...(i==null?void 0:i.value)||{},...u})),o=e.computed(()=>{const{name:n}=t.value;return/^http?:\/\//.test(n)?"img":/i-[^:]+:[^:]+/.test(n)?"unocss":n!=null&&n.startsWith("iksig")?"iksig":n!=null&&n.includes(":")?"iconify":n!=null&&n.startsWith("iksvg")?"svg":"i"}),p=e.computed(()=>{const n=[];if(t.value.flip)switch(t.value.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.value.rotate&&n.push(`rotate(${t.value.rotate%360}deg)`);const m={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...n.length&&{transform:n.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||x.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(m.width=m.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),m});return(n,m)=>{const y=e.resolveComponent("el-tooltip"),h=e.resolveComponent("el-button");return t.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",S,[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",{[n.name]:o.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:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(p.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",E,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,$)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,N)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)):(e.openBlock(),e.createBlock(y,{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",{[n.name]:o.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:n.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(p.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",V,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,I)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,j)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(h,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",_=v(B(F,[["__scopeId","data-v-1be337e4"]])),T={class:"content"},O={class:"top"},q=["onClick"],D=["id"],K=["onClick"],L=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:u}){const i=s,t=u,o=e.computed(()=>Number(i.active.indexOf("-")>0?i.active.split("-")[0]:i.active)),p=e.computed(()=>i.active.indexOf("-")>0?Number(i.active.split("-")[1]):0),n=c=>{let a="",l=c+1;return l<o.value?a="before-bg":l===o.value?a="active-bg":l>o.value&&(a="after-bg"),`${a} index`},m=c=>{let a="",l=c+1;return l<o.value?a="before-text":l===o.value?a="active-text":l>o.value&&(a="after-text"),`${a} text`},y=c=>{let a="",l=c+1;return l<o.value?a="before-style":l<i.list.length&&(a="after-style"),`${a} bottom`},h=(c,a)=>{let l="",r=c+1,f=a+1;return r<o.value?l="before-text":r===o.value?f<p.value?l="before-text":f===p.value?l="active-text":f>p.value&&(l="after-text"):r>o.value&&(l="after-text"),`${l} child-text`},C=(c,a)=>{i.needClick&&(c[i.propsField.children]||(t("update:active",a+""),t("click",c)))},w=(c,a)=>{c.show=!c.show;let l=document.getElementById(`children${a}`);c.show?l.style.display="none":l.style.display="block"};return(c,a)=>(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var f,z;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",O,[e.createElementVNode("div",{class:e.normalizeClass(n(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(m(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:k=>C(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
|
|
2
2
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
3
3
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
4
4
|
@click="changeShow(item, index)"\r
|
|
5
|
-
></i> `),(f=
|
|
5
|
+
></i> `),(f=l[s.propsField.children])!=null&&f.length&&!l.show?(e.openBlock(),e.createBlock(e.unref(_),{key:0,class:"ikapprove",onClick:k=>w(l,r),name:"iksvg_zhankai"},null,8,["onClick"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(` <i\r
|
|
6
6
|
v-if="item[propsField.children]?.length && item.show"\r
|
|
7
7
|
@click="changeShow(item, index)"\r
|
|
8
8
|
class="ikapprove icon-a-putongjiantoushouqi"\r
|
|
9
|
-
></i> `),(z=
|
|
9
|
+
></i> `),(z=l[s.propsField.children])!=null&&z.length&&l.show?(e.openBlock(),e.createBlock(e.unref(_),{key:1,class:"ikapprove",onClick:k=>w(l,r),name:"iksvg_shouqi"},null,8,["onClick"])):e.createCommentVNode("v-if",!0)],14,q)]),e.createElementVNode("ul",{class:e.normalizeClass(y(r))},[e.createElementVNode("div",{id:`children${r}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l[s.propsField.children],(k,g)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(h(r,g)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),key:g,onClick:A=>C(k,r+1+"-"+(g+1))},e.toDisplayString(k.name),15,K))),128))],8,D)],2)])}),128))]))}}),X="",b=v(B(L,[["__scopeId","data-v-240cff4f"]]));d.IKVerticalStepBar=b,d.default=b,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-1be337e4]{display:flex}[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}
|