iking-web-ui-pro 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IkApprovalProcessDetail/ik.index.es.js +956 -942
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +48 -48
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +210 -189
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +331 -310
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +195 -174
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1462 -1448
- package/dist/IkDescription/ik.index.umd.js +48 -48
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1441 -1427
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +48 -48
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +191 -170
- package/dist/IkExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +229 -208
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +449 -428
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1440 -1419
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1444 -1430
- package/dist/IkPreviewFile/ik.index.umd.js +48 -48
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +1047 -1026
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +3041 -3020
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +141 -130
- package/dist/IkSelectTag/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +276 -190
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatu/ik.index.es.js +47 -38
- package/dist/IkStatu/ik.index.umd.js +1 -1
- package/dist/IkStatu/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +114 -106
- package/dist/IkStatuOver/ik.index.umd.js +1 -1
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +169 -148
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTaskResume/ik.index.es.js +23 -0
- package/dist/IkTaskResume/ik.index.umd.js +1 -0
- package/dist/IkUploadFile/ik.index.es.js +993 -972
- package/dist/IkUploadFile/ik.index.umd.js +47 -47
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +522 -522
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +234 -213
- package/dist/IkVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +14080 -14047
- package/dist/index.umd.js +86 -86
- package/dist/src/components/IkMonacoEditor/index.d.ts +12 -2
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -2
- package/dist/src/components/IkStatu/index.d.ts +3 -3
- package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +12 -2
- package/dist/src/components/IkTaskResume/index.d.ts +2 -0
- package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
- package/dist/src/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import { defineComponent as O, computed as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
for (const
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
const
|
|
8
|
-
for (const [
|
|
9
|
-
e
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
14
|
-
}, Y = {
|
|
1
|
+
import { defineComponent as O, computed as w, resolveComponent as F, openBlock as s, createElementBlock as u, Fragment as z, normalizeClass as d, normalizeStyle as p, createCommentVNode as b, createElementVNode as f, createBlock as B, withCtx as N, createTextVNode as V, toDisplayString as $, renderList as j, unref as T } from "vue";
|
|
2
|
+
import { ikColor as L } from "iking-utils-pro";
|
|
3
|
+
const D = (o, h) => (o.install = (r) => {
|
|
4
|
+
for (const e of [o, ...Object.values({})])
|
|
5
|
+
r.component(e.name, e);
|
|
6
|
+
}, o), E = (o, h) => {
|
|
7
|
+
const r = o.__vccOpts || o;
|
|
8
|
+
for (const [e, a] of h)
|
|
9
|
+
r[e] = a;
|
|
10
|
+
return r;
|
|
11
|
+
}, q = {
|
|
15
12
|
key: 1,
|
|
16
13
|
class: "h-[1em] w-[1em]",
|
|
17
14
|
"aria-hidden": "true"
|
|
18
|
-
},
|
|
15
|
+
}, W = ["xlink:href"], X = ["src"], Y = {
|
|
19
16
|
key: 1,
|
|
20
17
|
class: "h-[1em] w-[1em]",
|
|
21
18
|
"aria-hidden": "true"
|
|
22
|
-
},
|
|
19
|
+
}, A = ["xlink:href"], G = ["src"], H = /* @__PURE__ */ O({
|
|
23
20
|
name: "IkSvgIcon",
|
|
24
21
|
__name: "index",
|
|
25
22
|
props: {
|
|
@@ -45,162 +42,186 @@ const E = (s, f) => (s.install = (e) => {
|
|
|
45
42
|
warning: { type: Boolean },
|
|
46
43
|
width: {}
|
|
47
44
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
46
|
+
setup(o, { emit: h }) {
|
|
47
|
+
const r = o, e = w(() => r), a = w(() => {
|
|
48
|
+
const { name: t } = e.value;
|
|
49
|
+
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";
|
|
50
|
+
}), v = w(() => {
|
|
51
|
+
const t = [];
|
|
54
52
|
if (e.value.flip)
|
|
55
53
|
switch (e.value.flip) {
|
|
56
54
|
case "horizontal":
|
|
57
|
-
|
|
55
|
+
t.push("rotateY(180deg)");
|
|
58
56
|
break;
|
|
59
57
|
case "vertical":
|
|
60
|
-
|
|
58
|
+
t.push("rotateX(180deg)");
|
|
61
59
|
break;
|
|
62
60
|
case "both":
|
|
63
|
-
|
|
61
|
+
t.push("rotateX(180deg)"), t.push("rotateY(180deg)");
|
|
64
62
|
break;
|
|
65
63
|
}
|
|
66
|
-
e.value.rotate &&
|
|
67
|
-
const
|
|
64
|
+
e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
65
|
+
const n = {
|
|
68
66
|
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
69
67
|
...e.value.color && { color: e.value.color },
|
|
70
68
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
71
|
-
...
|
|
69
|
+
...t.length && { transform: t.join(" ") },
|
|
72
70
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
73
|
-
...e.value.color &&
|
|
71
|
+
...e.value.color && a.value !== "iksig" ? {
|
|
74
72
|
"--ik-icon-deep-color": e.value.color,
|
|
75
|
-
"--ik-icon-shallow-color": e.value.colorLight ||
|
|
73
|
+
"--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
|
|
76
74
|
} : {}
|
|
77
75
|
};
|
|
78
|
-
return e.value.width && (
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
76
|
+
return e.value.width && (n.width = n.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), n;
|
|
77
|
+
}), m = h, _ = (t) => {
|
|
78
|
+
m("click", t);
|
|
79
|
+
}, x = (t) => {
|
|
80
|
+
m("mouseenter", t);
|
|
81
|
+
}, C = (t) => {
|
|
82
|
+
m("mouseleave", t);
|
|
83
|
+
}, y = (t) => {
|
|
84
|
+
m("dblclick", t);
|
|
85
|
+
};
|
|
86
|
+
return (t, n) => {
|
|
87
|
+
const i = F("el-tooltip"), l = F("el-button");
|
|
88
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (s(), u(
|
|
89
|
+
z,
|
|
90
|
+
{ key: 0 },
|
|
91
|
+
[
|
|
92
|
+
e.value.notip || !e.value.title ? (s(), u(
|
|
93
|
+
"span",
|
|
94
|
+
{
|
|
95
|
+
key: 0,
|
|
96
|
+
class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
97
|
+
[t.name]: a.value === "unocss",
|
|
98
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
99
|
+
default: e.value.size === "default",
|
|
100
|
+
small: e.value.size === "small",
|
|
101
|
+
big: e.value.size === "big",
|
|
102
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
103
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
104
|
+
success: t.success || e.value.type === "success",
|
|
105
|
+
error: e.value.error || e.value.type === "error",
|
|
106
|
+
active: e.value.active,
|
|
107
|
+
disabled: e.value.disabled
|
|
108
|
+
}]),
|
|
109
|
+
style: p(v.value),
|
|
110
|
+
onClick: _,
|
|
111
|
+
onDblclick: y,
|
|
112
|
+
onMouseenter: x,
|
|
113
|
+
onMouseleave: C
|
|
114
|
+
},
|
|
115
|
+
[
|
|
116
|
+
b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
117
|
+
a.value === "iksig" ? (s(), u(
|
|
118
|
+
"i",
|
|
119
|
+
{
|
|
120
|
+
key: 0,
|
|
121
|
+
class: d(`iksig ${e.value.name}`),
|
|
122
|
+
style: p(v.value)
|
|
123
|
+
},
|
|
124
|
+
null,
|
|
125
|
+
6
|
|
126
|
+
/* CLASS, STYLE */
|
|
127
|
+
)) : a.value === "svg" ? (s(), u("svg", q, [
|
|
128
|
+
f("use", {
|
|
129
|
+
"xlink:href": `#${e.value.name}`
|
|
130
|
+
}, null, 8, W)
|
|
131
|
+
])) : a.value === "img" ? (s(), u("img", {
|
|
132
|
+
key: 2,
|
|
133
|
+
src: e.value.name,
|
|
134
|
+
class: "h-[1em] w-[1em]"
|
|
135
|
+
}, null, 8, X)) : (s(), u(
|
|
136
|
+
"i",
|
|
137
|
+
{
|
|
138
|
+
key: 3,
|
|
139
|
+
class: d(e.value.name),
|
|
140
|
+
style: p(v.value)
|
|
141
|
+
},
|
|
142
|
+
null,
|
|
143
|
+
6
|
|
144
|
+
/* CLASS, STYLE */
|
|
145
|
+
))
|
|
146
|
+
],
|
|
147
|
+
38
|
|
148
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
149
|
+
)) : (s(), B(i, {
|
|
150
|
+
key: 1,
|
|
151
|
+
content: e.value.title,
|
|
152
|
+
placement: "top",
|
|
153
|
+
"hide-after": 0
|
|
154
|
+
}, {
|
|
155
|
+
default: N(() => [
|
|
156
|
+
f(
|
|
157
|
+
"span",
|
|
158
|
+
{
|
|
159
|
+
class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
160
|
+
[t.name]: a.value === "unocss",
|
|
161
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
162
|
+
default: e.value.size === "default",
|
|
163
|
+
small: e.value.size === "small",
|
|
164
|
+
big: e.value.size === "big",
|
|
165
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
166
|
+
primary: t.primary || e.value.type === "primary",
|
|
167
|
+
success: t.success || e.value.type === "success",
|
|
168
|
+
error: e.value.error || e.value.type === "error",
|
|
169
|
+
active: e.value.active
|
|
170
|
+
}]),
|
|
171
|
+
style: p(v.value),
|
|
172
|
+
onClick: _,
|
|
173
|
+
onDblclick: y,
|
|
174
|
+
onMouseenter: x,
|
|
175
|
+
onMouseleave: C
|
|
176
|
+
},
|
|
177
|
+
[
|
|
178
|
+
a.value === "iksig" ? (s(), u(
|
|
179
|
+
"i",
|
|
180
|
+
{
|
|
181
|
+
key: 0,
|
|
182
|
+
class: d(`iksig ${e.value.name}`),
|
|
183
|
+
style: p(v.value)
|
|
184
|
+
},
|
|
185
|
+
null,
|
|
186
|
+
6
|
|
187
|
+
/* CLASS, STYLE */
|
|
188
|
+
)) : a.value === "svg" ? (s(), u("svg", Y, [
|
|
189
|
+
f("use", {
|
|
190
|
+
"xlink:href": `#${e.value.name}`
|
|
191
|
+
}, null, 8, A)
|
|
192
|
+
])) : a.value === "img" ? (s(), u("img", {
|
|
193
|
+
key: 2,
|
|
194
|
+
src: e.value.name,
|
|
195
|
+
class: "h-[1em] w-[1em]"
|
|
196
|
+
}, null, 8, G)) : (s(), u(
|
|
197
|
+
"i",
|
|
198
|
+
{
|
|
199
|
+
key: 3,
|
|
200
|
+
class: d(e.value.name),
|
|
201
|
+
style: p(v.value)
|
|
202
|
+
},
|
|
203
|
+
null,
|
|
204
|
+
6
|
|
205
|
+
/* CLASS, STYLE */
|
|
206
|
+
))
|
|
207
|
+
],
|
|
208
|
+
38
|
|
209
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
210
|
+
)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
/* STABLE */
|
|
214
|
+
}, 8, ["content"]))
|
|
215
|
+
],
|
|
216
|
+
64
|
|
217
|
+
/* STABLE_FRAGMENT */
|
|
218
|
+
)) : (s(), B(l, {
|
|
198
219
|
key: 1,
|
|
199
220
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
200
221
|
}, {
|
|
201
|
-
default:
|
|
222
|
+
default: N(() => [
|
|
202
223
|
V(
|
|
203
|
-
|
|
224
|
+
$(e.value.title),
|
|
204
225
|
1
|
|
205
226
|
/* TEXT */
|
|
206
227
|
)
|
|
@@ -210,7 +231,7 @@ const E = (s, f) => (s.install = (e) => {
|
|
|
210
231
|
}, 8, ["type"]));
|
|
211
232
|
};
|
|
212
233
|
}
|
|
213
|
-
}),
|
|
234
|
+
}), J = /* @__PURE__ */ E(H, [["__scopeId", "data-v-c7804024"]]), M = D(J), K = { class: "content" }, P = { class: "top" }, Q = ["onClick"], R = ["id"], U = ["onClick"], Z = /* @__PURE__ */ O({
|
|
214
235
|
__name: "IkVerticalStepBar",
|
|
215
236
|
props: {
|
|
216
237
|
// 当前激活的下标
|
|
@@ -238,104 +259,104 @@ const E = (s, f) => (s.install = (e) => {
|
|
|
238
259
|
}
|
|
239
260
|
},
|
|
240
261
|
emits: ["click", "update:active"],
|
|
241
|
-
setup(
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
)),
|
|
245
|
-
let
|
|
246
|
-
return
|
|
247
|
-
}, _ = (
|
|
248
|
-
let
|
|
249
|
-
return
|
|
250
|
-
}, x = (
|
|
251
|
-
let
|
|
252
|
-
return
|
|
253
|
-
},
|
|
254
|
-
let
|
|
255
|
-
return c <
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
+
setup(o, { emit: h }) {
|
|
263
|
+
const r = o, e = h, a = w(() => Number(
|
|
264
|
+
r.active.indexOf("-") > 0 ? r.active.split("-")[0] : r.active
|
|
265
|
+
)), v = w(() => r.active.indexOf("-") > 0 ? Number(r.active.split("-")[1]) : 0), m = (n) => {
|
|
266
|
+
let i = "", l = n + 1;
|
|
267
|
+
return l < a.value ? i = "before-bg" : l === a.value ? i = "active-bg" : l > a.value && (i = "after-bg"), `${i} index`;
|
|
268
|
+
}, _ = (n) => {
|
|
269
|
+
let i = "", l = n + 1;
|
|
270
|
+
return l < a.value ? i = "before-text" : l === a.value ? i = "active-text" : l > a.value && (i = "after-text"), `${i} text`;
|
|
271
|
+
}, x = (n) => {
|
|
272
|
+
let i = "", l = n + 1;
|
|
273
|
+
return l < a.value ? i = "before-style" : l < r.list.length && (i = "after-style"), `${i} bottom`;
|
|
274
|
+
}, C = (n, i) => {
|
|
275
|
+
let l = "", c = n + 1, g = i + 1;
|
|
276
|
+
return c < a.value ? l = "before-text" : c === a.value ? g < v.value ? l = "before-text" : g === v.value ? l = "active-text" : g > v.value && (l = "after-text") : c > a.value && (l = "after-text"), `${l} child-text`;
|
|
277
|
+
}, y = (n, i) => {
|
|
278
|
+
r.needClick && (n[r.propsField.children] || (e("update:active", i + ""), e("click", n)));
|
|
279
|
+
}, t = (n, i) => {
|
|
280
|
+
n.show = !n.show;
|
|
281
|
+
let l = document.getElementById(`children${i}`);
|
|
282
|
+
n.show ? l.style.display = "none" : l.style.display = "block";
|
|
262
283
|
};
|
|
263
|
-
return (
|
|
264
|
-
(
|
|
265
|
-
|
|
284
|
+
return (n, i) => (s(), u("div", K, [
|
|
285
|
+
(s(!0), u(
|
|
286
|
+
z,
|
|
266
287
|
null,
|
|
267
|
-
|
|
268
|
-
var g,
|
|
269
|
-
return
|
|
288
|
+
j(o.list, (l, c) => {
|
|
289
|
+
var g, S;
|
|
290
|
+
return s(), u("div", {
|
|
270
291
|
class: "line-block",
|
|
271
292
|
key: c
|
|
272
293
|
}, [
|
|
273
|
-
|
|
274
|
-
|
|
294
|
+
f("div", P, [
|
|
295
|
+
f(
|
|
275
296
|
"div",
|
|
276
297
|
{
|
|
277
|
-
class:
|
|
298
|
+
class: d(m(c))
|
|
278
299
|
},
|
|
279
|
-
|
|
300
|
+
$(c + 1),
|
|
280
301
|
3
|
|
281
302
|
/* TEXT, CLASS */
|
|
282
303
|
),
|
|
283
|
-
|
|
284
|
-
class:
|
|
285
|
-
style:
|
|
286
|
-
onClick: (
|
|
304
|
+
f("div", {
|
|
305
|
+
class: d(_(c)),
|
|
306
|
+
style: p(o.needClick ? "cursor: pointer;" : ""),
|
|
307
|
+
onClick: (k) => y(l, c + 1)
|
|
287
308
|
}, [
|
|
288
309
|
V(
|
|
289
|
-
|
|
310
|
+
$(l[o.propsField.name]) + " ",
|
|
290
311
|
1
|
|
291
312
|
/* TEXT */
|
|
292
313
|
),
|
|
293
|
-
|
|
314
|
+
b(` <i\r
|
|
294
315
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
295
316
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
296
317
|
@click="changeShow(item, index)"\r
|
|
297
318
|
></i> `),
|
|
298
|
-
(g =
|
|
319
|
+
(g = l[o.propsField.children]) != null && g.length && !l.show ? (s(), B(T(M), {
|
|
299
320
|
key: 0,
|
|
300
321
|
class: "ikapprove",
|
|
301
|
-
onClick: (
|
|
322
|
+
onClick: (k) => t(l, c),
|
|
302
323
|
name: "iksvg_zhankai"
|
|
303
|
-
}, null, 8, ["onClick"])) :
|
|
304
|
-
|
|
324
|
+
}, null, 8, ["onClick"])) : b("v-if", !0),
|
|
325
|
+
b(` <i\r
|
|
305
326
|
v-if="item[propsField.children]?.length && item.show"\r
|
|
306
327
|
@click="changeShow(item, index)"\r
|
|
307
328
|
class="ikapprove icon-a-putongjiantoushouqi"\r
|
|
308
329
|
></i> `),
|
|
309
|
-
(
|
|
330
|
+
(S = l[o.propsField.children]) != null && S.length && l.show ? (s(), B(T(M), {
|
|
310
331
|
key: 1,
|
|
311
332
|
class: "ikapprove",
|
|
312
|
-
onClick: (
|
|
333
|
+
onClick: (k) => t(l, c),
|
|
313
334
|
name: "iksvg_shouqi"
|
|
314
|
-
}, null, 8, ["onClick"])) :
|
|
315
|
-
], 14,
|
|
335
|
+
}, null, 8, ["onClick"])) : b("v-if", !0)
|
|
336
|
+
], 14, Q)
|
|
316
337
|
]),
|
|
317
|
-
|
|
338
|
+
f(
|
|
318
339
|
"ul",
|
|
319
340
|
{
|
|
320
|
-
class:
|
|
341
|
+
class: d(x(c))
|
|
321
342
|
},
|
|
322
343
|
[
|
|
323
|
-
|
|
344
|
+
f("div", {
|
|
324
345
|
id: `children${c}`
|
|
325
346
|
}, [
|
|
326
|
-
(
|
|
327
|
-
|
|
347
|
+
(s(!0), u(
|
|
348
|
+
z,
|
|
328
349
|
null,
|
|
329
|
-
|
|
330
|
-
class:
|
|
331
|
-
style:
|
|
332
|
-
key:
|
|
333
|
-
onClick: (
|
|
334
|
-
},
|
|
350
|
+
j(l[o.propsField.children], (k, I) => (s(), u("li", {
|
|
351
|
+
class: d(C(c, I)),
|
|
352
|
+
style: p(o.needClick ? "cursor: pointer;" : ""),
|
|
353
|
+
key: I,
|
|
354
|
+
onClick: (te) => y(k, c + 1 + "-" + (I + 1))
|
|
355
|
+
}, $(k.name), 15, U))),
|
|
335
356
|
128
|
|
336
357
|
/* KEYED_FRAGMENT */
|
|
337
358
|
))
|
|
338
|
-
], 8,
|
|
359
|
+
], 8, R)
|
|
339
360
|
],
|
|
340
361
|
2
|
|
341
362
|
/* CLASS */
|
|
@@ -347,8 +368,8 @@ const E = (s, f) => (s.install = (e) => {
|
|
|
347
368
|
))
|
|
348
369
|
]));
|
|
349
370
|
}
|
|
350
|
-
}),
|
|
371
|
+
}), ee = /* @__PURE__ */ E(Z, [["__scopeId", "data-v-bce57528"]]), ie = D(ee);
|
|
351
372
|
export {
|
|
352
|
-
|
|
353
|
-
|
|
373
|
+
ie as IkVerticalStepBar,
|
|
374
|
+
ie as default
|
|
354
375
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(p,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):(p=typeof globalThis<"u"?globalThis:p||self,e(p.index={},p.vue,p["iking-utils-pro"]))})(this,function(p,e,
|
|
1
|
+
(function(p,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):(p=typeof globalThis<"u"?globalThis:p||self,e(p.index={},p.vue,p["iking-utils-pro"]))})(this,function(p,e,x){"use strict";const b=(s,u)=>(s.install=c=>{for(const t of[s,...Object.values({})])c.component(t.name,t)},s),C=(s,u)=>{const c=s.__vccOpts||s;for(const[t,n]of u)c[t]=n;return c},S={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},E=["xlink:href"],$=["src"],N={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},I=["xlink:href"],V=["src"],w=b(C(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:{}},emits:["click","mouseenter","mouseleave","dblclick"],setup(s,{emit:u}){const c=s,t=e.computed(()=>c),n=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 i={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&&n.value!=="iksig"?{"--ik-icon-deep-color":t.value.color,"--ik-icon-shallow-color":t.value.colorLight||x.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(i.width=i.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),i}),m=u,y=l=>{m("click",l)},g=l=>{m("mouseenter",l)},v=l=>{m("mouseleave",l)},f=l=>{m("dblclick",l)};return(l,i)=>{const a=e.resolveComponent("el-tooltip"),o=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("span",{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]:n.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),onClick:y,onDblclick:f,onMouseenter:g,onMouseleave:v},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",S,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,E)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,$)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],38)):(e.openBlock(),e.createBlock(a,{key:1,content:t.value.title,placement:"top","hide-after":0},{default:e.withCtx(()=>[e.createElementVNode("span",{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]:n.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),onClick:y,onDblclick:f,onMouseenter:g,onMouseleave:v},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",N,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,I)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,V)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],38)]),_:1},8,["content"]))],64)):(e.openBlock(),e.createBlock(o,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),[["__scopeId","data-v-c7804024"]])),F={class:"content"},T={class:"top"},j=["onClick"],M=["id"],D=["onClick"],_=b(C(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 c=s,t=u,n=e.computed(()=>Number(c.active.indexOf("-")>0?c.active.split("-")[0]:c.active)),d=e.computed(()=>c.active.indexOf("-")>0?Number(c.active.split("-")[1]):0),m=i=>{let a="",o=i+1;return o<n.value?a="before-bg":o===n.value?a="active-bg":o>n.value&&(a="after-bg"),`${a} index`},y=i=>{let a="",o=i+1;return o<n.value?a="before-text":o===n.value?a="active-text":o>n.value&&(a="after-text"),`${a} text`},g=i=>{let a="",o=i+1;return o<n.value?a="before-style":o<c.list.length&&(a="after-style"),`${a} bottom`},v=(i,a)=>{let o="",r=i+1,k=a+1;return r<n.value?o="before-text":r===n.value?k<d.value?o="before-text":k===d.value?o="active-text":k>d.value&&(o="after-text"):r>n.value&&(o="after-text"),`${o} child-text`},f=(i,a)=>{c.needClick&&(i[c.propsField.children]||(t("update:active",a+""),t("click",i)))},l=(i,a)=>{i.show=!i.show;let o=document.getElementById(`children${a}`);i.show?o.style.display="none":o.style.display="block"};return(i,a)=>(e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(o,r)=>{var k,z;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",T,[e.createElementVNode("div",{class:e.normalizeClass(m(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(y(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:h=>f(o,r+1)},[e.createTextVNode(e.toDisplayString(o[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> `),(
|
|
5
|
+
></i> `),(k=o[s.propsField.children])!=null&&k.length&&!o.show?(e.openBlock(),e.createBlock(e.unref(w),{key:0,class:"ikapprove",onClick:h=>l(o,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> `),(
|
|
9
|
+
></i> `),(z=o[s.propsField.children])!=null&&z.length&&o.show?(e.openBlock(),e.createBlock(e.unref(w),{key:1,class:"ikapprove",onClick:h=>l(o,r),name:"iksvg_shouqi"},null,8,["onClick"])):e.createCommentVNode("v-if",!0)],14,j)]),e.createElementVNode("ul",{class:e.normalizeClass(g(r))},[e.createElementVNode("div",{id:`children${r}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o[s.propsField.children],(h,B)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(v(r,B)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),key:B,onClick:X=>f(h,r+1+"-"+(B+1))},e.toDisplayString(h.name),15,D))),128))],8,M)],2)])}),128))]))}}),[["__scopeId","data-v-bce57528"]]));p.IkVerticalStepBar=_,p.default=_,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|