iking-web-ui-pro 0.3.2 → 0.3.4

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 (111) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +21 -15
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +38 -34
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +45 -40
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCalendar/ik.index.es.js +10320 -10322
  8. package/dist/IkCollapseCard/ik.index.es.js +53 -48
  9. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  10. package/dist/IkDescription/ik.index.es.js +21 -15
  11. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  12. package/dist/IkDetailPreviewFiles/ik.index.es.js +21 -15
  13. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  14. package/dist/IkEmpty/ik.index.es.js +7 -7
  15. package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
  16. package/dist/IkExpandCollapse/ik.index.es.js +69 -64
  17. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  18. package/dist/IkFullCalendar/ik.index.es.js +12 -9334
  19. package/dist/IkIconPicker/ik.index.es.js +189 -177
  20. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  21. package/dist/IkMonacoEditor/ik.index.es.js +67 -62
  22. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPageFull/ik.index.es.js +132 -127
  24. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  25. package/dist/IkPreviewFile/ik.index.es.js +21 -15
  26. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  27. package/dist/IkPreviewFileDialog/ik.index.es.js +55 -51
  28. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSchedule/ik.index.es.js +390 -9681
  30. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  31. package/dist/IkSelectTag/ik.index.es.js +83 -82
  32. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  33. package/dist/IkSideText/ik.index.es.js +70 -65
  34. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  35. package/dist/IkStatuOver/ik.index.es.js +68 -67
  36. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  37. package/dist/IkSvgIcon/ik.index.es.js +63 -58
  38. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  39. package/dist/IkTree/ik.index.es.js +7 -7
  40. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  41. package/dist/IkUploadFile/ik.index.es.js +76 -72
  42. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  43. package/dist/IkUploadImage/ik.index.es.js +188 -188
  44. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  45. package/dist/IkVerticalStepBar/ik.index.es.js +106 -101
  46. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  47. package/dist/iking-web-ui-pro.css +2 -2
  48. package/dist/index.es.js +23272 -23459
  49. package/dist/index.umd.js +110 -110
  50. package/dist/src/components/IkFullCalendar/index.d.ts +1 -63
  51. package/dist/src/components/IkFullCalendar/src/IkFullCalendar.vue.d.ts +2 -0
  52. package/dist/src/components/IkMonacoEditor/index.d.ts +12 -0
  53. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -0
  54. package/dist/src/components/IkSchedule/index.d.ts +12 -12
  55. package/dist/src/components/IkSvgIcon/index.d.ts +12 -0
  56. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +8 -0
  57. package/package.json +1 -1
  58. package/dist/Demo/ik.index.umd.js +0 -1
  59. package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
  60. package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -226
  61. package/dist/IkAutoCard/ik.index.umd.js +0 -1
  62. package/dist/IkBaseDialog/ik.index.umd.js +0 -1
  63. package/dist/IkBottomOperate/ik.index.umd.js +0 -1
  64. package/dist/IkBtnContent/ik.index.umd.js +0 -1
  65. package/dist/IkBtnSetting/ik.index.umd.js +0 -1
  66. package/dist/IkCalendar/ik.index.umd.js +0 -1
  67. package/dist/IkCollapseCard/ik.index.umd.js +0 -1
  68. package/dist/IkCurrencyInput/ik.index.umd.js +0 -1
  69. package/dist/IkDescription/ik.index.umd.js +0 -226
  70. package/dist/IkDetailPreviewFiles/ik.index.umd.js +0 -226
  71. package/dist/IkDragList/ik.index.umd.js +0 -1
  72. package/dist/IkEmpty/ik.index.umd.js +0 -1
  73. package/dist/IkExpandCollapse/ik.index.umd.js +0 -1
  74. package/dist/IkFileIcon/ik.index.umd.js +0 -1
  75. package/dist/IkFullCalendar/ik.index.umd.js +0 -1
  76. package/dist/IkFullCalendar/iking-web-ui-pro.css +0 -1
  77. package/dist/IkHorizontalStepBar/ik.index.umd.js +0 -1
  78. package/dist/IkIconPicker/ik.index.umd.js +0 -1
  79. package/dist/IkImageEditor/ik.index.umd.js +0 -1
  80. package/dist/IkImageUploadEditor/ik.index.umd.js +0 -37
  81. package/dist/IkImageViewer/ik.index.umd.js +0 -1
  82. package/dist/IkMonacoEditor/ik.index.umd.js +0 -11
  83. package/dist/IkOnlyOffice/ik.index.umd.js +0 -1
  84. package/dist/IkPage/ik.index.umd.js +0 -1
  85. package/dist/IkPageFull/ik.index.umd.js +0 -17
  86. package/dist/IkPageTabs/ik.index.umd.js +0 -1
  87. package/dist/IkPickerUser/ik.index.umd.js +0 -1
  88. package/dist/IkPlayer/ik.index.umd.js +0 -226
  89. package/dist/IkPreviewFile/ik.index.umd.js +0 -226
  90. package/dist/IkPreviewFileDialog/ik.index.umd.js +0 -226
  91. package/dist/IkPrintConfig/ik.index.umd.js +0 -1
  92. package/dist/IkPrintView/ik.index.umd.js +0 -1
  93. package/dist/IkRadioGroup/ik.index.umd.js +0 -1
  94. package/dist/IkSchedule/ik.index.umd.js +0 -1
  95. package/dist/IkSearch/ik.index.umd.js +0 -26
  96. package/dist/IkSearchHead/ik.index.umd.js +0 -1
  97. package/dist/IkSelectTag/ik.index.umd.js +0 -1
  98. package/dist/IkSideText/ik.index.umd.js +0 -1
  99. package/dist/IkStatu/ik.index.umd.js +0 -1
  100. package/dist/IkStatuOver/ik.index.umd.js +0 -1
  101. package/dist/IkSvgIcon/ik.index.umd.js +0 -1
  102. package/dist/IkTaskResume/ik.index.umd.js +0 -1
  103. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +0 -1
  104. package/dist/IkTinymce/ik.index.umd.js +0 -90
  105. package/dist/IkTooltip/ik.index.umd.js +0 -1
  106. package/dist/IkTree/ik.index.umd.js +0 -1
  107. package/dist/IkUploadFile/ik.index.umd.js +0 -226
  108. package/dist/IkUploadImage/ik.index.umd.js +0 -1
  109. package/dist/IkVerticalStepBar/ik.index.umd.js +0 -9
  110. package/dist/Provider/ik.index.umd.js +0 -1
  111. package/dist/src/components/IkFullCalendar/src/ik-full-calendar.d.ts +0 -8
