iking-web-ui-pro 0.3.0 → 0.3.2

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 (78) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +956 -942
  2. package/dist/IkApprovalProcessDetail/ik.index.umd.js +48 -48
  3. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  4. package/dist/IkBaseDialog/ik.index.es.js +210 -189
  5. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  6. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  7. package/dist/IkBtnSetting/ik.index.es.js +331 -310
  8. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  9. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  10. package/dist/IkCollapseCard/ik.index.es.js +195 -174
  11. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  12. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  13. package/dist/IkDescription/ik.index.es.js +1462 -1448
  14. package/dist/IkDescription/ik.index.umd.js +48 -48
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +1441 -1427
  17. package/dist/IkDetailPreviewFiles/ik.index.umd.js +48 -48
  18. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  19. package/dist/IkExpandCollapse/ik.index.es.js +191 -170
  20. package/dist/IkExpandCollapse/ik.index.umd.js +1 -1
  21. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  22. package/dist/IkIconPicker/ik.index.es.js +229 -208
  23. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  24. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  25. package/dist/IkMonacoEditor/ik.index.es.js +449 -428
  26. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  27. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  28. package/dist/IkPageFull/ik.index.es.js +1440 -1419
  29. package/dist/IkPageFull/ik.index.umd.js +2 -2
  30. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPreviewFile/ik.index.es.js +1444 -1430
  32. package/dist/IkPreviewFile/ik.index.umd.js +48 -48
  33. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPreviewFileDialog/ik.index.es.js +1047 -1026
  35. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  36. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  37. package/dist/IkSchedule/ik.index.es.js +3041 -3020
  38. package/dist/IkSchedule/ik.index.umd.js +1 -1
  39. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  40. package/dist/IkSelectTag/ik.index.es.js +141 -130
  41. package/dist/IkSelectTag/ik.index.umd.js +1 -1
  42. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +276 -190
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  46. package/dist/IkStatu/ik.index.es.js +47 -38
  47. package/dist/IkStatu/ik.index.umd.js +1 -1
  48. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  49. package/dist/IkStatuOver/ik.index.es.js +114 -106
  50. package/dist/IkStatuOver/ik.index.umd.js +1 -1
  51. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  52. package/dist/IkSvgIcon/ik.index.es.js +169 -148
  53. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  54. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  55. package/dist/IkTaskResume/ik.index.es.js +23 -0
  56. package/dist/IkTaskResume/ik.index.umd.js +1 -0
  57. package/dist/IkUploadFile/ik.index.es.js +993 -972
  58. package/dist/IkUploadFile/ik.index.umd.js +47 -47
  59. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  60. package/dist/IkUploadImage/ik.index.es.js +522 -522
  61. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  62. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  63. package/dist/IkVerticalStepBar/ik.index.es.js +234 -213
  64. package/dist/IkVerticalStepBar/ik.index.umd.js +3 -3
  65. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  66. package/dist/iking-web-ui-pro.css +2 -2
  67. package/dist/index.es.js +14080 -14047
  68. package/dist/index.umd.js +86 -86
  69. package/dist/src/components/IkMonacoEditor/index.d.ts +12 -2
  70. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -2
  71. package/dist/src/components/IkStatu/index.d.ts +3 -3
  72. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  73. package/dist/src/components/IkSvgIcon/index.d.ts +12 -2
  74. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +12 -2
  75. package/dist/src/components/IkTaskResume/index.d.ts +2 -0
  76. package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as s, computed as u, resolveComponent as f, openBlock as a, createBlock as y, normalizeClass as g, normalizeStyle as r, withCtx as b, createElementBlock as p, createCommentVNode as m, createTextVNode as k, toDisplayString as v } from "vue";
