iking-web-ui-pro 0.2.21 → 0.2.22

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 (60) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +79 -73
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +302 -296
  5. package/dist/IKPreviewFile/ik.index.umd.js +16 -16
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
  8. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  9. package/dist/IKVerticalStepBar/style.css +1 -1
  10. package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
  11. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  12. package/dist/IkApprovalProcessDetail/style.css +1 -1
  13. package/dist/IkBaseDialog/ik.index.es.js +117 -111
  14. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  15. package/dist/IkBaseDialog/style.css +1 -1
  16. package/dist/IkBtnSetting/ik.index.es.js +242 -236
  17. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  18. package/dist/IkBtnSetting/style.css +1 -1
  19. package/dist/IkCollapseCard/ik.index.es.js +83 -77
  20. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  21. package/dist/IkCollapseCard/style.css +1 -1
  22. package/dist/IkDescription/ik.index.es.js +434 -428
  23. package/dist/IkDescription/ik.index.umd.js +1 -1
  24. package/dist/IkDescription/style.css +1 -1
  25. package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
  26. package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
  27. package/dist/IkDetailPreviewFiles/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +140 -134
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +383 -377
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1135 -1129
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +2960 -2954
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +111 -105
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +74 -68
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +720 -714
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +223 -217
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/index.es.js +5502 -5496
  56. package/dist/index.umd.js +78 -78
  57. package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
  58. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
  59. package/dist/style.css +1 -1
  60. package/package.json +1 -1
