iking-web-ui-pro 0.2.4 → 0.2.6

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 (80) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +586 -571
  2. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  3. package/dist/IKDetailPreviewFiles/style.css +1 -1
  4. package/dist/IKExpandCollapse/ik.index.es.js +123 -120
  5. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  6. package/dist/IKExpandCollapse/style.css +1 -1
  7. package/dist/IKPreviewFile/ik.index.es.js +491 -476
  8. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  9. package/dist/IKPreviewFile/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcessDetail/ik.index.es.js +756 -741
  14. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/style.css +1 -1
  16. package/dist/IkBaseDialog/ik.index.es.js +125 -122
  17. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  18. package/dist/IkBaseDialog/style.css +1 -1
  19. package/dist/IkBtnSetting/ik.index.es.js +252 -249
  20. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  21. package/dist/IkBtnSetting/style.css +1 -1
  22. package/dist/IkCollapseCard/ik.index.es.js +129 -126
  23. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  24. package/dist/IkCollapseCard/style.css +1 -1
  25. package/dist/IkDescription/ik.index.es.js +530 -515
  26. package/dist/IkDescription/ik.index.umd.js +1 -1
  27. package/dist/IkDescription/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +196 -193
  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 +397 -394
  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 +1122 -1119
  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 +314 -308
  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 +968 -965
  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 +148 -145
  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 +106 -103
  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 +963 -944
  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 +265 -253
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/Provider/ik.index.es.js +1611 -0
  56. package/dist/Provider/ik.index.umd.js +17 -0
  57. package/dist/index.es.js +38689 -37072
  58. package/dist/index.umd.js +95 -79
  59. package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
  60. package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
  61. package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
  62. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
  63. package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
  64. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
  65. package/dist/src/components/IkDescription/index.d.ts +3 -3
  66. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
  67. package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
  68. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
  69. package/dist/src/components/IkTinymce/index.d.ts +1 -1
  70. package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
  71. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  72. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
  73. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  74. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  75. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +66 -0
  76. package/dist/src/components/Provider/index.d.ts +139 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/dist/src/utils/use-provider.d.ts +8 -0
  79. package/dist/style.css +1 -1
  80. 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-7d95dbf5]{display:flex}.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-1be337e4]{display:flex}.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,18 +1,18 @@
