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.
Files changed (78) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +956 -942
  2. package/dist/IkApprovalProcessDetail/ik.index.umd.js +48 -48
  3. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  4. package/dist/IkBaseDialog/ik.index.es.js +210 -189
  5. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  6. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  7. package/dist/IkBtnSetting/ik.index.es.js +331 -310
  8. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  9. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  10. package/dist/IkCollapseCard/ik.index.es.js +195 -174
  11. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  12. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  13. package/dist/IkDescription/ik.index.es.js +1462 -1448
  14. package/dist/IkDescription/ik.index.umd.js +48 -48
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +1441 -1427
  17. package/dist/IkDetailPreviewFiles/ik.index.umd.js +48 -48
  18. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  19. package/dist/IkExpandCollapse/ik.index.es.js +191 -170
  20. package/dist/IkExpandCollapse/ik.index.umd.js +1 -1
  21. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  22. package/dist/IkIconPicker/ik.index.es.js +229 -208
  23. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  24. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  25. package/dist/IkMonacoEditor/ik.index.es.js +449 -428
  26. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  27. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  28. package/dist/IkPageFull/ik.index.es.js +1440 -1419
  29. package/dist/IkPageFull/ik.index.umd.js +2 -2
  30. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPreviewFile/ik.index.es.js +1444 -1430
  32. package/dist/IkPreviewFile/ik.index.umd.js +48 -48
  33. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPreviewFileDialog/ik.index.es.js +1047 -1026
  35. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  36. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  37. package/dist/IkSchedule/ik.index.es.js +3041 -3020
  38. package/dist/IkSchedule/ik.index.umd.js +1 -1
  39. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  40. package/dist/IkSelectTag/ik.index.es.js +141 -130
  41. package/dist/IkSelectTag/ik.index.umd.js +1 -1
  42. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +276 -190
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  46. package/dist/IkStatu/ik.index.es.js +47 -38
  47. package/dist/IkStatu/ik.index.umd.js +1 -1
  48. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  49. package/dist/IkStatuOver/ik.index.es.js +114 -106
  50. package/dist/IkStatuOver/ik.index.umd.js +1 -1
  51. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  52. package/dist/IkSvgIcon/ik.index.es.js +169 -148
  53. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  54. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  55. package/dist/IkTaskResume/ik.index.es.js +23 -0
  56. package/dist/IkTaskResume/ik.index.umd.js +1 -0
  57. package/dist/IkUploadFile/ik.index.es.js +993 -972
  58. package/dist/IkUploadFile/ik.index.umd.js +47 -47
  59. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  60. package/dist/IkUploadImage/ik.index.es.js +522 -522
  61. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  62. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  63. package/dist/IkVerticalStepBar/ik.index.es.js +234 -213
  64. package/dist/IkVerticalStepBar/ik.index.umd.js +3 -3
  65. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  66. package/dist/iking-web-ui-pro.css +2 -2
  67. package/dist/index.es.js +14080 -14047
  68. package/dist/index.umd.js +86 -86
  69. package/dist/src/components/IkMonacoEditor/index.d.ts +12 -2
  70. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -2
  71. package/dist/src/components/IkStatu/index.d.ts +3 -3
  72. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  73. package/dist/src/components/IkSvgIcon/index.d.ts +12 -2
  74. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +12 -2
  75. package/dist/src/components/IkTaskResume/index.d.ts +2 -0
  76. package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/package.json +1 -1