@@ -1,14 +1,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";
1
+ import { inject as k, computed as u, defineComponent as B, resolveComponent as z, openBlock as l, createElementBlock as r, Fragment as $, normalizeClass as m, normalizeStyle as p, createElementVNode as f, createBlock as b, withCtx as I, createTextVNode as C, toDisplayString as w, useCssVars as M, unref as T, ref as E, createCommentVNode as x } from "vue";
2
2
  import { ikColor as L } from "iking-utils-pro";
3
- const U = (t, o) => (t.install = (s) => {
3
+ const U = (t, o) => (t.install = (n) => {
4
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 = [
5
+ n.component(e.name, e);
6
+ }, t), S = (t, o) => {
7
+ const n = t.__vccOpts || t;
8
+ for (const [e, s] of o)
9
+ n[e] = s;
10
+ return n;
11
+ }, _ = [
12
12
  "csv",
13
13
  "djvu",
14
14
  "doc",
@@ -64,10 +64,10 @@ const U = (t, o) => (t.install = (s) => {
64
64
  "flv",
65
65
  "tls"
66
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())];
67
+ const o = k("loadUrl"), n = u(() => t.loadUrl || t.fileUrl || (o == null ? void 0 : o.value)), e = k("uploadUrl"), s = u(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = k("token"), v = u(() => t.token || (i == null ? void 0 : i.value)), c = k("onlyofficeConfig"), h = u(() => t.onlyofficeConfig || (c == null ? void 0 : c.value)), d = k("userInfo"), g = u(() => t.userInfo || (d == null ? void 0 : d.value)), a = [..._, ..._.map((y) => y.toLocaleUpperCase())];
68
68
  return {
69
- cLoadUrl: s,
70
- cUploadUrl: n,
69
+ cLoadUrl: n,
70
+ cUploadUrl: s,
71
71
  cToken: v,
72
72
  cOnlyofficeConfig: h,
73
73
  cUserInfo: g,
@@ -81,7 +81,7 @@ const U = (t, o) => (t.install = (s) => {
81
81
  key: 1,
82
82
  class: "h-[1em] w-[1em]",
83
83
  "aria-hidden": "true"
84
- }, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */ _({
84
+ }, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */ B({
85
85
  name: "IkSvgIcon",
86
86
  __name: "index",
87
87
  props: {
@@ -103,13 +103,14 @@ const U = (t, o) => (t.install = (s) => {
103
103
  success: { type: Boolean },
104
104
  tableIconType: {},
105
105
  title: {},
106
- type: {},
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
112
  setup(t, { emit: o }) {
112
- const s = t, e = u(() => s), n = u(() => {
113
+ const n = t, e = u(() => n), s = u(() => {
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
  }), i = u(() => {
@@ -133,13 +134,13 @@ const U = (t, o) => (t.install = (s) => {
133
134
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
134
135
  ...a.length && { transform: a.join(" ") },
135
136
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
136
- ...e.value.color && n.value !== "iksig" ? {
137
+ ...e.value.color && s.value !== "iksig" ? {
137
138
  "--ik-icon-deep-color": e.value.color,
138
139
  "--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
139
140
  } : {}
140
141
  };
141
142
  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 = o, c = (a) => {
143
144
  v("click", a);
144
145
  }, h = (a) => {
145
146
  v("mouseenter", a);
@@ -150,16 +151,17 @@ const U = (t, o) => (t.install = (s) => {
150
151
  };
151
152
  return (a, y) => {
152
153
  const j = z("el-tooltip"), N = z("el-button");
153
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), c(
154
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), r(
154
155
  $,
155
156
  { key: 0 },
156
157
  [
157
- e.value.notip || !e.value.title ? (l(), c(
158
- "span",
158
+ e.value.notip || !e.value.title ? (l(), r(
159
+ "i",
159
160
  {
160
161
  key: 0,
161
162
  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
+ [a.iconClass]: !0,
164
+ [a.name]: s.value === "unocss",
163
165
  "show-bg": e.value.showBg || e.value.bg,
164
166
  default: e.value.size === "default",
165
167
  small: e.value.size === "small",
@@ -172,14 +174,13 @@ const U = (t, o) => (t.install = (s) => {
172
174
  disabled: e.value.disabled
173
175
  }]),
174
176
  style: p(i.value),
175
- onClick: r,
177
+ onClick: c,
176
178
  onDblclick: g,
177
179
  onMouseenter: h,
178
180
  onMouseleave: d
179
181
  },
180
182
  [
181
- b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
182
- n.value === "iksig" ? (l(), c(
183
+ s.value === "iksig" ? (l(), r(
183
184
  "i",
184
185
  {
185
186
  key: 0,
@@ -189,15 +190,15 @@ const U = (t, o) => (t.install = (s) => {
189
190
  null,
190
191
  6
191
192
  /* CLASS, STYLE */
192
- )) : n.value === "svg" ? (l(), c("svg", G, [
193
+ )) : s.value === "svg" ? (l(), r("svg", G, [
193
194
  f("use", {
194
195
  "xlink:href": `#${e.value.name}`
195
196
  }, null, 8, O)
196
- ])) : n.value === "img" ? (l(), c("img", {
197
+ ])) : s.value === "img" ? (l(), r("img", {
197
198
  key: 2,
198
199
  src: e.value.name,
199
200
  class: "h-[1em] w-[1em]"
200
- }, null, 8, V)) : (l(), c(
201
+ }, null, 8, V)) : (l(), r(
201
202
  "i",
202
203
  {
203
204
  key: 3,
@@ -211,18 +212,20 @@ const U = (t, o) => (t.install = (s) => {
211
212
  ],
212
213
  38
213
214
  /* CLASS, STYLE, NEED_HYDRATION */
214
- )) : (l(), x(j, {
215
+ )) : (l(), b(j, {
215
216
  key: 1,
216
217
  content: e.value.title,
217
218
  placement: "top",
219
+ "popper-class": "ik-svg-icon-tooltip",
218
220
  "hide-after": 0
219
221
  }, {
220
222
  default: I(() => [
221
223
  f(
222
- "span",
224
+ "i",
223
225
  {
224
226
  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",
227
+ [a.iconClass]: !0,
228
+ [a.name]: s.value === "unocss",
226
229
  "show-bg": e.value.showBg || e.value.bg,
227
230
  default: e.value.size === "default",
228
231
  small: e.value.size === "small",
@@ -231,16 +234,18 @@ const U = (t, o) => (t.install = (s) => {
231
234
  primary: a.primary || e.value.type === "primary",
232
235
  success: a.success || e.value.type === "success",
233
236
  error: e.value.error || e.value.type === "error",
234
- active: e.value.active
237
+ active: e.value.active,
238
+ disabled: e.value.disabled,
239
+ ...a.$attrs.class || {}
235
240
  }]),
236
241
  style: p(i.value),
237
- onClick: r,
242
+ onClick: c,
238
243
  onDblclick: g,
239
244
  onMouseenter: h,
240
245
  onMouseleave: d
241
246
  },
242
247
  [
243
- n.value === "iksig" ? (l(), c(
248
+ s.value === "iksig" ? (l(), r(
244
249
  "i",
245
250
  {
246
251
  key: 0,
@@ -250,15 +255,15 @@ const U = (t, o) => (t.install = (s) => {
250
255
  null,
251
256
  6
252
257
  /* CLASS, STYLE */
253
- )) : n.value === "svg" ? (l(), c("svg", W, [
258
+ )) : s.value === "svg" ? (l(), r("svg", W, [
254
259
  f("use", {
255
260
  "xlink:href": `#${e.value.name}`
256
261
  }, null, 8, F)
257
- ])) : n.value === "img" ? (l(), c("img", {
262
+ ])) : s.value === "img" ? (l(), r("img", {
258
263
  key: 2,
259
264
  src: e.value.name,
260
265
  class: "h-[1em] w-[1em]"
261
- }, null, 8, P)) : (l(), c(
266
+ }, null, 8, P)) : (l(), r(
262
267
  "i",
263
268
  {
264
269
  key: 3,
@@ -280,12 +285,12 @@ const U = (t, o) => (t.install = (s) => {
280
285
  ],
281
286
  64
282
287
  /* STABLE_FRAGMENT */
283
- )) : (l(), x(N, {
288
+ )) : (l(), b(N, {
284
289
  key: 1,
285
290
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
286
291
  }, {
287
292
  default: I(() => [
288
- T(
293
+ C(
289
294
  w(e.value.title),
290
295
  1
291
296
  /* TEXT */
@@ -296,12 +301,12 @@ const U = (t, o) => (t.install = (s) => {
296
301
  }, 8, ["type"]));
297
302
  };
298
303
  }
299
- }), Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-c7804024"]]), q = U(Y), R = () => ({
304
+ }), Y = /* @__PURE__ */ S(X, [["__scopeId", "data-v-64b61696"]]), q = U(Y), R = () => ({
300
305
  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%)`;
306
+ const n = L.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
307
+ return `linear-gradient(to top, ${o} 4%, rgb(${n[0]},${n[1] + 50},${n[2]}) 88%)`;
303
308
  }
304
- }), A = /* @__PURE__ */ _({
309
+ }), A = /* @__PURE__ */ B({
305
310
  __name: "IkLinearIcon",
306
311
  props: {
307
312
  icon: {
@@ -318,15 +323,15 @@ const U = (t, o) => (t.install = (s) => {
318
323
  }
319
324
  },
320
325
  setup(t) {
321
- M((n) => ({
326
+ M((s) => ({
322
327
  "435077c3": e.value
323
328
  }));
324
- const o = t, { getLinearGradient: s } = R(), e = u(() => `${o.size}px`);
325
- return (n, i) => (l(), c(
329
+ const o = t, { getLinearGradient: n } = R(), e = u(() => `${o.size}px`);
330
+ return (s, i) => (l(), r(
326
331
  "div",
327
332
  {
328
333
  class: "form-icon",
329
- style: p({ backgroundImage: C(s)(t.backgroundColor || "#28b8a4") })
334
+ style: p({ backgroundImage: T(n)(t.backgroundColor || "#28b8a4") })
330
335
  },
331
336
  [
332
337
  f(
@@ -343,7 +348,7 @@ const U = (t, o) => (t.install = (s) => {
343
348
  /* STYLE */
344
349
  ));
345
350
  }
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__ */ _({
351
+ }), H = /* @__PURE__ */ S(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__ */ B({
347
352
  __name: "IkSideText",
348
353
  props: {
349
354
  // 名称
@@ -389,7 +394,7 @@ const U = (t, o) => (t.install = (s) => {
389
394
  },
390
395
  size: {
391
396
  type: Number,
392
- default: 50
397
+ default: 40
393
398
  },
394
399
  iconSize: {
395
400
  type: String || Number,
@@ -401,29 +406,29 @@ const U = (t, o) => (t.install = (s) => {
401
406
  }
402
407
  },
403
408
  setup(t) {
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 = () => {
409
+ const o = t, { cLoadUrl: n } = D(o), e = (c) => c ? c.startsWith("http") ? c : `${n.value}${c}` : "", s = u(() => e(o.avatar)), i = E(!!o.avatar), v = () => {
405
410
  i.value = !1;
406
411
  };
407
- return (r, h) => {
412
+ return (c, h) => {
408
413
  var g;
409
414
  const d = z("el-avatar");
410
- return l(), c("div", J, [
415
+ return l(), r("div", J, [
411
416
  f("div", K, [
412
- t.avatarType === "url" ? (l(), x(d, {
417
+ t.avatarType === "url" ? (l(), b(d, {
413
418
  key: 0,
414
419
  style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
415
420
  size: t.size,
416
421
  shape: t.shape,
417
- src: n.value,
422
+ src: s.value,
418
423
  fit: "contain",
419
424
  onError: v
420
425
  }, {
421
426
  default: I(() => [
422
- i.value ? b("v-if", !0) : (l(), c(
427
+ i.value ? x("v-if", !0) : (l(), r(
423
428
  $,
424
429
  { key: 0 },
425
430
  [
426
- T(
431
+ C(
427
432
  w(t.name.slice(-2)),
428
433
  1
429
434
  /* TEXT */
@@ -435,20 +440,20 @@ const U = (t, o) => (t.install = (s) => {
435
440
  ]),
436
441
  _: 1
437
442
  /* STABLE */
438
- }, 8, ["size", "shape", "src"])) : b("v-if", !0),
439
- t.avatarType === "icon" ? (l(), x(C(q), {
443
+ }, 8, ["size", "shape", "src"])) : x("v-if", !0),
444
+ t.avatarType === "icon" ? (l(), b(T(q), {
440
445
  key: 1,
441
446
  name: `iksvg_${(g = t.avatar) == null ? void 0 : g.replace("iksvg_", "")}`,
442
447
  "show-bg": t.showIconBg,
443
448
  type: t.iconType,
444
- style: p({ fontSize: t.showIconBg ? "34px" : "50px" }),
449
+ style: p({ fontSize: t.showIconBg ? "34px" : "40px" }),
445
450
  size: t.iconSize
446
- }, null, 8, ["name", "show-bg", "type", "style", "size"])) : b("v-if", !0),
447
- t.avatarType === "linearIcon" ? (l(), x(H, {
451
+ }, null, 8, ["name", "show-bg", "type", "style", "size"])) : x("v-if", !0),
452
+ t.avatarType === "linearIcon" ? (l(), b(H, {
448
453
  key: 2,
449
454
  icon: t.avatar,
450
455
  "background-color": t.iconBackgroundColor
451
- }, null, 8, ["icon", "background-color"])) : b("v-if", !0)
456
+ }, null, 8, ["icon", "background-color"])) : x("v-if", !0)
452
457
  ]),
453
458
  f("div", Q, [
454
459
  f(
@@ -469,8 +474,8 @@ const U = (t, o) => (t.install = (s) => {
469
474
  ]);
470
475
  };
471
476
  }
472
- }), ae = /* @__PURE__ */ B(te, [["__scopeId", "data-v-c5366627"]]), ne = U(ae);
477
+ }), ae = /* @__PURE__ */ S(te, [["__scopeId", "data-v-000efb31"]]), se = U(ae);
473
478
  export {
474
- ne as IkSideText,
475
- ne as default
479
+ se as IkSideText,
480
+ se as default
476
481
  };
@@ -1 +1 @@
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}
1
+ .row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]: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}
@@ -1,14 +1,14 @@
1
- import { defineComponent as w, computed as y, resolveComponent as h, openBlock as a, createBlock as g, normalizeClass as D, normalizeStyle as W, withCtx as k, createElementBlock as u, createCommentVNode as S, createTextVNode as $, toDisplayString as x, ref as L, Fragment as b, renderList as B, unref as N, mergeProps as _, createElementVNode as V } from "vue";
1
+ import { defineComponent as I, computed as p, resolveComponent as C, openBlock as a, createBlock as g, normalizeClass as D, normalizeStyle as T, withCtx as b, createElementBlock as u, createCommentVNode as S, createTextVNode as w, toDisplayString as $, ref as L, Fragment as m, renderList as W, unref as _, mergeProps as B, createElementVNode as V } from "vue";
2
2
  import { ikDom as z } from "iking-utils-pro";
3
3
  const A = (l, i) => (l.install = (e) => {
4
- for (const r of [l, ...Object.values({})])
5
- e.component(r.name, r);
4
+ for (const o of [l, ...Object.values({})])
5
+ e.component(o.name, o);
6
6
  }, l), O = (l, i) => {
7
7
  const e = l.__vccOpts || l;
8
- for (const [r, c] of i)
9
- e[r] = c;
8
+ for (const [o, c] of i)
9
+ e[o] = c;
10
10
  return e;
11
- }, E = /* @__PURE__ */ w({
11
+ }, E = /* @__PURE__ */ I({
12
12
  __name: "index",
13
13
  props: {
14
14
  title: {
@@ -67,8 +67,8 @@ const A = (l, i) => (l.install = (e) => {
67
67
  },
68
68
  emits: ["close"],
69
69
  setup(l, { emit: i }) {
70
- const e = l, r = y(() => {
71
- const o = e.type ? e.type === "danger" ? `var(--el-color-${e.type})` : {
70
+ const e = l, o = p(() => {
71
+ const r = e.type ? e.type === "danger" ? `var(--el-color-${e.type})` : {
72
72
  color: `var(--ik-color-${e.type})`,
73
73
  backgroundColor: `var(--ik-color-${e.type}-light)`
74
74
  } : {
@@ -77,32 +77,32 @@ const A = (l, i) => (l.install = (e) => {
77
77
  border: "none"
78
78
  };
79
79
  if (e.effect === "plain" && e.type !== "danger")
80
- o.backgroundColor = "transparent", o.borderColor = e.type ? `var(--ik-color-${e.type})` : e.color;
80
+ r.backgroundColor = "transparent", r.borderColor = e.type ? `var(--ik-color-${e.type})` : e.color;
81
81
  else if (e.effect === "dark" && e.type !== "danger") {
82
82
  const f = e.type ? `var(--ik-color-${e.type})` : e.color;
83
- o.backgroundColor = f, o.borderColor = f, o.color = "#fff";
83
+ r.backgroundColor = f, r.borderColor = f, r.color = "#fff";
84
84
  }
85
- return o;
85
+ return r;
86
86
  }), c = i, d = () => {
87
87
  c("close");
88
88
  };
89
- return (o, f) => {
90
- const m = h("el-tag");
91
- return a(), g(m, {
89
+ return (r, f) => {
90
+ const k = C("el-tag");
91
+ return a(), g(k, {
92
92
  effect: l.effect,
93
93
  class: D(["ik-statu-tag", { disabled: l.disabled }]),
94
94
  type: l.type,
95
- style: W(r.value),
96
- closable: o.$attrs.closable && !l.disabled,
95
+ style: T(o.value),
96
+ closable: r.$attrs.closable && !l.disabled,
97
97
  onClose: d
98
98
  }, {
99
- default: k(() => [
99
+ default: b(() => [
100
100
  l.circle ? (a(), u(
101
101
  "span",
102
102
  {
103
103
  key: 0,
104
104
  class: "inline-block rounded-full",
105
- style: W({
105
+ style: T({
106
106
  backgroundColor: l.type ? l.type === "danger" ? `var(--el-color-${l.type})` : `var(--ik-color-${l.type})` : l.circleColor,
107
107
  width: `${l.circleW}px`,
108
108
  height: `${l.circleH}px`
@@ -112,8 +112,8 @@ const A = (l, i) => (l.install = (e) => {
112
112
  4
113
113
  /* STYLE */
114
114
  )) : S("v-if", !0),
115
- $(
116
- " " + x(l.title),
115
+ w(
116
+ " " + $(l.title),
117
117
  1
118
118
  /* TEXT */
119
119
  )
@@ -123,7 +123,10 @@ const A = (l, i) => (l.install = (e) => {
123
123
  }, 8, ["effect", "class", "type", "style", "closable"]);
124
124
  };
125
125
  }
126
- }), H = /* @__PURE__ */ O(E, [["__scopeId", "data-v-a3967db7"]]), I = A(H), R = /* @__PURE__ */ w({
126
+ }), H = /* @__PURE__ */ O(E, [["__scopeId", "data-v-a3967db7"]]), N = A(H), R = {
127
+ key: 1,
128
+ style: { color: "var(--el-color-info-light-3)" }
129
+ }, j = /* @__PURE__ */ I({
127
130
  __name: "index",
128
131
  props: {
129
132
  // 超出长度时以 +2 这样的方式显示
@@ -150,31 +153,35 @@ const A = (l, i) => (l.install = (e) => {
150
153
  },
151
154
  emits: ["close"],
152
155
  setup(l, { emit: i }) {
153
- const e = l, r = y(() => Array.isArray(e.list) ? e.list : typeof e.list == "string" ? e.list.split(",").map((n, p) => {
156
+ const e = l, o = p(() => Array.isArray(e.list) ? e.list : typeof e.list == "string" ? e.list.split(",").map((n, y) => {
154
157
  var s;
155
158
  return {
156
- ...((s = e.data) == null ? void 0 : s[p]) || {},
159
+ ...((s = e.data) == null ? void 0 : s[y]) || {},
157
160
  title: n,
158
161
  type: ""
159
162
  };
160
- }) : []), c = L(null), d = y(() => {
161
- if (c.value) {
162
- const n = c.value.clientWidth;
163
- let p = 24;
164
- const s = [];
165
- let v = 0;
166
- for (const t of r.value) {
167
- const C = z.useTextWidth(String((t == null ? void 0 : t.title) || t));
168
- p += C + 40, (p <= n || !v) && s.push(t), v++;
163
+ }) : []), c = L(null), d = p(() => {
164
+ try {
165
+ if (c.value) {
166
+ const n = c.value.clientWidth;
167
+ let y = 24;
168
+ const s = [];
169
+ let v = 0;
170
+ for (const t of o.value) {
171
+ const h = z.useTextWidth(String((t == null ? void 0 : t.title) || t));
172
+ y += h + 40, (y <= n || !v) && s.push(t), v++;
173
+ }
174
+ return s;
169
175
  }
170
- return s;
176
+ return o.value;
177
+ } catch {
178
+ return o.value;
171
179
  }
172
- return r.value;
173
- }), o = y(() => r.value.length - d.value.length), f = y(() => r.value.slice(d.value.length)), m = i, T = (n) => {
174
- m("close", n);
180
+ }), r = p(() => o.value.length - d.value.length), f = p(() => o.value.slice(d.value.length)), k = i, x = (n) => {
181
+ k("close", n);
175
182
  };
176
- return (n, p) => {
177
- const s = h("el-tag"), v = h("el-popover");
183
+ return (n, y) => {
184
+ const s = C("el-tag"), v = C("el-popover");
178
185
  return a(), u(
179
186
  "div",
180
187
  {
@@ -184,18 +191,18 @@ const A = (l, i) => (l.install = (e) => {
184
191
  },
185
192
  [
186
193
  (a(!0), u(
187
- b,
194
+ m,
188
195
  null,
189
- B(d.value, (t) => (a(), u(
190
- b,
196
+ W(d.value, (t) => (a(), u(
197
+ m,
191
198
  {
192
199
  key: t.title
193
200
  },
194
201
  [
195
- t.title !== "--" ? (a(), g(N(I), _({
202
+ t.title !== "--" ? (a(), g(_(N), B({
196
203
  key: 0,
197
204
  title: t.title,
198
- onClose: (C) => T(t),
205
+ onClose: (h) => x(t),
199
206
  color: t.color,
200
207
  type: t.type || "primary",
201
208
  ref_for: !0
@@ -203,17 +210,11 @@ const A = (l, i) => (l.install = (e) => {
203
210
  circle: !1,
204
211
  disabled: t == null ? void 0 : t.disabled
205
212
  }), null, 16, ["title", "onClose", "color", "type", "disabled"])) : (a(), u(
206
- b,
207
- { key: 1 },
208
- [
209
- $(
210
- x(t.title),
211
- 1
212
- /* TEXT */
213
- )
214
- ],
215
- 64
216
- /* STABLE_FRAGMENT */
213
+ "span",
214
+ R,
215
+ $(t.title),
216
+ 1
217
+ /* TEXT */
217
218
  ))
218
219
  ],
219
220
  64
@@ -222,22 +223,22 @@ const A = (l, i) => (l.install = (e) => {
222
223
  128
223
224
  /* KEYED_FRAGMENT */
224
225
  )),
225
- o.value ? (a(), g(v, {
226
+ r.value ? (a(), g(v, {
226
227
  key: 0,
227
228
  placement: "bottom",
228
229
  "popper-class": "ik-statu-over",
229
230
  trigger: "hover"
230
231
  }, {
231
- reference: k(() => [
232
- o.value ? (a(), g(s, {
232
+ reference: b(() => [
233
+ r.value ? (a(), g(s, {
233
234
  key: 0,
234
235
  class: "more-tags",
235
236
  type: "info",
236
237
  closable: !1
237
238
  }, {
238
- default: k(() => [
239
- $(
240
- " +" + x(o.value),
239
+ default: b(() => [
240
+ w(
241
+ " +" + $(r.value),
241
242
  1
242
243
  /* TEXT */
243
244
  )
@@ -246,16 +247,16 @@ const A = (l, i) => (l.install = (e) => {
246
247
  /* STABLE */
247
248
  })) : S("v-if", !0)
248
249
  ]),
249
- default: k(() => [
250
+ default: b(() => [
250
251
  V("div", null, [
251
252
  (a(!0), u(
252
- b,
253
+ m,
253
254
  null,
254
- B(f.value, (t) => (a(), g(N(I), _({
255
+ W(f.value, (t) => (a(), g(_(N), B({
255
256
  key: t.title,
256
257
  title: t.title,
257
258
  color: t.color,
258
- onClose: (C) => T(t),
259
+ onClose: (h) => x(t),
259
260
  type: t.type || "primary",
260
261
  circle: !1,
261
262
  ref_for: !0
@@ -276,8 +277,8 @@ const A = (l, i) => (l.install = (e) => {
276
277
  );
277
278
  };
278
279
  }
279
- }), j = /* @__PURE__ */ O(R, [["__scopeId", "data-v-84c057e2"]]), q = A(j);
280
+ }), F = /* @__PURE__ */ O(j, [["__scopeId", "data-v-169a93dc"]]), G = A(F);
280
281
  export {
281
- q as IkStatuOver,
282
- q as default
282
+ G as IkStatuOver,
283
+ G as default
283
284
  };
@@ -1 +1 @@
1
- .ik-statu-tag[data-v-a3967db7]{margin:5px 0}.ik-statu-tag[data-v-a3967db7]:not(:first-child){margin-left:5px}.el-tag[data-v-a3967db7]:not(.el-tag--plain){border:none}.el-tag--danger[data-v-a3967db7]:not(.el-tag--plain){color:var(--ik-color-error);background-color:var(--ik-color-error-light)}.ik-statu-over{width:auto!important;min-width:0!important}.tag-container[data-v-84c057e2]{display:flex;width:100%}.tag-container .ik-statu-tag[data-v-84c057e2]{max-width:calc(100% - 46px)}.tag-container .el-tag[data-v-84c057e2]:not(:last-child){margin-right:5px}.tag-container[data-v-84c057e2] .el-tag__content{display:inline-block!important;width:100%;overflow:hidden;text-overflow:ellipsis}.more-tags[data-v-84c057e2]{margin:5px 0}
1
+ .ik-statu-tag[data-v-a3967db7]{margin:5px 0}.ik-statu-tag[data-v-a3967db7]:not(:first-child){margin-left:5px}.el-tag[data-v-a3967db7]:not(.el-tag--plain){border:none}.el-tag--danger[data-v-a3967db7]:not(.el-tag--plain){color:var(--ik-color-error);background-color:var(--ik-color-error-light)}.ik-statu-over{width:auto!important;min-width:0!important}.tag-container[data-v-169a93dc]{display:flex;width:100%}.tag-container .ik-statu-tag[data-v-169a93dc]{max-width:calc(100% - 46px)}.tag-container .el-tag[data-v-169a93dc]:not(:last-child){margin-right:5px}.tag-container[data-v-169a93dc] .el-tag__content{display:inline-block!important;width:100%;overflow:hidden;text-overflow:ellipsis}.more-tags[data-v-169a93dc]{margin:5px 0}