1
- import { defineComponent as h, computed as f, resolveComponent as m, openBlock as o, createElementBlock as s, normalizeClass as d, normalizeStyle as c, createCommentVNode as p, createElementVNode as u, createBlock as g, withCtx as v, createTextVNode as z, toDisplayString as y, useCssVars as T, unref as I, ref as C, Fragment as L, createVNode as N } from "vue";
2
- import { ikColor as _ } from "iking-utils-pro";
3
- const S = (n, t) => {
4
- if (n.install = (a) => {
5
- for (const i of [n, ...Object.values(t ?? {})])
6
- a.component(i.name, i);
7
- }, t)
8
- for (const [a, i] of Object.entries(t))
9
- n[a] = i;
10
- return n;
11
- }, k = (n, t) => {
12
- const a = n.__vccOpts || n;
13
- for (const [i, e] of t)
14
- a[i] = e;
15
- return a;
1
+ import { defineComponent as b, inject as $, computed as p, resolveComponent as m, openBlock as n, createElementBlock as s, normalizeClass as v, normalizeStyle as c, createCommentVNode as g, createElementVNode as u, createBlock as y, withCtx as h, createTextVNode as z, toDisplayString as f, useCssVars as T, unref as I, ref as C, Fragment as L, createVNode as N } from "vue";
2
+ import { ikColor as S } from "iking-utils-pro";
3
+ const B = (t, o) => {
4
+ if (t.install = (l) => {
5
+ for (const e of [t, ...Object.values(o ?? {})])
6
+ l.component(e.name, e);
7
+ }, o)
8
+ for (const [l, e] of Object.entries(o))
9
+ t[l] = e;
10
+ return t;
11
+ }, w = (t, o) => {
12
+ const l = t.__vccOpts || t;
13
+ for (const [e, i] of o)
14
+ l[e] = i;
15
+ return l;
16
16
  }, j = {
17
17
  key: 0,
18
18
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
@@ -24,7 +24,7 @@ const S = (n, t) => {
24
24
  key: 1,
25
25
  class: "h-[1em] w-[1em]",
26
26
  "aria-hidden": "true"
27
- }, U = ["xlink:href"], x = ["src"], W = /* @__PURE__ */ h({
27
+ }, U = ["xlink:href"], W = ["src"], F = /* @__PURE__ */ b({
28
28
  name: "IkSvgIcon",
29
29
  __name: "index",
30
30
  props: {
@@ -50,85 +50,88 @@ const S = (n, t) => {
50
50
  disabled: { type: Boolean, default: !1 },
51
51
  tableIconType: { default: "icon" }
52
52
  },
53
- setup(n) {
54
- const t = n, a = f(() => {
55
- var e, l, r;
56
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (e = t.name) != null && e.startsWith("iksig") ? "iksig" : (l = t.name) != null && l.includes(":") ? "iconify" : (r = t.name) != null && r.startsWith("iksvg") ? "svg" : "i";
57
- }), i = f(() => {
58
- const e = [];
59
- if (t.flip)
60
- switch (t.flip) {
53
+ setup(t) {
54
+ const o = t, l = $("iconConfig"), e = p(() => ({
55
+ ...(l == null ? void 0 : l.value) || {},
56
+ ...o
57
+ })), i = p(() => {
58
+ const { name: a } = e.value;
59
+ 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";
60
+ }), r = p(() => {
61
+ const a = [];
62
+ if (e.value.flip)
63
+ switch (e.value.flip) {
61
64
  case "horizontal":
62
- e.push("rotateY(180deg)");
65
+ a.push("rotateY(180deg)");
63
66
  break;
64
67
  case "vertical":
65
- e.push("rotateX(180deg)");
68
+ a.push("rotateX(180deg)");
66
69
  break;
67
70
  case "both":
68
- e.push("rotateX(180deg)"), e.push("rotateY(180deg)");
71
+ a.push("rotateX(180deg)"), a.push("rotateY(180deg)");
69
72
  break;
70
73
  }
71
- t.rotate && e.push(`rotate(${t.rotate % 360}deg)`);
72
- const l = {
73
- ...t.color && { color: t.color },
74
- ...t.size && { fontSize: typeof t.size == "number" ? `${t.size}px` : t.size },
75
- ...e.length && { transform: e.join(" ") },
76
- padding: t.showBg || t.bg ? t.padding : 0,
77
- ...t.color && a.value !== "iksig" ? {
78
- "--ik-color-icon-dark": t.color,
79
- "--ik-color-icon-light": t.colorLight || _.setOpacity(t.color, t.opacity)
74
+ e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
75
+ const d = {
76
+ ...e.value.color && { color: e.value.color },
77
+ ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
78
+ ...a.length && { transform: a.join(" ") },
79
+ padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
80
+ ...e.value.color && i.value !== "iksig" ? {
81
+ "--ik-color-icon-dark": e.value.color,
82
+ "--ik-color-icon-light": e.value.colorLight || S.setOpacity(e.value.color, e.value.opacity)
80
83
  } : {}
81
84
  };
82
- return t.width && (l.width = l.height = typeof t.width == "number" ? `${t.width}px` : t.width), l;
85
+ return e.value.width && (d.width = d.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), d;
83
86
  });
84
- return (e, l) => {
85
- const r = m("el-tooltip"), b = m("el-button");
86
- return e.tableIconType === "icon" ? (o(), s("span", j, [
87
- e.notip || !e.title ? (o(), s(
87
+ return (a, d) => {
88
+ const k = m("el-tooltip"), _ = m("el-button");
89
+ return e.value.tableIconType === "icon" ? (n(), s("span", j, [
90
+ e.value.notip || !e.value.title ? (n(), s(
88
91
  "i",
89
92
  {
90
93
  key: 0,
91
- class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
92
- [e.name]: a.value === "unocss",
93
- "show-bg": e.showBg || e.bg,
94
- default: e.size === "default",
95
- small: e.size === "small",
96
- big: e.size === "big",
97
- warning: e.warning || t.type === "warning",
98
- primary: e.primary || t.type === "primary",
99
- success: e.success || t.type === "success",
100
- error: e.error || t.type === "error",
101
- active: e.active,
102
- disabled: e.disabled
94
+ class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
95
+ [a.name]: i.value === "unocss",
96
+ "show-bg": e.value.showBg || e.value.bg,
97
+ default: e.value.size === "default",
98
+ small: e.value.size === "small",
99
+ big: e.value.size === "big",
100
+ warning: e.value.warning || e.value.type === "warning",
101
+ primary: e.value.primary || e.value.type === "primary",
102
+ success: a.success || e.value.type === "success",
103
+ error: e.value.error || e.value.type === "error",
104
+ active: e.value.active,
105
+ disabled: e.value.disabled
103
106
  }]),
104
- style: c(i.value)
107
+ style: c(r.value)
105
108
  },
106
109
  [
107
- p(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
108
- a.value === "iksig" ? (o(), s(
110
+ g(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
111
+ i.value === "iksig" ? (n(), s(
109
112
  "i",
110
113
  {
111
114
  key: 0,
112
- class: d(`iksig ${e.name}`),
113
- style: c(i.value)
115
+ class: v(`iksig ${e.value.name}`),
116
+ style: c(r.value)
114
117
  },
115
118
  null,
116
119
  6
117
120
  /* CLASS, STYLE */
118
- )) : a.value === "svg" ? (o(), s("svg", V, [
121
+ )) : i.value === "svg" ? (n(), s("svg", V, [
119
122
  u("use", {
120
- "xlink:href": `#${e.name}`
123
+ "xlink:href": `#${e.value.name}`
121
124
  }, null, 8, E)
122
- ])) : a.value === "img" ? (o(), s("img", {
125
+ ])) : i.value === "img" ? (n(), s("img", {
123
126
  key: 2,
124
- src: e.name,
127
+ src: e.value.name,
125
128
  class: "h-[1em] w-[1em]"
126
- }, null, 8, G)) : (o(), s(
129
+ }, null, 8, G)) : (n(), s(
127
130
  "i",
128
131
  {
129
132
  key: 3,
130
- class: d(e.name),
131
- style: c(i.value)
133
+ class: v(e.value.name),
134
+ style: c(r.value)
132
135
  },
133
136
  null,
134
137
  6
@@ -137,54 +140,54 @@ const S = (n, t) => {
137
140
  ],
138
141
  6
139
142
  /* CLASS, STYLE */
140
- )) : (o(), g(r, {
143
+ )) : (n(), y(k, {
141
144
  key: 1,
142
- content: e.title,
145
+ content: e.value.title,
143
146
  placement: "top"
144
147
  }, {
145
- default: v(() => [
148
+ default: h(() => [
146
149
  u(
147
150
  "i",
148
151
  {
149
- class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
150
- [e.name]: a.value === "unocss",
151
- "show-bg": e.showBg || e.bg,
152
- default: e.size === "default",
153
- small: e.size === "small",
154
- big: e.size === "big",
155
- warning: e.warning || t.type === "warning",
156
- primary: e.primary || t.type === "primary",
157
- success: e.success || t.type === "success",
158
- error: e.error || t.type === "error",
159
- active: e.active
152
+ class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
153
+ [a.name]: i.value === "unocss",
154
+ "show-bg": e.value.showBg || e.value.bg,
155
+ default: e.value.size === "default",
156
+ small: e.value.size === "small",
157
+ big: e.value.size === "big",
158
+ warning: e.value.warning || e.value.type === "warning",
159
+ primary: a.primary || e.value.type === "primary",
160
+ success: a.success || e.value.type === "success",
161
+ error: e.value.error || e.value.type === "error",
162
+ active: e.value.active
160
163
  }]),
161
- style: c(i.value)
164
+ style: c(r.value)
162
165
  },
163
166
  [
164
- a.value === "iksig" ? (o(), s(
167
+ i.value === "iksig" ? (n(), s(
165
168
  "i",
166
169
  {
167
170
  key: 0,
168
- class: d(`iksig ${e.name}`),
169
- style: c(i.value)
171
+ class: v(`iksig ${e.value.name}`),
172
+ style: c(r.value)
170
173
  },
171
174
  null,
172
175
  6
173
176
  /* CLASS, STYLE */
174
- )) : a.value === "svg" ? (o(), s("svg", O, [
177
+ )) : i.value === "svg" ? (n(), s("svg", O, [
175
178
  u("use", {
176
- "xlink:href": `#${e.name}`
179
+ "xlink:href": `#${e.value.name}`
177
180
  }, null, 8, U)
178
- ])) : a.value === "img" ? (o(), s("img", {
181
+ ])) : i.value === "img" ? (n(), s("img", {
179
182
  key: 2,
180
- src: e.name,
183
+ src: e.value.name,
181
184
  class: "h-[1em] w-[1em]"
182
- }, null, 8, x)) : (o(), s(
185
+ }, null, 8, W)) : (n(), s(
183
186
  "i",
184
187
  {
185
188
  key: 3,
186
- class: d(e.name),
187
- style: c(i.value)
189
+ class: v(e.value.name),
190
+ style: c(r.value)
188
191
  },
189
192
  null,
190
193
  6
@@ -198,13 +201,13 @@ const S = (n, t) => {
198
201
  _: 1
199
202
  /* STABLE */
200
203
  }, 8, ["content"]))
201
- ])) : (o(), g(b, {
204
+ ])) : (n(), y(_, {
202
205
  key: 1,
203
- type: ["warning", "error"].includes(e.type) ? "danger" : ""
206
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
204
207
  }, {
205
- default: v(() => [
208
+ default: h(() => [
206
209
  z(
207
- y(e.title),
210
+ f(e.value.title),
208
211
  1
209
212
  /* TEXT */
210
213
  )
@@ -215,12 +218,12 @@ const S = (n, t) => {
215
218
  };
216
219
  }
217
220
  });
218
- const F = /* @__PURE__ */ k(W, [["__scopeId", "data-v-7d95dbf5"]]), X = S(F), Y = () => ({
219
- getLinearGradient: (t) => {
220
- const a = _.hexToRGB(t).replace(/[^\d,]/g, "").split(",").map(Number);
221
- return `linear-gradient(to top, ${t} 4%, rgb(${a[0]},${a[1] + 50},${a[2]}) 88%)`;
221
+ const X = /* @__PURE__ */ w(F, [["__scopeId", "data-v-1be337e4"]]), Y = B(X), q = () => ({
222
+ getLinearGradient: (o) => {
223
+ const l = S.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
224
+ return `linear-gradient(to top, ${o} 4%, rgb(${l[0]},${l[1] + 50},${l[2]}) 88%)`;
222
225
  }
223
- }), q = /* @__PURE__ */ h({
226
+ }), D = /* @__PURE__ */ b({
224
227
  __name: "IkLinearIcon",
225
228
  props: {
226
229
  icon: {
@@ -236,22 +239,22 @@ const F = /* @__PURE__ */ k(W, [["__scopeId", "data-v-7d95dbf5"]]), X = S(F), Y
236
239
  default: 40
237
240
  }
238
241
  },
239
- setup(n) {
240
- T((e) => ({
241
- "435077c3": i.value
242
+ setup(t) {
243
+ T((i) => ({
244
+ "435077c3": e.value
242
245
  }));
243
- const t = n, { getLinearGradient: a } = Y(), i = f(() => `${t.size}px`);
244
- return (e, l) => (o(), s(
246
+ const o = t, { getLinearGradient: l } = q(), e = p(() => `${o.size}px`);
247
+ return (i, r) => (n(), s(
245
248
  "div",
246
249
  {
247
250
  class: "form-icon",
248
- style: c({ backgroundImage: I(a)(n.backgroundColor || "#28b8a4") })
251
+ style: c({ backgroundImage: I(l)(t.backgroundColor || "#28b8a4") })
249
252
  },
250
253
  [
251
254
  u(
252
255
  "i",
253
256
  {
254
- class: d(`ikflow ${n.icon}`)
257
+ class: v(`ikflow ${t.icon}`)
255
258
  },
256
259
  null,
257
260
  2
@@ -263,7 +266,7 @@ const F = /* @__PURE__ */ k(W, [["__scopeId", "data-v-7d95dbf5"]]), X = S(F), Y
263
266
  ));
264
267
  }
265
268
  });
266
- const D = /* @__PURE__ */ k(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__ */ h({
269
+ const R = /* @__PURE__ */ w(D, [["__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" }, M = { class: "text-over-line" }, P = /* @__PURE__ */ b({
267
270
  __name: "IkSideText",
268
271
  props: {
269
272
  // 名称
@@ -320,31 +323,31 @@ const D = /* @__PURE__ */ k(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
320
323
  default: ""
321
324
  }
322
325
  },
323
- setup(n) {
324
- const t = n, a = (r) => r ? r.startsWith("http") ? r : `${t.loadUrl}${r}` : "", i = f(() => a(t.avatar)), e = C(!!t.avatar), l = () => {
325
- e.value = !1;
326
+ setup(t) {
327
+ const o = t, l = (a) => a ? a.startsWith("http") ? a : `${o.loadUrl}${a}` : "", e = p(() => l(o.avatar)), i = C(!!o.avatar), r = () => {
328
+ i.value = !1;
326
329
  };
327
- return (r, b) => {
328
- var w;
329
- const B = m("el-avatar"), $ = m("el-tooltip");
330
- return o(), s("div", R, [
331
- u("div", A, [
332
- n.avatarType === "url" ? (o(), g(B, {
330
+ return (a, d) => {
331
+ var x;
332
+ const k = m("el-avatar"), _ = m("el-tooltip");
333
+ return n(), s("div", A, [
334
+ u("div", H, [
335
+ t.avatarType === "url" ? (n(), y(k, {
333
336
  key: 0,
334
337
  style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
335
- size: n.size,
336
- shape: n.shape,
337
- src: i.value,
338
+ size: t.size,
339
+ shape: t.shape,
340
+ src: e.value,
338
341
  fit: "contain",
339
- onError: l
342
+ onError: r
340
343
  }, {
341
- default: v(() => [
342
- e.value ? p("v-if", !0) : (o(), s(
344
+ default: h(() => [
345
+ i.value ? g("v-if", !0) : (n(), s(
343
346
  L,
344
347
  { key: 0 },
345
348
  [
346
349
  z(
347
- y(n.name.slice(-2)),
350
+ f(t.name.slice(-2)),
348
351
  1
349
352
  /* TEXT */
350
353
  )
@@ -355,35 +358,35 @@ const D = /* @__PURE__ */ k(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
355
358
  ]),
356
359
  _: 1
357
360
  /* STABLE */
358
- }, 8, ["size", "shape", "src"])) : p("v-if", !0),
359
- n.avatarType === "icon" ? (o(), g(I(X), {
361
+ }, 8, ["size", "shape", "src"])) : g("v-if", !0),
362
+ t.avatarType === "icon" ? (n(), y(I(Y), {
360
363
  key: 1,
361
- name: `iksvg_${(w = n.avatar) == null ? void 0 : w.replace("iksvg_", "")}`,
362
- "show-bg": n.showIconBg,
363
- type: n.iconType,
364
- style: c({ fontSize: n.showIconBg ? "34px" : "50px" }),
365
- size: n.iconSize
366
- }, null, 8, ["name", "show-bg", "type", "style", "size"])) : p("v-if", !0),
367
- n.avatarType === "linearIcon" ? (o(), g(D, {
364
+ name: `iksvg_${(x = t.avatar) == null ? void 0 : x.replace("iksvg_", "")}`,
365
+ "show-bg": t.showIconBg,
366
+ type: t.iconType,
367
+ style: c({ fontSize: t.showIconBg ? "34px" : "50px" }),
368
+ size: t.iconSize
369
+ }, null, 8, ["name", "show-bg", "type", "style", "size"])) : g("v-if", !0),
370
+ t.avatarType === "linearIcon" ? (n(), y(R, {
368
371
  key: 2,
369
- icon: n.avatar,
370
- "background-color": n.iconBackgroundColor
371
- }, null, 8, ["icon", "background-color"])) : p("v-if", !0)
372
+ icon: t.avatar,
373
+ "background-color": t.iconBackgroundColor
374
+ }, null, 8, ["icon", "background-color"])) : g("v-if", !0)
372
375
  ]),
373
- u("div", H, [
376
+ u("div", J, [
374
377
  u(
375
378
  "p",
376
- J,
377
- y(n.text),
379
+ K,
380
+ f(t.text),
378
381
  1
379
382
  /* TEXT */
380
383
  ),
381
- N($, { content: n.subText }, {
382
- default: v(() => [
384
+ N(_, { content: t.subText }, {
385
+ default: h(() => [
383
386
  u(
384
387
  "p",
385
- K,
386
- y(n.subText),
388
+ M,
389
+ f(t.subText),
387
390
  1
388
391
  /* TEXT */
389
392
  )
@@ -396,8 +399,8 @@ const D = /* @__PURE__ */ k(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
396
399
  };
397
400
  }
398
401
  });
399
- const P = /* @__PURE__ */ k(M, [["__scopeId", "data-v-75852e7e"]]), ee = S(P);
402
+ const Q = /* @__PURE__ */ w(P, [["__scopeId", "data-v-75852e7e"]]), te = B(Q);
400
403
  export {
401
- ee as IkSideText,
402
- ee as default
404
+ te as IkSideText,
405
+ te as default
403
406
  };
@@ -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,d){"use strict";const m=(o,n)=>{if(o.install=l=>{for(const a of[o,...Object.values(n??{})])l.component(a.name,a)},n)for(const[l,a]of Object.entries(n))o[l]=a;return o},c=(o,n)=>{const l=o.__vccOpts||o;for(const[a,t]of n)l[a]=t;return l},g={key:0,class:"ik-svg-icon ik-icon 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"],u=["src"],B={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},b=["xlink:href"],z=["src"],S=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(o){const n=o,l=e.computed(()=>{var t,i,s;return/^http?:\/\//.test(n.name)?"img":/i-[^:]+:[^:]+/.test(n.name)?"unocss":(t=n.name)!=null&&t.startsWith("iksig")?"iksig":(i=n.name)!=null&&i.includes(":")?"iconify":(s=n.name)!=null&&s.startsWith("iksvg")?"svg":"i"}),a=e.computed(()=>{const t=[];if(n.flip)switch(n.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}n.rotate&&t.push(`rotate(${n.rotate%360}deg)`);const i={...n.color&&{color:n.color},...n.size&&{fontSize:typeof n.size=="number"?`${n.size}px`:n.size},...t.length&&{transform:t.join(" ")},padding:n.showBg||n.bg?n.padding:0,...n.color&&l.value!=="iksig"?{"--ik-color-icon-dark":n.color,"--ik-color-icon-light":n.colorLight||d.ikColor.setOpacity(n.color,n.opacity)}:{}};return n.width&&(i.width=i.height=typeof n.width=="number"?`${n.width}px`:n.width),i});return(t,i)=>{const s=e.resolveComponent("el-tooltip"),y=e.resolveComponent("el-button");return t.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",g,[t.notip||!t.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",{[t.name]:l.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning||n.type==="warning",primary:t.primary||n.type==="primary",success:t.success||n.type==="success",error:t.error||n.type==="error",active:t.active,disabled:t.disabled}]),style:e.normalizeStyle(a.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),l.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(a.value)},null,6)):l.value==="svg"?(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,h)])):l.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,u)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.name),style:e.normalizeStyle(a.value)},null,6))],6)):(e.openBlock(),e.createBlock(s,{key:1,content:t.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",{[t.name]:l.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning||n.type==="warning",primary:t.primary||n.type==="primary",success:t.success||n.type==="success",error:t.error||n.type==="error",active:t.active}]),style:e.normalizeStyle(a.value)},[l.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(a.value)},null,6)):l.value==="svg"?(e.openBlock(),e.createElementBlock("svg",B,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,b)])):l.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,z)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.name),style:e.normalizeStyle(a.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(y,{key:1,type:["warning","error"].includes(t.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["type"]))}}}),O="",w=m(c(S,[["__scopeId","data-v-7d95dbf5"]])),C=()=>({getLinearGradient:n=>{const l=d.ikColor.hexToRGB(n).replace(/[^\d,]/g,"").split(",").map(Number);return`linear-gradient(to top, ${n} 4%, rgb(${l[0]},${l[1]+50},${l[2]}) 88%)`}}),I=e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(o){e.useCssVars(t=>({"435077c3":a.value}));const n=o,{getLinearGradient:l}=C(),a=e.computed(()=>`${n.size}px`);return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(l)(o.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${o.icon}`)},null,2)],4))}}),G="",_=c(I,[["__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"},x=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 n=o,l=s=>s?s.startsWith("http")?s:`${n.loadUrl}${s}`:"",a=e.computed(()=>l(n.avatar)),t=e.ref(!!n.avatar),i=()=>{t.value=!1};return(s,y)=>{var f;const L=e.resolveComponent("el-avatar"),j=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",E,[o.avatarType==="url"?(e.openBlock(),e.createBlock(L,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:o.size,shape:o.shape,src:a.value,fit:"contain",onError:i},{default:e.withCtx(()=>[t.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(w),{key:1,name:`iksvg_${(f=o.avatar)==null?void 0:f.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(_,{key:2,icon:o.avatar,"background-color":o.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",$,[e.createElementVNode("p",N,e.toDisplayString(o.text),1),e.createVNode(j,{content:o.subText},{default:e.withCtx(()=>[e.createElementVNode("p",V,e.toDisplayString(o.subText),1)]),_:1},8,["content"])])])}}}),q="",p=m(c(x,[["__scopeId","data-v-75852e7e"]]));r.IkSideText=p,r.default=p,Object.defineProperties(r,{__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,m){"use strict";const y=(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},d=(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 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"],x=["src"],z=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(l){const a=l,n=e.inject("iconConfig"),t=e.computed(()=>({...(n==null?void 0:n.value)||{},...a})),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 r={...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||m.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(r.width=r.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),r});return(o,r)=>{const u=e.resolveComponent("el-tooltip"),p=e.resolveComponent("el-button");return t.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",k,[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]: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}]),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,x)):(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(p,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),L="",S=y(d(z,[["__scopeId","data-v-1be337e4"]])),w=()=>({getLinearGradient:a=>{const n=m.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}=w(),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=d(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"},j=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=o=>o?o.startsWith("http")?o:`${a.loadUrl}${o}`:"",t=e.computed(()=>n(a.avatar)),i=e.ref(!!a.avatar),c=()=>{i.value=!1};return(o,r)=>{var f;const u=e.resolveComponent("el-avatar"),p=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",E,[l.avatarType==="url"?(e.openBlock(),e.createBlock(u,{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(S),{key:1,name:`iksvg_${(f=l.avatar)==null?void 0:f.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(p,{content:l.subText},{default:e.withCtx(()=>[e.createElementVNode("p",V,e.toDisplayString(l.subText),1)]),_:1},8,["content"])])])}}}),G="",g=y(d(j,[["__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-7d95dbf5]{display:flex}.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-1be337e4]{display:flex}.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}