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,25 +1,25 @@
1
- import { defineComponent as h, computed as m, resolveComponent as d, openBlock as n, createElementBlock as o, normalizeClass as r, normalizeStyle as c, createCommentVNode as k, createElementVNode as p, createBlock as y, withCtx as g, createTextVNode as v, toDisplayString as b } from "vue";
2
- import { ikColor as w } from "iking-utils-pro";
3
- const B = (l, t) => {
4
- if (l.install = (s) => {
5
- for (const i of [l, ...Object.values(t ?? {})])
6
- s.component(i.name, i);
7
- }, t)
8
- for (const [s, i] of Object.entries(t))
9
- l[s] = i;
10
- return l;
11
- }, z = {
1
+ import { defineComponent as k, inject as _, computed as p, resolveComponent as d, openBlock as t, createElementBlock as o, normalizeClass as r, normalizeStyle as c, createCommentVNode as b, createElementVNode as y, createBlock as g, withCtx as f, createTextVNode as w, toDisplayString as B } from "vue";
2
+ import { ikColor as z } from "iking-utils-pro";
3
+ const x = (i, n) => {
4
+ if (i.install = (s) => {
5
+ for (const e of [i, ...Object.values(n ?? {})])
6
+ s.component(e.name, e);
7
+ }, n)
8
+ for (const [s, e] of Object.entries(n))
9
+ i[s] = e;
10
+ return i;
11
+ }, I = {
12
12
  key: 0,
13
13
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
14
- }, I = {
14
+ }, j = {
15
15
  key: 1,
16
16
  class: "h-[1em] w-[1em]",
17
17
  "aria-hidden": "true"
18
- }, _ = ["xlink:href"], $ = ["src"], j = {
18
+ }, C = ["xlink:href"], $ = ["src"], S = {
19
19
  key: 1,
20
20
  class: "h-[1em] w-[1em]",
21
21
  "aria-hidden": "true"
22
- }, C = ["xlink:href"], S = ["src"], T = /* @__PURE__ */ h({
22
+ }, T = ["xlink:href"], O = ["src"], N = /* @__PURE__ */ k({
23
23
  name: "IkSvgIcon",
24
24
  __name: "index",
25
25
  props: {
@@ -45,85 +45,88 @@ const B = (l, t) => {
45
45
  disabled: { type: Boolean, default: !1 },
46
46
  tableIconType: { default: "icon" }
47
47
  },
48
- setup(l) {
49
- const t = l, s = m(() => {
50
- var e, a, u;
51
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (e = t.name) != null && e.startsWith("iksig") ? "iksig" : (a = t.name) != null && a.includes(":") ? "iconify" : (u = t.name) != null && u.startsWith("iksvg") ? "svg" : "i";
52
- }), i = m(() => {
53
- const e = [];
54
- if (t.flip)
55
- switch (t.flip) {
48
+ setup(i) {
49
+ const n = i, s = _("iconConfig"), e = p(() => ({
50
+ ...(s == null ? void 0 : s.value) || {},
51
+ ...n
52
+ })), a = p(() => {
53
+ const { name: l } = e.value;
54
+ return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
55
+ }), u = p(() => {
56
+ const l = [];
57
+ if (e.value.flip)
58
+ switch (e.value.flip) {
56
59
  case "horizontal":
57
- e.push("rotateY(180deg)");
60
+ l.push("rotateY(180deg)");
58
61
  break;
59
62
  case "vertical":
60
- e.push("rotateX(180deg)");
63
+ l.push("rotateX(180deg)");
61
64
  break;
62
65
  case "both":
63
- e.push("rotateX(180deg)"), e.push("rotateY(180deg)");
66
+ l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
64
67
  break;
65
68
  }
66
- t.rotate && e.push(`rotate(${t.rotate % 360}deg)`);
67
- const a = {
68
- ...t.color && { color: t.color },
69
- ...t.size && { fontSize: typeof t.size == "number" ? `${t.size}px` : t.size },
70
- ...e.length && { transform: e.join(" ") },
71
- padding: t.showBg || t.bg ? t.padding : 0,
72
- ...t.color && s.value !== "iksig" ? {
73
- "--ik-color-icon-dark": t.color,
74
- "--ik-color-icon-light": t.colorLight || w.setOpacity(t.color, t.opacity)
69
+ e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
70
+ const v = {
71
+ ...e.value.color && { color: e.value.color },
72
+ ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
73
+ ...l.length && { transform: l.join(" ") },
74
+ padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
75
+ ...e.value.color && a.value !== "iksig" ? {
76
+ "--ik-color-icon-dark": e.value.color,
77
+ "--ik-color-icon-light": e.value.colorLight || z.setOpacity(e.value.color, e.value.opacity)
75
78
  } : {}
76
79
  };
77
- return t.width && (a.width = a.height = typeof t.width == "number" ? `${t.width}px` : t.width), a;
80
+ return e.value.width && (v.width = v.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), v;
78
81
  });
79
- return (e, a) => {
80
- const u = d("el-tooltip"), f = d("el-button");
81
- return e.tableIconType === "icon" ? (n(), o("span", z, [
82
- e.notip || !e.title ? (n(), o(
82
+ return (l, v) => {
83
+ const m = d("el-tooltip"), h = d("el-button");
84
+ return e.value.tableIconType === "icon" ? (t(), o("span", I, [
85
+ e.value.notip || !e.value.title ? (t(), o(
83
86
  "i",
84
87
  {
85
88
  key: 0,
86
89
  class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
87
- [e.name]: s.value === "unocss",
88
- "show-bg": e.showBg || e.bg,
89
- default: e.size === "default",
90
- small: e.size === "small",
91
- big: e.size === "big",
92
- warning: e.warning || t.type === "warning",
93
- primary: e.primary || t.type === "primary",
94
- success: e.success || t.type === "success",
95
- error: e.error || t.type === "error",
96
- active: e.active,
97
- disabled: e.disabled
90
+ [l.name]: a.value === "unocss",
91
+ "show-bg": e.value.showBg || e.value.bg,
92
+ default: e.value.size === "default",
93
+ small: e.value.size === "small",
94
+ big: e.value.size === "big",
95
+ warning: e.value.warning || e.value.type === "warning",
96
+ primary: e.value.primary || e.value.type === "primary",
97
+ success: l.success || e.value.type === "success",
98
+ error: e.value.error || e.value.type === "error",
99
+ active: e.value.active,
100
+ disabled: e.value.disabled
98
101
  }]),
99
- style: c(i.value)
102
+ style: c(u.value)
100
103
  },
101
104
  [
102
- k(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
103
- s.value === "iksig" ? (n(), o(
105
+ b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
106
+ a.value === "iksig" ? (t(), o(
104
107
  "i",
105
108
  {
106
109
  key: 0,
107
- class: r(`iksig ${e.name}`),
108
- style: c(i.value)
110
+ class: r(`iksig ${e.value.name}`),
111
+ style: c(u.value)
109
112
  },
110
113
  null,
111
114
  6
112
115
  /* CLASS, STYLE */
113
- )) : s.value === "svg" ? (n(), o("svg", I, [
114
- p("use", {
115
- "xlink:href": `#${e.name}`
116
- }, null, 8, _)
117
- ])) : s.value === "img" ? (n(), o("img", {
116
+ )) : a.value === "svg" ? (t(), o("svg", j, [
117
+ y("use", {
118
+ "xlink:href": `#${e.value.name}`
119
+ }, null, 8, C)
120
+ ])) : a.value === "img" ? (t(), o("img", {
118
121
  key: 2,
119
- src: e.name,
122
+ src: e.value.name,
120
123
  class: "h-[1em] w-[1em]"
121
- }, null, 8, $)) : (n(), o(
124
+ }, null, 8, $)) : (t(), o(
122
125
  "i",
123
126
  {
124
127
  key: 3,
125
- class: r(e.name),
126
- style: c(i.value)
128
+ class: r(e.value.name),
129
+ style: c(u.value)
127
130
  },
128
131
  null,
129
132
  6
@@ -132,54 +135,54 @@ const B = (l, t) => {
132
135
  ],
133
136
  6
134
137
  /* CLASS, STYLE */
135
- )) : (n(), y(u, {
138
+ )) : (t(), g(m, {
136
139
  key: 1,
137
- content: e.title,
140
+ content: e.value.title,
138
141
  placement: "top"
139
142
  }, {
140
- default: g(() => [
141
- p(
143
+ default: f(() => [
144
+ y(
142
145
  "i",
143
146
  {
144
147
  class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
145
- [e.name]: s.value === "unocss",
146
- "show-bg": e.showBg || e.bg,
147
- default: e.size === "default",
148
- small: e.size === "small",
149
- big: e.size === "big",
150
- warning: e.warning || t.type === "warning",
151
- primary: e.primary || t.type === "primary",
152
- success: e.success || t.type === "success",
153
- error: e.error || t.type === "error",
154
- active: e.active
148
+ [l.name]: a.value === "unocss",
149
+ "show-bg": e.value.showBg || e.value.bg,
150
+ default: e.value.size === "default",
151
+ small: e.value.size === "small",
152
+ big: e.value.size === "big",
153
+ warning: e.value.warning || e.value.type === "warning",
154
+ primary: l.primary || e.value.type === "primary",
155
+ success: l.success || e.value.type === "success",
156
+ error: e.value.error || e.value.type === "error",
157
+ active: e.value.active
155
158
  }]),
156
- style: c(i.value)
159
+ style: c(u.value)
157
160
  },
158
161
  [
159
- s.value === "iksig" ? (n(), o(
162
+ a.value === "iksig" ? (t(), o(
160
163
  "i",
161
164
  {
162
165
  key: 0,
163
- class: r(`iksig ${e.name}`),
164
- style: c(i.value)
166
+ class: r(`iksig ${e.value.name}`),
167
+ style: c(u.value)
165
168
  },
166
169
  null,
167
170
  6
168
171
  /* CLASS, STYLE */
169
- )) : s.value === "svg" ? (n(), o("svg", j, [
170
- p("use", {
171
- "xlink:href": `#${e.name}`
172
- }, null, 8, C)
173
- ])) : s.value === "img" ? (n(), o("img", {
172
+ )) : a.value === "svg" ? (t(), o("svg", S, [
173
+ y("use", {
174
+ "xlink:href": `#${e.value.name}`
175
+ }, null, 8, T)
176
+ ])) : a.value === "img" ? (t(), o("img", {
174
177
  key: 2,
175
- src: e.name,
178
+ src: e.value.name,
176
179
  class: "h-[1em] w-[1em]"
177
- }, null, 8, S)) : (n(), o(
180
+ }, null, 8, O)) : (t(), o(
178
181
  "i",
179
182
  {
180
183
  key: 3,
181
- class: r(e.name),
182
- style: c(i.value)
184
+ class: r(e.value.name),
185
+ style: c(u.value)
183
186
  },
184
187
  null,
185
188
  6
@@ -193,13 +196,13 @@ const B = (l, t) => {
193
196
  _: 1
194
197
  /* STABLE */
195
198
  }, 8, ["content"]))
196
- ])) : (n(), y(f, {
199
+ ])) : (t(), g(h, {
197
200
  key: 1,
198
- type: ["warning", "error"].includes(e.type) ? "danger" : ""
201
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
199
202
  }, {
200
- default: g(() => [
201
- v(
202
- b(e.title),
203
+ default: f(() => [
204
+ w(
205
+ B(e.value.title),
203
206
  1
204
207
  /* TEXT */
205
208
  )
@@ -210,13 +213,13 @@ const B = (l, t) => {
210
213
  };
211
214
  }
212
215
  });
213
- const O = (l, t) => {
214
- const s = l.__vccOpts || l;
215
- for (const [i, e] of t)
216
- s[i] = e;
216
+ const V = (i, n) => {
217
+ const s = i.__vccOpts || i;
218
+ for (const [e, a] of n)
219
+ s[e] = a;
217
220
  return s;
218
- }, N = /* @__PURE__ */ O(T, [["__scopeId", "data-v-7d95dbf5"]]), L = B(N);
221
+ }, E = /* @__PURE__ */ V(N, [["__scopeId", "data-v-1be337e4"]]), X = x(E);
219
222
  export {
220
- L as IkSvgIcon,
221
- L as default
223
+ X as IkSvgIcon,
224
+ X as default
222
225
  };
@@ -1 +1 @@
1
- (function(i,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):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,p){"use strict";const m=(s,t)=>{if(s.install=n=>{for(const l of[s,...Object.values(t??{})])n.component(l.name,l)},t)for(const[n,l]of Object.entries(t))s[n]=l;return s},d={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},f={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},y=["xlink:href"],g=["src"],k={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},u=["xlink:href"],h=["src"],B=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(s){const t=s,n=e.computed(()=>{var o,a,r;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(o=t.name)!=null&&o.startsWith("iksig")?"iksig":(a=t.name)!=null&&a.includes(":")?"iconify":(r=t.name)!=null&&r.startsWith("iksvg")?"svg":"i"}),l=e.computed(()=>{const o=[];if(t.flip)switch(t.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.rotate&&o.push(`rotate(${t.rotate%360}deg)`);const a={...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...o.length&&{transform:o.join(" ")},padding:t.showBg||t.bg?t.padding:0,...t.color&&n.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":t.colorLight||p.ikColor.setOpacity(t.color,t.opacity)}:{}};return t.width&&(a.width=a.height=typeof t.width=="number"?`${t.width}px`:t.width),a});return(o,a)=>{const r=e.resolveComponent("el-tooltip"),b=e.resolveComponent("el-button");return o.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",d,[o.notip||!o.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]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning||t.type==="warning",primary:o.primary||t.type==="primary",success:o.success||t.type==="success",error:o.error||t.type==="error",active:o.active,disabled:o.disabled}]),style:e.normalizeStyle(l.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.name}`),style:e.normalizeStyle(l.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",f,[e.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,y)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,g)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.name),style:e.normalizeStyle(l.value)},null,6))],6)):(e.openBlock(),e.createBlock(r,{key:1,content:o.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]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning||t.type==="warning",primary:o.primary||t.type==="primary",success:o.success||t.type==="success",error:o.error||t.type==="error",active:o.active}]),style:e.normalizeStyle(l.value)},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.name}`),style:e.normalizeStyle(l.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,u)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,h)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.name),style:e.normalizeStyle(l.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(b,{key:1,type:["warning","error"].includes(o.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1},8,["type"]))}}}),w="",c=m(((s,t)=>{const n=s.__vccOpts||s;for(const[l,o]of t)n[l]=o;return n})(B,[["__scopeId","data-v-7d95dbf5"]]));i.IkSvgIcon=c,i.default=c,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(n,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],l):(n=typeof globalThis<"u"?globalThis:n||self,l(n.index={},n.vue,n["iking-utils-pro"]))})(this,function(n,l,p){"use strict";const m=(i,s)=>{if(i.install=a=>{for(const e of[i,...Object.values(s??{})])a.component(e.name,e)},s)for(const[a,e]of Object.entries(s))i[a]=e;return i},d={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},f=["xlink:href"],g=["src"],k={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},v=["xlink:href"],h=["src"],_=l.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(i){const s=i,a=l.inject("iconConfig"),e=l.computed(()=>({...(a==null?void 0:a.value)||{},...s})),o=l.computed(()=>{const{name:t}=e.value;return/^http?:\/\//.test(t)?"img":/i-[^:]+:[^:]+/.test(t)?"unocss":t!=null&&t.startsWith("iksig")?"iksig":t!=null&&t.includes(":")?"iconify":t!=null&&t.startsWith("iksvg")?"svg":"i"}),r=l.computed(()=>{const t=[];if(e.value.flip)switch(e.value.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}e.value.rotate&&t.push(`rotate(${e.value.rotate%360}deg)`);const c={...e.value.color&&{color:e.value.color},...e.value.size&&{fontSize:typeof e.value.size=="number"?`${e.value.size}px`:e.value.size},...t.length&&{transform:t.join(" ")},padding:e.value.showBg||e.value.bg?e.value.padding:0,...e.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":e.value.color,"--ik-color-icon-light":e.value.colorLight||p.ikColor.setOpacity(e.value.color,e.value.opacity)}:{}};return e.value.width&&(c.width=c.height=typeof e.value.width=="number"?`${e.value.width}px`:e.value.width),c});return(t,c)=>{const B=l.resolveComponent("el-tooltip"),b=l.resolveComponent("el-button");return e.value.tableIconType==="icon"?(l.openBlock(),l.createElementBlock("span",d,[e.value.notip||!e.value.title?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":e.value.showBg||e.value.bg,default:e.value.size==="default",small:e.value.size==="small",big:e.value.size==="big",warning:e.value.warning||e.value.type==="warning",primary:e.value.primary||e.value.type==="primary",success:t.success||e.value.type==="success",error:e.value.error||e.value.type==="error",active:e.value.active,disabled:e.value.disabled}]),style:l.normalizeStyle(r.value)},[l.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(`iksig ${e.value.name}`),style:l.normalizeStyle(r.value)},null,6)):o.value==="svg"?(l.openBlock(),l.createElementBlock("svg",y,[l.createElementVNode("use",{"xlink:href":`#${e.value.name}`},null,8,f)])):o.value==="img"?(l.openBlock(),l.createElementBlock("img",{key:2,src:e.value.name,class:"h-[1em] w-[1em]"},null,8,g)):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(e.value.name),style:l.normalizeStyle(r.value)},null,6))],6)):(l.openBlock(),l.createBlock(B,{key:1,content:e.value.title,placement:"top"},{default:l.withCtx(()=>[l.createElementVNode("i",{class:l.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":e.value.showBg||e.value.bg,default:e.value.size==="default",small:e.value.size==="small",big:e.value.size==="big",warning:e.value.warning||e.value.type==="warning",primary:t.primary||e.value.type==="primary",success:t.success||e.value.type==="success",error:e.value.error||e.value.type==="error",active:e.value.active}]),style:l.normalizeStyle(r.value)},[o.value==="iksig"?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(`iksig ${e.value.name}`),style:l.normalizeStyle(r.value)},null,6)):o.value==="svg"?(l.openBlock(),l.createElementBlock("svg",k,[l.createElementVNode("use",{"xlink:href":`#${e.value.name}`},null,8,v)])):o.value==="img"?(l.openBlock(),l.createElementBlock("img",{key:2,src:e.value.name,class:"h-[1em] w-[1em]"},null,8,h)):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(e.value.name),style:l.normalizeStyle(r.value)},null,6))],6)]),_:1},8,["content"]))])):(l.openBlock(),l.createBlock(b,{key:1,type:["warning","error"].includes(e.value.type)?"danger":""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.value.title),1)]),_:1},8,["type"]))}}}),w="",u=m(((i,s)=>{const a=i.__vccOpts||i;for(const[e,o]of s)a[e]=o;return a})(_,[["__scopeId","data-v-1be337e4"]]));n.IkSvgIcon=u,n.default=u,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .row-title[data-v-7d95dbf5]{display:flex}
1
+ .row-title[data-v-1be337e4]{display:flex}