iking-web-ui-pro 0.2.6 → 0.2.8

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/IKDetailPreviewFiles/ik.index.es.js +24 -24
  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 +6 -6
  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 +3 -3
  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 +15 -15
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcessDetail/ik.index.es.js +660 -663
  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 +12 -12
  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 +3 -3
  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 +14 -14
  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 +14 -14
  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 +3 -3
  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 +3 -3
  32. package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +3 -3
  35. package/dist/IkPageFull/ik.index.umd.js +1 -1
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +3 -3
  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 +3 -3
  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 +18 -18
  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 +7 -7
  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 +3 -3
  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 +22 -22
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/index.es.js +12519 -12522
  56. package/dist/index.umd.js +68 -68
  57. package/dist/src/components/IkSvgIcon/index.d.ts +0 -3
  58. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +0 -3
  59. package/dist/style.css +1 -1
  60. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, inject as q, computed as _, resolveComponent as S, openBlock as s, createElementBlock as u, normalizeClass as d, normalizeStyle as f, createCommentVNode as k, createElementVNode as h, createBlock as w, withCtx as j, createTextVNode as E, toDisplayString as b, Fragment as F, renderList as N, unref as O } from "vue";
1
+ import { defineComponent as V, inject as q, computed as _, resolveComponent as S, openBlock as s, createElementBlock as u, normalizeClass as d, normalizeStyle as f, createCommentVNode as k, createElementVNode as h, createBlock as w, withCtx as j, createTextVNode as E, toDisplayString as b, Fragment as F, renderList as N, unref as O } from "vue";
2
2
  import { ikColor as W } from "iking-utils-pro";