@@ -1 +1 @@
1
- [data-v-f0925ff8]{padding:0;margin:0}.demo-app[data-v-f0925ff8]{width:70%;margin:auto}.icon[data-v-f0925ff8]{width:10%!important;text-align:center}.icon svg[data-v-f0925ff8]{width:25px;height:25px;vertical-align:middle}.to[data-v-f0925ff8]{width:4%!important;display:inline-block;margin:auto;text-align:center}[data-v-f0925ff8] .fc-event{width:calc(100% - 4px);padding:0 4px}[data-v-f0925ff8] .fc-button{color:var(--el-color-white);border-color:var(--el-color-primary);background-color:var(--el-color-primary)}[data-v-f0925ff8] .fc-button:hover{color:var(--el-color-white);border-color:var(--el-color-primary-light-3);background-color:var(--el-color-primary-light-3);outline:none}[data-v-f0925ff8] .fc-button-primary:disabled{background-color:var(--el-color-primary-light-5);border-color:var(--el-color-primary-light-5);color:var(--el-color-white)}[data-v-f0925ff8] .fc-button-active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:not(:disabled):active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:focus{box-shadow:none!important}[data-v-f0925ff8] .fc .fc-h-event{background-color:inherit;border:none}[data-v-f0925ff8] .fc .fc-view table.fc-scrollgrid thead{line-height:40px}.title-line[data-v-f0925ff8]{width:100%;display:flex;justify-content:space-between;align-items:center;color:var(--el-color-primary-dark-2)}.title-line .title[data-v-f0925ff8]{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ik-full-calendar[data-v-f0925ff8]{width:100%;height:100%}.event-title[data-v-f0925ff8]{display:flex;align-items:center;color:var(--ik-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title{color:var(--el-color-white)}.event-title[data-v-f0925ff8]:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.allday[data-v-f0925ff8]:before{background-color:var(--ik-success)}.no-allday[data-v-f0925ff8]:before{background-color:var(--ik-error)}.event-title-time[data-v-f0925ff8]{color:var(--ik-vice-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title .event-title-time,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title .event-title-time{color:var(--el-color-info-light-8)}.event-title-text[data-v-f0925ff8]{margin-left:4px}.row-title[data-v-a7ec508a]{display:flex}.ik-svg-icon.ik-icon-span[data-v-a7ec508a]:not(:first-child){margin-left:var(--ik-margin-s-12)}.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
+ [data-v-f0925ff8]{padding:0;margin:0}.demo-app[data-v-f0925ff8]{width:70%;margin:auto}.icon[data-v-f0925ff8]{width:10%!important;text-align:center}.icon svg[data-v-f0925ff8]{width:25px;height:25px;vertical-align:middle}.to[data-v-f0925ff8]{width:4%!important;display:inline-block;margin:auto;text-align:center}[data-v-f0925ff8] .fc-event{width:calc(100% - 4px);padding:0 4px}[data-v-f0925ff8] .fc-button{color:var(--el-color-white);border-color:var(--el-color-primary);background-color:var(--el-color-primary)}[data-v-f0925ff8] .fc-button:hover{color:var(--el-color-white);border-color:var(--el-color-primary-light-3);background-color:var(--el-color-primary-light-3);outline:none}[data-v-f0925ff8] .fc-button-primary:disabled{background-color:var(--el-color-primary-light-5);border-color:var(--el-color-primary-light-5);color:var(--el-color-white)}[data-v-f0925ff8] .fc-button-active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:not(:disabled):active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:focus{box-shadow:none!important}[data-v-f0925ff8] .fc .fc-h-event{background-color:inherit;border:none}[data-v-f0925ff8] .fc .fc-view table.fc-scrollgrid thead{line-height:40px}.title-line[data-v-f0925ff8]{width:100%;display:flex;justify-content:space-between;align-items:center;color:var(--el-color-primary-dark-2)}.title-line .title[data-v-f0925ff8]{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ik-full-calendar[data-v-f0925ff8]{width:100%;height:100%}.event-title[data-v-f0925ff8]{display:flex;align-items:center;color:var(--ik-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title{color:var(--el-color-white)}.event-title[data-v-f0925ff8]:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.allday[data-v-f0925ff8]:before{background-color:var(--ik-success)}.no-allday[data-v-f0925ff8]:before{background-color:var(--ik-error)}.event-title-time[data-v-f0925ff8]{color:var(--ik-vice-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title .event-title-time,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title .event-title-time{color:var(--el-color-info-light-8)}.event-title-text[data-v-f0925ff8]{margin-left:4px}.row-title[data-v-4a1004b9]{display:flex}.ik-svg-icon.ik-icon-span[data-v-4a1004b9]:not(:first-child){margin-left:var(--ik-margin-s-12)}.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,30 +1,30 @@
1
- import { defineComponent as k, computed as p, resolveComponent as f, openBlock as n, createElementBlock as s, normalizeClass as v, normalizeStyle as c, createCommentVNode as d, createElementVNode as u, createBlock as g, withCtx as m, createTextVNode as x, toDisplayString as y, useCssVars as $, unref as I, ref as T, Fragment as C, createVNode as L } from "vue";
2
- import { ikColor as z } from "iking-utils-pro";
3
- const S = (t, o) => {
4
- if (t.install = (e) => {
5
- for (const l of [t, ...Object.values(o ?? {})])
6
- e.component(l.name, l);
7
- }, o)
8
- for (const [e, l] of Object.entries(o))
9
- t[e] = l;
1
+ import { defineComponent as x, computed as y, resolveComponent as _, openBlock as l, createElementBlock as s, withModifiers as w, normalizeClass as d, normalizeStyle as c, createCommentVNode as g, createElementVNode as u, createBlock as f, withCtx as b, createTextVNode as z, toDisplayString as k, useCssVars as C, unref as S, ref as L, Fragment as N, createVNode as j } from "vue";
2
+ import { ikColor as B } from "iking-utils-pro";
3
+ const $ = (t, n) => {
4
+ if (t.install = (i) => {
5
+ for (const e of [t, ...Object.values(n ?? {})])
6
+ i.component(e.name, e);
7
+ }, n)
8
+ for (const [i, e] of Object.entries(n))
9
+ t[i] = e;
10
10
  return t;
11
- }, _ = (t, o) => {
12
- const e = t.__vccOpts || t;
13
- for (const [l, i] of o)
14
- e[l] = i;
15
- return e;
16
- }, N = {
11
+ }, I = (t, n) => {
12
+ const i = t.__vccOpts || t;
13
+ for (const [e, o] of n)
14
+ i[e] = o;
15
+ return i;
16
+ }, V = {
17
17
  key: 0,
18
18
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
19
- }, j = {
19
+ }, E = {
20
20
  key: 1,
21
21
  class: "h-[1em] w-[1em]",
22
22
  "aria-hidden": "true"
23
- }, V = ["xlink:href"], E = ["src"], G = {
23
+ }, G = ["xlink:href"], O = ["src"], U = {
24
24
  key: 1,
25
25
  class: "h-[1em] w-[1em]",
26
26
  "aria-hidden": "true"
27
- }, O = ["xlink:href"], U = ["src"], W = /* @__PURE__ */ k({
27
+ }, W = ["xlink:href"], F = ["src"], X = /* @__PURE__ */ x({
28
28
  name: "IkSvgIcon",
29
29
  __name: "index",
30
30
  props: {
@@ -50,11 +50,12 @@ const S = (t, o) => {
50
50
  warning: { type: Boolean },
51
51
  width: {}
52
52
  },
53
- setup(t) {
54
- const o = t, e = p(() => o), l = p(() => {
53
+ emits: ["click"],
54
+ setup(t, { emit: n }) {
55
+ const i = t, e = y(() => i), o = y(() => {
55
56
  const { name: a } = e.value;
56
57
  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";
57
- }), i = p(() => {
58
+ }), r = y(() => {
58
59
  const a = [];
59
60
  if (e.value.flip)
60
61
  switch (e.value.flip) {
@@ -69,27 +70,30 @@ const S = (t, o) => {
69
70
  break;
70
71
  }
71
72
  e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
72
- const r = {
73
+ const p = {
73
74
  ...e.value.color && { color: e.value.color },
74
75
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
75
76
  ...a.length && { transform: a.join(" ") },
76
77
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
77
- ...e.value.color && l.value !== "iksig" ? {
78
+ ...e.value.color && o.value !== "iksig" ? {
78
79
  "--ik-color-icon-dark": e.value.color,
79
- "--ik-color-icon-light": e.value.colorLight || z.setOpacity(e.value.color, e.value.opacity)
80
+ "--ik-color-icon-light": e.value.colorLight || B.setOpacity(e.value.color, e.value.opacity)
80
81
  } : {}
81
82
  };
82
- return e.value.width && (r.width = r.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), r;
83
- });
84
- return (a, r) => {
85
- const b = f("el-tooltip"), h = f("el-button");
86
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (n(), s("span", N, [
87
- e.value.notip || !e.value.title ? (n(), s(
83
+ return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
84
+ }), v = n, m = (a) => {
85
+ e.value.disabled || v("click", a);
86
+ };
87
+ return (a, p) => {
88
+ const h = _("el-tooltip"), T = _("el-button");
89
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), s("span", V, [
90
+ e.value.notip || !e.value.title ? (l(), s(
88
91
  "i",
89
92
  {
90
93
  key: 0,
91
- class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
92
- [a.name]: l.value === "unocss",
94
+ onClick: w(m, ["stop"]),
95
+ class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
96
+ [a.name]: o.value === "unocss",
93
97
  "show-bg": e.value.showBg || e.value.bg,
94
98
  default: e.value.size === "default",
95
99
  small: e.value.size === "small",
@@ -101,34 +105,34 @@ const S = (t, o) => {
101
105
  active: e.value.active,
102
106
  disabled: e.value.disabled
103
107
  }]),
104
- style: c(i.value)
108
+ style: c(r.value)
105
109
  },
106
110
  [
107
- d(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
108
- l.value === "iksig" ? (n(), s(
111
+ g(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
112
+ o.value === "iksig" ? (l(), s(
109
113
  "i",
110
114
  {
111
115
  key: 0,
112
- class: v(`iksig ${e.value.name}`),
113
- style: c(i.value)
116
+ class: d(`iksig ${e.value.name}`),
117
+ style: c(r.value)
114
118
  },
115
119
  null,
116
120
  6
117
121
  /* CLASS, STYLE */
118
- )) : l.value === "svg" ? (n(), s("svg", j, [
122
+ )) : o.value === "svg" ? (l(), s("svg", E, [
119
123
  u("use", {
120
124
  "xlink:href": `#${e.value.name}`
121
- }, null, 8, V)
122
- ])) : l.value === "img" ? (n(), s("img", {
125
+ }, null, 8, G)
126
+ ])) : o.value === "img" ? (l(), s("img", {
123
127
  key: 2,
124
128
  src: e.value.name,
125
129
  class: "h-[1em] w-[1em]"
126
- }, null, 8, E)) : (n(), s(
130
+ }, null, 8, O)) : (l(), s(
127
131
  "i",
128
132
  {
129
133
  key: 3,
130
- class: v(e.value.name),
131
- style: c(i.value)
134
+ class: d(e.value.name),
135
+ style: c(r.value)
132
136
  },
133
137
  null,
134
138
  6
@@ -137,17 +141,17 @@ const S = (t, o) => {
137
141
  ],
138
142
  6
139
143
  /* CLASS, STYLE */
140
- )) : (n(), g(b, {
144
+ )) : (l(), f(h, {
141
145
  key: 1,
142
146
  content: e.value.title,
143
147
  placement: "top"
144
148
  }, {
145
- default: m(() => [
149
+ default: b(() => [
146
150
  u(
147
151
  "i",
148
152
  {
149
- class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
150
- [a.name]: l.value === "unocss",
153
+ class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
154
+ [a.name]: o.value === "unocss",
151
155
  "show-bg": e.value.showBg || e.value.bg,
152
156
  default: e.value.size === "default",
153
157
  small: e.value.size === "small",
@@ -158,33 +162,34 @@ const S = (t, o) => {
158
162
  error: e.value.error || e.value.type === "error",
159
163
  active: e.value.active
160
164
  }]),
161
- style: c(i.value)
165
+ onClick: w(m, ["stop"]),
166
+ style: c(r.value)
162
167
  },
163
168
  [
164
- l.value === "iksig" ? (n(), s(
169
+ o.value === "iksig" ? (l(), s(
165
170
  "i",
166
171
  {
167
172
  key: 0,
168
- class: v(`iksig ${e.value.name}`),
169
- style: c(i.value)
173
+ class: d(`iksig ${e.value.name}`),
174
+ style: c(r.value)
170
175
  },
171
176
  null,
172
177
  6
173
178
  /* CLASS, STYLE */
174
- )) : l.value === "svg" ? (n(), s("svg", G, [
179
+ )) : o.value === "svg" ? (l(), s("svg", U, [
175
180
  u("use", {
176
181
  "xlink:href": `#${e.value.name}`
177
- }, null, 8, O)
178
- ])) : l.value === "img" ? (n(), s("img", {
182
+ }, null, 8, W)
183
+ ])) : o.value === "img" ? (l(), s("img", {
179
184
  key: 2,
180
185
  src: e.value.name,
181
186
  class: "h-[1em] w-[1em]"
182
- }, null, 8, U)) : (n(), s(
187
+ }, null, 8, F)) : (l(), s(
183
188
  "i",
184
189
  {
185
190
  key: 3,
186
- class: v(e.value.name),
187
- style: c(i.value)
191
+ class: d(e.value.name),
192
+ style: c(r.value)
188
193
  },
189
194
  null,
190
195
  6
@@ -198,13 +203,14 @@ const S = (t, o) => {
198
203
  _: 1
199
204
  /* STABLE */
200
205
  }, 8, ["content"]))
201
- ])) : (n(), g(h, {
206
+ ])) : (l(), f(T, {
202
207
  key: 1,
203
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
208
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
209
+ onClick: w(m, ["stop"])
204
210
  }, {
205
- default: m(() => [
206
- x(
207
- y(e.value.title),
211
+ default: b(() => [
212
+ z(
213
+ k(e.value.title),
208
214
  1
209
215
  /* TEXT */
210
216
  )
@@ -215,12 +221,12 @@ const S = (t, o) => {
215
221
  };
216
222
  }
217
223
  });
218
- const F = /* @__PURE__ */ _(W, [["__scopeId", "data-v-a7ec508a"]]), X = S(F), Y = () => ({
219
- getLinearGradient: (o) => {
220
- const e = z.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
221
- return `linear-gradient(to top, ${o} 4%, rgb(${e[0]},${e[1] + 50},${e[2]}) 88%)`;
224
+ const Y = /* @__PURE__ */ I(X, [["__scopeId", "data-v-4a1004b9"]]), q = $(Y), D = () => ({
225
+ getLinearGradient: (n) => {
226
+ const i = B.hexToRGB(n).replace(/[^\d,]/g, "").split(",").map(Number);
227
+ return `linear-gradient(to top, ${n} 4%, rgb(${i[0]},${i[1] + 50},${i[2]}) 88%)`;
222
228
  }
223
- }), q = /* @__PURE__ */ k({
229
+ }), M = /* @__PURE__ */ x({
224
230
  __name: "IkLinearIcon",
225
231
  props: {
226
232
  icon: {
@@ -237,21 +243,21 @@ const F = /* @__PURE__ */ _(W, [["__scopeId", "data-v-a7ec508a"]]), X = S(F), Y
237
243
  }
238
244
  },
239
245
  setup(t) {
240
- $((i) => ({
241
- "435077c3": l.value
246
+ C((o) => ({
247
+ "435077c3": e.value
242
248
  }));
243
- const o = t, { getLinearGradient: e } = Y(), l = p(() => `${o.size}px`);
244
- return (i, a) => (n(), s(
249
+ const n = t, { getLinearGradient: i } = D(), e = y(() => `${n.size}px`);
250
+ return (o, r) => (l(), s(
245
251
  "div",
246
252
  {
247
253
  class: "form-icon",
248
- style: c({ backgroundImage: I(e)(t.backgroundColor || "#28b8a4") })
254
+ style: c({ backgroundImage: S(i)(t.backgroundColor || "#28b8a4") })
249
255
  },
250
256
  [
251
257
  u(
252
258
  "i",
253
259
  {
254
- class: v(`ikflow ${t.icon}`)
260
+ class: d(`ikflow ${t.icon}`)
255
261
  },
256
262
  null,
257
263
  2
@@ -263,7 +269,7 @@ const F = /* @__PURE__ */ _(W, [["__scopeId", "data-v-a7ec508a"]]), X = S(F), Y
263
269
  ));
264
270
  }
265
271
  });
266
- const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class: "side-text items-center" }, A = { class: "side-left flex items-center" }, H = { class: "side-right" }, J = { class: "text-over-line" }, K = { class: "text-over-line" }, M = /* @__PURE__ */ k({
272
+ const R = /* @__PURE__ */ I(M, [["__scopeId", "data-v-0bc5a180"]]), A = { class: "side-text items-center" }, H = { class: "side-left flex items-center" }, J = { class: "side-right" }, K = { class: "text-over-line" }, P = { class: "text-over-line" }, Q = /* @__PURE__ */ x({
267
273
  __name: "IkSideText",
268
274
  props: {
269
275
  // 名称
@@ -321,30 +327,30 @@ const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
321
327
  }
322
328
  },
323
329
  setup(t) {
324
- const o = t, e = (r) => r ? r.startsWith("http") ? r : `${o.loadUrl}${r}` : "", l = p(() => e(o.avatar)), i = T(!!o.avatar), a = () => {
325
- i.value = !1;
330
+ const n = t, i = (v) => v ? v.startsWith("http") ? v : `${n.loadUrl}${v}` : "", e = y(() => i(n.avatar)), o = L(!!n.avatar), r = () => {
331
+ o.value = !1;
326
332
  };
327
- return (r, b) => {
328
- var w;
329
- const h = f("el-avatar"), B = f("el-tooltip");
330
- return n(), s("div", R, [
331
- u("div", A, [
332
- t.avatarType === "url" ? (n(), g(h, {
333
+ return (v, m) => {
334
+ var h;
335
+ const a = _("el-avatar"), p = _("el-tooltip");
336
+ return l(), s("div", A, [
337
+ u("div", H, [
338
+ t.avatarType === "url" ? (l(), f(a, {
333
339
  key: 0,
334
340
  style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
335
341
  size: t.size,
336
342
  shape: t.shape,
337
- src: l.value,
343
+ src: e.value,
338
344
  fit: "contain",
339
- onError: a
345
+ onError: r
340
346
  }, {
341
- default: m(() => [
342
- i.value ? d("v-if", !0) : (n(), s(
343
- C,
347
+ default: b(() => [
348
+ o.value ? g("v-if", !0) : (l(), s(
349
+ N,
344
350
  { key: 0 },
345
351
  [
346
- x(
347
- y(t.name.slice(-2)),
352
+ z(
353
+ k(t.name.slice(-2)),
348
354
  1
349
355
  /* TEXT */
350
356
  )
@@ -355,35 +361,35 @@ const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
355
361
  ]),
356
362
  _: 1
357
363
  /* STABLE */
358
- }, 8, ["size", "shape", "src"])) : d("v-if", !0),
359
- t.avatarType === "icon" ? (n(), g(I(X), {
364
+ }, 8, ["size", "shape", "src"])) : g("v-if", !0),
365
+ t.avatarType === "icon" ? (l(), f(S(q), {
360
366
  key: 1,
361
- name: `iksvg_${(w = t.avatar) == null ? void 0 : w.replace("iksvg_", "")}`,
367
+ name: `iksvg_${(h = t.avatar) == null ? void 0 : h.replace("iksvg_", "")}`,
362
368
  "show-bg": t.showIconBg,
363
369
  type: t.iconType,
364
370
  style: c({ fontSize: t.showIconBg ? "34px" : "50px" }),
365
371
  size: t.iconSize
366
- }, null, 8, ["name", "show-bg", "type", "style", "size"])) : d("v-if", !0),
367
- t.avatarType === "linearIcon" ? (n(), g(D, {
372
+ }, null, 8, ["name", "show-bg", "type", "style", "size"])) : g("v-if", !0),
373
+ t.avatarType === "linearIcon" ? (l(), f(R, {
368
374
  key: 2,
369
375
  icon: t.avatar,
370
376
  "background-color": t.iconBackgroundColor
371
- }, null, 8, ["icon", "background-color"])) : d("v-if", !0)
377
+ }, null, 8, ["icon", "background-color"])) : g("v-if", !0)
372
378
  ]),
373
- u("div", H, [
379
+ u("div", J, [
374
380
  u(
375
381
  "p",
376
- J,
377
- y(t.text),
382
+ K,
383
+ k(t.text),
378
384
  1
379
385
  /* TEXT */
380
386
  ),
381
- L(B, { content: t.subText }, {
382
- default: m(() => [
387
+ j(p, { content: t.subText }, {
388
+ default: b(() => [
383
389
  u(
384
390
  "p",
385
- K,
386
- y(t.subText),
391
+ P,
392
+ k(t.subText),
387
393
  1
388
394
  /* TEXT */
389
395
  )
@@ -396,8 +402,8 @@ const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
396
402
  };
397
403
  }
398
404
  });
399
- const P = /* @__PURE__ */ _(M, [["__scopeId", "data-v-75852e7e"]]), ee = S(P);
405
+ const Z = /* @__PURE__ */ I(Q, [["__scopeId", "data-v-75852e7e"]]), ae = $(Z);
400
406
  export {
401
- ee as IkSideText,
402
- ee as default
407
+ ae as IkSideText,
408
+ ae as default
403
409
  };
@@ -1 +1 @@
1
- (function(c,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):(c=typeof globalThis<"u"?globalThis:c||self,e(c.index={},c.vue,c["iking-utils-pro"]))})(this,function(c,e,p){"use strict";const u=(l,n)=>{if(l.install=t=>{for(const a of[l,...Object.values(n??{})])t.component(a.name,a)},n)for(const[t,a]of Object.entries(n))l[t]=a;return l},r=(l,n)=>{const t=l.__vccOpts||l;for(const[a,i]of n)t[a]=i;return t},f={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"],_={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},B=["xlink:href"],b=["src"],x=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(l){const n=l,t=e.computed(()=>n),a=e.computed(()=>{const{name:o}=t.value;return/^http?:\/\//.test(o)?"img":/i-[^:]+:[^:]+/.test(o)?"unocss":o!=null&&o.startsWith("iksig")?"iksig":o!=null&&o.includes(":")?"iconify":o!=null&&o.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const o=[];if(t.value.flip)switch(t.value.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}t.value.rotate&&o.push(`rotate(${t.value.rotate%360}deg)`);const s={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...o.length&&{transform:o.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&a.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||p.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(o,s)=>{const y=e.resolveComponent("el-tooltip"),d=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",f,[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",{[o.name]:a.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:o.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" /> `),a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,h)])):a.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(y,{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",{[o.name]:a.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:o.primary||t.value.type==="primary",success:o.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(i.value)},[a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",_,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,B)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,b)):(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"]))}}}),j="",z=u(r(x,[["__scopeId","data-v-a7ec508a"]])),S=()=>({getLinearGradient:n=>{const t=p.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%)`}}),w=e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(l){e.useCssVars(i=>({"435077c3":a.value}));const n=l,{getLinearGradient:t}=S(),a=e.computed(()=>`${n.size}px`);return(i,o)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(t)(l.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${l.icon}`)},null,2)],4))}}),D="",C=r(w,[["__scopeId","data-v-0bc5a180"]]),I={class:"side-text items-center"},T={class:"side-left flex items-center"},E={class:"side-right"},$={class:"text-over-line"},N={class:"text-over-line"},V=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(l){const n=l,t=s=>s?s.startsWith("http")?s:`${n.loadUrl}${s}`:"",a=e.computed(()=>t(n.avatar)),i=e.ref(!!n.avatar),o=()=>{i.value=!1};return(s,y)=>{var g;const d=e.resolveComponent("el-avatar"),L=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",T,[l.avatarType==="url"?(e.openBlock(),e.createBlock(d,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:l.size,shape:l.shape,src:a.value,fit:"contain",onError:o},{default:e.withCtx(()=>[i.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.name.slice(-2)),1)],64))]),_:1},8,["size","shape","src"])):e.createCommentVNode("v-if",!0),l.avatarType==="icon"?(e.openBlock(),e.createBlock(e.unref(z),{key:1,name:`iksvg_${(g=l.avatar)==null?void 0:g.replace("iksvg_","")}`,"show-bg":l.showIconBg,type:l.iconType,style:e.normalizeStyle({fontSize:l.showIconBg?"34px":"50px"}),size:l.iconSize},null,8,["name","show-bg","type","style","size"])):e.createCommentVNode("v-if",!0),l.avatarType==="linearIcon"?(e.openBlock(),e.createBlock(C,{key:2,icon:l.avatar,"background-color":l.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",E,[e.createElementVNode("p",$,e.toDisplayString(l.text),1),e.createVNode(L,{content:l.subText},{default:e.withCtx(()=>[e.createElementVNode("p",N,e.toDisplayString(l.subText),1)]),_:1},8,["content"])])])}}}),G="",m=u(r(V,[["__scopeId","data-v-75852e7e"]]));c.IkSideText=m,c.default=m,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(s,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):(s=typeof globalThis<"u"?globalThis:s||self,e(s.index={},s.vue,s["iking-utils-pro"]))})(this,function(s,e,y){"use strict";const f=(l,a)=>{if(l.install=n=>{for(const t of[l,...Object.values(a??{})])n.component(t.name,t)},a)for(const[n,t]of Object.entries(a))l[n]=t;return l},m=(l,a)=>{const n=l.__vccOpts||l;for(const[t,i]of a)n[t]=i;return n},k={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],v=["src"],B={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},b=["xlink:href"],w=["src"],x=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"],setup(l,{emit:a}){const n=l,t=e.computed(()=>n),i=e.computed(()=>{const{name:o}=t.value;return/^http?:\/\//.test(o)?"img":/i-[^:]+:[^:]+/.test(o)?"unocss":o!=null&&o.startsWith("iksig")?"iksig":o!=null&&o.includes(":")?"iconify":o!=null&&o.startsWith("iksvg")?"svg":"i"}),c=e.computed(()=>{const o=[];if(t.value.flip)switch(t.value.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}t.value.rotate&&o.push(`rotate(${t.value.rotate%360}deg)`);const d={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...o.length&&{transform:o.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&i.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(d.width=d.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),d}),r=a,p=o=>{t.value.disabled||r("click",o)};return(o,d)=>{const u=e.resolveComponent("el-tooltip"),j=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",k,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,onClick:e.withModifiers(p,["stop"]),class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:i.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:o.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)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,_)])):i.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(c.value)},null,6))],6)):(e.openBlock(),e.createBlock(u,{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",{[o.name]:i.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:o.primary||t.value.type==="primary",success:o.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),onClick:e.withModifiers(p,["stop"]),style:e.normalizeStyle(c.value)},[i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",B,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,b)])):i.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))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(j,{key:1,type:["warning","error"].includes(t.value.type)?"danger":"",onClick:e.withModifiers(p,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",z=f(m(x,[["__scopeId","data-v-4a1004b9"]])),S=()=>({getLinearGradient:a=>{const n=y.ikColor.hexToRGB(a).replace(/[^\d,]/g,"").split(",").map(Number);return`linear-gradient(to top, ${a} 4%, rgb(${n[0]},${n[1]+50},${n[2]}) 88%)`}}),C=e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(l){e.useCssVars(i=>({"435077c3":t.value}));const a=l,{getLinearGradient:n}=S(),t=e.computed(()=>`${a.size}px`);return(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(n)(l.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${l.icon}`)},null,2)],4))}}),D="",I=m(C,[["__scopeId","data-v-0bc5a180"]]),T={class:"side-text items-center"},E={class:"side-left flex items-center"},$={class:"side-right"},N={class:"text-over-line"},V={class:"text-over-line"},L=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(l){const a=l,n=r=>r?r.startsWith("http")?r:`${a.loadUrl}${r}`:"",t=e.computed(()=>n(a.avatar)),i=e.ref(!!a.avatar),c=()=>{i.value=!1};return(r,p)=>{var u;const o=e.resolveComponent("el-avatar"),d=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",E,[l.avatarType==="url"?(e.openBlock(),e.createBlock(o,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:l.size,shape:l.shape,src:t.value,fit:"contain",onError:c},{default:e.withCtx(()=>[i.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.name.slice(-2)),1)],64))]),_:1},8,["size","shape","src"])):e.createCommentVNode("v-if",!0),l.avatarType==="icon"?(e.openBlock(),e.createBlock(e.unref(z),{key:1,name:`iksvg_${(u=l.avatar)==null?void 0:u.replace("iksvg_","")}`,"show-bg":l.showIconBg,type:l.iconType,style:e.normalizeStyle({fontSize:l.showIconBg?"34px":"50px"}),size:l.iconSize},null,8,["name","show-bg","type","style","size"])):e.createCommentVNode("v-if",!0),l.avatarType==="linearIcon"?(e.openBlock(),e.createBlock(I,{key:2,icon:l.avatar,"background-color":l.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",$,[e.createElementVNode("p",N,e.toDisplayString(l.text),1),e.createVNode(d,{content:l.subText},{default:e.withCtx(()=>[e.createElementVNode("p",V,e.toDisplayString(l.subText),1)]),_:1},8,["content"])])])}}}),G="",g=f(m(L,[["__scopeId","data-v-75852e7e"]]));s.IkSideText=g,s.default=g,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .row-title[data-v-a7ec508a]{display:flex}.ik-svg-icon.ik-icon-span[data-v-a7ec508a]:not(:first-child){margin-left:var(--ik-margin-s-12)}.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-75852e7e]{display:flex}.side-text .side-left[data-v-75852e7e]{margin-right:12px}.side-text .side-right[data-v-75852e7e]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-75852e7e]{overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-75852e7e]:last-child{color:#b5b5c3}
1
+ .row-title[data-v-4a1004b9]{display:flex}.ik-svg-icon.ik-icon-span[data-v-4a1004b9]:not(:first-child){margin-left:var(--ik-margin-s-12)}.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-75852e7e]{display:flex}.side-text .side-left[data-v-75852e7e]{margin-right:12px}.side-text .side-right[data-v-75852e7e]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-75852e7e]{overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-75852e7e]:last-child{color:#b5b5c3}