iking-web-ui-pro 0.3.3 → 0.3.5
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 +614 -638
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +153 -177
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +272 -296
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +153 -177
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1496 -1520
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1464 -1488
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +144 -168
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +227 -244
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +357 -381
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +626 -650
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1440 -1464
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +573 -597
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +331 -355
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +178 -202
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +131 -155
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +692 -716
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +385 -409
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +193 -217
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +11633 -11650
- package/dist/index.umd.js +99 -99
- package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-2648e369]{display:flex}.ik-svg-icon.ik-icon-span[data-v-2648e369]:not(:first-child){margin-left:var(--ik-margin-s-8)}.ik-schedule[data-v-e308f501]{width:100%;height:100%;display:flex}.ik-schedule__left[data-v-e308f501]{height:100%;display:flex;flex-direction:column;flex-grow:1;flex-shrink:0}.ik-schedule__header[data-v-e308f501]{flex-shrink:0;flex-grow:0;text-align:left;display:flex}.ik-schedule__title[data-v-e308f501]{font-family:Arial-BoldMT,Arial Bold,Arial,sans-serif;font-weight:700;flex-shrink:0}.ik-schedule__body[data-v-e308f501]{flex-grow:1;margin-top:16px;height:calc(100% - 56px)}.ik-schedule__header-right[data-v-e308f501]{display:flex;justify-content:space-between;flex-grow:1}.ik-schedule__header-right-item[data-v-e308f501]{border-left:4px solid;line-height:32px}.ik-schedule__right-title[data-v-e308f501]{text-align:left;line-height:32px}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as y, computed as r, defineComponent as z, resolveComponent as w, openBlock as o, createElementBlock as i, normalizeClass as m, normalizeStyle as S, Fragment as _, createElementVNode as p, createBlock as h, withCtx as I, mergeProps as E, createTextVNode as C, toDisplayString as x, useCssVars as G, unref as T, ref as M, createCommentVNode as b } from "vue";
|
|
2
2
|
import { ikColor as L } from "iking-utils-pro";
|
|
3
|
-
const U = (t,
|
|
3
|
+
const U = (t, l) => (t.install = (n) => {
|
|
4
4
|
for (const e of [t, ...Object.values({})])
|
|
5
|
-
|
|
6
|
-
}, t),
|
|
7
|
-
const
|
|
8
|
-
for (const [e,
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
},
|
|
5
|
+
n.component(e.name, e);
|
|
6
|
+
}, t), $ = (t, l) => {
|
|
7
|
+
const n = t.__vccOpts || t;
|
|
8
|
+
for (const [e, s] of l)
|
|
9
|
+
n[e] = s;
|
|
10
|
+
return n;
|
|
11
|
+
}, B = [
|
|
12
12
|
"csv",
|
|
13
13
|
"djvu",
|
|
14
14
|
"doc",
|
|
@@ -63,25 +63,25 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
63
63
|
"mp4",
|
|
64
64
|
"flv",
|
|
65
65
|
"tls"
|
|
66
|
-
],
|
|
67
|
-
const
|
|
66
|
+
], O = (t) => {
|
|
67
|
+
const l = y("loadUrl"), n = r(() => t.loadUrl || t.fileUrl || (l == null ? void 0 : l.value)), e = y("uploadUrl"), s = r(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), u = y("token"), d = r(() => t.token || (u == null ? void 0 : u.value)), c = y("onlyofficeConfig"), k = r(() => t.onlyofficeConfig || (c == null ? void 0 : c.value)), v = y("userInfo"), f = r(() => t.userInfo || (v == null ? void 0 : v.value)), a = [...B, ...B.map((g) => g.toLocaleUpperCase())];
|
|
68
68
|
return {
|
|
69
|
-
cLoadUrl:
|
|
70
|
-
cUploadUrl:
|
|
71
|
-
cToken:
|
|
72
|
-
cOnlyofficeConfig:
|
|
73
|
-
cUserInfo:
|
|
69
|
+
cLoadUrl: n,
|
|
70
|
+
cUploadUrl: s,
|
|
71
|
+
cToken: d,
|
|
72
|
+
cOnlyofficeConfig: k,
|
|
73
|
+
cUserInfo: f,
|
|
74
74
|
cOnlyofficePreviewType: a
|
|
75
75
|
};
|
|
76
|
-
},
|
|
76
|
+
}, V = {
|
|
77
77
|
key: 1,
|
|
78
78
|
class: "h-[1em] w-[1em]",
|
|
79
79
|
"aria-hidden": "true"
|
|
80
|
-
},
|
|
80
|
+
}, D = ["xlink:href"], P = ["src"], W = {
|
|
81
81
|
key: 1,
|
|
82
82
|
class: "h-[1em] w-[1em]",
|
|
83
83
|
"aria-hidden": "true"
|
|
84
|
-
}, F = ["xlink:href"],
|
|
84
|
+
}, F = ["xlink:href"], X = ["src"], Y = /* @__PURE__ */ z({
|
|
85
85
|
name: "IkSvgIcon",
|
|
86
86
|
__name: "index",
|
|
87
87
|
props: {
|
|
@@ -105,14 +105,15 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
105
105
|
title: {},
|
|
106
106
|
type: { default: "primary" },
|
|
107
107
|
warning: { type: Boolean },
|
|
108
|
-
width: {}
|
|
108
|
+
width: {},
|
|
109
|
+
iconClass: { default: "" }
|
|
109
110
|
},
|
|
110
111
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
111
|
-
setup(t, { emit:
|
|
112
|
-
const
|
|
112
|
+
setup(t, { emit: l }) {
|
|
113
|
+
const n = t, e = r(() => n), s = r(() => {
|
|
113
114
|
const { name: a } = e.value;
|
|
114
115
|
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";
|
|
115
|
-
}),
|
|
116
|
+
}), u = r(() => {
|
|
116
117
|
const a = [];
|
|
117
118
|
if (e.value.flip)
|
|
118
119
|
switch (e.value.flip) {
|
|
@@ -127,182 +128,157 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
127
128
|
break;
|
|
128
129
|
}
|
|
129
130
|
e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
130
|
-
const
|
|
131
|
-
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
131
|
+
const g = {
|
|
132
132
|
...e.value.color && { color: e.value.color },
|
|
133
133
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
134
134
|
...a.length && { transform: a.join(" ") },
|
|
135
135
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
136
|
-
...e.value.color &&
|
|
136
|
+
...e.value.color && s.value !== "iksig" ? {
|
|
137
137
|
"--ik-icon-deep-color": e.value.color,
|
|
138
138
|
"--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
|
|
139
139
|
} : {}
|
|
140
140
|
};
|
|
141
|
-
return e.value.width && (
|
|
142
|
-
}),
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
|
|
141
|
+
return e.value.width && (g.width = g.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), g;
|
|
142
|
+
}), d = l, c = (a) => {
|
|
143
|
+
d("click", a);
|
|
144
|
+
}, k = (a) => {
|
|
145
|
+
d("mouseenter", a);
|
|
146
|
+
}, v = (a) => {
|
|
147
|
+
d("mouseleave", a);
|
|
148
|
+
}, f = (a) => {
|
|
149
|
+
d("dblclick", a);
|
|
150
150
|
};
|
|
151
|
-
return (a,
|
|
152
|
-
const j =
|
|
153
|
-
return
|
|
154
|
-
|
|
155
|
-
{
|
|
151
|
+
return (a, g) => {
|
|
152
|
+
const j = w("el-tooltip"), N = w("el-button");
|
|
153
|
+
return o(), i(
|
|
154
|
+
"i",
|
|
155
|
+
{
|
|
156
|
+
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
157
|
+
[a.iconClass]: !0,
|
|
158
|
+
[a.name]: s.value === "unocss",
|
|
159
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
160
|
+
default: e.value.size === "default",
|
|
161
|
+
small: e.value.size === "small",
|
|
162
|
+
big: e.value.size === "big",
|
|
163
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
164
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
165
|
+
success: a.success || e.value.type === "success",
|
|
166
|
+
error: e.value.error || e.value.type === "error",
|
|
167
|
+
active: e.value.active,
|
|
168
|
+
disabled: e.value.disabled
|
|
169
|
+
}]),
|
|
170
|
+
style: S(u.value),
|
|
171
|
+
onClick: c,
|
|
172
|
+
onDblclick: f,
|
|
173
|
+
onMouseenter: k,
|
|
174
|
+
onMouseleave: v
|
|
175
|
+
},
|
|
156
176
|
[
|
|
157
|
-
e.value.
|
|
158
|
-
|
|
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
|
-
},
|
|
177
|
+
e.value.tableIconType === "icon" || !e.value.tableIconType ? (o(), i(
|
|
178
|
+
_,
|
|
179
|
+
{ key: 0 },
|
|
180
180
|
[
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
{
|
|
184
|
-
key: 0,
|
|
185
|
-
class: m(`iksig ${e.value.name}`),
|
|
186
|
-
style: p(i.value)
|
|
187
|
-
},
|
|
188
|
-
null,
|
|
189
|
-
6
|
|
190
|
-
/* CLASS, STYLE */
|
|
191
|
-
)) : n.value === "svg" ? (l(), c("svg", G, [
|
|
192
|
-
f("use", {
|
|
193
|
-
"xlink:href": `#${e.value.name}`
|
|
194
|
-
}, null, 8, O)
|
|
195
|
-
])) : n.value === "img" ? (l(), c("img", {
|
|
196
|
-
key: 2,
|
|
197
|
-
src: e.value.name,
|
|
198
|
-
class: "h-[1em] w-[1em]"
|
|
199
|
-
}, null, 8, V)) : (l(), c(
|
|
200
|
-
"i",
|
|
201
|
-
{
|
|
202
|
-
key: 3,
|
|
203
|
-
class: m(e.value.name),
|
|
204
|
-
style: p(i.value)
|
|
205
|
-
},
|
|
206
|
-
null,
|
|
207
|
-
6
|
|
208
|
-
/* CLASS, STYLE */
|
|
209
|
-
))
|
|
210
|
-
],
|
|
211
|
-
38
|
|
212
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
213
|
-
)) : (l(), b(j, {
|
|
214
|
-
key: 1,
|
|
215
|
-
content: e.value.title,
|
|
216
|
-
placement: "top",
|
|
217
|
-
"popper-class": "ik-svg-icon-tooltip",
|
|
218
|
-
"hide-after": 0
|
|
219
|
-
}, {
|
|
220
|
-
default: _(() => [
|
|
221
|
-
f(
|
|
222
|
-
"i",
|
|
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
|
-
disabled: e.value.disabled
|
|
236
|
-
}]),
|
|
237
|
-
style: p(i.value),
|
|
238
|
-
onClick: r,
|
|
239
|
-
onDblclick: g,
|
|
240
|
-
onMouseenter: h,
|
|
241
|
-
onMouseleave: d
|
|
242
|
-
},
|
|
181
|
+
e.value.notip || !e.value.title ? (o(), i(
|
|
182
|
+
_,
|
|
183
|
+
{ key: 0 },
|
|
243
184
|
[
|
|
244
|
-
|
|
185
|
+
s.value === "iksig" ? (o(), i(
|
|
245
186
|
"i",
|
|
246
187
|
{
|
|
247
188
|
key: 0,
|
|
248
|
-
class: m(`iksig ${e.value.name}`)
|
|
249
|
-
style: p(i.value)
|
|
189
|
+
class: m(`iksig ${e.value.name}`)
|
|
250
190
|
},
|
|
251
191
|
null,
|
|
252
|
-
|
|
253
|
-
/* CLASS
|
|
254
|
-
)) :
|
|
255
|
-
|
|
192
|
+
2
|
|
193
|
+
/* CLASS */
|
|
194
|
+
)) : s.value === "svg" ? (o(), i("svg", V, [
|
|
195
|
+
p("use", {
|
|
256
196
|
"xlink:href": `#${e.value.name}`
|
|
257
|
-
}, null, 8,
|
|
258
|
-
])) :
|
|
197
|
+
}, null, 8, D)
|
|
198
|
+
])) : s.value === "img" ? (o(), i("img", {
|
|
259
199
|
key: 2,
|
|
260
200
|
src: e.value.name,
|
|
261
201
|
class: "h-[1em] w-[1em]"
|
|
262
|
-
}, null, 8, P)) : (
|
|
202
|
+
}, null, 8, P)) : (o(), i(
|
|
263
203
|
"i",
|
|
264
204
|
{
|
|
265
205
|
key: 3,
|
|
266
|
-
class: m(e.value.name)
|
|
267
|
-
style: p(i.value)
|
|
206
|
+
class: m(e.value.name)
|
|
268
207
|
},
|
|
269
208
|
null,
|
|
270
|
-
|
|
271
|
-
/* CLASS
|
|
209
|
+
2
|
|
210
|
+
/* CLASS */
|
|
272
211
|
))
|
|
273
212
|
],
|
|
274
|
-
|
|
275
|
-
/*
|
|
213
|
+
64
|
|
214
|
+
/* STABLE_FRAGMENT */
|
|
215
|
+
)) : (o(), h(j, {
|
|
216
|
+
key: 1,
|
|
217
|
+
content: e.value.title,
|
|
218
|
+
placement: "top",
|
|
219
|
+
"popper-class": "ik-svg-icon-tooltip",
|
|
220
|
+
"hide-after": 0
|
|
221
|
+
}, {
|
|
222
|
+
default: I(() => [
|
|
223
|
+
s.value === "iksig" ? (o(), i(
|
|
224
|
+
"i",
|
|
225
|
+
{
|
|
226
|
+
key: 0,
|
|
227
|
+
class: m(`iksig ${e.value.name}`)
|
|
228
|
+
},
|
|
229
|
+
null,
|
|
230
|
+
2
|
|
231
|
+
/* CLASS */
|
|
232
|
+
)) : s.value === "svg" ? (o(), i("svg", W, [
|
|
233
|
+
p("use", {
|
|
234
|
+
"xlink:href": `#${e.value.name}`
|
|
235
|
+
}, null, 8, F)
|
|
236
|
+
])) : s.value === "img" ? (o(), i("img", {
|
|
237
|
+
key: 2,
|
|
238
|
+
src: e.value.name,
|
|
239
|
+
class: "h-[1em] w-[1em]"
|
|
240
|
+
}, null, 8, X)) : (o(), i(
|
|
241
|
+
"i",
|
|
242
|
+
{
|
|
243
|
+
key: 3,
|
|
244
|
+
class: m(e.value.name)
|
|
245
|
+
},
|
|
246
|
+
null,
|
|
247
|
+
2
|
|
248
|
+
/* CLASS */
|
|
249
|
+
))
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
/* STABLE */
|
|
253
|
+
}, 8, ["content"]))
|
|
254
|
+
],
|
|
255
|
+
64
|
|
256
|
+
/* STABLE_FRAGMENT */
|
|
257
|
+
)) : (o(), h(N, E({ key: 1 }, a.$attrs, {
|
|
258
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
259
|
+
}), {
|
|
260
|
+
default: I(() => [
|
|
261
|
+
C(
|
|
262
|
+
x(e.value.title),
|
|
263
|
+
1
|
|
264
|
+
/* TEXT */
|
|
276
265
|
)
|
|
277
266
|
]),
|
|
278
267
|
_: 1
|
|
279
268
|
/* STABLE */
|
|
280
|
-
},
|
|
269
|
+
}, 16, ["type"]))
|
|
281
270
|
],
|
|
282
|
-
|
|
283
|
-
/*
|
|
284
|
-
)
|
|
285
|
-
key: 1,
|
|
286
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
287
|
-
}, {
|
|
288
|
-
default: _(() => [
|
|
289
|
-
T(
|
|
290
|
-
w(e.value.title),
|
|
291
|
-
1
|
|
292
|
-
/* TEXT */
|
|
293
|
-
)
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
/* STABLE */
|
|
297
|
-
}, 8, ["type"]));
|
|
271
|
+
38
|
|
272
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
273
|
+
);
|
|
298
274
|
};
|
|
299
275
|
}
|
|
300
|
-
}),
|
|
301
|
-
getLinearGradient: (
|
|
302
|
-
const
|
|
303
|
-
return `linear-gradient(to top, ${
|
|
276
|
+
}), q = /* @__PURE__ */ $(Y, [["__scopeId", "data-v-2648e369"]]), R = U(q), A = () => ({
|
|
277
|
+
getLinearGradient: (l) => {
|
|
278
|
+
const n = L.hexToRGB(l).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
279
|
+
return `linear-gradient(to top, ${l} 4%, rgb(${n[0]},${n[1] + 50},${n[2]}) 88%)`;
|
|
304
280
|
}
|
|
305
|
-
}),
|
|
281
|
+
}), H = /* @__PURE__ */ z({
|
|
306
282
|
__name: "IkLinearIcon",
|
|
307
283
|
props: {
|
|
308
284
|
icon: {
|
|
@@ -319,18 +295,18 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
319
295
|
}
|
|
320
296
|
},
|
|
321
297
|
setup(t) {
|
|
322
|
-
|
|
298
|
+
G((s) => ({
|
|
323
299
|
"435077c3": e.value
|
|
324
300
|
}));
|
|
325
|
-
const
|
|
326
|
-
return (
|
|
301
|
+
const l = t, { getLinearGradient: n } = A(), e = r(() => `${l.size}px`);
|
|
302
|
+
return (s, u) => (o(), i(
|
|
327
303
|
"div",
|
|
328
304
|
{
|
|
329
305
|
class: "form-icon",
|
|
330
|
-
style:
|
|
306
|
+
style: S({ backgroundImage: T(n)(t.backgroundColor || "#28b8a4") })
|
|
331
307
|
},
|
|
332
308
|
[
|
|
333
|
-
|
|
309
|
+
p(
|
|
334
310
|
"i",
|
|
335
311
|
{
|
|
336
312
|
class: m(`ikflow ${t.icon}`)
|
|
@@ -344,7 +320,7 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
344
320
|
/* STYLE */
|
|
345
321
|
));
|
|
346
322
|
}
|
|
347
|
-
}),
|
|
323
|
+
}), J = /* @__PURE__ */ $(H, [["__scopeId", "data-v-0bc5a180"]]), K = { class: "side-text items-center" }, Q = { class: "side-left flex items-center" }, Z = { class: "side-right" }, ee = { class: "text-over-line" }, te = { class: "text-over-line sub-title" }, ae = /* @__PURE__ */ z({
|
|
348
324
|
__name: "IkSideText",
|
|
349
325
|
props: {
|
|
350
326
|
// 名称
|
|
@@ -390,7 +366,7 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
390
366
|
},
|
|
391
367
|
size: {
|
|
392
368
|
type: Number,
|
|
393
|
-
default:
|
|
369
|
+
default: 40
|
|
394
370
|
},
|
|
395
371
|
iconSize: {
|
|
396
372
|
type: String || Number,
|
|
@@ -402,30 +378,30 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
402
378
|
}
|
|
403
379
|
},
|
|
404
380
|
setup(t) {
|
|
405
|
-
const
|
|
406
|
-
|
|
381
|
+
const l = t, { cLoadUrl: n } = O(l), e = (c) => c ? c.startsWith("http") ? c : `${n.value}${c}` : "", s = r(() => e(l.avatar)), u = M(!!l.avatar), d = () => {
|
|
382
|
+
u.value = !1;
|
|
407
383
|
};
|
|
408
|
-
return (
|
|
409
|
-
var
|
|
410
|
-
const
|
|
411
|
-
return
|
|
412
|
-
|
|
413
|
-
t.avatarType === "url" ? (
|
|
384
|
+
return (c, k) => {
|
|
385
|
+
var f;
|
|
386
|
+
const v = w("el-avatar");
|
|
387
|
+
return o(), i("div", K, [
|
|
388
|
+
p("div", Q, [
|
|
389
|
+
t.avatarType === "url" ? (o(), h(v, {
|
|
414
390
|
key: 0,
|
|
415
391
|
style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
|
|
416
392
|
size: t.size,
|
|
417
393
|
shape: t.shape,
|
|
418
|
-
src:
|
|
394
|
+
src: s.value,
|
|
419
395
|
fit: "contain",
|
|
420
|
-
onError:
|
|
396
|
+
onError: d
|
|
421
397
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
|
|
424
|
-
|
|
398
|
+
default: I(() => [
|
|
399
|
+
u.value ? b("v-if", !0) : (o(), i(
|
|
400
|
+
_,
|
|
425
401
|
{ key: 0 },
|
|
426
402
|
[
|
|
427
|
-
|
|
428
|
-
|
|
403
|
+
C(
|
|
404
|
+
x(t.name.slice(-2)),
|
|
429
405
|
1
|
|
430
406
|
/* TEXT */
|
|
431
407
|
)
|
|
@@ -436,33 +412,33 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
436
412
|
]),
|
|
437
413
|
_: 1
|
|
438
414
|
/* STABLE */
|
|
439
|
-
}, 8, ["size", "shape", "src"])) :
|
|
440
|
-
t.avatarType === "icon" ? (
|
|
415
|
+
}, 8, ["size", "shape", "src"])) : b("v-if", !0),
|
|
416
|
+
t.avatarType === "icon" ? (o(), h(T(R), {
|
|
441
417
|
key: 1,
|
|
442
|
-
name: `iksvg_${(
|
|
418
|
+
name: `iksvg_${(f = t.avatar) == null ? void 0 : f.replace("iksvg_", "")}`,
|
|
443
419
|
"show-bg": t.showIconBg,
|
|
444
420
|
type: t.iconType,
|
|
445
|
-
style:
|
|
421
|
+
style: S({ fontSize: t.showIconBg ? "34px" : "40px" }),
|
|
446
422
|
size: t.iconSize
|
|
447
|
-
}, null, 8, ["name", "show-bg", "type", "style", "size"])) :
|
|
448
|
-
t.avatarType === "linearIcon" ? (
|
|
423
|
+
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : b("v-if", !0),
|
|
424
|
+
t.avatarType === "linearIcon" ? (o(), h(J, {
|
|
449
425
|
key: 2,
|
|
450
426
|
icon: t.avatar,
|
|
451
427
|
"background-color": t.iconBackgroundColor
|
|
452
|
-
}, null, 8, ["icon", "background-color"])) :
|
|
428
|
+
}, null, 8, ["icon", "background-color"])) : b("v-if", !0)
|
|
453
429
|
]),
|
|
454
|
-
|
|
455
|
-
|
|
430
|
+
p("div", Z, [
|
|
431
|
+
p(
|
|
456
432
|
"p",
|
|
457
|
-
|
|
458
|
-
|
|
433
|
+
ee,
|
|
434
|
+
x(t.text),
|
|
459
435
|
1
|
|
460
436
|
/* TEXT */
|
|
461
437
|
),
|
|
462
|
-
|
|
438
|
+
p(
|
|
463
439
|
"p",
|
|
464
|
-
|
|
465
|
-
|
|
440
|
+
te,
|
|
441
|
+
x(t.subText),
|
|
466
442
|
1
|
|
467
443
|
/* TEXT */
|
|
468
444
|
)
|
|
@@ -470,8 +446,8 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
470
446
|
]);
|
|
471
447
|
};
|
|
472
448
|
}
|
|
473
|
-
}),
|
|
449
|
+
}), oe = /* @__PURE__ */ $(ae, [["__scopeId", "data-v-000efb31"]]), se = U(oe);
|
|
474
450
|
export {
|
|
475
|
-
|
|
476
|
-
|
|
451
|
+
se as IkSideText,
|
|
452
|
+
se as default
|
|
477
453
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-2648e369]{display:flex}.ik-svg-icon.ik-icon-span[data-v-2648e369]: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-000efb31]{display:flex}.side-text .side-left[data-v-000efb31]{margin-right:12px}.side-text .side-right[data-v-000efb31]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-000efb31]{overflow:hidden;text-overflow:ellipsis;line-height:1}.side-text .side-right p[data-v-000efb31]:first-child{padding-bottom:7px}.side-text .side-right p[data-v-000efb31]:last-child{color:var(--ik-color-font-secondary, #b5b5c3);font-size:13px}
|