iking-web-ui-pro 0.3.1 → 0.3.3

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 (116) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +16 -14
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +28 -28
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +25 -24
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCalendar/ik.index.es.js +10320 -10322
  8. package/dist/IkCollapseCard/ik.index.es.js +20 -19
  9. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  10. package/dist/IkDescription/ik.index.es.js +16 -14
  11. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  12. package/dist/IkDetailPreviewFiles/ik.index.es.js +16 -14
  13. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  14. package/dist/IkEmpty/ik.index.es.js +7 -7
  15. package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
  16. package/dist/IkExpandCollapse/ik.index.es.js +59 -58
  17. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  18. package/dist/IkFullCalendar/ik.index.es.js +12 -9334
  19. package/dist/IkIconPicker/ik.index.es.js +22 -21
  20. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  21. package/dist/IkMonacoEditor/ik.index.es.js +31 -30
  22. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPageFull/ik.index.es.js +127 -126
  24. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  25. package/dist/IkPreviewFile/ik.index.es.js +16 -14
  26. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  27. package/dist/IkPreviewFileDialog/ik.index.es.js +50 -50
  28. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSchedule/ik.index.es.js +385 -9680
  30. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  31. package/dist/IkSelectTag/ik.index.es.js +142 -130
  32. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  33. package/dist/IkSideText/ik.index.es.js +23 -22
  34. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  35. package/dist/IkStatu/ik.index.es.js +47 -38
  36. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  37. package/dist/IkStatuOver/ik.index.es.js +115 -106
  38. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  39. package/dist/IkSvgIcon/ik.index.es.js +51 -50
  40. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  41. package/dist/IkTaskResume/ik.index.es.js +23 -0
  42. package/dist/IkUploadFile/ik.index.es.js +71 -71
  43. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  44. package/dist/IkUploadImage/ik.index.es.js +82 -86
  45. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  46. package/dist/IkVerticalStepBar/ik.index.es.js +75 -74
  47. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  48. package/dist/iking-web-ui-pro.css +2 -2
  49. package/dist/index.es.js +21079 -21251
  50. package/dist/index.umd.js +114 -114
  51. package/dist/src/components/IkFullCalendar/index.d.ts +1 -63
  52. package/dist/src/components/IkFullCalendar/src/IkFullCalendar.vue.d.ts +2 -0
  53. package/dist/src/components/IkMonacoEditor/index.d.ts +3 -0
  54. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +3 -0
  55. package/dist/src/components/IkSchedule/index.d.ts +12 -12
  56. package/dist/src/components/IkStatu/index.d.ts +3 -3
  57. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  58. package/dist/src/components/IkSvgIcon/index.d.ts +3 -0
  59. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +3 -0
  60. package/dist/src/components/IkTaskResume/index.d.ts +2 -0
  61. package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
  62. package/dist/src/components/index.d.ts +1 -0
  63. package/package.json +1 -1
  64. package/dist/Demo/ik.index.umd.js +0 -1
  65. package/dist/IkApprovalProcess/ik.index.umd.js +0 -1
  66. package/dist/IkApprovalProcessDetail/ik.index.umd.js +0 -226
  67. package/dist/IkAutoCard/ik.index.umd.js +0 -1
  68. package/dist/IkBaseDialog/ik.index.umd.js +0 -1
  69. package/dist/IkBottomOperate/ik.index.umd.js +0 -1
  70. package/dist/IkBtnContent/ik.index.umd.js +0 -1
  71. package/dist/IkBtnSetting/ik.index.umd.js +0 -1
  72. package/dist/IkCalendar/ik.index.umd.js +0 -1
  73. package/dist/IkCollapseCard/ik.index.umd.js +0 -1
  74. package/dist/IkCurrencyInput/ik.index.umd.js +0 -1
  75. package/dist/IkDescription/ik.index.umd.js +0 -226
  76. package/dist/IkDetailPreviewFiles/ik.index.umd.js +0 -226
  77. package/dist/IkDragList/ik.index.umd.js +0 -1
  78. package/dist/IkEmpty/ik.index.umd.js +0 -1
  79. package/dist/IkExpandCollapse/ik.index.umd.js +0 -1
  80. package/dist/IkFileIcon/ik.index.umd.js +0 -1
  81. package/dist/IkFullCalendar/ik.index.umd.js +0 -1
  82. package/dist/IkFullCalendar/iking-web-ui-pro.css +0 -1
  83. package/dist/IkHorizontalStepBar/ik.index.umd.js +0 -1
  84. package/dist/IkIconPicker/ik.index.umd.js +0 -1
  85. package/dist/IkImageEditor/ik.index.umd.js +0 -1
  86. package/dist/IkImageUploadEditor/ik.index.umd.js +0 -37
  87. package/dist/IkImageViewer/ik.index.umd.js +0 -1
  88. package/dist/IkMonacoEditor/ik.index.umd.js +0 -11
  89. package/dist/IkOnlyOffice/ik.index.umd.js +0 -1
  90. package/dist/IkPage/ik.index.umd.js +0 -1
  91. package/dist/IkPageFull/ik.index.umd.js +0 -17
  92. package/dist/IkPageTabs/ik.index.umd.js +0 -1
  93. package/dist/IkPickerUser/ik.index.umd.js +0 -1
  94. package/dist/IkPlayer/ik.index.umd.js +0 -226
  95. package/dist/IkPreviewFile/ik.index.umd.js +0 -226
  96. package/dist/IkPreviewFileDialog/ik.index.umd.js +0 -226
  97. package/dist/IkPrintConfig/ik.index.umd.js +0 -1
  98. package/dist/IkPrintView/ik.index.umd.js +0 -1
  99. package/dist/IkRadioGroup/ik.index.umd.js +0 -1
  100. package/dist/IkSchedule/ik.index.umd.js +0 -1
  101. package/dist/IkSearch/ik.index.umd.js +0 -26
  102. package/dist/IkSearchHead/ik.index.umd.js +0 -1
  103. package/dist/IkSelectTag/ik.index.umd.js +0 -1
  104. package/dist/IkSideText/ik.index.umd.js +0 -1
  105. package/dist/IkStatu/ik.index.umd.js +0 -1
  106. package/dist/IkStatuOver/ik.index.umd.js +0 -1
  107. package/dist/IkSvgIcon/ik.index.umd.js +0 -1
  108. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +0 -1
  109. package/dist/IkTinymce/ik.index.umd.js +0 -90
  110. package/dist/IkTooltip/ik.index.umd.js +0 -1
  111. package/dist/IkTree/ik.index.umd.js +0 -1
  112. package/dist/IkUploadFile/ik.index.umd.js +0 -226
  113. package/dist/IkUploadImage/ik.index.umd.js +0 -1
  114. package/dist/IkVerticalStepBar/ik.index.umd.js +0 -9
  115. package/dist/Provider/ik.index.umd.js +0 -1
  116. package/dist/src/components/IkFullCalendar/src/ik-full-calendar.d.ts +0 -8