@@ -1,25 +1,87 @@
1
- import { defineComponent as k, computed as g, resolveComponent as m, openBlock as n, createElementBlock as o, normalizeClass as v, normalizeStyle as c, createCommentVNode as d, createElementVNode as u, createBlock as p, withCtx as h, createTextVNode as _, toDisplayString as y, useCssVars as S, unref as z, ref as $, Fragment as T } from "vue";
2
- import { ikColor as I } from "iking-utils-pro";
3
- const B = (t, i) => (t.install = (e) => {
4
- for (const l of [t, ...Object.values({})])
5
- e.component(l.name, l);
6
- }, t), b = (t, i) => {
7
- const e = t.__vccOpts || t;
8
- for (const [l, s] of i)
9
- e[l] = s;
10
- return e;
11
- }, C = {
12
- key: 0,
13
- class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
14
- }, L = {
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
- }, N = ["xlink:href"], j = ["src"], E = {
80
+ }, O = ["xlink:href"], V = ["src"], W = {
19
81
  key: 1,
20
82
  class: "h-[1em] w-[1em]",
21
83
  "aria-hidden": "true"
22
- }, G = ["xlink:href"], U = ["src"], V = /* @__PURE__ */ k({
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
- setup(t) {
49
- const i = t, e = g(() => i), l = g(() => {
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
- }), s = g(() => {
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 r = {
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 && l.value !== "iksig" ? {
136
+ ...e.value.color && n.value !== "iksig" ? {
74
137
  "--ik-icon-deep-color": e.value.color,
75
- "--ik-icon-shallow-color": e.value.colorLight || I.setOpacity(e.value.color, e.value.opacity)
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 && (r.width = r.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), r;
79
- });
80
- return (a, r) => {
81
- const w = m("el-tooltip"), f = m("el-button");
82
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (n(), o("span", C, [
83
- e.value.notip || !e.value.title ? (n(), o(
84
- "i",
85
- {
86
- key: 0,
87
- class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
88
- [a.name]: l.value === "unocss",
89
- "show-bg": e.value.showBg || e.value.bg,
90
- default: e.value.size === "default",
91
- small: e.value.size === "small",
92
- big: e.value.size === "big",
93
- warning: e.value.warning || e.value.type === "warning",
94
- primary: e.value.primary || e.value.type === "primary",
95
- success: a.success || e.value.type === "success",
96
- error: e.value.error || e.value.type === "error",
97
- active: e.value.active,
98
- disabled: e.value.disabled
99
- }]),
100
- style: c(s.value)
101
- },
102
- [
103
- d(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
104
- l.value === "iksig" ? (n(), o(
105
- "i",
106
- {
107
- key: 0,
108
- class: v(`iksig ${e.value.name}`),
109
- style: c(s.value)
110
- },
111
- null,
112
- 6
113
- /* CLASS, STYLE */
114
- )) : l.value === "svg" ? (n(), o("svg", L, [
115
- u("use", {
116
- "xlink:href": `#${e.value.name}`
117
- }, null, 8, N)
118
- ])) : l.value === "img" ? (n(), o("img", {
119
- key: 2,
120
- src: e.value.name,
121
- class: "h-[1em] w-[1em]"
122
- }, null, 8, j)) : (n(), o(
123
- "i",
124
- {
125
- key: 3,
126
- class: v(e.value.name),
127
- style: c(s.value)
128
- },
129
- null,
130
- 6
131
- /* CLASS, STYLE */
132
- ))
133
- ],
134
- 6
135
- /* CLASS, STYLE */
136
- )) : (n(), p(w, {
137
- key: 1,
138
- content: e.value.title,
139
- placement: "top"
140
- }, {
141
- default: h(() => [
142
- u(
143
- "i",
144
- {
145
- class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
146
- [a.name]: l.value === "unocss",
147
- "show-bg": e.value.showBg || e.value.bg,
148
- default: e.value.size === "default",
149
- small: e.value.size === "small",
150
- big: e.value.size === "big",
151
- warning: e.value.warning || e.value.type === "warning",
152
- primary: a.primary || e.value.type === "primary",
153
- success: a.success || e.value.type === "success",
154
- error: e.value.error || e.value.type === "error",
155
- active: e.value.active
156
- }]),
157
- style: c(s.value)
158
- },
159
- [
160
- l.value === "iksig" ? (n(), o(
161
- "i",
162
- {
163
- key: 0,
164
- class: v(`iksig ${e.value.name}`),
165
- style: c(s.value)
166
- },
167
- null,
168
- 6
169
- /* CLASS, STYLE */
170
- )) : l.value === "svg" ? (n(), o("svg", E, [
171
- u("use", {
172
- "xlink:href": `#${e.value.name}`
173
- }, null, 8, G)
174
- ])) : l.value === "img" ? (n(), o("img", {
175
- key: 2,
176
- src: e.value.name,
177
- class: "h-[1em] w-[1em]"
178
- }, null, 8, U)) : (n(), o(
179
- "i",
180
- {
181
- key: 3,
182
- class: v(e.value.name),
183
- style: c(s.value)
184
- },
185
- null,
186
- 6
187
- /* CLASS, STYLE */
188
- ))
189
- ],
190
- 6
191
- /* CLASS, STYLE */
192
- )
193
- ]),
194
- _: 1
195
- /* STABLE */
196
- }, 8, ["content"]))
197
- ])) : (n(), p(f, {
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: h(() => [
202
- _(
203
- y(e.value.title),
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
- }), O = /* @__PURE__ */ b(V, [["__scopeId", "data-v-bd4bda5f"]]), W = B(O), F = () => ({
214
- getLinearGradient: (i) => {
215
- const e = I.hexToRGB(i).replace(/[^\d,]/g, "").split(",").map(Number);
216
- return `linear-gradient(to top, ${i} 4%, rgb(${e[0]},${e[1] + 50},${e[2]}) 88%)`;
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
- }), X = /* @__PURE__ */ k({
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
- S((s) => ({
236
- "435077c3": l.value
321
+ M((n) => ({
322
+ "435077c3": e.value
237
323
  }));
238
- const i = t, { getLinearGradient: e } = F(), l = g(() => `${i.size}px`);
239
- return (s, a) => (n(), o(
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: c({ backgroundImage: z(e)(t.backgroundColor || "#28b8a4") })
329
+ style: p({ backgroundImage: C(s)(t.backgroundColor || "#28b8a4") })
244
330
  },
245
331
  [
246
- u(
332
+ f(
247
333
  "i",
248
334
  {
249
- class: v(`ikflow ${t.icon}`)
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
- }), Y = /* @__PURE__ */ b(X, [["__scopeId", "data-v-0bc5a180"]]), q = { class: "side-text items-center" }, D = { class: "side-left flex items-center" }, R = { class: "side-right" }, A = { class: "text-over-line" }, H = { class: "text-over-line sub-title" }, J = /* @__PURE__ */ k({
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 i = t, e = (r) => r ? r.startsWith("http") ? r : `${i.loadUrl}${r}` : "", l = g(() => e(i.avatar)), s = $(!!i.avatar), a = () => {
319
- s.value = !1;
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, w) => {
322
- var x;
323
- const f = m("el-avatar");
324
- return n(), o("div", q, [
325
- u("div", D, [
326
- t.avatarType === "url" ? (n(), p(f, {
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: l.value,
417
+ src: n.value,
332
418
  fit: "contain",
333
- onError: a
419
+ onError: v
334
420
  }, {
335
- default: h(() => [
336
- s.value ? d("v-if", !0) : (n(), o(
337
- T,
421
+ default: I(() => [
422
+ i.value ? b("v-if", !0) : (l(), c(
423
+ $,
338
424
  { key: 0 },
339
425
  [
340
- _(
341
- y(t.name.slice(-2)),
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"])) : d("v-if", !0),
353
- t.avatarType === "icon" ? (n(), p(z(W), {
438
+ }, 8, ["size", "shape", "src"])) : b("v-if", !0),
439
+ t.avatarType === "icon" ? (l(), x(C(q), {
354
440
  key: 1,
355
- name: `iksvg_${(x = t.avatar) == null ? void 0 : x.replace("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: c({ fontSize: t.showIconBg ? "34px" : "50px" }),
444
+ style: p({ fontSize: t.showIconBg ? "34px" : "50px" }),
359
445
  size: t.iconSize
360
- }, null, 8, ["name", "show-bg", "type", "style", "size"])) : d("v-if", !0),
361
- t.avatarType === "linearIcon" ? (n(), p(Y, {
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"])) : d("v-if", !0)
451
+ }, null, 8, ["icon", "background-color"])) : b("v-if", !0)
366
452
  ]),
367
- u("div", R, [
368
- u(
453
+ f("div", Q, [
454
+ f(
369
455
  "p",
370
- A,
371
- y(t.text),
456
+ Z,
457
+ w(t.text),
372
458
  1
373
459
  /* TEXT */
374
460
  ),
375
- u(
461
+ f(
376
462
  "p",
377
- H,
378
- y(t.subText),
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
- }), K = /* @__PURE__ */ b(J, [["__scopeId", "data-v-bed17104"]]), Q = B(K);
472
+ }), ae = /* @__PURE__ */ B(te, [["__scopeId", "data-v-c5366627"]]), ne = U(ae);
387
473
  export {
388
- Q as IkSideText,
389
- Q as default
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,u){"use strict";const p=(a,n)=>(a.install=t=>{for(const o of[a,...Object.values({})])t.component(o.name,o)},a),c=(a,n)=>{const t=a.__vccOpts||a;for(const[o,i]of n)t[o]=i;return t},g={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},k={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},h=["xlink:href"],v=["src"],B={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},b=["xlink:href"],z=["src"],w=p(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:{}},setup(a){const n=a,t=e.computed(()=>n),o=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"}),i=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 s={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&&o.value!=="iksig"?{"--ik-icon-deep-color":t.value.color,"--ik-icon-shallow-color":t.value.colorLight||u.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(s.width=s.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),s});return(l,s)=>{const f=e.resolveComponent("el-tooltip"),d=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",g,[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",{[l.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: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(i.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(i.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,h)])):o.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(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(f,{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",{[l.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: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(i.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",B,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,b)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,z)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(d,{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-bd4bda5f"]])),S=()=>({getLinearGradient:n=>{const t=u.ikColor.hexToRGB(n).replace(/[^\d,]/g,"").split(",").map(Number);return`linear-gradient(to top, ${n} 4%, rgb(${t[0]},${t[1]+50},${t[2]}) 88%)`}}),x=c(e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(a){e.useCssVars(i=>({"435077c3":o.value}));const n=a,{getLinearGradient:t}=S(),o=e.computed(()=>`${n.size}px`);return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(t)(a.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${a.icon}`)},null,2)],4))}}),[["__scopeId","data-v-0bc5a180"]]),_={class:"side-text items-center"},C={class:"side-left flex items-center"},I={class:"side-right"},$={class:"text-over-line"},E={class:"text-over-line sub-title"},m=p(c(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(a){const n=a,t=s=>s?s.startsWith("http")?s:`${n.loadUrl}${s}`:"",o=e.computed(()=>t(n.avatar)),i=e.ref(!!n.avatar),l=()=>{i.value=!1};return(s,f)=>{var y;const d=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",C,[a.avatarType==="url"?(e.openBlock(),e.createBlock(d,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:a.size,shape:a.shape,src:o.value,fit:"contain",onError:l},{default:e.withCtx(()=>[i.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.name.slice(-2)),1)],64))]),_:1},8,["size","shape","src"])):e.createCommentVNode("v-if",!0),a.avatarType==="icon"?(e.openBlock(),e.createBlock(e.unref(w),{key:1,name:`iksvg_${(y=a.avatar)==null?void 0:y.replace("iksvg_","")}`,"show-bg":a.showIconBg,type:a.iconType,style:e.normalizeStyle({fontSize:a.showIconBg?"34px":"50px"}),size:a.iconSize},null,8,["name","show-bg","type","style","size"])):e.createCommentVNode("v-if",!0),a.avatarType==="linearIcon"?(e.openBlock(),e.createBlock(x,{key:2,icon:a.avatar,"background-color":a.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",I,[e.createElementVNode("p",$,e.toDisplayString(a.text),1),e.createElementVNode("p",E,e.toDisplayString(a.subText),1)])])}}}),[["__scopeId","data-v-bed17104"]]));r.IkSideText=m,r.default=m,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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-bd4bda5f]{display:flex}.ik-svg-icon.ik-icon-span[data-v-bd4bda5f]: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-bed17104]{display:flex}.side-text .side-left[data-v-bed17104]{margin-right:12px}.side-text .side-right[data-v-bed17104]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-bed17104]{overflow:hidden;text-overflow:ellipsis;line-height:1}.side-text .side-right p[data-v-bed17104]:first-child{padding-bottom:7px}.side-text .side-right p[data-v-bed17104]:last-child{color:var(--ik-color-font-secondary, #b5b5c3);font-size:13px}
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}