3
3
  const K = (o, p) => {
4
4
  if (o.install = (n) => {
@@ -24,7 +24,7 @@ const K = (o, p) => {
24
24
  key: 1,
25
25
  class: "h-[1em] w-[1em]",
26
26
  "aria-hidden": "true"
27
- }, H = ["xlink:href"], J = ["src"], M = /* @__PURE__ */ T({
27
+ }, H = ["xlink:href"], J = ["src"], M = /* @__PURE__ */ V({
28
28
  name: "IkSvgIcon",
29
29
  __name: "index",
30
30
  props: {
@@ -48,7 +48,7 @@ const K = (o, p) => {
48
48
  type: {},
49
49
  active: { type: Boolean, default: !1 },
50
50
  disabled: { type: Boolean, default: !1 },
51
- tableIconType: { default: "icon" }
51
+ tableIconType: {}
52
52
  },
53
53
  setup(o) {
54
54
  const p = o, n = q("iconConfig"), e = _(() => ({
@@ -72,7 +72,7 @@ const K = (o, p) => {
72
72
  break;
73
73
  }
74
74
  e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
75
- const g = {
75
+ const y = {
76
76
  ...e.value.color && { color: e.value.color },
77
77
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
78
78
  ...l.length && { transform: l.join(" ") },
@@ -82,11 +82,11 @@ const K = (o, p) => {
82
82
  "--ik-color-icon-light": e.value.colorLight || W.setOpacity(e.value.color, e.value.opacity)
83
83
  } : {}
84
84
  };
85
- return e.value.width && (g.width = g.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), g;
85
+ return e.value.width && (y.width = y.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), y;
86
86
  });
87
- return (l, g) => {
87
+ return (l, y) => {
88
88
  const x = S("el-tooltip"), C = S("el-button");
89
- return e.value.tableIconType === "icon" ? (s(), u("span", X, [
89
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (s(), u("span", X, [
90
90
  e.value.notip || !e.value.title ? (s(), u(
91
91
  "i",
92
92
  {
@@ -218,7 +218,7 @@ const K = (o, p) => {
218
218
  };
219
219
  }
220
220
  });
221
- const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q = { class: "content" }, R = { class: "top" }, U = ["onClick"], Z = ["id"], ee = ["onClick"], te = /* @__PURE__ */ T({
221
+ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-7729b79a"]]), T = K(P), Q = { class: "content" }, R = { class: "top" }, U = ["onClick"], Z = ["id"], ee = ["onClick"], te = /* @__PURE__ */ V({
222
222
  __name: "IKVerticalStepBar",
223
223
  props: {
224
224
  // 当前激活的下标
@@ -252,15 +252,15 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
252
252
  )), v = _(() => n.active.indexOf("-") > 0 ? Number(n.active.split("-")[1]) : 0), l = (r) => {
253
253
  let i = "", t = r + 1;
254
254
  return t < a.value ? i = "before-bg" : t === a.value ? i = "active-bg" : t > a.value && (i = "after-bg"), `${i} index`;
255
- }, g = (r) => {
255
+ }, y = (r) => {
256
256
  let i = "", t = r + 1;
257
257
  return t < a.value ? i = "before-text" : t === a.value ? i = "active-text" : t > a.value && (i = "after-text"), `${i} text`;
258
258
  }, x = (r) => {
259
259
  let i = "", t = r + 1;
260
260
  return t < a.value ? i = "before-style" : t < n.list.length && (i = "after-style"), `${i} bottom`;
261
261
  }, C = (r, i) => {
262
- let t = "", c = r + 1, y = i + 1;
263
- return c < a.value ? t = "before-text" : c === a.value ? y < v.value ? t = "before-text" : y === v.value ? t = "active-text" : y > v.value && (t = "after-text") : c > a.value && (t = "after-text"), `${t} child-text`;
262
+ let t = "", c = r + 1, g = i + 1;
263
+ return c < a.value ? t = "before-text" : c === a.value ? g < v.value ? t = "before-text" : g === v.value ? t = "active-text" : g > v.value && (t = "after-text") : c > a.value && (t = "after-text"), `${t} child-text`;
264
264
  }, B = (r, i) => {
265
265
  n.needClick && (r[n.propsField.children] || (e("update:active", i + ""), e("click", r)));
266
266
  }, I = (r, i) => {
@@ -273,7 +273,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
273
273
  F,
274
274
  null,
275
275
  N(o.list, (t, c) => {
276
- var y, z;
276
+ var g, z;
277
277
  return s(), u("div", {
278
278
  class: "line-block",
279
279
  key: c
@@ -289,7 +289,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
289
289
  /* TEXT, CLASS */
290
290
  ),
291
291
  h("div", {
292
- class: d(g(c)),
292
+ class: d(y(c)),
293
293
  style: f(o.needClick ? "cursor: pointer;" : ""),
294
294
  onClick: (m) => B(t, c + 1)
295
295
  }, [
@@ -303,7 +303,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
303
303
  class="ikapprove icon-a-putongjiantouzhankai"\r
304
304
  @click="changeShow(item, index)"\r
305
305
  ></i> `),
306
- (y = t[o.propsField.children]) != null && y.length && !t.show ? (s(), w(O(V), {
306
+ (g = t[o.propsField.children]) != null && g.length && !t.show ? (s(), w(O(T), {
307
307
  key: 0,
308
308
  class: "ikapprove",
309
309
  onClick: (m) => I(t, c),
@@ -314,7 +314,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
314
314
  @click="changeShow(item, index)"\r
315
315
  class="ikapprove icon-a-putongjiantoushouqi"\r
316
316
  ></i> `),
317
- (z = t[o.propsField.children]) != null && z.length && t.show ? (s(), w(O(V), {
317
+ (z = t[o.propsField.children]) != null && z.length && t.show ? (s(), w(O(T), {
318
318
  key: 1,
319
319
  class: "ikapprove",
320
320
  onClick: (m) => I(t, c),
@@ -1,4 +1,4 @@
1
- (function(d,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):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.vue,d["iking-utils-pro"]))})(this,function(d,e,x){"use strict";const v=(s,u)=>{if(s.install=i=>{for(const t of[s,...Object.values(u??{})])i.component(t.name,t)},u)for(const[i,t]of Object.entries(u))s[i]=t;return s},B=(s,u)=>{const i=s.__vccOpts||s;for(const[t,o]of u)i[t]=o;return i},S={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},E={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$=["xlink:href"],N=["src"],V={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},I=["xlink:href"],j=["src"],F=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 u=s,i=e.inject("iconConfig"),t=e.computed(()=>({...(i==null?void 0:i.value)||{},...u})),o=e.computed(()=>{const{name:n}=t.value;return/^http?:\/\//.test(n)?"img":/i-[^:]+:[^:]+/.test(n)?"unocss":n!=null&&n.startsWith("iksig")?"iksig":n!=null&&n.includes(":")?"iconify":n!=null&&n.startsWith("iksvg")?"svg":"i"}),p=e.computed(()=>{const n=[];if(t.value.flip)switch(t.value.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.value.rotate&&n.push(`rotate(${t.value.rotate%360}deg)`);const m={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...n.length&&{transform:n.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||x.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(m.width=m.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),m});return(n,m)=>{const y=e.resolveComponent("el-tooltip"),h=e.resolveComponent("el-button");return t.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",S,[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",{[n.name]:o.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(p.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",E,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,$)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,N)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.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",{[n.name]:o.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:n.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(p.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",V,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,I)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,j)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(h,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",_=v(B(F,[["__scopeId","data-v-1be337e4"]])),T={class:"content"},O={class:"top"},q=["onClick"],D=["id"],K=["onClick"],L=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:u}){const i=s,t=u,o=e.computed(()=>Number(i.active.indexOf("-")>0?i.active.split("-")[0]:i.active)),p=e.computed(()=>i.active.indexOf("-")>0?Number(i.active.split("-")[1]):0),n=c=>{let a="",l=c+1;return l<o.value?a="before-bg":l===o.value?a="active-bg":l>o.value&&(a="after-bg"),`${a} index`},m=c=>{let a="",l=c+1;return l<o.value?a="before-text":l===o.value?a="active-text":l>o.value&&(a="after-text"),`${a} text`},y=c=>{let a="",l=c+1;return l<o.value?a="before-style":l<i.list.length&&(a="after-style"),`${a} bottom`},h=(c,a)=>{let l="",r=c+1,f=a+1;return r<o.value?l="before-text":r===o.value?f<p.value?l="before-text":f===p.value?l="active-text":f>p.value&&(l="after-text"):r>o.value&&(l="after-text"),`${l} child-text`},C=(c,a)=>{i.needClick&&(c[i.propsField.children]||(t("update:active",a+""),t("click",c)))},w=(c,a)=>{c.show=!c.show;let l=document.getElementById(`children${a}`);c.show?l.style.display="none":l.style.display="block"};return(c,a)=>(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var f,z;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",O,[e.createElementVNode("div",{class:e.normalizeClass(n(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(m(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:k=>C(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
1
+ (function(d,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):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.vue,d["iking-utils-pro"]))})(this,function(d,e,x){"use strict";const v=(s,u)=>{if(s.install=i=>{for(const t of[s,...Object.values(u??{})])i.component(t.name,t)},u)for(const[i,t]of Object.entries(u))s[i]=t;return s},B=(s,u)=>{const i=s.__vccOpts||s;for(const[t,o]of u)i[t]=o;return i},S={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},E={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$=["xlink:href"],I=["src"],N={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},V=["xlink:href"],j=["src"],T=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:{}},setup(s){const u=s,i=e.inject("iconConfig"),t=e.computed(()=>({...(i==null?void 0:i.value)||{},...u})),o=e.computed(()=>{const{name:n}=t.value;return/^http?:\/\//.test(n)?"img":/i-[^:]+:[^:]+/.test(n)?"unocss":n!=null&&n.startsWith("iksig")?"iksig":n!=null&&n.includes(":")?"iconify":n!=null&&n.startsWith("iksvg")?"svg":"i"}),p=e.computed(()=>{const n=[];if(t.value.flip)switch(t.value.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.value.rotate&&n.push(`rotate(${t.value.rotate%360}deg)`);const m={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...n.length&&{transform:n.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||x.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(m.width=m.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),m});return(n,m)=>{const y=e.resolveComponent("el-tooltip"),h=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",S,[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",{[n.name]:o.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(p.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",E,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,$)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,I)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.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",{[n.name]:o.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:n.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(p.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",N,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,V)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,j)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(h,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",_=v(B(T,[["__scopeId","data-v-7729b79a"]])),F={class:"content"},O={class:"top"},q=["onClick"],D=["id"],K=["onClick"],L=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:u}){const i=s,t=u,o=e.computed(()=>Number(i.active.indexOf("-")>0?i.active.split("-")[0]:i.active)),p=e.computed(()=>i.active.indexOf("-")>0?Number(i.active.split("-")[1]):0),n=c=>{let a="",l=c+1;return l<o.value?a="before-bg":l===o.value?a="active-bg":l>o.value&&(a="after-bg"),`${a} index`},m=c=>{let a="",l=c+1;return l<o.value?a="before-text":l===o.value?a="active-text":l>o.value&&(a="after-text"),`${a} text`},y=c=>{let a="",l=c+1;return l<o.value?a="before-style":l<i.list.length&&(a="after-style"),`${a} bottom`},h=(c,a)=>{let l="",r=c+1,f=a+1;return r<o.value?l="before-text":r===o.value?f<p.value?l="before-text":f===p.value?l="active-text":f>p.value&&(l="after-text"):r>o.value&&(l="after-text"),`${l} child-text`},C=(c,a)=>{i.needClick&&(c[i.propsField.children]||(t("update:active",a+""),t("click",c)))},w=(c,a)=>{c.show=!c.show;let l=document.getElementById(`children${a}`);c.show?l.style.display="none":l.style.display="block"};return(c,a)=>(e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var f,z;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",O,[e.createElementVNode("div",{class:e.normalizeClass(n(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(m(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:k=>C(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
2
2
  v-if="item[propsField.children]?.length && !item.show"\r
3
3
  class="ikapprove icon-a-putongjiantouzhankai"\r
4
4
  @click="changeShow(item, index)"\r
@@ -1 +1 @@
1
- .row-title[data-v-1be337e4]{display:flex}[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}
1
+ .row-title[data-v-7729b79a]{display:flex}[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}