@@ -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-c7804024]{display:flex}.ik-svg-icon.ik-icon-span[data-v-c7804024]:not(:first-child){margin-left:var(--ik-margin-s-8)}.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
+ .row-title[data-v-6889f3aa]{display:flex}.ik-svg-icon.ik-icon-span[data-v-6889f3aa]:not(:first-child){margin-left:var(--ik-margin-s-8)}.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,13 +1,13 @@
1
- import { defineComponent as W, computed as y, resolveComponent as h, openBlock as u, createBlock as g, normalizeClass as D, normalizeStyle as I, withCtx as b, createElementBlock as v, createCommentVNode as B, createTextVNode as V, toDisplayString as x, ref as L, Fragment as m, renderList as _, unref as T, mergeProps as S, createVNode as O, createElementVNode as P, mergeModels as N, getCurrentInstance as M, useModel as z, withDirectives as E, vShow as H, renderSlot as R } from "vue";
1
+ import { defineComponent as W, computed as g, resolveComponent as h, openBlock as i, createBlock as b, normalizeClass as j, normalizeStyle as I, withCtx as m, createElementBlock as v, createCommentVNode as _, createTextVNode as B, toDisplayString as V, ref as D, Fragment as C, renderList as x, unref as T, mergeProps as S, createElementVNode as L, mergeModels as N, getCurrentInstance as P, useModel as M, withDirectives as z, createVNode as E, vShow as H, renderSlot as R } from "vue";
2
2
  import { ikDom as F } from "iking-utils-pro";