2
- const C = (e, o) => (e.install = (t) => {
3
- for (const l of [e, ...Object.values({})])
4
- t.component(l.name, l);
5
- }, e), S = /* @__PURE__ */ s({
1
+ import { defineComponent as f, computed as y, resolveComponent as u, openBlock as n, createBlock as p, normalizeClass as g, normalizeStyle as d, withCtx as b, createElementBlock as k, createCommentVNode as m, createTextVNode as C, toDisplayString as v } from "vue";
2
+ const S = (t, r) => (t.install = (e) => {
3
+ for (const l of [t, ...Object.values({})])
4
+ e.component(l.name, l);
5
+ }, t), $ = /* @__PURE__ */ f({
6
6
  __name: "index",
7
7
  props: {
8
8
  title: {
@@ -11,7 +11,7 @@ const C = (e, o) => (e.install = (t) => {
11
11
  },
12
12
  type: {
13
13
  type: String,
14
- default: ""
14
+ default: "primary"
15
15
  },
16
16
  // 传了type时,color和background不生效
17
17
  // 文字颜色
@@ -30,7 +30,7 @@ const C = (e, o) => (e.install = (t) => {
30
30
  },
31
31
  effect: {
32
32
  type: String,
33
- default: "light"
33
+ default: "plain"
34
34
  },
35
35
  disabled: {
36
36
  type: Boolean,
@@ -60,45 +60,54 @@ const C = (e, o) => (e.install = (t) => {
60
60
  }
61
61
  },
62
62
  emits: ["close"],
63
- setup(e, { emit: o }) {
64
- const t = e, l = u(() => t.type ? t.type === "danger" ? `var(--el-color-${t.type})` : {
65
- color: `var(--ik-color-${t.type})`,
66
- backgroundColor: `var(--ik-color-${t.type}-light)`
67
- } : {
68
- color: t.color,
69
- backgroundColor: t.background,
70
- border: "none"
71
- }), c = o, n = () => {
63
+ setup(t, { emit: r }) {
64
+ const e = t, l = y(() => {
65
+ const o = e.type ? e.type === "danger" ? `var(--el-color-${e.type})` : {
66
+ color: `var(--ik-color-${e.type})`,
67
+ backgroundColor: `var(--ik-color-${e.type}-light)`
68
+ } : {
69
+ color: e.color,
70
+ backgroundColor: e.background,
71
+ border: "none"
72
+ };
73
+ if (e.effect === "plain" && e.type !== "danger")
74
+ o.backgroundColor = "transparent", o.borderColor = e.type ? `var(--ik-color-${e.type})` : e.color;
75
+ else if (e.effect === "dark" && e.type !== "danger") {
76
+ const a = e.type ? `var(--ik-color-${e.type})` : e.color;
77
+ o.backgroundColor = a, o.borderColor = a, o.color = "#fff";
78
+ }
79
+ return o;
80
+ }), c = r, i = () => {
72
81
  c("close");
73
82
  };
74
- return (i, $) => {
75
- const d = f("el-tag");
76
- return a(), y(d, {
77
- effect: e.effect,
78
- class: g(["ik-statu-tag", { disabled: e.disabled }]),
79
- type: e.type,
80
- style: r(l.value),
81
- closable: i.$attrs.closable && !e.disabled,
82
- onClose: n
83
+ return (o, a) => {
84
+ const s = u("el-tag");
85
+ return n(), p(s, {
86
+ effect: t.effect,
87
+ class: g(["ik-statu-tag", { disabled: t.disabled }]),
88
+ type: t.type,
89
+ style: d(l.value),
90
+ closable: o.$attrs.closable && !t.disabled,
91
+ onClose: i
83
92
  }, {
84
93
  default: b(() => [
85
- e.circle ? (a(), p(
94
+ t.circle ? (n(), k(
86
95
  "span",
87
96
  {
88
97
  key: 0,
89
98
  class: "inline-block rounded-full",
90
- style: r({
91
- backgroundColor: e.type ? e.type === "danger" ? `var(--el-color-${e.type})` : `var(--ik-color-${e.type})` : e.circleColor,
92
- width: `${e.circleW}px`,
93
- height: `${e.circleH}px`
99
+ style: d({
100
+ backgroundColor: t.type ? t.type === "danger" ? `var(--el-color-${t.type})` : `var(--ik-color-${t.type})` : t.circleColor,
101
+ width: `${t.circleW}px`,
102
+ height: `${t.circleH}px`
94
103
  })
95
104
  },
96
105
  null,
97
106
  4
98
107
  /* STYLE */
99
108
  )) : m("v-if", !0),
100
- k(
101
- " " + v(e.title),
109
+ C(
110
+ " " + v(t.title),
102
111
  1
103
112
  /* TEXT */
104
113
  )
@@ -108,12 +117,12 @@ const C = (e, o) => (e.install = (t) => {
108
117
  }, 8, ["effect", "class", "type", "style", "closable"]);
109
118
  };
110
119
  }
111
- }), h = (e, o) => {
112
- const t = e.__vccOpts || e;
113
- for (const [l, c] of o)
114
- t[l] = c;
115
- return t;
116
- }, x = /* @__PURE__ */ h(S, [["__scopeId", "data-v-5bcf3056"]]), N = C(x);
120
+ }), h = (t, r) => {
121
+ const e = t.__vccOpts || t;
122
+ for (const [l, c] of r)
123
+ e[l] = c;
124
+ return e;
125
+ }, x = /* @__PURE__ */ h($, [["__scopeId", "data-v-a3967db7"]]), N = S(x);
117
126
  export {
118
127
  N as IkStatu,
119
128
  N as default
@@ -1 +1 @@
1
- (function(o,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(o=typeof globalThis<"u"?globalThis:o||self,t(o.index={},o.vue))})(this,function(o,t){"use strict";const r=((e,n)=>(e.install=l=>{for(const c of[e,...Object.values({})])l.component(c.name,c)},e))(((e,n)=>{const l=e.__vccOpts||e;for(const[c,a]of n)l[c]=a;return l})(t.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:""},color:{type:String,default:""},background:{type:String,default:""},circleColor:{type:String,default:""},effect:{type:String,default:"light"},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},emits:["close"],setup(e,{emit:n}){const l=e,c=t.computed(()=>l.type?l.type==="danger"?`var(--el-color-${l.type})`:{color:`var(--ik-color-${l.type})`,backgroundColor:`var(--ik-color-${l.type}-light)`}:{color:l.color,backgroundColor:l.background,border:"none"}),a=n,i=()=>{a("close")};return(d,g)=>{const s=t.resolveComponent("el-tag");return t.openBlock(),t.createBlock(s,{effect:e.effect,class:t.normalizeClass(["ik-statu-tag",{disabled:e.disabled}]),type:e.type,style:t.normalizeStyle(c.value),closable:d.$attrs.closable&&!e.disabled,onClose:i},{default:t.withCtx(()=>[e.circle?(t.openBlock(),t.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:t.normalizeStyle({backgroundColor:e.type?e.type==="danger"?`var(--el-color-${e.type})`:`var(--ik-color-${e.type})`:e.circleColor,width:`${e.circleW}px`,height:`${e.circleH}px`})},null,4)):t.createCommentVNode("v-if",!0),t.createTextVNode(" "+t.toDisplayString(e.title),1)]),_:1},8,["effect","class","type","style","closable"])}}}),[["__scopeId","data-v-5bcf3056"]]));o.IkStatu=r,o.default=r,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(l,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(l=typeof globalThis<"u"?globalThis:l||self,o(l.index={},l.vue))})(this,function(l,o){"use strict";const d=((t,n)=>(t.install=e=>{for(const c of[t,...Object.values({})])e.component(c.name,c)},t))(((t,n)=>{const e=t.__vccOpts||t;for(const[c,a]of n)e[c]=a;return e})(o.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:"primary"},color:{type:String,default:""},background:{type:String,default:""},circleColor:{type:String,default:""},effect:{type:String,default:"plain"},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},emits:["close"],setup(t,{emit:n}){const e=t,c=o.computed(()=>{const r=e.type?e.type==="danger"?`var(--el-color-${e.type})`:{color:`var(--ik-color-${e.type})`,backgroundColor:`var(--ik-color-${e.type}-light)`}:{color:e.color,backgroundColor:e.background,border:"none"};if(e.effect==="plain"&&e.type!=="danger")r.backgroundColor="transparent",r.borderColor=e.type?`var(--ik-color-${e.type})`:e.color;else if(e.effect==="dark"&&e.type!=="danger"){const i=e.type?`var(--ik-color-${e.type})`:e.color;r.backgroundColor=i,r.borderColor=i,r.color="#fff"}return r}),a=n,s=()=>{a("close")};return(r,i)=>{const f=o.resolveComponent("el-tag");return o.openBlock(),o.createBlock(f,{effect:t.effect,class:o.normalizeClass(["ik-statu-tag",{disabled:t.disabled}]),type:t.type,style:o.normalizeStyle(c.value),closable:r.$attrs.closable&&!t.disabled,onClose:s},{default:o.withCtx(()=>[t.circle?(o.openBlock(),o.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:o.normalizeStyle({backgroundColor:t.type?t.type==="danger"?`var(--el-color-${t.type})`:`var(--ik-color-${t.type})`:t.circleColor,width:`${t.circleW}px`,height:`${t.circleH}px`})},null,4)):o.createCommentVNode("v-if",!0),o.createTextVNode(" "+o.toDisplayString(t.title),1)]),_:1},8,["effect","class","type","style","closable"])}}}),[["__scopeId","data-v-a3967db7"]]));l.IkStatu=d,l.default=d,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .ik-statu-tag[data-v-5bcf3056]{margin:5px 0}.ik-statu-tag[data-v-5bcf3056]:not(:first-child){margin-left:5px}.el-tag[data-v-5bcf3056]{border:none;border-radius:6px}.el-tag--danger[data-v-5bcf3056]{color:var(--ik-color-error);background-color:var(--ik-color-error-light)}
1
+ .ik-statu-tag[data-v-a3967db7]{margin:5px 0}.ik-statu-tag[data-v-a3967db7]:not(:first-child){margin-left:5px}.el-tag[data-v-a3967db7]:not(.el-tag--plain){border:none}.el-tag--danger[data-v-a3967db7]:not(.el-tag--plain){color:var(--ik-color-error);background-color:var(--ik-color-error-light)}
@@ -1,14 +1,14 @@
1
- import { defineComponent as I, computed as f, resolveComponent as m, openBlock as r, createBlock as v, normalizeClass as V, normalizeStyle as T, withCtx as b, createElementBlock as u, createCommentVNode as w, createTextVNode as C, toDisplayString as S, ref as D, Fragment as g, renderList as W, unref as N, mergeProps as B, createVNode as L, createElementVNode as z } from "vue";
2
- import { ikDom as E } from "iking-utils-pro";
3
- const A = (t, s) => (t.install = (l) => {
4
- for (const o of [t, ...Object.values({})])
5
- l.component(o.name, o);
6
- }, t), O = (t, s) => {
7
- const l = t.__vccOpts || t;
8
- for (const [o, n] of s)
9
- l[o] = n;
10
- return l;
11
- }, H = /* @__PURE__ */ I({
1
+ import { defineComponent as w, computed as y, resolveComponent as h, openBlock as a, createBlock as g, normalizeClass as D, normalizeStyle as W, withCtx as k, createElementBlock as u, createCommentVNode as S, createTextVNode as $, toDisplayString as x, ref as L, Fragment as b, renderList as B, unref as N, mergeProps as _, createElementVNode as V } from "vue";
2
+ import { ikDom as z } from "iking-utils-pro";
3
+ const A = (l, i) => (l.install = (e) => {
4
+ for (const r of [l, ...Object.values({})])
5
+ e.component(r.name, r);
6
+ }, l), O = (l, i) => {
7
+ const e = l.__vccOpts || l;
8
+ for (const [r, c] of i)
9
+ e[r] = c;
10
+ return e;
11
+ }, E = /* @__PURE__ */ w({
12
12
  __name: "index",
13
13
  props: {
14
14
  title: {
@@ -17,7 +17,7 @@ const A = (t, s) => (t.install = (l) => {
17
17
  },
18
18
  type: {
19
19
  type: String,
20
- default: ""
20
+ default: "primary"
21
21
  },
22
22
  // 传了type时,color和background不生效
23
23
  // 文字颜色
@@ -36,7 +36,7 @@ const A = (t, s) => (t.install = (l) => {
36
36
  },
37
37
  effect: {
38
38
  type: String,
39
- default: "light"
39
+ default: "plain"
40
40
  },
41
41
  disabled: {
42
42
  type: Boolean,
@@ -66,45 +66,54 @@ const A = (t, s) => (t.install = (l) => {
66
66
  }
67
67
  },
68
68
  emits: ["close"],
69
- setup(t, { emit: s }) {
70
- const l = t, o = f(() => l.type ? l.type === "danger" ? `var(--el-color-${l.type})` : {
71
- color: `var(--ik-color-${l.type})`,
72
- backgroundColor: `var(--ik-color-${l.type}-light)`
73
- } : {
74
- color: l.color,
75
- backgroundColor: l.background,
76
- border: "none"
77
- }), n = s, i = () => {
78
- n("close");
69
+ setup(l, { emit: i }) {
70
+ const e = l, r = y(() => {
71
+ const o = e.type ? e.type === "danger" ? `var(--el-color-${e.type})` : {
72
+ color: `var(--ik-color-${e.type})`,
73
+ backgroundColor: `var(--ik-color-${e.type}-light)`
74
+ } : {
75
+ color: e.color,
76
+ backgroundColor: e.background,
77
+ border: "none"
78
+ };
79
+ if (e.effect === "plain" && e.type !== "danger")
80
+ o.backgroundColor = "transparent", o.borderColor = e.type ? `var(--ik-color-${e.type})` : e.color;
81
+ else if (e.effect === "dark" && e.type !== "danger") {
82
+ const f = e.type ? `var(--ik-color-${e.type})` : e.color;
83
+ o.backgroundColor = f, o.borderColor = f, o.color = "#fff";
84
+ }
85
+ return o;
86
+ }), c = i, d = () => {
87
+ c("close");
79
88
  };
80
- return (y, $) => {
81
- const k = m("el-tag");
82
- return r(), v(k, {
83
- effect: t.effect,
84
- class: V(["ik-statu-tag", { disabled: t.disabled }]),
85
- type: t.type,
86
- style: T(o.value),
87
- closable: y.$attrs.closable && !t.disabled,
88
- onClose: i
89
+ return (o, f) => {
90
+ const m = h("el-tag");
91
+ return a(), g(m, {
92
+ effect: l.effect,
93
+ class: D(["ik-statu-tag", { disabled: l.disabled }]),
94
+ type: l.type,
95
+ style: W(r.value),
96
+ closable: o.$attrs.closable && !l.disabled,
97
+ onClose: d
89
98
  }, {
90
- default: b(() => [
91
- t.circle ? (r(), u(
99
+ default: k(() => [
100
+ l.circle ? (a(), u(
92
101
  "span",
93
102
  {
94
103
  key: 0,
95
104
  class: "inline-block rounded-full",
96
- style: T({
97
- backgroundColor: t.type ? t.type === "danger" ? `var(--el-color-${t.type})` : `var(--ik-color-${t.type})` : t.circleColor,
98
- width: `${t.circleW}px`,
99
- height: `${t.circleH}px`
105
+ style: W({
106
+ backgroundColor: l.type ? l.type === "danger" ? `var(--el-color-${l.type})` : `var(--ik-color-${l.type})` : l.circleColor,
107
+ width: `${l.circleW}px`,
108
+ height: `${l.circleH}px`
100
109
  })
101
110
  },
102
111
  null,
103
112
  4
104
113
  /* STYLE */
105
- )) : w("v-if", !0),
106
- C(
107
- " " + S(t.title),
114
+ )) : S("v-if", !0),
115
+ $(
116
+ " " + x(l.title),
108
117
  1
109
118
  /* TEXT */
110
119
  )
@@ -114,7 +123,7 @@ const A = (t, s) => (t.install = (l) => {
114
123
  }, 8, ["effect", "class", "type", "style", "closable"]);
115
124
  };
116
125
  }
117
- }), R = /* @__PURE__ */ O(H, [["__scopeId", "data-v-5bcf3056"]]), _ = A(R), j = /* @__PURE__ */ I({
126
+ }), H = /* @__PURE__ */ O(E, [["__scopeId", "data-v-a3967db7"]]), I = A(H), R = /* @__PURE__ */ w({
118
127
  __name: "index",
119
128
  props: {
120
129
  // 超出长度时以 +2 这样的方式显示
@@ -140,66 +149,65 @@ const A = (t, s) => (t.install = (l) => {
140
149
  }
141
150
  },
142
151
  emits: ["close"],
143
- setup(t, { emit: s }) {
144
- const l = t, o = f(() => Array.isArray(l.list) ? l.list : typeof l.list == "string" ? l.list.split(",").map((a, d) => {
145
- var c;
152
+ setup(l, { emit: i }) {
153
+ const e = l, r = y(() => Array.isArray(e.list) ? e.list : typeof e.list == "string" ? e.list.split(",").map((n, p) => {
154
+ var s;
146
155
  return {
147
- ...((c = l.data) == null ? void 0 : c[d]) || {},
148
- title: a,
156
+ ...((s = e.data) == null ? void 0 : s[p]) || {},
157
+ title: n,
149
158
  type: ""
150
159
  };
151
- }) : []), n = D(null), i = f(() => {
152
- if (n.value) {
153
- const a = n.value.clientWidth;
154
- let d = 24;
155
- const c = [];
156
- let p = 0;
157
- for (const e of o.value) {
158
- const h = E.useTextWidth(String((e == null ? void 0 : e.title) || e));
159
- d += h + 40, (d <= a || !p) && c.push(e), p++;
160
+ }) : []), c = L(null), d = y(() => {
161
+ if (c.value) {
162
+ const n = c.value.clientWidth;
163
+ let p = 24;
164
+ const s = [];
165
+ let v = 0;
166
+ for (const t of r.value) {
167
+ const C = z.useTextWidth(String((t == null ? void 0 : t.title) || t));
168
+ p += C + 40, (p <= n || !v) && s.push(t), v++;
160
169
  }
161
- return c;
170
+ return s;
162
171
  }
163
- return o.value;
164
- }), y = f(() => o.value.length - i.value.length), $ = f(() => o.value.slice(i.value.length)), k = s, x = (a) => {
165
- k("close", a);
172
+ return r.value;
173
+ }), o = y(() => r.value.length - d.value.length), f = y(() => r.value.slice(d.value.length)), m = i, T = (n) => {
174
+ m("close", n);
166
175
  };
167
- return (a, d) => {
168
- const c = m("el-tag"), p = m("el-popover");
169
- return r(), u(
176
+ return (n, p) => {
177
+ const s = h("el-tag"), v = h("el-popover");
178
+ return a(), u(
170
179
  "div",
171
180
  {
172
181
  ref_key: "containerRef",
173
- ref: n,
182
+ ref: c,
174
183
  class: "tag-container"
175
184
  },
176
185
  [
177
- (r(!0), u(
178
- g,
186
+ (a(!0), u(
187
+ b,
179
188
  null,
180
- W(i.value, (e) => (r(), u(
181
- g,
189
+ B(d.value, (t) => (a(), u(
190
+ b,
182
191
  {
183
- key: e.title
192
+ key: t.title
184
193
  },
185
194
  [
186
- e.title !== "--" ? (r(), v(N(_), B({
195
+ t.title !== "--" ? (a(), g(N(I), _({
187
196
  key: 0,
188
- title: e.title,
189
- onClose: (h) => x(e),
190
- color: e.color,
191
- background: e.background,
192
- type: e.type,
197
+ title: t.title,
198
+ onClose: (C) => T(t),
199
+ color: t.color,
200
+ type: t.type || "primary",
193
201
  ref_for: !0
194
- }, a.$attrs, {
202
+ }, n.$attrs, {
195
203
  circle: !1,
196
- disabled: e == null ? void 0 : e.disabled
197
- }), null, 16, ["title", "onClose", "color", "background", "type", "disabled"])) : (r(), u(
198
- g,
204
+ disabled: t == null ? void 0 : t.disabled
205
+ }), null, 16, ["title", "onClose", "color", "type", "disabled"])) : (a(), u(
206
+ b,
199
207
  { key: 1 },
200
208
  [
201
- C(
202
- S(e.title),
209
+ $(
210
+ x(t.title),
203
211
  1
204
212
  /* TEXT */
205
213
  )
@@ -214,46 +222,46 @@ const A = (t, s) => (t.install = (l) => {
214
222
  128
215
223
  /* KEYED_FRAGMENT */
216
224
  )),
217
- y.value ? (r(), v(p, {
225
+ o.value ? (a(), g(v, {
218
226
  key: 0,
219
227
  placement: "bottom",
220
228
  "popper-class": "ik-statu-over",
221
229
  trigger: "hover"
222
230
  }, {
223
- reference: b(() => [
224
- L(c, {
231
+ reference: k(() => [
232
+ o.value ? (a(), g(s, {
233
+ key: 0,
225
234
  class: "more-tags",
226
235
  type: "info",
227
236
  closable: !1
228
237
  }, {
229
- default: b(() => [
230
- C(
231
- " +" + S(y.value),
238
+ default: k(() => [
239
+ $(
240
+ " +" + x(o.value),
232
241
  1
233
242
  /* TEXT */
234
243
  )
235
244
  ]),
236
245
  _: 1
237
246
  /* STABLE */
238
- })
247
+ })) : S("v-if", !0)
239
248
  ]),
240
- default: b(() => [
241
- z("div", null, [
242
- (r(!0), u(
243
- g,
249
+ default: k(() => [
250
+ V("div", null, [
251
+ (a(!0), u(
252
+ b,
244
253
  null,
245
- W($.value, (e) => (r(), v(N(_), B({
246
- key: e.title,
247
- title: e.title,
248
- color: e.color,
249
- onClose: (h) => x(e),
250
- background: e.background,
251
- type: e.type,
254
+ B(f.value, (t) => (a(), g(N(I), _({
255
+ key: t.title,
256
+ title: t.title,
257
+ color: t.color,
258
+ onClose: (C) => T(t),
259
+ type: t.type || "primary",
252
260
  circle: !1,
253
261
  ref_for: !0
254
- }, a.$attrs, {
255
- disabled: e == null ? void 0 : e.disabled
256
- }), null, 16, ["title", "color", "onClose", "background", "type", "disabled"]))),
262
+ }, n.$attrs, {
263
+ disabled: t == null ? void 0 : t.disabled
264
+ }), null, 16, ["title", "color", "onClose", "type", "disabled"]))),
257
265
  128
258
266
  /* KEYED_FRAGMENT */
259
267
  ))
@@ -261,15 +269,15 @@ const A = (t, s) => (t.install = (l) => {
261
269
  ]),
262
270
  _: 1
263
271
  /* STABLE */
264
- })) : w("v-if", !0)
272
+ })) : S("v-if", !0)
265
273
  ],
266
274
  512
267
275
  /* NEED_PATCH */
268
276
  );
269
277
  };
270
278
  }
271
- }), F = /* @__PURE__ */ O(j, [["__scopeId", "data-v-e872e623"]]), G = A(F);
279
+ }), j = /* @__PURE__ */ O(R, [["__scopeId", "data-v-84c057e2"]]), q = A(j);
272
280
  export {
273
- G as IkStatuOver,
274
- G as default
281
+ q as IkStatuOver,
282
+ q as default
275
283
  };
@@ -1 +1 @@
1
- (function(n,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):(n=typeof globalThis<"u"?globalThis:n||self,e(n.index={},n.vue,n["iking-utils-pro"]))})(this,function(n,e,S){"use strict";const k=(o,i)=>(o.install=l=>{for(const r of[o,...Object.values({})])l.component(r.name,r)},o),m=(o,i)=>{const l=o.__vccOpts||o;for(const[r,a]of i)l[r]=a;return l},b=k(m(e.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:""},color:{type:String,default:""},background:{type:String,default:""},circleColor:{type:String,default:""},effect:{type:String,default:"light"},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},emits:["close"],setup(o,{emit:i}){const l=o,r=e.computed(()=>l.type?l.type==="danger"?`var(--el-color-${l.type})`:{color:`var(--ik-color-${l.type})`,backgroundColor:`var(--ik-color-${l.type}-light)`}:{color:l.color,backgroundColor:l.background,border:"none"}),a=i,d=()=>{a("close")};return(f,C)=>{const y=e.resolveComponent("el-tag");return e.openBlock(),e.createBlock(y,{effect:o.effect,class:e.normalizeClass(["ik-statu-tag",{disabled:o.disabled}]),type:o.type,style:e.normalizeStyle(r.value),closable:f.$attrs.closable&&!o.disabled,onClose:d},{default:e.withCtx(()=>[o.circle?(e.openBlock(),e.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:e.normalizeStyle({backgroundColor:o.type?o.type==="danger"?`var(--el-color-${o.type})`:`var(--ik-color-${o.type})`:o.circleColor,width:`${o.circleW}px`,height:`${o.circleH}px`})},null,4)):e.createCommentVNode("v-if",!0),e.createTextVNode(" "+e.toDisplayString(o.title),1)]),_:1},8,["effect","class","type","style","closable"])}}}),[["__scopeId","data-v-5bcf3056"]])),h=k(m(e.defineComponent({__name:"index",props:{overfolw:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},emits:["close"],setup(o,{emit:i}){const l=o,r=e.computed(()=>Array.isArray(l.list)?l.list:typeof l.list=="string"?l.list.split(",").map((c,p)=>{var s;return{...((s=l.data)==null?void 0:s[p])||{},title:c,type:""}}):[]),a=e.ref(null),d=e.computed(()=>{if(a.value){const c=a.value.clientWidth;let p=24;const s=[];let u=0;for(const t of r.value){const g=S.ikDom.useTextWidth(String((t==null?void 0:t.title)||t));p+=g+40,(p<=c||!u)&&s.push(t),u++}return s}return r.value}),f=e.computed(()=>r.value.length-d.value.length),C=e.computed(()=>r.value.slice(d.value.length)),y=i,B=c=>{y("close",c)};return(c,p)=>{const s=e.resolveComponent("el-tag"),u=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"tag-container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.title},[t.title!=="--"?(e.openBlock(),e.createBlock(e.unref(b),e.mergeProps({key:0,title:t.title,onClose:g=>B(t),color:t.color,background:t.background,type:t.type,ref_for:!0},c.$attrs,{circle:!1,disabled:t==null?void 0:t.disabled}),null,16,["title","onClose","color","background","type","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.title),1)],64))],64))),128)),f.value?(e.openBlock(),e.createBlock(u,{key:0,placement:"bottom","popper-class":"ik-statu-over",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(s,{class:"more-tags",type:"info",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(f.value),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,t=>(e.openBlock(),e.createBlock(e.unref(b),e.mergeProps({key:t.title,title:t.title,color:t.color,onClose:g=>B(t),background:t.background,type:t.type,circle:!1,ref_for:!0},c.$attrs,{disabled:t==null?void 0:t.disabled}),null,16,["title","color","onClose","background","type","disabled"]))),128))])]),_:1})):e.createCommentVNode("v-if",!0)],512)}}}),[["__scopeId","data-v-e872e623"]]));n.IkStatuOver=h,n.default=h,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(a,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):(a=typeof globalThis<"u"?globalThis:a||self,e(a.index={},a.vue,a["iking-utils-pro"]))})(this,function(a,e,S){"use strict";const m=(l,d)=>(l.install=t=>{for(const n of[l,...Object.values({})])t.component(n.name,n)},l),b=(l,d)=>{const t=l.__vccOpts||l;for(const[n,s]of d)t[n]=s;return t},C=m(b(e.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:"primary"},color:{type:String,default:""},background:{type:String,default:""},circleColor:{type:String,default:""},effect:{type:String,default:"plain"},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},emits:["close"],setup(l,{emit:d}){const t=l,n=e.computed(()=>{const r=t.type?t.type==="danger"?`var(--el-color-${t.type})`:{color:`var(--ik-color-${t.type})`,backgroundColor:`var(--ik-color-${t.type}-light)`}:{color:t.color,backgroundColor:t.background,border:"none"};if(t.effect==="plain"&&t.type!=="danger")r.backgroundColor="transparent",r.borderColor=t.type?`var(--ik-color-${t.type})`:t.color;else if(t.effect==="dark"&&t.type!=="danger"){const f=t.type?`var(--ik-color-${t.type})`:t.color;r.backgroundColor=f,r.borderColor=f,r.color="#fff"}return r}),s=d,p=()=>{s("close")};return(r,f)=>{const k=e.resolveComponent("el-tag");return e.openBlock(),e.createBlock(k,{effect:l.effect,class:e.normalizeClass(["ik-statu-tag",{disabled:l.disabled}]),type:l.type,style:e.normalizeStyle(n.value),closable:r.$attrs.closable&&!l.disabled,onClose:p},{default:e.withCtx(()=>[l.circle?(e.openBlock(),e.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:e.normalizeStyle({backgroundColor:l.type?l.type==="danger"?`var(--el-color-${l.type})`:`var(--ik-color-${l.type})`:l.circleColor,width:`${l.circleW}px`,height:`${l.circleH}px`})},null,4)):e.createCommentVNode("v-if",!0),e.createTextVNode(" "+e.toDisplayString(l.title),1)]),_:1},8,["effect","class","type","style","closable"])}}}),[["__scopeId","data-v-a3967db7"]])),h=m(b(e.defineComponent({__name:"index",props:{overfolw:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},emits:["close"],setup(l,{emit:d}){const t=l,n=e.computed(()=>Array.isArray(t.list)?t.list:typeof t.list=="string"?t.list.split(",").map((c,y)=>{var i;return{...((i=t.data)==null?void 0:i[y])||{},title:c,type:""}}):[]),s=e.ref(null),p=e.computed(()=>{if(s.value){const c=s.value.clientWidth;let y=24;const i=[];let u=0;for(const o of n.value){const g=S.ikDom.useTextWidth(String((o==null?void 0:o.title)||o));y+=g+40,(y<=c||!u)&&i.push(o),u++}return i}return n.value}),r=e.computed(()=>n.value.length-p.value.length),f=e.computed(()=>n.value.slice(p.value.length)),k=d,B=c=>{k("close",c)};return(c,y)=>{const i=e.resolveComponent("el-tag"),u=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:s,class:"tag-container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.title},[o.title!=="--"?(e.openBlock(),e.createBlock(e.unref(C),e.mergeProps({key:0,title:o.title,onClose:g=>B(o),color:o.color,type:o.type||"primary",ref_for:!0},c.$attrs,{circle:!1,disabled:o==null?void 0:o.disabled}),null,16,["title","onClose","color","type","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(o.title),1)],64))],64))),128)),r.value?(e.openBlock(),e.createBlock(u,{key:0,placement:"bottom","popper-class":"ik-statu-over",trigger:"hover"},{reference:e.withCtx(()=>[r.value?(e.openBlock(),e.createBlock(i,{key:0,class:"more-tags",type:"info",closable:!1},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,o=>(e.openBlock(),e.createBlock(e.unref(C),e.mergeProps({key:o.title,title:o.title,color:o.color,onClose:g=>B(o),type:o.type||"primary",circle:!1,ref_for:!0},c.$attrs,{disabled:o==null?void 0:o.disabled}),null,16,["title","color","onClose","type","disabled"]))),128))])]),_:1})):e.createCommentVNode("v-if",!0)],512)}}}),[["__scopeId","data-v-84c057e2"]]));a.IkStatuOver=h,a.default=h,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .ik-statu-tag[data-v-5bcf3056]{margin:5px 0}.ik-statu-tag[data-v-5bcf3056]:not(:first-child){margin-left:5px}.el-tag[data-v-5bcf3056]{border:none;border-radius:6px}.el-tag--danger[data-v-5bcf3056]{color:var(--ik-color-error);background-color:var(--ik-color-error-light)}.ik-statu-over{width:auto!important;min-width:0!important}.tag-container[data-v-e872e623]{display:flex;width:100%}.tag-container .ik-statu-tag[data-v-e872e623]{max-width:calc(100% - 46px)}.tag-container .el-tag[data-v-e872e623]:not(:last-child){margin-right:5px}.tag-container[data-v-e872e623] .el-tag__content{display:inline-block!important;width:100%;overflow:hidden;text-overflow:ellipsis}.more-tags[data-v-e872e623]{margin:5px 0}
1
+ .ik-statu-tag[data-v-a3967db7]{margin:5px 0}.ik-statu-tag[data-v-a3967db7]:not(:first-child){margin-left:5px}.el-tag[data-v-a3967db7]:not(.el-tag--plain){border:none}.el-tag--danger[data-v-a3967db7]:not(.el-tag--plain){color:var(--ik-color-error);background-color:var(--ik-color-error-light)}.ik-statu-over{width:auto!important;min-width:0!important}.tag-container[data-v-84c057e2]{display:flex;width:100%}.tag-container .ik-statu-tag[data-v-84c057e2]{max-width:calc(100% - 46px)}.tag-container .el-tag[data-v-84c057e2]:not(:last-child){margin-right:5px}.tag-container[data-v-84c057e2] .el-tag__content{display:inline-block!important;width:100%;overflow:hidden;text-overflow:ellipsis}.more-tags[data-v-84c057e2]{margin:5px 0}