iking-web-ui-pro 0.3.4 → 0.3.5

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 (40) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +612 -640
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +151 -179
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +274 -302
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCollapseCard/ik.index.es.js +148 -176
  8. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  9. package/dist/IkDescription/ik.index.es.js +1494 -1522
  10. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  11. package/dist/IkDetailPreviewFiles/ik.index.es.js +1462 -1490
  12. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  13. package/dist/IkExpandCollapse/ik.index.es.js +142 -170
  14. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  15. package/dist/IkIconPicker/ik.index.es.js +210 -238
  16. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  17. package/dist/IkMonacoEditor/ik.index.es.js +356 -384
  18. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  19. package/dist/IkPageFull/ik.index.es.js +624 -652
  20. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  21. package/dist/IkPreviewFile/ik.index.es.js +1438 -1466
  22. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPreviewFileDialog/ik.index.es.js +571 -599
  24. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  25. package/dist/IkSchedule/ik.index.es.js +324 -352
  26. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  27. package/dist/IkSideText/ik.index.es.js +163 -191
  28. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSvgIcon/ik.index.es.js +129 -157
  30. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  31. package/dist/IkUploadFile/ik.index.es.js +690 -718
  32. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  33. package/dist/IkUploadImage/ik.index.es.js +353 -381
  34. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  35. package/dist/IkVerticalStepBar/ik.index.es.js +199 -227
  36. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  37. package/dist/iking-web-ui-pro.css +1 -1
  38. package/dist/index.es.js +6833 -6861
  39. package/dist/index.umd.js +1 -1
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- @charset "UTF-8";.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}.ik-image-upload[data-v-f467c552]{display:inline-flex;position:relative}.ik-image-upload.hide-upload[data-v-f467c552] .el-upload{display:none}.ik-image-upload .tip[data-v-f467c552]{position:absolute;bottom:-19px;font-size:14px;color:var(--el-color-info)}.ik-image-upload.preview[data-v-f467c552] .el-upload{display:none}.ik-image-upload[data-v-f467c552] .el-upload--picture-card{--el-fill-color-lighter: var(--ik-page-main-bg);border-color:transparent;border-style:solid;transition:all .3s;width:var(--4e5f919e);height:var(--2767b51c);display:flex;position:var(--17891c86);left:0}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload{--el-upload-dragger-padding-horizontal: 36px;margin:0 8px 8px 0}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload .el-upload-dragger{border:none;background-color:transparent}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload .el-upload-dragger .el-icon{margin-bottom:5px}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload:not(.is-disabled):hover{--el-fill-color-lighter: transparent}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload:not(.is-disabled):hover .upload-btn{color:var(--el-color-primary)}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload:not(.is-disabled):hover .upload-btn i{color:var(--el-color-primary)}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload .upload-btn{display:flex;flex-direction:column;align-items:center;font-size:14px;color:var(--el-text-color-secondary)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card{--el-upload-list-picture-card-size: 106px;flex-direction:row;justify-content:flex-start}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .upload-btn{color:var(--el-text-color-secondary)!important}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card li:first-child{margin-left:var(--7b7a1d22)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card.is-disabled .el-upload--picture-card{opacity:.55;cursor:not-allowed!important;--el-fill-color-lighter: var(--ik-page-main-bg) !important}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card.is-disabled .el-upload--picture-card .el-upload-dragger{pointer-events:none}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card:not(.is-disabled) .el-upload--picture-card:hover{--el-fill-color-lighter: var(--ik-color-font-reverse);--ik-icon-deep-color: var(--ik-color-tag-primary);--ik-icon-shallow-color: var(--ik-icon-shallow-hover-color);border-color:var(--el-color-primary)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item{border:none;background-color:var(--el-bg-color-page);overflow:hidden;width:var(--4e5f919e);height:var(--2767b51c)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item>span{position:absolute;right:-14px;top:-14px;z-index:2;background-color:var(--el-color-error);display:flex;border-radius:22px;width:40px;height:40px;align-items:center;justify-content:center;font-size:11px;color:#fff;font-weight:600;cursor:pointer;transition:opacity .35s}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item>span .ik-svg-icon{position:relative;top:5px;left:-5px;font-size:14px}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item>span:hover{opacity:.8}.ik-image-upload .load-list[data-v-f467c552]{width:var(--4e5f919e);height:var(--2767b51c);overflow:hidden}.ik-image-upload .load-list .loading-statu[data-v-f467c552]{position:absolute;top:0;left:0;color:#fff;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 140px 140px var(--el-overlay-color-lighter) inset;z-index:1;border-radius:6px}.ik-image-upload .load-list .loading-statu svg[data-v-f467c552]{width:26px;height:26px;fill:var(--el-color-primary);animation:rotate-f467c552 2s linear infinite}.ik-image-upload .load-list .operate-btn[data-v-f467c552]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:0;height:0;display:flex;align-items:center;justify-content:center;transition:all .35s;border-radius:4px;overflow:hidden}.ik-image-upload .load-list:hover .operate-btn[data-v-f467c552]{box-shadow:0 0 150px 150px var(--el-overlay-color-lighter) inset;color:#fff;font-size:18px;z-index:1;width:100%;height:100%}.ik-image-upload .load-list:hover .operate-btn i[data-v-f467c552]{cursor:pointer;margin:0 5px}.ik-image-upload .load-list:hover .operate-btn i[data-v-f467c552]:hover{color:var(--el-color-primary)}.ik-image-upload .load-list:hover img[data-v-f467c552],.ik-image-upload .load-list.loading img[data-v-f467c552]{filter:blur(2px)}.ik-image-upload .load-list.loading .loading-statu[data-v-f467c552]{box-shadow:0 0 140px 140px var(--el-overlay-color-lighter) inset}.ik-image-upload .load-list.loading .loading-statu svg[data-v-f467c552]{fill:var(--el-color-primary)}.ik-image-upload .load-list.fail img[data-v-f467c552]{filter:blur(0)}.ik-image-upload .load-list.fail .loading-statu[data-v-f467c552]{box-shadow:0 0 140px 140px var(--ik-error-shadow-bg) inset;line-height:2;color:var(--ik-color-font-reverse);border-radius:6px;background:#f1416d57;border:1px dashed #f1416c;cursor:pointer;transition:all .25s}.ik-image-upload .load-list.fail .loading-statu[data-v-f467c552]:hover{background:#f1416d6b}.ik-image-upload .load-list.fail .loading-statu svg[data-v-f467c552]{animation:none}.ik-image-upload .load-list.fail .loading-statu p[data-v-f467c552]{margin:0;padding:0;line-height:1}.ik-image-upload .load-list.fail .loading-statu .el-button.is-link[data-v-f467c552]{color:var(--ik-color-font-reverse)}.ik-image-upload .load-list.fail .loading-statu .el-button.is-link[data-v-f467c552]:hover{color:var(--color-primary)}@keyframes rotate-f467c552{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ik-image-upload .load-list img[data-v-f467c552]{width:100%;height:100%}
1
+ @charset "UTF-8";.row-title[data-v-2648e369]{display:flex}.ik-svg-icon.ik-icon-span[data-v-2648e369]:not(:first-child){margin-left:var(--ik-margin-s-8)}.ik-image-upload[data-v-f467c552]{display:inline-flex;position:relative}.ik-image-upload.hide-upload[data-v-f467c552] .el-upload{display:none}.ik-image-upload .tip[data-v-f467c552]{position:absolute;bottom:-19px;font-size:14px;color:var(--el-color-info)}.ik-image-upload.preview[data-v-f467c552] .el-upload{display:none}.ik-image-upload[data-v-f467c552] .el-upload--picture-card{--el-fill-color-lighter: var(--ik-page-main-bg);border-color:transparent;border-style:solid;transition:all .3s;width:var(--4e5f919e);height:var(--2767b51c);display:flex;position:var(--17891c86);left:0}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload{--el-upload-dragger-padding-horizontal: 36px;margin:0 8px 8px 0}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload .el-upload-dragger{border:none;background-color:transparent}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload .el-upload-dragger .el-icon{margin-bottom:5px}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload:not(.is-disabled):hover{--el-fill-color-lighter: transparent}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload:not(.is-disabled):hover .upload-btn{color:var(--el-color-primary)}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload:not(.is-disabled):hover .upload-btn i{color:var(--el-color-primary)}.ik-image-upload[data-v-f467c552] .el-upload--picture-card.el-upload .upload-btn{display:flex;flex-direction:column;align-items:center;font-size:14px;color:var(--el-text-color-secondary)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card{--el-upload-list-picture-card-size: 106px;flex-direction:row;justify-content:flex-start}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .upload-btn{color:var(--el-text-color-secondary)!important}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card li:first-child{margin-left:var(--7b7a1d22)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card.is-disabled .el-upload--picture-card{opacity:.55;cursor:not-allowed!important;--el-fill-color-lighter: var(--ik-page-main-bg) !important}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card.is-disabled .el-upload--picture-card .el-upload-dragger{pointer-events:none}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card:not(.is-disabled) .el-upload--picture-card:hover{--el-fill-color-lighter: var(--ik-color-font-reverse);--ik-icon-deep-color: var(--ik-color-tag-primary);--ik-icon-shallow-color: var(--ik-icon-shallow-hover-color);border-color:var(--el-color-primary)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item{border:none;background-color:var(--el-bg-color-page);overflow:hidden;width:var(--4e5f919e);height:var(--2767b51c)}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item>span{position:absolute;right:-14px;top:-14px;z-index:2;background-color:var(--el-color-error);display:flex;border-radius:22px;width:40px;height:40px;align-items:center;justify-content:center;font-size:11px;color:#fff;font-weight:600;cursor:pointer;transition:opacity .35s}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item>span .ik-svg-icon{position:relative;top:5px;left:-5px;font-size:14px}.ik-image-upload[data-v-f467c552] .el-upload-list--picture-card .el-upload-list__item>span:hover{opacity:.8}.ik-image-upload .load-list[data-v-f467c552]{width:var(--4e5f919e);height:var(--2767b51c);overflow:hidden}.ik-image-upload .load-list .loading-statu[data-v-f467c552]{position:absolute;top:0;left:0;color:#fff;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 140px 140px var(--el-overlay-color-lighter) inset;z-index:1;border-radius:6px}.ik-image-upload .load-list .loading-statu svg[data-v-f467c552]{width:26px;height:26px;fill:var(--el-color-primary);animation:rotate-f467c552 2s linear infinite}.ik-image-upload .load-list .operate-btn[data-v-f467c552]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:0;height:0;display:flex;align-items:center;justify-content:center;transition:all .35s;border-radius:4px;overflow:hidden}.ik-image-upload .load-list:hover .operate-btn[data-v-f467c552]{box-shadow:0 0 150px 150px var(--el-overlay-color-lighter) inset;color:#fff;font-size:18px;z-index:1;width:100%;height:100%}.ik-image-upload .load-list:hover .operate-btn i[data-v-f467c552]{cursor:pointer;margin:0 5px}.ik-image-upload .load-list:hover .operate-btn i[data-v-f467c552]:hover{color:var(--el-color-primary)}.ik-image-upload .load-list:hover img[data-v-f467c552],.ik-image-upload .load-list.loading img[data-v-f467c552]{filter:blur(2px)}.ik-image-upload .load-list.loading .loading-statu[data-v-f467c552]{box-shadow:0 0 140px 140px var(--el-overlay-color-lighter) inset}.ik-image-upload .load-list.loading .loading-statu svg[data-v-f467c552]{fill:var(--el-color-primary)}.ik-image-upload .load-list.fail img[data-v-f467c552]{filter:blur(0)}.ik-image-upload .load-list.fail .loading-statu[data-v-f467c552]{box-shadow:0 0 140px 140px var(--ik-error-shadow-bg) inset;line-height:2;color:var(--ik-color-font-reverse);border-radius:6px;background:#f1416d57;border:1px dashed #f1416c;cursor:pointer;transition:all .25s}.ik-image-upload .load-list.fail .loading-statu[data-v-f467c552]:hover{background:#f1416d6b}.ik-image-upload .load-list.fail .loading-statu svg[data-v-f467c552]{animation:none}.ik-image-upload .load-list.fail .loading-statu p[data-v-f467c552]{margin:0;padding:0;line-height:1}.ik-image-upload .load-list.fail .loading-statu .el-button.is-link[data-v-f467c552]{color:var(--ik-color-font-reverse)}.ik-image-upload .load-list.fail .loading-statu .el-button.is-link[data-v-f467c552]:hover{color:var(--color-primary)}@keyframes rotate-f467c552{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ik-image-upload .load-list img[data-v-f467c552]{width:100%;height:100%}
@@ -1,22 +1,22 @@
1
- import { defineComponent as T, computed as b, resolveComponent as F, openBlock as n, createElementBlock as u, Fragment as I, normalizeClass as d, normalizeStyle as p, createElementVNode as f, createBlock as B, withCtx as N, createTextVNode as V, toDisplayString as $, renderList as j, createCommentVNode as x, unref as M } from "vue";
2
- import { ikColor as L } from "iking-utils-pro";
3
- const D = (o, h) => (o.install = (r) => {
4
- for (const e of [o, ...Object.values({})])
5
- r.component(e.name, e);
6
- }, o), E = (o, h) => {
7
- const r = o.__vccOpts || o;
8
- for (const [e, a] of h)
9
- r[e] = a;
10
- return r;
11
- }, q = {
1
+ import { defineComponent as V, computed as g, resolveComponent as F, openBlock as s, createElementBlock as r, normalizeClass as v, normalizeStyle as z, Fragment as w, createElementVNode as d, createBlock as C, withCtx as N, mergeProps as L, createTextVNode as M, toDisplayString as _, renderList as j, createCommentVNode as b, unref as O } from "vue";
2
+ import { ikColor as q } from "iking-utils-pro";
3
+ const D = (n, p) => (n.install = (c) => {
4
+ for (const e of [n, ...Object.values({})])
5
+ c.component(e.name, e);
6
+ }, n), E = (n, p) => {
7
+ const c = n.__vccOpts || n;
8
+ for (const [e, i] of p)
9
+ c[e] = i;
10
+ return c;
11
+ }, W = {
12
12
  key: 1,
13
13
  class: "h-[1em] w-[1em]",
14
14
  "aria-hidden": "true"
15
- }, W = ["xlink:href"], X = ["src"], Y = {
15
+ }, X = ["xlink:href"], Y = ["src"], A = {
16
16
  key: 1,
17
17
  class: "h-[1em] w-[1em]",
18
18
  "aria-hidden": "true"
19
- }, A = ["xlink:href"], G = ["src"], H = /* @__PURE__ */ T({
19
+ }, P = ["xlink:href"], G = ["src"], H = /* @__PURE__ */ V({
20
20
  name: "IkSvgIcon",
21
21
  __name: "index",
22
22
  props: {
@@ -44,199 +44,171 @@ const D = (o, h) => (o.install = (r) => {
44
44
  iconClass: { default: "" }
45
45
  },
46
46
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
47
- setup(o, { emit: h }) {
48
- const r = o, e = b(() => r), a = b(() => {
49
- const { name: l } = e.value;
50
- return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
51
- }), v = b(() => {
52
- const l = [];
47
+ setup(n, { emit: p }) {
48
+ const c = n, e = g(() => c), i = g(() => {
49
+ const { name: t } = e.value;
50
+ return /^http?:\/\//.test(t) ? "img" : /i-[^:]+:[^:]+/.test(t) ? "unocss" : t != null && t.startsWith("iksig") ? "iksig" : t != null && t.includes(":") ? "iconify" : t != null && t.startsWith("iksvg") ? "svg" : "i";
51
+ }), m = g(() => {
52
+ const t = [];
53
53
  if (e.value.flip)
54
54
  switch (e.value.flip) {
55
55
  case "horizontal":
56
- l.push("rotateY(180deg)");
56
+ t.push("rotateY(180deg)");
57
57
  break;
58
58
  case "vertical":
59
- l.push("rotateX(180deg)");
59
+ t.push("rotateX(180deg)");
60
60
  break;
61
61
  case "both":
62
- l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
62
+ t.push("rotateX(180deg)"), t.push("rotateY(180deg)");
63
63
  break;
64
64
  }
65
- e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
66
- const i = {
67
- pointerEvents: e.value.disabled ? "none" : "auto",
65
+ e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
66
+ const o = {
68
67
  ...e.value.color && { color: e.value.color },
69
68
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
70
- ...l.length && { transform: l.join(" ") },
69
+ ...t.length && { transform: t.join(" ") },
71
70
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
72
- ...e.value.color && a.value !== "iksig" ? {
71
+ ...e.value.color && i.value !== "iksig" ? {
73
72
  "--ik-icon-deep-color": e.value.color,
74
- "--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
73
+ "--ik-icon-shallow-color": e.value.colorLight || q.setOpacity(e.value.color, e.value.opacity)
75
74
  } : {}
76
75
  };
77
- return e.value.width && (i.width = i.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), i;
78
- }), m = h, w = (l) => {
79
- m("click", l);
80
- }, _ = (l) => {
81
- m("mouseenter", l);
82
- }, C = (l) => {
83
- m("mouseleave", l);
84
- }, k = (l) => {
85
- m("dblclick", l);
76
+ return e.value.width && (o.width = o.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), o;
77
+ }), f = p, x = (t) => {
78
+ f("click", t);
79
+ }, $ = (t) => {
80
+ f("mouseenter", t);
81
+ }, B = (t) => {
82
+ f("mouseleave", t);
83
+ }, y = (t) => {
84
+ f("dblclick", t);
86
85
  };
87
- return (l, i) => {
88
- const s = F("el-tooltip"), t = F("el-button");
89
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (n(), u(
90
- I,
91
- { key: 0 },
86
+ return (t, o) => {
87
+ const a = F("el-tooltip"), l = F("el-button");
88
+ return s(), r(
89
+ "i",
90
+ {
91
+ class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
92
+ [t.iconClass]: !0,
93
+ [t.name]: i.value === "unocss",
94
+ "show-bg": e.value.showBg || e.value.bg,
95
+ default: e.value.size === "default",
96
+ small: e.value.size === "small",
97
+ big: e.value.size === "big",
98
+ warning: e.value.warning || e.value.type === "warning",
99
+ primary: e.value.primary || e.value.type === "primary",
100
+ success: t.success || e.value.type === "success",
101
+ error: e.value.error || e.value.type === "error",
102
+ active: e.value.active,
103
+ disabled: e.value.disabled
104
+ }]),
105
+ style: z(m.value),
106
+ onClick: x,
107
+ onDblclick: y,
108
+ onMouseenter: $,
109
+ onMouseleave: B
110
+ },
92
111
  [
93
- e.value.notip || !e.value.title ? (n(), u(
94
- "i",
95
- {
96
- key: 0,
97
- class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
98
- [l.iconClass]: !0,
99
- [l.name]: a.value === "unocss",
100
- "show-bg": e.value.showBg || e.value.bg,
101
- default: e.value.size === "default",
102
- small: e.value.size === "small",
103
- big: e.value.size === "big",
104
- warning: e.value.warning || e.value.type === "warning",
105
- primary: e.value.primary || e.value.type === "primary",
106
- success: l.success || e.value.type === "success",
107
- error: e.value.error || e.value.type === "error",
108
- active: e.value.active,
109
- disabled: e.value.disabled
110
- }]),
111
- style: p(v.value),
112
- onClick: w,
113
- onDblclick: k,
114
- onMouseenter: _,
115
- onMouseleave: C
116
- },
112
+ e.value.tableIconType === "icon" || !e.value.tableIconType ? (s(), r(
113
+ w,
114
+ { key: 0 },
117
115
  [
118
- a.value === "iksig" ? (n(), u(
119
- "i",
120
- {
121
- key: 0,
122
- class: d(`iksig ${e.value.name}`),
123
- style: p(v.value)
124
- },
125
- null,
126
- 6
127
- /* CLASS, STYLE */
128
- )) : a.value === "svg" ? (n(), u("svg", q, [
129
- f("use", {
130
- "xlink:href": `#${e.value.name}`
131
- }, null, 8, W)
132
- ])) : a.value === "img" ? (n(), u("img", {
133
- key: 2,
134
- src: e.value.name,
135
- class: "h-[1em] w-[1em]"
136
- }, null, 8, X)) : (n(), u(
137
- "i",
138
- {
139
- key: 3,
140
- class: d(e.value.name),
141
- style: p(v.value)
142
- },
143
- null,
144
- 6
145
- /* CLASS, STYLE */
146
- ))
147
- ],
148
- 38
149
- /* CLASS, STYLE, NEED_HYDRATION */
150
- )) : (n(), B(s, {
151
- key: 1,
152
- content: e.value.title,
153
- placement: "top",
154
- "popper-class": "ik-svg-icon-tooltip",
155
- "hide-after": 0
156
- }, {
157
- default: N(() => [
158
- f(
159
- "i",
160
- {
161
- class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
162
- [l.iconClass]: !0,
163
- [l.name]: a.value === "unocss",
164
- "show-bg": e.value.showBg || e.value.bg,
165
- default: e.value.size === "default",
166
- small: e.value.size === "small",
167
- big: e.value.size === "big",
168
- warning: e.value.warning || e.value.type === "warning",
169
- primary: l.primary || e.value.type === "primary",
170
- success: l.success || e.value.type === "success",
171
- error: e.value.error || e.value.type === "error",
172
- active: e.value.active,
173
- disabled: e.value.disabled,
174
- ...l.$attrs.class || {}
175
- }]),
176
- style: p(v.value),
177
- onClick: w,
178
- onDblclick: k,
179
- onMouseenter: _,
180
- onMouseleave: C
181
- },
116
+ e.value.notip || !e.value.title ? (s(), r(
117
+ w,
118
+ { key: 0 },
182
119
  [
183
- a.value === "iksig" ? (n(), u(
120
+ i.value === "iksig" ? (s(), r(
184
121
  "i",
185
122
  {
186
123
  key: 0,
187
- class: d(`iksig ${e.value.name}`),
188
- style: p(v.value)
124
+ class: v(`iksig ${e.value.name}`)
189
125
  },
190
126
  null,
191
- 6
192
- /* CLASS, STYLE */
193
- )) : a.value === "svg" ? (n(), u("svg", Y, [
194
- f("use", {
127
+ 2
128
+ /* CLASS */
129
+ )) : i.value === "svg" ? (s(), r("svg", W, [
130
+ d("use", {
195
131
  "xlink:href": `#${e.value.name}`
196
- }, null, 8, A)
197
- ])) : a.value === "img" ? (n(), u("img", {
132
+ }, null, 8, X)
133
+ ])) : i.value === "img" ? (s(), r("img", {
198
134
  key: 2,
199
135
  src: e.value.name,
200
136
  class: "h-[1em] w-[1em]"
201
- }, null, 8, G)) : (n(), u(
137
+ }, null, 8, Y)) : (s(), r(
202
138
  "i",
203
139
  {
204
140
  key: 3,
205
- class: d(e.value.name),
206
- style: p(v.value)
141
+ class: v(e.value.name)
207
142
  },
208
143
  null,
209
- 6
210
- /* CLASS, STYLE */
144
+ 2
145
+ /* CLASS */
211
146
  ))
212
147
  ],
213
- 38
214
- /* CLASS, STYLE, NEED_HYDRATION */
148
+ 64
149
+ /* STABLE_FRAGMENT */
150
+ )) : (s(), C(a, {
151
+ key: 1,
152
+ content: e.value.title,
153
+ placement: "top",
154
+ "popper-class": "ik-svg-icon-tooltip",
155
+ "hide-after": 0
156
+ }, {
157
+ default: N(() => [
158
+ i.value === "iksig" ? (s(), r(
159
+ "i",
160
+ {
161
+ key: 0,
162
+ class: v(`iksig ${e.value.name}`)
163
+ },
164
+ null,
165
+ 2
166
+ /* CLASS */
167
+ )) : i.value === "svg" ? (s(), r("svg", A, [
168
+ d("use", {
169
+ "xlink:href": `#${e.value.name}`
170
+ }, null, 8, P)
171
+ ])) : i.value === "img" ? (s(), r("img", {
172
+ key: 2,
173
+ src: e.value.name,
174
+ class: "h-[1em] w-[1em]"
175
+ }, null, 8, G)) : (s(), r(
176
+ "i",
177
+ {
178
+ key: 3,
179
+ class: v(e.value.name)
180
+ },
181
+ null,
182
+ 2
183
+ /* CLASS */
184
+ ))
185
+ ]),
186
+ _: 1
187
+ /* STABLE */
188
+ }, 8, ["content"]))
189
+ ],
190
+ 64
191
+ /* STABLE_FRAGMENT */
192
+ )) : (s(), C(l, L({ key: 1 }, t.$attrs, {
193
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
194
+ }), {
195
+ default: N(() => [
196
+ M(
197
+ _(e.value.title),
198
+ 1
199
+ /* TEXT */
215
200
  )
216
201
  ]),
217
202
  _: 1
218
203
  /* STABLE */
219
- }, 8, ["content"]))
204
+ }, 16, ["type"]))
220
205
  ],
221
- 64
222
- /* STABLE_FRAGMENT */
223
- )) : (n(), B(t, {
224
- key: 1,
225
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
226
- }, {
227
- default: N(() => [
228
- V(
229
- $(e.value.title),
230
- 1
231
- /* TEXT */
232
- )
233
- ]),
234
- _: 1
235
- /* STABLE */
236
- }, 8, ["type"]));
206
+ 38
207
+ /* CLASS, STYLE, NEED_HYDRATION */
208
+ );
237
209
  };
238
210
  }
239
- }), J = /* @__PURE__ */ E(H, [["__scopeId", "data-v-64b61696"]]), O = D(J), K = { class: "content" }, P = { class: "top" }, Q = ["onClick"], R = ["id"], U = ["onClick"], Z = /* @__PURE__ */ T({
211
+ }), J = /* @__PURE__ */ E(H, [["__scopeId", "data-v-2648e369"]]), T = D(J), K = { class: "content" }, Q = { class: "top" }, R = ["onClick"], U = ["id"], Z = ["onClick"], ee = /* @__PURE__ */ V({
240
212
  __name: "IkVerticalStepBar",
241
213
  props: {
242
214
  // 当前激活的下标
@@ -264,104 +236,104 @@ const D = (o, h) => (o.install = (r) => {
264
236
  }
265
237
  },
266
238
  emits: ["click", "update:active"],
267
- setup(o, { emit: h }) {
268
- const r = o, e = h, a = b(() => Number(
269
- r.active.indexOf("-") > 0 ? r.active.split("-")[0] : r.active
270
- )), v = b(() => r.active.indexOf("-") > 0 ? Number(r.active.split("-")[1]) : 0), m = (i) => {
271
- let s = "", t = i + 1;
272
- return t < a.value ? s = "before-bg" : t === a.value ? s = "active-bg" : t > a.value && (s = "after-bg"), `${s} index`;
273
- }, w = (i) => {
274
- let s = "", t = i + 1;
275
- return t < a.value ? s = "before-text" : t === a.value ? s = "active-text" : t > a.value && (s = "after-text"), `${s} text`;
276
- }, _ = (i) => {
277
- let s = "", t = i + 1;
278
- return t < a.value ? s = "before-style" : t < r.list.length && (s = "after-style"), `${s} bottom`;
279
- }, C = (i, s) => {
280
- let t = "", c = i + 1, g = s + 1;
281
- 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`;
282
- }, k = (i, s) => {
283
- r.needClick && (i[r.propsField.children] || (e("update:active", s + ""), e("click", i)));
284
- }, l = (i, s) => {
285
- i.show = !i.show;
286
- let t = document.getElementById(`children${s}`);
287
- i.show ? t.style.display = "none" : t.style.display = "block";
239
+ setup(n, { emit: p }) {
240
+ const c = n, e = p, i = g(() => Number(
241
+ c.active.indexOf("-") > 0 ? c.active.split("-")[0] : c.active
242
+ )), m = g(() => c.active.indexOf("-") > 0 ? Number(c.active.split("-")[1]) : 0), f = (o) => {
243
+ let a = "", l = o + 1;
244
+ return l < i.value ? a = "before-bg" : l === i.value ? a = "active-bg" : l > i.value && (a = "after-bg"), `${a} index`;
245
+ }, x = (o) => {
246
+ let a = "", l = o + 1;
247
+ return l < i.value ? a = "before-text" : l === i.value ? a = "active-text" : l > i.value && (a = "after-text"), `${a} text`;
248
+ }, $ = (o) => {
249
+ let a = "", l = o + 1;
250
+ return l < i.value ? a = "before-style" : l < c.list.length && (a = "after-style"), `${a} bottom`;
251
+ }, B = (o, a) => {
252
+ let l = "", u = o + 1, h = a + 1;
253
+ return u < i.value ? l = "before-text" : u === i.value ? h < m.value ? l = "before-text" : h === m.value ? l = "active-text" : h > m.value && (l = "after-text") : u > i.value && (l = "after-text"), `${l} child-text`;
254
+ }, y = (o, a) => {
255
+ c.needClick && (o[c.propsField.children] || (e("update:active", a + ""), e("click", o)));
256
+ }, t = (o, a) => {
257
+ o.show = !o.show;
258
+ let l = document.getElementById(`children${a}`);
259
+ o.show ? l.style.display = "none" : l.style.display = "block";
288
260
  };
289
- return (i, s) => (n(), u("div", K, [
290
- (n(!0), u(
291
- I,
261
+ return (o, a) => (s(), r("div", K, [
262
+ (s(!0), r(
263
+ w,
292
264
  null,
293
- j(o.list, (t, c) => {
294
- var g, S;
295
- return n(), u("div", {
265
+ j(n.list, (l, u) => {
266
+ var h, S;
267
+ return s(), r("div", {
296
268
  class: "line-block",
297
- key: c
269
+ key: u
298
270
  }, [
299
- f("div", P, [
300
- f(
271
+ d("div", Q, [
272
+ d(
301
273
  "div",
302
274
  {
303
- class: d(m(c))
275
+ class: v(f(u))
304
276
  },
305
- $(c + 1),
277
+ _(u + 1),
306
278
  3
307
279
  /* TEXT, CLASS */
308
280
  ),
309
- f("div", {
310
- class: d(w(c)),
311
- style: p(o.needClick ? "cursor: pointer;" : ""),
312
- onClick: (y) => k(t, c + 1)
281
+ d("div", {
282
+ class: v(x(u)),
283
+ style: z(n.needClick ? "cursor: pointer;" : ""),
284
+ onClick: (k) => y(l, u + 1)
313
285
  }, [
314
- V(
315
- $(t[o.propsField.name]) + " ",
286
+ M(
287
+ _(l[n.propsField.name]) + " ",
316
288
  1
317
289
  /* TEXT */
318
290
  ),
319
- x(` <i\r
291
+ b(` <i\r
320
292
  v-if="item[propsField.children]?.length && !item.show"\r
321
293
  class="ikapprove icon-a-putongjiantouzhankai"\r
322
294
  @click="changeShow(item, index)"\r
323
295
  ></i> `),
324
- (g = t[o.propsField.children]) != null && g.length && !t.show ? (n(), B(M(O), {
296
+ (h = l[n.propsField.children]) != null && h.length && !l.show ? (s(), C(O(T), {
325
297
  key: 0,
326
298
  class: "ikapprove",
327
- onClick: (y) => l(t, c),
299
+ onClick: (k) => t(l, u),
328
300
  name: "iksvg_zhankai"
329
- }, null, 8, ["onClick"])) : x("v-if", !0),
330
- x(` <i\r
301
+ }, null, 8, ["onClick"])) : b("v-if", !0),
302
+ b(` <i\r
331
303
  v-if="item[propsField.children]?.length && item.show"\r
332
304
  @click="changeShow(item, index)"\r
333
305
  class="ikapprove icon-a-putongjiantoushouqi"\r
334
306
  ></i> `),
335
- (S = t[o.propsField.children]) != null && S.length && t.show ? (n(), B(M(O), {
307
+ (S = l[n.propsField.children]) != null && S.length && l.show ? (s(), C(O(T), {
336
308
  key: 1,
337
309
  class: "ikapprove",
338
- onClick: (y) => l(t, c),
310
+ onClick: (k) => t(l, u),
339
311
  name: "iksvg_shouqi"
340
- }, null, 8, ["onClick"])) : x("v-if", !0)
341
- ], 14, Q)
312
+ }, null, 8, ["onClick"])) : b("v-if", !0)
313
+ ], 14, R)
342
314
  ]),
343
- f(
315
+ d(
344
316
  "ul",
345
317
  {
346
- class: d(_(c))
318
+ class: v($(u))
347
319
  },
348
320
  [
349
- f("div", {
350
- id: `children${c}`
321
+ d("div", {
322
+ id: `children${u}`
351
323
  }, [
352
- (n(!0), u(
353
- I,
324
+ (s(!0), r(
325
+ w,
354
326
  null,
355
- j(t[o.propsField.children], (y, z) => (n(), u("li", {
356
- class: d(C(c, z)),
357
- style: p(o.needClick ? "cursor: pointer;" : ""),
358
- key: z,
359
- onClick: (le) => k(y, c + 1 + "-" + (z + 1))
360
- }, $(y.name), 15, U))),
327
+ j(l[n.propsField.children], (k, I) => (s(), r("li", {
328
+ class: v(B(u, I)),
329
+ style: z(n.needClick ? "cursor: pointer;" : ""),
330
+ key: I,
331
+ onClick: (le) => y(k, u + 1 + "-" + (I + 1))
332
+ }, _(k.name), 15, Z))),
361
333
  128
362
334
  /* KEYED_FRAGMENT */
363
335
  ))
364
- ], 8, R)
336
+ ], 8, U)
365
337
  ],
366
338
  2
367
339
  /* CLASS */
@@ -373,8 +345,8 @@ const D = (o, h) => (o.install = (r) => {
373
345
  ))
374
346
  ]));
375
347
  }
376
- }), ee = /* @__PURE__ */ E(Z, [["__scopeId", "data-v-bce57528"]]), se = D(ee);
348
+ }), te = /* @__PURE__ */ E(ee, [["__scopeId", "data-v-bce57528"]]), oe = D(te);
377
349
  export {
378
- se as IkVerticalStepBar,
379
- se as default
350
+ oe as IkVerticalStepBar,
351
+ oe as default
380
352
  };
@@ -1 +1 @@
1
- .row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}[data-v-bce57528]{margin:0;padding:0}.content[data-v-bce57528]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-bce57528]{display:flex}.content .line-block .top .index[data-v-bce57528]{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-bce57528]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-bce57528]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-bce57528]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-bce57528]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-bce57528]{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-bce57528]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-bce57528]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-bce57528]{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-bce57528]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-bce57528]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-bce57528]{line-height:30px}.content .line-block .child-text[data-v-bce57528]{padding:5px 0}
1
+ .row-title[data-v-2648e369]{display:flex}.ik-svg-icon.ik-icon-span[data-v-2648e369]:not(:first-child){margin-left:var(--ik-margin-s-8)}[data-v-bce57528]{margin:0;padding:0}.content[data-v-bce57528]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-bce57528]{display:flex}.content .line-block .top .index[data-v-bce57528]{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-bce57528]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-bce57528]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-bce57528]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-bce57528]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-bce57528]{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-bce57528]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-bce57528]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-bce57528]{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-bce57528]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-bce57528]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-bce57528]{line-height:30px}.content .line-block .child-text[data-v-bce57528]{padding:5px 0}