3
- const A = (e, p) => (e.install = (l) => {
4
- for (const a of [e, ...Object.values({})])
5
- l.component(a.name, a);
6
- }, e), j = (e, p) => {
7
- const l = e.__vccOpts || e;
8
- for (const [a, r] of p)
9
- l[a] = r;
10
- return l;
3
+ const A = (l, f) => (l.install = (e) => {
4
+ for (const a of [l, ...Object.values({})])
5
+ e.component(a.name, a);
6
+ }, l), O = (l, f) => {
7
+ const e = l.__vccOpts || l;
8
+ for (const [a, n] of f)
9
+ e[a] = n;
10
+ return e;
11
11
  }, U = /* @__PURE__ */ W({
12
12
  __name: "index",
13
13
  props: {
@@ -17,7 +17,7 @@ const A = (e, p) => (e.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 = (e, p) => (e.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 = (e, p) => (e.install = (l) => {
66
66
  }
67
67
  },
68
68
  emits: ["close"],
69
- setup(e, { emit: p }) {
70
- const l = e, a = y(() => 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
- }), r = p, n = () => {
78
- r("close");
69
+ setup(l, { emit: f }) {
70
+ const e = l, a = g(() => {
71
+ const r = 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
+ r.backgroundColor = "transparent", r.borderColor = e.type ? `var(--ik-color-${e.type})` : e.color;
81
+ else if (e.effect === "dark" && e.type !== "danger") {
82
+ const y = e.type ? `var(--ik-color-${e.type})` : e.color;
83
+ r.backgroundColor = y, r.borderColor = y, r.color = "#fff";
84
+ }
85
+ return r;
86
+ }), n = f, s = () => {
87
+ n("close");
79
88
  };
80
- return (f, C) => {
89
+ return (r, y) => {
81
90
  const k = h("el-tag");
82
- return u(), g(k, {
83
- effect: e.effect,
84
- class: D(["ik-statu-tag", { disabled: e.disabled }]),
85
- type: e.type,
91
+ return i(), b(k, {
92
+ effect: l.effect,
93
+ class: j(["ik-statu-tag", { disabled: l.disabled }]),
94
+ type: l.type,
86
95
  style: I(a.value),
87
- closable: f.$attrs.closable && !e.disabled,
88
- onClose: n
96
+ closable: r.$attrs.closable && !l.disabled,
97
+ onClose: s
89
98
  }, {
90
- default: b(() => [
91
- e.circle ? (u(), v(
99
+ default: m(() => [
100
+ l.circle ? (i(), v(
92
101
  "span",
93
102
  {
94
103
  key: 0,
95
104
  class: "inline-block rounded-full",
96
105
  style: I({
97
- backgroundColor: e.type ? e.type === "danger" ? `var(--el-color-${e.type})` : `var(--ik-color-${e.type})` : e.circleColor,
98
- width: `${e.circleW}px`,
99
- height: `${e.circleH}px`
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
- )) : B("v-if", !0),
106
- V(
107
- " " + x(e.title),
114
+ )) : _("v-if", !0),
115
+ B(
116
+ " " + V(l.title),
108
117
  1
109
118
  /* TEXT */
110
119
  )
@@ -114,7 +123,10 @@ const A = (e, p) => (e.install = (l) => {
114
123
  }, 8, ["effect", "class", "type", "style", "closable"]);
115
124
  };
116
125
  }
117
- }), q = /* @__PURE__ */ j(U, [["__scopeId", "data-v-5bcf3056"]]), w = A(q), G = /* @__PURE__ */ W({
126
+ }), q = /* @__PURE__ */ O(U, [["__scopeId", "data-v-a3967db7"]]), w = A(q), G = {
127
+ key: 1,
128
+ style: { color: "var(--el-color-info-light-3)" }
129
+ }, J = /* @__PURE__ */ W({
118
130
  __name: "index",
119
131
  props: {
120
132
  // 超出长度时以 +2 这样的方式显示
@@ -140,72 +152,69 @@ const A = (e, p) => (e.install = (l) => {
140
152
  }
141
153
  },
142
154
  emits: ["close"],
143
- setup(e, { emit: p }) {
144
- const l = e, a = y(() => Array.isArray(l.list) ? l.list : typeof l.list == "string" ? l.list.split(",").map((o, c) => {
145
- var d;
155
+ setup(l, { emit: f }) {
156
+ const e = l, a = g(() => Array.isArray(e.list) ? e.list : typeof e.list == "string" ? e.list.split(",").map((o, d) => {
157
+ var p;
146
158
  return {
147
- ...((d = l.data) == null ? void 0 : d[c]) || {},
159
+ ...((p = e.data) == null ? void 0 : p[d]) || {},
148
160
  title: o,
149
161
  type: ""
150
162
  };
151
- }) : []), r = L(null), n = y(() => {
152
- if (r.value) {
153
- const o = r.value.clientWidth;
154
- let c = 24;
155
- const d = [];
156
- let i = 0;
157
- for (const t of a.value) {
158
- const $ = F.useTextWidth(String((t == null ? void 0 : t.title) || t));
159
- c += $ + 40, (c <= o || !i) && d.push(t), i++;
163
+ }) : []), n = D(null), s = g(() => {
164
+ try {
165
+ if (n.value) {
166
+ const o = n.value.clientWidth;
167
+ let d = 24;
168
+ const p = [];
169
+ let u = 0;
170
+ for (const t of a.value) {
171
+ const $ = F.useTextWidth(String((t == null ? void 0 : t.title) || t));
172
+ d += $ + 40, (d <= o || !u) && p.push(t), u++;
173
+ }
174
+ return p;
160
175
  }
161
- return d;
176
+ return a.value;
177
+ } catch {
178
+ return a.value;
162
179
  }
163
- return a.value;
164
- }), f = y(() => a.value.length - n.value.length), C = y(() => a.value.slice(n.value.length)), k = p, s = (o) => {
180
+ }), r = g(() => a.value.length - s.value.length), y = g(() => a.value.slice(s.value.length)), k = f, c = (o) => {
165
181
  k("close", o);
166
182
  };
167
- return (o, c) => {
168
- const d = h("el-tag"), i = h("el-popover");
169
- return u(), v(
183
+ return (o, d) => {
184
+ const p = h("el-tag"), u = h("el-popover");
185
+ return i(), v(
170
186
  "div",
171
187
  {
172
188
  ref_key: "containerRef",
173
- ref: r,
189
+ ref: n,
174
190
  class: "tag-container"
175
191
  },
176
192
  [
177
- (u(!0), v(
178
- m,
193
+ (i(!0), v(
194
+ C,
179
195
  null,
180
- _(n.value, (t) => (u(), v(
181
- m,
196
+ x(s.value, (t) => (i(), v(
197
+ C,
182
198
  {
183
199
  key: t.title
184
200
  },
185
201
  [
186
- t.title !== "--" ? (u(), g(T(w), S({
202
+ t.title !== "--" ? (i(), b(T(w), S({
187
203
  key: 0,
188
204
  title: t.title,
189
- onClose: ($) => s(t),
205
+ onClose: ($) => c(t),
190
206
  color: t.color,
191
- background: t.background,
192
- type: t.type,
207
+ type: t.type || "primary",
193
208
  ref_for: !0
194
209
  }, o.$attrs, {
195
210
  circle: !1,
196
211
  disabled: t == null ? void 0 : t.disabled
197
- }), null, 16, ["title", "onClose", "color", "background", "type", "disabled"])) : (u(), v(
198
- m,
199
- { key: 1 },
200
- [
201
- V(
202
- x(t.title),
203
- 1
204
- /* TEXT */
205
- )
206
- ],
207
- 64
208
- /* STABLE_FRAGMENT */
212
+ }), null, 16, ["title", "onClose", "color", "type", "disabled"])) : (i(), v(
213
+ "span",
214
+ G,
215
+ V(t.title),
216
+ 1
217
+ /* TEXT */
209
218
  ))
210
219
  ],
211
220
  64
@@ -214,46 +223,46 @@ const A = (e, p) => (e.install = (l) => {
214
223
  128
215
224
  /* KEYED_FRAGMENT */
216
225
  )),
217
- f.value ? (u(), g(i, {
226
+ r.value ? (i(), b(u, {
218
227
  key: 0,
219
228
  placement: "bottom",
220
229
  "popper-class": "ik-statu-over",
221
230
  trigger: "hover"
222
231
  }, {
223
- reference: b(() => [
224
- O(d, {
232
+ reference: m(() => [
233
+ r.value ? (i(), b(p, {
234
+ key: 0,
225
235
  class: "more-tags",
226
236
  type: "info",
227
237
  closable: !1
228
238
  }, {
229
- default: b(() => [
230
- V(
231
- " +" + x(f.value),
239
+ default: m(() => [
240
+ B(
241
+ " +" + V(r.value),
232
242
  1
233
243
  /* TEXT */
234
244
  )
235
245
  ]),
236
246
  _: 1
237
247
  /* STABLE */
238
- })
248
+ })) : _("v-if", !0)
239
249
  ]),
240
- default: b(() => [
241
- P("div", null, [
242
- (u(!0), v(
243
- m,
250
+ default: m(() => [
251
+ L("div", null, [
252
+ (i(!0), v(
253
+ C,
244
254
  null,
245
- _(C.value, (t) => (u(), g(T(w), S({
255
+ x(y.value, (t) => (i(), b(T(w), S({
246
256
  key: t.title,
247
257
  title: t.title,
248
258
  color: t.color,
249
- onClose: ($) => s(t),
250
- background: t.background,
251
- type: t.type,
259
+ onClose: ($) => c(t),
260
+ type: t.type || "primary",
252
261
  circle: !1,
253
262
  ref_for: !0
254
263
  }, o.$attrs, {
255
264
  disabled: t == null ? void 0 : t.disabled
256
- }), null, 16, ["title", "color", "onClose", "background", "type", "disabled"]))),
265
+ }), null, 16, ["title", "color", "onClose", "type", "disabled"]))),
257
266
  128
258
267
  /* KEYED_FRAGMENT */
259
268
  ))
@@ -261,14 +270,14 @@ const A = (e, p) => (e.install = (l) => {
261
270
  ]),
262
271
  _: 1
263
272
  /* STABLE */
264
- })) : B("v-if", !0)
273
+ })) : _("v-if", !0)
265
274
  ],
266
275
  512
267
276
  /* NEED_PATCH */
268
277
  );
269
278
  };
270
279
  }
271
- }), J = /* @__PURE__ */ j(G, [["__scopeId", "data-v-e872e623"]]), K = A(J), Q = /* @__PURE__ */ W({
280
+ }), K = /* @__PURE__ */ O(J, [["__scopeId", "data-v-169a93dc"]]), Q = A(K), X = /* @__PURE__ */ W({
272
281
  __name: "index",
273
282
  props: /* @__PURE__ */ N({
274
283
  prop: {
@@ -287,48 +296,51 @@ const A = (e, p) => (e.install = (l) => {
287
296
  modelModifiers: {}
288
297
  }),
289
298
  emits: /* @__PURE__ */ N(["close"], ["update:modelValue"]),
290
- setup(e, { emit: p }) {
291
- const l = e, a = M(), r = y(() => ({
299
+ setup(l, { emit: f }) {
300
+ const e = l, a = P(), n = g(() => ({
292
301
  label: "label",
293
302
  value: "value",
294
- ...l.prop
295
- })), n = z(e, "modelValue"), f = y(() => {
296
- let s = [];
303
+ ...e.prop
304
+ })), s = M(l, "modelValue"), r = g(() => {
305
+ let c = [];
297
306
  const o = a == null ? void 0 : a.attrs.options;
298
- return Array.isArray(n.value) ? s = n.value.map((c) => o.find((d) => d[r.value.value] === c)) : n.value && (s = [o.find((c) => c[r.value.value] === n.value)]), {
299
- list: s.map((c) => c[r.value.label]).join(","),
300
- data: s
307
+ return Array.isArray(s.value) ? c = s.value.map((d) => o.find((p) => p[n.value.value] === d)) : s.value && (c = [o.find((d) => d[n.value.value] === s.value)]), {
308
+ list: c.map((d) => d[n.value.label]).join(","),
309
+ data: c
301
310
  };
302
- }), C = p, k = (s) => {
303
- n.value = n.value.filter((o) => o !== s[r.value.value]), C("close", s, n.value);
311
+ }), y = f, k = (c) => {
312
+ s.value = s.value.filter((o) => o !== c[n.value.value]), y("close", c, s.value);
304
313
  };
305
- return (s, o) => {
306
- const c = h("el-option"), d = h("el-select");
307
- return u(), g(d, S(s.$attrs, {
314
+ return (c, o) => {
315
+ const d = h("el-option"), p = h("el-select");
316
+ return i(), b(p, S(c.$attrs, {
308
317
  "collapse-tags": !1,
309
- modelValue: n.value,
310
- "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i),
318
+ modelValue: s.value,
319
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => s.value = u),
311
320
  "no-data-text": "暂无数据",
312
321
  "no-match-text": "无匹配项"
313
322
  }), {
314
- tag: b(() => [
315
- E(O(T(K), S({
316
- list: f.value.list,
317
- data: f.value.data
318
- }, e.tagProps, { onClose: k }), null, 16, ["list", "data"]), [
319
- [H, f.value]
320
- ])
321
- ]),
322
- default: b(() => [
323
- R(s.$slots, "default", {}, () => [
324
- (u(!0), v(
325
- m,
323
+ tag: m(() => {
324
+ var u, t;
325
+ return [
326
+ z(E(T(Q), S({
327
+ list: r.value.list,
328
+ data: r.value.data
329
+ }, l.tagProps, { onClose: k }), null, 16, ["list", "data"]), [
330
+ [H, (t = (u = r.value) == null ? void 0 : u.list) == null ? void 0 : t.length]
331
+ ])
332
+ ];
333
+ }),
334
+ default: m(() => [
335
+ R(c.$slots, "default", {}, () => [
336
+ (i(!0), v(
337
+ C,
326
338
  null,
327
- _(s.$attrs.options, (i) => (u(), g(c, {
328
- key: i[r.value.value],
329
- label: i[r.value.label],
330
- value: i[r.value.value],
331
- disabled: i.disabled
339
+ x(c.$attrs.options, (u) => (i(), b(d, {
340
+ key: u[n.value.value],
341
+ label: u[n.value.label],
342
+ value: u[n.value.value],
343
+ disabled: u.disabled
332
344
  }, null, 8, ["label", "value", "disabled"]))),
333
345
  128
334
346
  /* KEYED_FRAGMENT */
@@ -340,8 +352,8 @@ const A = (e, p) => (e.install = (l) => {
340
352
  }, 16, ["modelValue"]);
341
353
  };
342
354
  }
343
- }), Z = A(Q);
355
+ }), ee = A(X);
344
356
  export {
345
- Z as IkSelectTag,
346
- Z as default
357
+ ee as IkSelectTag,
358
+ ee as default
347
359
  };
@@ -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-169a93dc]{display:flex;width:100%}.tag-container .ik-statu-tag[data-v-169a93dc]{max-width:calc(100% - 46px)}.tag-container .el-tag[data-v-169a93dc]:not(:last-child){margin-right:5px}.tag-container[data-v-169a93dc] .el-tag__content{display:inline-block!important;width:100%;overflow:hidden;text-overflow:ellipsis}.more-tags[data-v-169a93dc]{margin:5px 0}
@@ -1,4 +1,4 @@
1
- import { inject as k, computed as u, defineComponent as _, resolveComponent as z, openBlock as l, createElementBlock as c, Fragment as $, normalizeClass as m, normalizeStyle as p, createCommentVNode as b, createElementVNode as f, createBlock as x, withCtx as I, createTextVNode as T, toDisplayString as w, useCssVars as M, unref as C, ref as E } from "vue";
1
+ import { inject as k, computed as u, defineComponent as I, resolveComponent as z, openBlock as l, createElementBlock as c, Fragment as $, normalizeClass as m, normalizeStyle as p, createElementVNode as f, createBlock as b, withCtx as _, createTextVNode as T, toDisplayString as w, useCssVars as M, unref as C, ref as E, createCommentVNode as x } from "vue";
2
2
  import { ikColor as L } from "iking-utils-pro";
3
3
  const U = (t, o) => (t.install = (s) => {
4
4
  for (const e of [t, ...Object.values({})])
@@ -81,7 +81,7 @@ const U = (t, o) => (t.install = (s) => {
81
81
  key: 1,
82
82
  class: "h-[1em] w-[1em]",
83
83
  "aria-hidden": "true"
84
- }, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */ _({
84
+ }, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */ I({
85
85
  name: "IkSvgIcon",
86
86
  __name: "index",
87
87
  props: {
@@ -103,7 +103,7 @@ const U = (t, o) => (t.install = (s) => {
103
103
  success: { type: Boolean },
104
104
  tableIconType: {},
105
105
  title: {},
106
- type: {},
106
+ type: { default: "primary" },
107
107
  warning: { type: Boolean },
108
108
  width: {}
109
109
  },
@@ -155,7 +155,7 @@ const U = (t, o) => (t.install = (s) => {
155
155
  { key: 0 },
156
156
  [
157
157
  e.value.notip || !e.value.title ? (l(), c(
158
- "span",
158
+ "i",
159
159
  {
160
160
  key: 0,
161
161
  class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
@@ -178,7 +178,6 @@ const U = (t, o) => (t.install = (s) => {
178
178
  onMouseleave: d
179
179
  },
180
180
  [
181
- b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
182
181
  n.value === "iksig" ? (l(), c(
183
182
  "i",
184
183
  {
@@ -211,15 +210,16 @@ const U = (t, o) => (t.install = (s) => {
211
210
  ],
212
211
  38
213
212
  /* CLASS, STYLE, NEED_HYDRATION */
214
- )) : (l(), x(j, {
213
+ )) : (l(), b(j, {
215
214
  key: 1,
216
215
  content: e.value.title,
217
216
  placement: "top",
217
+ "popper-class": "ik-svg-icon-tooltip",
218
218
  "hide-after": 0
219
219
  }, {
220
- default: I(() => [
220
+ default: _(() => [
221
221
  f(
222
- "span",
222
+ "i",
223
223
  {
224
224
  class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
225
225
  [a.name]: n.value === "unocss",
@@ -231,7 +231,8 @@ const U = (t, o) => (t.install = (s) => {
231
231
  primary: a.primary || e.value.type === "primary",
232
232
  success: a.success || e.value.type === "success",
233
233
  error: e.value.error || e.value.type === "error",
234
- active: e.value.active
234
+ active: e.value.active,
235
+ disabled: e.value.disabled
235
236
  }]),
236
237
  style: p(i.value),
237
238
  onClick: r,
@@ -280,11 +281,11 @@ const U = (t, o) => (t.install = (s) => {
280
281
  ],
281
282
  64
282
283
  /* STABLE_FRAGMENT */
283
- )) : (l(), x(N, {
284
+ )) : (l(), b(N, {
284
285
  key: 1,
285
286
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
286
287
  }, {
287
- default: I(() => [
288
+ default: _(() => [
288
289
  T(
289
290
  w(e.value.title),
290
291
  1
@@ -296,12 +297,12 @@ const U = (t, o) => (t.install = (s) => {
296
297
  }, 8, ["type"]));
297
298
  };
298
299
  }
299
- }), Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-c7804024"]]), q = U(Y), R = () => ({
300
+ }), Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-6889f3aa"]]), q = U(Y), R = () => ({
300
301
  getLinearGradient: (o) => {
301
302
  const s = L.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
302
303
  return `linear-gradient(to top, ${o} 4%, rgb(${s[0]},${s[1] + 50},${s[2]}) 88%)`;
303
304
  }
304
- }), A = /* @__PURE__ */ _({
305
+ }), A = /* @__PURE__ */ I({
305
306
  __name: "IkLinearIcon",
306
307
  props: {
307
308
  icon: {
@@ -343,7 +344,7 @@ const U = (t, o) => (t.install = (s) => {
343
344
  /* STYLE */
344
345
  ));
345
346
  }
346
- }), H = /* @__PURE__ */ B(A, [["__scopeId", "data-v-0bc5a180"]]), J = { class: "side-text items-center" }, K = { class: "side-left flex items-center" }, Q = { class: "side-right" }, Z = { class: "text-over-line" }, ee = { class: "text-over-line sub-title" }, te = /* @__PURE__ */ _({
347
+ }), H = /* @__PURE__ */ B(A, [["__scopeId", "data-v-0bc5a180"]]), J = { class: "side-text items-center" }, K = { class: "side-left flex items-center" }, Q = { class: "side-right" }, Z = { class: "text-over-line" }, ee = { class: "text-over-line sub-title" }, te = /* @__PURE__ */ I({
347
348
  __name: "IkSideText",
348
349
  props: {
349
350
  // 名称
@@ -409,7 +410,7 @@ const U = (t, o) => (t.install = (s) => {
409
410
  const d = z("el-avatar");
410
411
  return l(), c("div", J, [
411
412
  f("div", K, [
412
- t.avatarType === "url" ? (l(), x(d, {
413
+ t.avatarType === "url" ? (l(), b(d, {
413
414
  key: 0,
414
415
  style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
415
416
  size: t.size,
@@ -418,8 +419,8 @@ const U = (t, o) => (t.install = (s) => {
418
419
  fit: "contain",
419
420
  onError: v
420
421
  }, {
421
- default: I(() => [
422
- i.value ? b("v-if", !0) : (l(), c(
422
+ default: _(() => [
423
+ i.value ? x("v-if", !0) : (l(), c(
423
424
  $,
424
425
  { key: 0 },
425
426
  [
@@ -435,20 +436,20 @@ const U = (t, o) => (t.install = (s) => {
435
436
  ]),
436
437
  _: 1
437
438
  /* STABLE */
438
- }, 8, ["size", "shape", "src"])) : b("v-if", !0),
439
- t.avatarType === "icon" ? (l(), x(C(q), {
439
+ }, 8, ["size", "shape", "src"])) : x("v-if", !0),
440
+ t.avatarType === "icon" ? (l(), b(C(q), {
440
441
  key: 1,
441
442
  name: `iksvg_${(g = t.avatar) == null ? void 0 : g.replace("iksvg_", "")}`,
442
443
  "show-bg": t.showIconBg,
443
444
  type: t.iconType,
444
445
  style: p({ fontSize: t.showIconBg ? "34px" : "50px" }),
445
446
  size: t.iconSize
446
- }, null, 8, ["name", "show-bg", "type", "style", "size"])) : b("v-if", !0),
447
- t.avatarType === "linearIcon" ? (l(), x(H, {
447
+ }, null, 8, ["name", "show-bg", "type", "style", "size"])) : x("v-if", !0),
448
+ t.avatarType === "linearIcon" ? (l(), b(H, {
448
449
  key: 2,
449
450
  icon: t.avatar,
450
451
  "background-color": t.iconBackgroundColor
451
- }, null, 8, ["icon", "background-color"])) : b("v-if", !0)
452
+ }, null, 8, ["icon", "background-color"])) : x("v-if", !0)
452
453
  ]),
453
454
  f("div", Q, [
454
455
  f(
@@ -1 +1 @@
1
- .row-title[data-v-c7804024]{display:flex}.ik-svg-icon.ik-icon-span[data-v-c7804024]:not(:first-child){margin-left:var(--ik-margin-s-8)}.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-c5366627]{display:flex}.side-text .side-left[data-v-c5366627]{margin-right:12px}.side-text .side-right[data-v-c5366627]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-c5366627]{overflow:hidden;text-overflow:ellipsis;line-height:1}.side-text .side-right p[data-v-c5366627]:first-child{padding-bottom:7px}.side-text .side-right p[data-v-c5366627]:last-child{color:var(--ik-color-font-secondary, #b5b5c3);font-size:13px}
1
+ .row-title[data-v-6889f3aa]{display:flex}.ik-svg-icon.ik-icon-span[data-v-6889f3aa]:not(:first-child){margin-left:var(--ik-margin-s-8)}.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-c5366627]{display:flex}.side-text .side-left[data-v-c5366627]{margin-right:12px}.side-text .side-right[data-v-c5366627]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-c5366627]{overflow:hidden;text-overflow:ellipsis;line-height:1}.side-text .side-right p[data-v-c5366627]:first-child{padding-bottom:7px}.side-text .side-right p[data-v-c5366627]:last-child{color:var(--ik-color-font-secondary, #b5b5c3);font-size:13px}