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,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
for (const
|
|
5
|
-
|
|
6
|
-
}, t),
|
|
7
|
-
const
|
|
8
|
-
for (const [
|
|
9
|
-
e
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { inject as k, computed as u, defineComponent as _, resolveComponent as z, openBlock as l, createElementBlock as c, Fragment as $, normalizeClass as m, normalizeStyle as p, createCommentVNode as b, createElementVNode as f, createBlock as x, withCtx as I, createTextVNode as T, toDisplayString as w, useCssVars as M, unref as C, ref as E } from "vue";
|
|
2
|
+
import { ikColor as L } from "iking-utils-pro";
|
|
3
|
+
const U = (t, o) => (t.install = (s) => {
|
|
4
|
+
for (const e of [t, ...Object.values({})])
|
|
5
|
+
s.component(e.name, e);
|
|
6
|
+
}, t), B = (t, o) => {
|
|
7
|
+
const s = t.__vccOpts || t;
|
|
8
|
+
for (const [e, n] of o)
|
|
9
|
+
s[e] = n;
|
|
10
|
+
return s;
|
|
11
|
+
}, S = [
|
|
12
|
+
"csv",
|
|
13
|
+
"djvu",
|
|
14
|
+
"doc",
|
|
15
|
+
"docm",
|
|
16
|
+
"docx",
|
|
17
|
+
"docxf",
|
|
18
|
+
"dot",
|
|
19
|
+
"dotm",
|
|
20
|
+
"dotx",
|
|
21
|
+
"epub",
|
|
22
|
+
"fb2",
|
|
23
|
+
"fodp",
|
|
24
|
+
"fods",
|
|
25
|
+
"fodt",
|
|
26
|
+
"htm",
|
|
27
|
+
"html",
|
|
28
|
+
"mht",
|
|
29
|
+
"odp",
|
|
30
|
+
"ods",
|
|
31
|
+
"odt",
|
|
32
|
+
"oform",
|
|
33
|
+
"otp",
|
|
34
|
+
"ots",
|
|
35
|
+
"ott",
|
|
36
|
+
"oxps",
|
|
37
|
+
"pdf",
|
|
38
|
+
"pot",
|
|
39
|
+
"potm",
|
|
40
|
+
"potx",
|
|
41
|
+
"pps",
|
|
42
|
+
"ppsm",
|
|
43
|
+
"ppsx",
|
|
44
|
+
"ppt",
|
|
45
|
+
"pptm",
|
|
46
|
+
"pptx",
|
|
47
|
+
"rtf",
|
|
48
|
+
"txt",
|
|
49
|
+
"xls",
|
|
50
|
+
"xlsb",
|
|
51
|
+
"xlsm",
|
|
52
|
+
"xlsx",
|
|
53
|
+
"xlt",
|
|
54
|
+
"xltm",
|
|
55
|
+
"xltx",
|
|
56
|
+
"xml",
|
|
57
|
+
"xps",
|
|
58
|
+
"png",
|
|
59
|
+
"jpeg",
|
|
60
|
+
"jpg",
|
|
61
|
+
"webp",
|
|
62
|
+
"video",
|
|
63
|
+
"mp4",
|
|
64
|
+
"flv",
|
|
65
|
+
"tls"
|
|
66
|
+
], D = (t) => {
|
|
67
|
+
const o = k("loadUrl"), s = u(() => t.loadUrl || t.fileUrl || (o == null ? void 0 : o.value)), e = k("uploadUrl"), n = u(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = k("token"), v = u(() => t.token || (i == null ? void 0 : i.value)), r = k("onlyofficeConfig"), h = u(() => t.onlyofficeConfig || (r == null ? void 0 : r.value)), d = k("userInfo"), g = u(() => t.userInfo || (d == null ? void 0 : d.value)), a = [...S, ...S.map((y) => y.toLocaleUpperCase())];
|
|
68
|
+
return {
|
|
69
|
+
cLoadUrl: s,
|
|
70
|
+
cUploadUrl: n,
|
|
71
|
+
cToken: v,
|
|
72
|
+
cOnlyofficeConfig: h,
|
|
73
|
+
cUserInfo: g,
|
|
74
|
+
cOnlyofficePreviewType: a
|
|
75
|
+
};
|
|
76
|
+
}, G = {
|
|
15
77
|
key: 1,
|
|
16
78
|
class: "h-[1em] w-[1em]",
|
|
17
79
|
"aria-hidden": "true"
|
|
18
|
-
},
|
|
80
|
+
}, O = ["xlink:href"], V = ["src"], W = {
|
|
19
81
|
key: 1,
|
|
20
82
|
class: "h-[1em] w-[1em]",
|
|
21
83
|
"aria-hidden": "true"
|
|
22
|
-
},
|
|
84
|
+
}, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */ _({
|
|
23
85
|
name: "IkSvgIcon",
|
|
24
86
|
__name: "index",
|
|
25
87
|
props: {
|
|
@@ -45,11 +107,12 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
45
107
|
warning: { type: Boolean },
|
|
46
108
|
width: {}
|
|
47
109
|
},
|
|
48
|
-
|
|
49
|
-
|
|
110
|
+
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
111
|
+
setup(t, { emit: o }) {
|
|
112
|
+
const s = t, e = u(() => s), n = u(() => {
|
|
50
113
|
const { name: a } = e.value;
|
|
51
114
|
return /^http?:\/\//.test(a) ? "img" : /i-[^:]+:[^:]+/.test(a) ? "unocss" : a != null && a.startsWith("iksig") ? "iksig" : a != null && a.includes(":") ? "iconify" : a != null && a.startsWith("iksvg") ? "svg" : "i";
|
|
52
|
-
}),
|
|
115
|
+
}), i = u(() => {
|
|
53
116
|
const a = [];
|
|
54
117
|
if (e.value.flip)
|
|
55
118
|
switch (e.value.flip) {
|
|
@@ -64,143 +127,166 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
64
127
|
break;
|
|
65
128
|
}
|
|
66
129
|
e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
67
|
-
const
|
|
130
|
+
const y = {
|
|
68
131
|
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
69
132
|
...e.value.color && { color: e.value.color },
|
|
70
133
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
71
134
|
...a.length && { transform: a.join(" ") },
|
|
72
135
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
73
|
-
...e.value.color &&
|
|
136
|
+
...e.value.color && n.value !== "iksig" ? {
|
|
74
137
|
"--ik-icon-deep-color": e.value.color,
|
|
75
|
-
"--ik-icon-shallow-color": e.value.colorLight ||
|
|
138
|
+
"--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
|
|
76
139
|
} : {}
|
|
77
140
|
};
|
|
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
|
-
|
|
141
|
+
return e.value.width && (y.width = y.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), y;
|
|
142
|
+
}), v = o, r = (a) => {
|
|
143
|
+
v("click", a);
|
|
144
|
+
}, h = (a) => {
|
|
145
|
+
v("mouseenter", a);
|
|
146
|
+
}, d = (a) => {
|
|
147
|
+
v("mouseleave", a);
|
|
148
|
+
}, g = (a) => {
|
|
149
|
+
v("dblclick", a);
|
|
150
|
+
};
|
|
151
|
+
return (a, y) => {
|
|
152
|
+
const j = z("el-tooltip"), N = z("el-button");
|
|
153
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), c(
|
|
154
|
+
$,
|
|
155
|
+
{ key: 0 },
|
|
156
|
+
[
|
|
157
|
+
e.value.notip || !e.value.title ? (l(), c(
|
|
158
|
+
"span",
|
|
159
|
+
{
|
|
160
|
+
key: 0,
|
|
161
|
+
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
162
|
+
[a.name]: n.value === "unocss",
|
|
163
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
164
|
+
default: e.value.size === "default",
|
|
165
|
+
small: e.value.size === "small",
|
|
166
|
+
big: e.value.size === "big",
|
|
167
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
168
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
169
|
+
success: a.success || e.value.type === "success",
|
|
170
|
+
error: e.value.error || e.value.type === "error",
|
|
171
|
+
active: e.value.active,
|
|
172
|
+
disabled: e.value.disabled
|
|
173
|
+
}]),
|
|
174
|
+
style: p(i.value),
|
|
175
|
+
onClick: r,
|
|
176
|
+
onDblclick: g,
|
|
177
|
+
onMouseenter: h,
|
|
178
|
+
onMouseleave: d
|
|
179
|
+
},
|
|
180
|
+
[
|
|
181
|
+
b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
182
|
+
n.value === "iksig" ? (l(), c(
|
|
183
|
+
"i",
|
|
184
|
+
{
|
|
185
|
+
key: 0,
|
|
186
|
+
class: m(`iksig ${e.value.name}`),
|
|
187
|
+
style: p(i.value)
|
|
188
|
+
},
|
|
189
|
+
null,
|
|
190
|
+
6
|
|
191
|
+
/* CLASS, STYLE */
|
|
192
|
+
)) : n.value === "svg" ? (l(), c("svg", G, [
|
|
193
|
+
f("use", {
|
|
194
|
+
"xlink:href": `#${e.value.name}`
|
|
195
|
+
}, null, 8, O)
|
|
196
|
+
])) : n.value === "img" ? (l(), c("img", {
|
|
197
|
+
key: 2,
|
|
198
|
+
src: e.value.name,
|
|
199
|
+
class: "h-[1em] w-[1em]"
|
|
200
|
+
}, null, 8, V)) : (l(), c(
|
|
201
|
+
"i",
|
|
202
|
+
{
|
|
203
|
+
key: 3,
|
|
204
|
+
class: m(e.value.name),
|
|
205
|
+
style: p(i.value)
|
|
206
|
+
},
|
|
207
|
+
null,
|
|
208
|
+
6
|
|
209
|
+
/* CLASS, STYLE */
|
|
210
|
+
))
|
|
211
|
+
],
|
|
212
|
+
38
|
|
213
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
214
|
+
)) : (l(), x(j, {
|
|
215
|
+
key: 1,
|
|
216
|
+
content: e.value.title,
|
|
217
|
+
placement: "top",
|
|
218
|
+
"hide-after": 0
|
|
219
|
+
}, {
|
|
220
|
+
default: I(() => [
|
|
221
|
+
f(
|
|
222
|
+
"span",
|
|
223
|
+
{
|
|
224
|
+
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
225
|
+
[a.name]: n.value === "unocss",
|
|
226
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
227
|
+
default: e.value.size === "default",
|
|
228
|
+
small: e.value.size === "small",
|
|
229
|
+
big: e.value.size === "big",
|
|
230
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
231
|
+
primary: a.primary || e.value.type === "primary",
|
|
232
|
+
success: a.success || e.value.type === "success",
|
|
233
|
+
error: e.value.error || e.value.type === "error",
|
|
234
|
+
active: e.value.active
|
|
235
|
+
}]),
|
|
236
|
+
style: p(i.value),
|
|
237
|
+
onClick: r,
|
|
238
|
+
onDblclick: g,
|
|
239
|
+
onMouseenter: h,
|
|
240
|
+
onMouseleave: d
|
|
241
|
+
},
|
|
242
|
+
[
|
|
243
|
+
n.value === "iksig" ? (l(), c(
|
|
244
|
+
"i",
|
|
245
|
+
{
|
|
246
|
+
key: 0,
|
|
247
|
+
class: m(`iksig ${e.value.name}`),
|
|
248
|
+
style: p(i.value)
|
|
249
|
+
},
|
|
250
|
+
null,
|
|
251
|
+
6
|
|
252
|
+
/* CLASS, STYLE */
|
|
253
|
+
)) : n.value === "svg" ? (l(), c("svg", W, [
|
|
254
|
+
f("use", {
|
|
255
|
+
"xlink:href": `#${e.value.name}`
|
|
256
|
+
}, null, 8, F)
|
|
257
|
+
])) : n.value === "img" ? (l(), c("img", {
|
|
258
|
+
key: 2,
|
|
259
|
+
src: e.value.name,
|
|
260
|
+
class: "h-[1em] w-[1em]"
|
|
261
|
+
}, null, 8, P)) : (l(), c(
|
|
262
|
+
"i",
|
|
263
|
+
{
|
|
264
|
+
key: 3,
|
|
265
|
+
class: m(e.value.name),
|
|
266
|
+
style: p(i.value)
|
|
267
|
+
},
|
|
268
|
+
null,
|
|
269
|
+
6
|
|
270
|
+
/* CLASS, STYLE */
|
|
271
|
+
))
|
|
272
|
+
],
|
|
273
|
+
38
|
|
274
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
275
|
+
)
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
/* STABLE */
|
|
279
|
+
}, 8, ["content"]))
|
|
280
|
+
],
|
|
281
|
+
64
|
|
282
|
+
/* STABLE_FRAGMENT */
|
|
283
|
+
)) : (l(), x(N, {
|
|
198
284
|
key: 1,
|
|
199
285
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
200
286
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
203
|
-
|
|
287
|
+
default: I(() => [
|
|
288
|
+
T(
|
|
289
|
+
w(e.value.title),
|
|
204
290
|
1
|
|
205
291
|
/* TEXT */
|
|
206
292
|
)
|
|
@@ -210,12 +296,12 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
210
296
|
}, 8, ["type"]));
|
|
211
297
|
};
|
|
212
298
|
}
|
|
213
|
-
}),
|
|
214
|
-
getLinearGradient: (
|
|
215
|
-
const
|
|
216
|
-
return `linear-gradient(to top, ${
|
|
299
|
+
}), Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-c7804024"]]), q = U(Y), R = () => ({
|
|
300
|
+
getLinearGradient: (o) => {
|
|
301
|
+
const s = L.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
302
|
+
return `linear-gradient(to top, ${o} 4%, rgb(${s[0]},${s[1] + 50},${s[2]}) 88%)`;
|
|
217
303
|
}
|
|
218
|
-
}),
|
|
304
|
+
}), A = /* @__PURE__ */ _({
|
|
219
305
|
__name: "IkLinearIcon",
|
|
220
306
|
props: {
|
|
221
307
|
icon: {
|
|
@@ -232,21 +318,21 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
232
318
|
}
|
|
233
319
|
},
|
|
234
320
|
setup(t) {
|
|
235
|
-
|
|
236
|
-
"435077c3":
|
|
321
|
+
M((n) => ({
|
|
322
|
+
"435077c3": e.value
|
|
237
323
|
}));
|
|
238
|
-
const
|
|
239
|
-
return (
|
|
324
|
+
const o = t, { getLinearGradient: s } = R(), e = u(() => `${o.size}px`);
|
|
325
|
+
return (n, i) => (l(), c(
|
|
240
326
|
"div",
|
|
241
327
|
{
|
|
242
328
|
class: "form-icon",
|
|
243
|
-
style:
|
|
329
|
+
style: p({ backgroundImage: C(s)(t.backgroundColor || "#28b8a4") })
|
|
244
330
|
},
|
|
245
331
|
[
|
|
246
|
-
|
|
332
|
+
f(
|
|
247
333
|
"i",
|
|
248
334
|
{
|
|
249
|
-
class:
|
|
335
|
+
class: m(`ikflow ${t.icon}`)
|
|
250
336
|
},
|
|
251
337
|
null,
|
|
252
338
|
2
|
|
@@ -257,7 +343,7 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
257
343
|
/* STYLE */
|
|
258
344
|
));
|
|
259
345
|
}
|
|
260
|
-
}),
|
|
346
|
+
}), H = /* @__PURE__ */ B(A, [["__scopeId", "data-v-0bc5a180"]]), J = { class: "side-text items-center" }, K = { class: "side-left flex items-center" }, Q = { class: "side-right" }, Z = { class: "text-over-line" }, ee = { class: "text-over-line sub-title" }, te = /* @__PURE__ */ _({
|
|
261
347
|
__name: "IkSideText",
|
|
262
348
|
props: {
|
|
263
349
|
// 名称
|
|
@@ -315,30 +401,30 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
315
401
|
}
|
|
316
402
|
},
|
|
317
403
|
setup(t) {
|
|
318
|
-
const
|
|
319
|
-
|
|
404
|
+
const o = t, { cLoadUrl: s } = D(o), e = (r) => r ? r.startsWith("http") ? r : `${s.value}${r}` : "", n = u(() => e(o.avatar)), i = E(!!o.avatar), v = () => {
|
|
405
|
+
i.value = !1;
|
|
320
406
|
};
|
|
321
|
-
return (r,
|
|
322
|
-
var
|
|
323
|
-
const
|
|
324
|
-
return
|
|
325
|
-
|
|
326
|
-
t.avatarType === "url" ? (
|
|
407
|
+
return (r, h) => {
|
|
408
|
+
var g;
|
|
409
|
+
const d = z("el-avatar");
|
|
410
|
+
return l(), c("div", J, [
|
|
411
|
+
f("div", K, [
|
|
412
|
+
t.avatarType === "url" ? (l(), x(d, {
|
|
327
413
|
key: 0,
|
|
328
414
|
style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
|
|
329
415
|
size: t.size,
|
|
330
416
|
shape: t.shape,
|
|
331
|
-
src:
|
|
417
|
+
src: n.value,
|
|
332
418
|
fit: "contain",
|
|
333
|
-
onError:
|
|
419
|
+
onError: v
|
|
334
420
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
337
|
-
|
|
421
|
+
default: I(() => [
|
|
422
|
+
i.value ? b("v-if", !0) : (l(), c(
|
|
423
|
+
$,
|
|
338
424
|
{ key: 0 },
|
|
339
425
|
[
|
|
340
|
-
|
|
341
|
-
|
|
426
|
+
T(
|
|
427
|
+
w(t.name.slice(-2)),
|
|
342
428
|
1
|
|
343
429
|
/* TEXT */
|
|
344
430
|
)
|
|
@@ -349,33 +435,33 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
349
435
|
]),
|
|
350
436
|
_: 1
|
|
351
437
|
/* STABLE */
|
|
352
|
-
}, 8, ["size", "shape", "src"])) :
|
|
353
|
-
t.avatarType === "icon" ? (
|
|
438
|
+
}, 8, ["size", "shape", "src"])) : b("v-if", !0),
|
|
439
|
+
t.avatarType === "icon" ? (l(), x(C(q), {
|
|
354
440
|
key: 1,
|
|
355
|
-
name: `iksvg_${(
|
|
441
|
+
name: `iksvg_${(g = t.avatar) == null ? void 0 : g.replace("iksvg_", "")}`,
|
|
356
442
|
"show-bg": t.showIconBg,
|
|
357
443
|
type: t.iconType,
|
|
358
|
-
style:
|
|
444
|
+
style: p({ fontSize: t.showIconBg ? "34px" : "50px" }),
|
|
359
445
|
size: t.iconSize
|
|
360
|
-
}, null, 8, ["name", "show-bg", "type", "style", "size"])) :
|
|
361
|
-
t.avatarType === "linearIcon" ? (
|
|
446
|
+
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : b("v-if", !0),
|
|
447
|
+
t.avatarType === "linearIcon" ? (l(), x(H, {
|
|
362
448
|
key: 2,
|
|
363
449
|
icon: t.avatar,
|
|
364
450
|
"background-color": t.iconBackgroundColor
|
|
365
|
-
}, null, 8, ["icon", "background-color"])) :
|
|
451
|
+
}, null, 8, ["icon", "background-color"])) : b("v-if", !0)
|
|
366
452
|
]),
|
|
367
|
-
|
|
368
|
-
|
|
453
|
+
f("div", Q, [
|
|
454
|
+
f(
|
|
369
455
|
"p",
|
|
370
|
-
|
|
371
|
-
|
|
456
|
+
Z,
|
|
457
|
+
w(t.text),
|
|
372
458
|
1
|
|
373
459
|
/* TEXT */
|
|
374
460
|
),
|
|
375
|
-
|
|
461
|
+
f(
|
|
376
462
|
"p",
|
|
377
|
-
|
|
378
|
-
|
|
463
|
+
ee,
|
|
464
|
+
w(t.subText),
|
|
379
465
|
1
|
|
380
466
|
/* TEXT */
|
|
381
467
|
)
|
|
@@ -383,8 +469,8 @@ const B = (t, i) => (t.install = (e) => {
|
|
|
383
469
|
]);
|
|
384
470
|
};
|
|
385
471
|
}
|
|
386
|
-
}),
|
|
472
|
+
}), ae = /* @__PURE__ */ B(te, [["__scopeId", "data-v-c5366627"]]), ne = U(ae);
|
|
387
473
|
export {
|
|
388
|
-
|
|
389
|
-
|
|
474
|
+
ne as IkSideText,
|
|
475
|
+
ne as default
|
|
390
476
|
};
|
|
@@ -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 k=(o,a)=>(o.install=i=>{for(const t of[o,...Object.values({})])i.component(t.name,t)},o),y=(o,a)=>{const i=o.__vccOpts||o;for(const[t,n]of a)i[t]=n;return i},h=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],B=o=>{const a=e.inject("loadUrl"),i=e.computed(()=>o.loadUrl||o.fileUrl||(a==null?void 0:a.value)),t=e.inject("uploadUrl"),n=e.computed(()=>o.action||o.uploadUrl||(t==null?void 0:t.value)),c=e.inject("token"),d=e.computed(()=>o.token||(c==null?void 0:c.value)),s=e.inject("onlyofficeConfig"),f=e.computed(()=>o.onlyofficeConfig||(s==null?void 0:s.value)),m=e.inject("userInfo"),p=e.computed(()=>o.userInfo||(m==null?void 0:m.value)),l=[...h,...h.map(u=>u.toLocaleUpperCase())];return{cLoadUrl:i,cUploadUrl:n,cToken:d,cOnlyofficeConfig:f,cUserInfo:p,cOnlyofficePreviewType:l}},b={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},x=["xlink:href"],w=["src"],z={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},S=["xlink:href"],C=["src"],_=k(y(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(o,{emit:a}){const i=o,t=e.computed(()=>i),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"}),c=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 u={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||g.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(u.width=u.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),u}),d=a,s=l=>{d("click",l)},f=l=>{d("mouseenter",l)},m=l=>{d("mouseleave",l)},p=l=>{d("dblclick",l)};return(l,u)=>{const L=e.resolveComponent("el-tooltip"),U=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(c.value),onClick:s,onDblclick:p,onMouseenter:f,onMouseleave:m},[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(c.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",b,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,x)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,w)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(c.value)},null,6))],38)):(e.openBlock(),e.createBlock(L,{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(c.value),onClick:s,onDblclick:p,onMouseenter:f,onMouseleave:m},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(c.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",z,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,S)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,C)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(c.value)},null,6))],38)]),_:1},8,["content"]))],64)):(e.openBlock(),e.createBlock(U,{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"]])),I=()=>({getLinearGradient:a=>{const i=g.ikColor.hexToRGB(a).replace(/[^\d,]/g,"").split(",").map(Number);return`linear-gradient(to top, ${a} 4%, rgb(${i[0]},${i[1]+50},${i[2]}) 88%)`}}),T=y(e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(o){e.useCssVars(n=>({"435077c3":t.value}));const a=o,{getLinearGradient:i}=I(),t=e.computed(()=>`${a.size}px`);return(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(i)(o.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${o.icon}`)},null,2)],4))}}),[["__scopeId","data-v-0bc5a180"]]),$={class:"side-text items-center"},E={class:"side-left flex items-center"},N={class:"side-right"},V={class:"text-over-line"},j={class:"text-over-line sub-title"},v=k(y(e.defineComponent({__name:"IkSideText",props:{name:{type:String,default:""},avatar:{type:String,default:""},avatarType:{type:String,default:"url"},showIconBg:{type:Boolean,default:!1},iconType:{type:String,default:"info"},iconBackgroundColor:{type:String,default:""},text:{type:String,default:""},subText:{type:String,default:""},shape:{type:String,default:"square"},size:{type:Number,default:50},iconSize:{type:String||Number,default:"small"},loadUrl:{type:String,default:""}},setup(o){const a=o,{cLoadUrl:i}=B(a),t=s=>s?s.startsWith("http")?s:`${i.value}${s}`:"",n=e.computed(()=>t(a.avatar)),c=e.ref(!!a.avatar),d=()=>{c.value=!1};return(s,f)=>{var p;const m=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",E,[o.avatarType==="url"?(e.openBlock(),e.createBlock(m,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:o.size,shape:o.shape,src:n.value,fit:"contain",onError:d},{default:e.withCtx(()=>[c.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(o.name.slice(-2)),1)],64))]),_:1},8,["size","shape","src"])):e.createCommentVNode("v-if",!0),o.avatarType==="icon"?(e.openBlock(),e.createBlock(e.unref(_),{key:1,name:`iksvg_${(p=o.avatar)==null?void 0:p.replace("iksvg_","")}`,"show-bg":o.showIconBg,type:o.iconType,style:e.normalizeStyle({fontSize:o.showIconBg?"34px":"50px"}),size:o.iconSize},null,8,["name","show-bg","type","style","size"])):e.createCommentVNode("v-if",!0),o.avatarType==="linearIcon"?(e.openBlock(),e.createBlock(T,{key:2,icon:o.avatar,"background-color":o.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",N,[e.createElementVNode("p",V,e.toDisplayString(o.text),1),e.createElementVNode("p",j,e.toDisplayString(o.subText),1)])])}}}),[["__scopeId","data-v-c5366627"]]));r.IkSideText=v,r.default=v,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-c7804024]{display:flex}.ik-svg-icon.ik-icon-span[data-v-c7804024]:not(:first-child){margin-left:var(--ik-margin-s-8)}.form-icon[data-v-0bc5a180]{--ik-color-white: #fff;display:flex;align-items:center;justify-content:center;width:var(--435077c3);height:var(--435077c3);border-radius:4px}.form-icon i[data-v-0bc5a180]{font-size:27px;color:var(--ik-color-white)}.side-text[data-v-c5366627]{display:flex}.side-text .side-left[data-v-c5366627]{margin-right:12px}.side-text .side-right[data-v-c5366627]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-c5366627]{overflow:hidden;text-overflow:ellipsis;line-height:1}.side-text .side-right p[data-v-c5366627]:first-child{padding-bottom:7px}.side-text .side-right p[data-v-c5366627]:last-child{color:var(--ik-color-font-secondary, #b5b5c3);font-size:13px}
|