iking-web-ui-pro 0.2.55 → 0.2.56
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.
- package/dist/IKHorizontalStepBar/ik.index.es.js +93 -93
- package/dist/IKHorizontalStepBar/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +1068 -986
- package/dist/IKPreviewFile/ik.index.umd.js +50 -50
- package/dist/IKSearch/ik.index.es.js +1058 -1058
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +852 -852
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -0
- package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +1396 -1314
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +226 -0
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/style.css +1 -1
- package/dist/IkBottomOperate/ik.index.es.js +59 -59
- package/dist/IkBottomOperate/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +110 -110
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +2372 -2355
- package/dist/IkCalendar/ik.index.umd.js +1 -0
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +2021 -1939
- package/dist/IkDescription/ik.index.umd.js +49 -49
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1336 -1254
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +50 -50
- package/dist/IkFileIcon/ik.index.es.js +394 -394
- package/dist/IkFileIcon/ik.index.umd.js +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +601 -584
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkImageUploadEditor/ik.index.es.js +12343 -49
- package/dist/IkImageUploadEditor/ik.index.umd.js +37 -1
- package/dist/IkImageUploadEditor/style.css +9 -0
- package/dist/IkMonacoEditor/ik.index.es.js +27 -27
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkPageFull/ik.index.es.js +1466 -1466
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPickerUser/ik.index.es.js +839 -839
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPlayer/ik.index.es.js +1062 -981
- package/dist/IkPlayer/ik.index.umd.js +52 -52
- package/dist/IkPreviewFileDialog/ik.index.es.js +794 -712
- package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
- package/dist/IkSchedule/ik.index.es.js +1552 -1535
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +108 -108
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +26652 -27107
- package/dist/IkTinymce/ik.index.umd.js +61 -61
- package/dist/IkUploadFile/ik.index.es.js +1323 -1241
- package/dist/IkUploadFile/ik.index.umd.js +50 -50
- package/dist/IkUploadImage/ik.index.es.js +313 -313
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/index.es.js +63473 -51975
- package/dist/index.umd.js +184 -148
- package/dist/src/components/IKExpandCollapse/index.d.ts +5 -5
- package/dist/src/components/IKExpandCollapse/src/IKExpandCollapse.vue.d.ts +5 -5
- package/dist/src/components/IKHorizontalStepBar/index.d.ts +30 -90
- package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +7 -7
- package/dist/src/components/IKPreviewFile/index.d.ts +13 -105
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +7 -7
- package/dist/src/components/IKSearch/index.d.ts +24 -84
- package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +10 -10
- package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +5 -5
- package/dist/src/components/IKSearchHead/index.d.ts +5 -5
- package/dist/src/components/IKSearchHead/src/IKSearchHead.vue.d.ts +5 -5
- package/dist/src/components/IKVerticalStepBar/index.d.ts +5 -5
- package/dist/src/components/IKVerticalStepBar/src/IKVerticalStepBar.vue.d.ts +5 -5
- package/dist/src/components/IkApprovalProcess/index.d.ts +7 -7
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +7 -7
- package/dist/src/components/IkApprovalProcessDetail/index.d.ts +5 -5
- package/dist/src/components/IkApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +5 -5
- package/dist/src/components/IkAutoCard/index.d.ts +6 -12
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/index.d.ts +6 -35
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +4 -4
- package/dist/src/components/IkBottomOperate/index.d.ts +15 -43
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
- package/dist/src/components/IkBtnContent/index.d.ts +7 -5
- package/dist/src/components/IkBtnContent/src/index.d.ts +7 -5
- package/dist/src/components/IkBtnSetting/index.d.ts +5 -5
- package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +5 -5
- package/dist/src/components/IkCalendar/index.d.ts +5 -5
- package/dist/src/components/IkCalendar/src/IKCalendar.vue.d.ts +5 -5
- package/dist/src/components/IkCollapseCard/index.d.ts +6 -12
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkCurrencyInput/index.d.ts +5 -5
- package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +5 -5
- package/dist/src/components/IkDescription/index.d.ts +6 -39
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +4 -4
- package/dist/src/components/IkDetailPreviewFiles/index.d.ts +4 -4
- package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +4 -4
- package/dist/src/components/IkDragList/index.d.ts +13 -130
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
- package/dist/src/components/IkEmpty/index.d.ts +6 -19
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkFileIcon/index.d.ts +4 -4
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
- package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
- package/dist/src/components/IkIconPicker/index.d.ts +4 -4
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkImageEditor/index.d.ts +1 -1
- package/dist/src/components/IkImageUploadEditor/index.d.ts +8 -8
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +8 -8
- package/dist/src/components/IkMonacoEditor/index.d.ts +167 -10
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +167 -10
- package/dist/src/components/IkOnlyOffice/index.d.ts +4 -4
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +4 -4
- package/dist/src/components/IkPageFull/index.d.ts +54 -143
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +369 -5
- package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +5 -5
- package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +5 -5
- package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +8 -8
- package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +6 -6
- package/dist/src/components/IkPageFull/src/index.vue.d.ts +20 -14
- package/dist/src/components/IkPageTabs/index.d.ts +13 -38
- package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/index.d.ts +10 -10
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +4 -4
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +10 -10
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
- package/dist/src/components/IkPlayer/index.d.ts +10 -26
- package/dist/src/components/IkPlayer/src/Player.vue.d.ts +5 -5
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +4 -4
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +4 -4
- package/dist/src/components/IkPrintConfig/index.d.ts +5 -5
- package/dist/src/components/IkPrintView/index.d.ts +5 -5
- package/dist/src/components/IkRadioGroup/index.d.ts +4 -4
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkSchedule/index.d.ts +17 -48
- package/dist/src/components/IkSelectTag/index.d.ts +10 -25
- package/dist/src/components/IkSelectTag/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +4 -4
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +4 -4
- package/dist/src/components/IkSideText/index.d.ts +4 -4
- package/dist/src/components/IkStatu/index.d.ts +5 -5
- package/dist/src/components/IkStatu/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkStatuOver/index.d.ts +5 -5
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -12
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +6 -6
- package/dist/src/components/IkTinymce/index.d.ts +5 -5
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkTooltip/index.d.ts +6 -19
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTree/IkTree.vue.d.ts +807 -127
- package/dist/src/components/IkTree/index.d.ts +2630 -611
- package/dist/src/components/IkUploadFile/index.d.ts +14 -135
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
- package/dist/src/components/IkUploadImage/index.d.ts +10 -79
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +4 -4
- package/dist/src/components/Provider/index.d.ts +6 -27
- package/dist/style.css +9 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcess/ik.index.umd.js +0 -1
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +0 -226
- package/dist/IKCalendar/ik.index.umd.js +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as d, createElementBlock as v, createElementVNode as u, ref as g, watch as
|
|
2
|
-
const
|
|
3
|
-
if (
|
|
4
|
-
for (const r of [
|
|
5
|
-
|
|
1
|
+
import { defineComponent as B, openBlock as d, createElementBlock as v, createElementVNode as u, ref as g, watch as b, nextTick as z, onMounted as R, resolveComponent as O, createVNode as C, withCtx as _, unref as W, createCommentVNode as k, normalizeStyle as m, Fragment as j, renderList as F, normalizeClass as p, renderSlot as V, createTextVNode as A, toDisplayString as L } from "vue";
|
|
2
|
+
const K = (t, s) => {
|
|
3
|
+
if (t.install = (c) => {
|
|
4
|
+
for (const r of [t, ...Object.values(s ?? {})])
|
|
5
|
+
c.component(r.name, r);
|
|
6
6
|
}, s)
|
|
7
|
-
for (const [
|
|
8
|
-
|
|
9
|
-
return
|
|
7
|
+
for (const [c, r] of Object.entries(s))
|
|
8
|
+
t[c] = r;
|
|
9
|
+
return t;
|
|
10
10
|
};
|
|
11
11
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
12
|
-
var
|
|
12
|
+
var q = /* @__PURE__ */ B({
|
|
13
13
|
name: "ArrowLeft",
|
|
14
14
|
__name: "arrow-left",
|
|
15
|
-
setup(
|
|
16
|
-
return (s,
|
|
15
|
+
setup(t) {
|
|
16
|
+
return (s, c) => (d(), v("svg", {
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
18
|
viewBox: "0 0 1024 1024"
|
|
19
19
|
}, [
|
|
@@ -23,11 +23,11 @@ var J = /* @__PURE__ */ B({
|
|
|
23
23
|
})
|
|
24
24
|
]));
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), G = q, J = /* @__PURE__ */ B({
|
|
27
27
|
name: "ArrowRight",
|
|
28
28
|
__name: "arrow-right",
|
|
29
|
-
setup(
|
|
30
|
-
return (s,
|
|
29
|
+
setup(t) {
|
|
30
|
+
return (s, c) => (d(), v("svg", {
|
|
31
31
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
32
|
viewBox: "0 0 1024 1024"
|
|
33
33
|
}, [
|
|
@@ -37,16 +37,8 @@ var J = /* @__PURE__ */ B({
|
|
|
37
37
|
})
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
41
|
-
const
|
|
42
|
-
"i",
|
|
43
|
-
{ class: "ik-hor-step_line_inner" },
|
|
44
|
-
null,
|
|
45
|
-
-1
|
|
46
|
-
/* HOISTED */
|
|
47
|
-
)), D = [
|
|
48
|
-
Z
|
|
49
|
-
], x = ["onClick"], ee = { class: "ik-hor-step_main" }, te = ["id", "onClick"], le = ["id", "onClick"], ne = /* @__PURE__ */ B({
|
|
40
|
+
}), P = J;
|
|
41
|
+
const Q = { class: "ik-hor-step-content" }, U = ["onClick"], X = { class: "ik-hor-step_main" }, Y = ["id", "onClick"], Z = ["id", "onClick"], D = /* @__PURE__ */ B({
|
|
50
42
|
__name: "IKHorizontalStepBar",
|
|
51
43
|
props: {
|
|
52
44
|
spaceNum: {
|
|
@@ -89,49 +81,49 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
89
81
|
}
|
|
90
82
|
},
|
|
91
83
|
emits: ["click", "update:active"],
|
|
92
|
-
setup(
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
() =>
|
|
84
|
+
setup(t, { emit: s }) {
|
|
85
|
+
const c = t, r = s, i = g(!1), I = g(), y = g(), f = g(!1);
|
|
86
|
+
b(
|
|
87
|
+
() => c.active,
|
|
96
88
|
(n) => {
|
|
97
|
-
let
|
|
98
|
-
const l = o &&
|
|
99
|
-
|
|
89
|
+
let e = document.getElementById("stepItemContent"), o = document.getElementById(`stepItem${n}`), a = document.getElementById("stepItem0");
|
|
90
|
+
const l = o && a ? (o == null ? void 0 : o.offsetLeft) - (a == null ? void 0 : a.offsetLeft) : 0;
|
|
91
|
+
e && o && (e.scrollLeft = l > (e == null ? void 0 : e.clientWidth) ? l - (e == null ? void 0 : e.offsetLeft) : 0);
|
|
100
92
|
}
|
|
101
|
-
),
|
|
102
|
-
() =>
|
|
93
|
+
), b(
|
|
94
|
+
() => c.list,
|
|
103
95
|
() => {
|
|
104
|
-
|
|
105
|
-
let
|
|
96
|
+
z(() => {
|
|
97
|
+
let e = document.getElementById("stepItemContent"), o = (e == null ? void 0 : e.scrollWidth) > (e == null ? void 0 : e.clientWidth);
|
|
106
98
|
i.value = o, window.addEventListener("resize", n, !0);
|
|
107
99
|
});
|
|
108
100
|
const n = () => {
|
|
109
|
-
let
|
|
101
|
+
let e = document.getElementById("stepItemContent"), o = (e == null ? void 0 : e.scrollWidth) > (e == null ? void 0 : e.clientWidth);
|
|
110
102
|
i.value = o;
|
|
111
103
|
};
|
|
112
104
|
},
|
|
113
105
|
{ deep: !0 }
|
|
114
106
|
), R(() => {
|
|
115
|
-
|
|
116
|
-
let
|
|
107
|
+
z(() => {
|
|
108
|
+
let e = document.getElementById("stepItemContent"), o = (e == null ? void 0 : e.scrollWidth) > (e == null ? void 0 : e.clientWidth);
|
|
117
109
|
i.value = o, window.addEventListener("resize", n, !0);
|
|
118
110
|
});
|
|
119
111
|
const n = () => {
|
|
120
|
-
let
|
|
112
|
+
let e = document.getElementById("stepItemContent"), o = (e == null ? void 0 : e.scrollWidth) > (e == null ? void 0 : e.clientWidth);
|
|
121
113
|
i.value = o;
|
|
122
114
|
};
|
|
123
115
|
});
|
|
124
|
-
const w = (n,
|
|
125
|
-
if (!
|
|
116
|
+
const w = (n, e) => {
|
|
117
|
+
if (!c.needClick)
|
|
126
118
|
return;
|
|
127
|
-
r("update:active",
|
|
128
|
-
let o = document.getElementById("stepItemContent"),
|
|
129
|
-
const h =
|
|
130
|
-
o &&
|
|
131
|
-
},
|
|
119
|
+
r("update:active", e), r("click", n);
|
|
120
|
+
let o = document.getElementById("stepItemContent"), a = document.getElementById(`stepItem${e}`), l = document.getElementById("stepItem0");
|
|
121
|
+
const h = a && l ? (a == null ? void 0 : a.offsetLeft) - (l == null ? void 0 : l.offsetLeft) : 0;
|
|
122
|
+
o && a && (o.scrollLeft = h > (o == null ? void 0 : o.clientWidth) ? h - (o == null ? void 0 : o.offsetLeft) : 0);
|
|
123
|
+
}, E = () => {
|
|
132
124
|
let n = document.getElementById("stepItemContent");
|
|
133
125
|
n && (n.scrollLeft = n.scrollLeft - 20);
|
|
134
|
-
},
|
|
126
|
+
}, $ = () => {
|
|
135
127
|
let n = document.getElementById("stepItemContent");
|
|
136
128
|
n && (n.scrollLeft = n.scrollLeft + 20);
|
|
137
129
|
}, N = () => {
|
|
@@ -141,7 +133,7 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
141
133
|
f.value = !0, n && (n.scrollLeft = n.scrollLeft - 20);
|
|
142
134
|
}, 100);
|
|
143
135
|
}, T = () => {
|
|
144
|
-
clearInterval(y.value), f.value ||
|
|
136
|
+
clearInterval(y.value), f.value || E();
|
|
145
137
|
}, H = () => {
|
|
146
138
|
clearInterval(I.value);
|
|
147
139
|
let n = document.getElementById("stepItemContent");
|
|
@@ -149,11 +141,11 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
149
141
|
f.value = !0, n && (n.scrollLeft = n.scrollLeft + 20);
|
|
150
142
|
}, 100);
|
|
151
143
|
}, M = () => {
|
|
152
|
-
clearInterval(I.value), f.value ||
|
|
144
|
+
clearInterval(I.value), f.value || $();
|
|
153
145
|
};
|
|
154
|
-
return (n,
|
|
146
|
+
return (n, e) => {
|
|
155
147
|
const o = O("el-icon");
|
|
156
|
-
return d(), v("div",
|
|
148
|
+
return d(), v("div", Q, [
|
|
157
149
|
i.value ? (d(), v(
|
|
158
150
|
"div",
|
|
159
151
|
{
|
|
@@ -161,12 +153,12 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
161
153
|
class: "icon-left",
|
|
162
154
|
onMousedown: N,
|
|
163
155
|
onMouseup: T,
|
|
164
|
-
onClick:
|
|
156
|
+
onClick: E
|
|
165
157
|
},
|
|
166
158
|
[
|
|
167
159
|
C(o, { class: "operation-icon" }, {
|
|
168
|
-
default:
|
|
169
|
-
C(W(
|
|
160
|
+
default: _(() => [
|
|
161
|
+
C(W(G), { size: "26px" })
|
|
170
162
|
]),
|
|
171
163
|
_: 1
|
|
172
164
|
/* STABLE */
|
|
@@ -180,7 +172,7 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
180
172
|
{
|
|
181
173
|
class: "step-item-content",
|
|
182
174
|
id: "stepItemContent",
|
|
183
|
-
style:
|
|
175
|
+
style: m({
|
|
184
176
|
justifyContent: i.value ? "flex-start" : "center"
|
|
185
177
|
// width: alignCenter ? `100%` : '',
|
|
186
178
|
})
|
|
@@ -189,45 +181,53 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
189
181
|
(d(!0), v(
|
|
190
182
|
j,
|
|
191
183
|
null,
|
|
192
|
-
F(
|
|
184
|
+
F(t.list, (a, l) => {
|
|
193
185
|
var h;
|
|
194
186
|
return d(), v(
|
|
195
187
|
"div",
|
|
196
188
|
{
|
|
197
|
-
class:
|
|
198
|
-
style:
|
|
189
|
+
class: p(`${t.alignCenter ? "ik-hor-step-item" : ""} step-item ${l <= t.active ? "step-item-active" : ""}`),
|
|
190
|
+
style: m({ width: t.alignCenter ? `calc(100%/${(h = t.list) == null ? void 0 : h.length})` : "" }),
|
|
199
191
|
key: l
|
|
200
192
|
},
|
|
201
193
|
[
|
|
202
194
|
u(
|
|
203
195
|
"div",
|
|
204
196
|
{
|
|
205
|
-
class:
|
|
197
|
+
class: p(`${t.alignCenter ? "ik-hor-step_head" : ""} `)
|
|
206
198
|
},
|
|
207
199
|
[
|
|
208
200
|
l !== 0 ? (d(), v(
|
|
209
201
|
"div",
|
|
210
202
|
{
|
|
211
203
|
key: 0,
|
|
212
|
-
class:
|
|
213
|
-
style:
|
|
214
|
-
width: `${
|
|
204
|
+
class: p(`ik-hor-step_line step-border ${l <= t.active ? "step-border-greater-than" : ""}`),
|
|
205
|
+
style: m({
|
|
206
|
+
width: `${t.spaceNum.indexOf("px") != -1 ? t.spaceNum : `${t.spaceNum}px`}`
|
|
215
207
|
})
|
|
216
208
|
},
|
|
217
|
-
|
|
209
|
+
e[0] || (e[0] = [
|
|
210
|
+
u(
|
|
211
|
+
"i",
|
|
212
|
+
{ class: "ik-hor-step_line_inner" },
|
|
213
|
+
null,
|
|
214
|
+
-1
|
|
215
|
+
/* HOISTED */
|
|
216
|
+
)
|
|
217
|
+
]),
|
|
218
218
|
6
|
|
219
219
|
/* CLASS, STYLE */
|
|
220
220
|
)) : k("v-if", !0),
|
|
221
221
|
u("div", {
|
|
222
|
-
class:
|
|
223
|
-
onClick: (
|
|
224
|
-
style:
|
|
225
|
-
backgroundColor: l ===
|
|
226
|
-
cursor:
|
|
222
|
+
class: p(`step-num ${l === t.active ? "step-num-active" : l < t.active ? "step-num-greater-than" : ""}`),
|
|
223
|
+
onClick: (S) => w(a, l),
|
|
224
|
+
style: m({
|
|
225
|
+
backgroundColor: l === t.active && t.activeColor ? t.activeColor : "",
|
|
226
|
+
cursor: a && a.disabled ? "not-allowed" : t.needClick ? "pointer" : "context-menu"
|
|
227
227
|
})
|
|
228
228
|
}, [
|
|
229
229
|
V(n.$slots, "icon", {
|
|
230
|
-
data: { item:
|
|
230
|
+
data: { item: a, index: l }
|
|
231
231
|
}, () => [
|
|
232
232
|
A(
|
|
233
233
|
L(l + 1),
|
|
@@ -235,30 +235,30 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
235
235
|
/* TEXT */
|
|
236
236
|
)
|
|
237
237
|
], !0)
|
|
238
|
-
], 14,
|
|
238
|
+
], 14, U)
|
|
239
239
|
],
|
|
240
240
|
2
|
|
241
241
|
/* CLASS */
|
|
242
242
|
),
|
|
243
|
-
u("div",
|
|
243
|
+
u("div", X, [
|
|
244
244
|
u("div", {
|
|
245
245
|
id: `stepItem${l}`,
|
|
246
|
-
class:
|
|
247
|
-
style:
|
|
248
|
-
color: l ===
|
|
249
|
-
cursor:
|
|
246
|
+
class: p(`step-label ${t.active === l ? "step-label-active" : l < t.active ? "step-label-greater-than" : ""} step-item-${l}`),
|
|
247
|
+
style: m({
|
|
248
|
+
color: l === t.active && t.activeColor ? t.activeColor : "",
|
|
249
|
+
cursor: a && a.disabled ? "not-allowed" : t.needClick ? "pointer" : "context-menu"
|
|
250
250
|
}),
|
|
251
|
-
onClick: (
|
|
252
|
-
}, L(
|
|
251
|
+
onClick: (S) => w(a, l)
|
|
252
|
+
}, L(a[t.propsField.title]), 15, Y),
|
|
253
253
|
u("div", {
|
|
254
254
|
id: `stepItemDesc${l}`,
|
|
255
|
-
class:
|
|
256
|
-
style:
|
|
257
|
-
color: l ===
|
|
258
|
-
cursor:
|
|
255
|
+
class: p(`step-description step-label ${t.active === l ? "step-label-active" : l < t.active ? "step-label-greater-than" : ""} step-item-${l}`),
|
|
256
|
+
style: m({
|
|
257
|
+
color: l === t.active && t.activeColor ? t.activeColor : "",
|
|
258
|
+
cursor: a && a.disabled ? "not-allowed" : t.needClick ? "pointer" : "context-menu"
|
|
259
259
|
}),
|
|
260
|
-
onClick: (
|
|
261
|
-
}, L(
|
|
260
|
+
onClick: (S) => w(a, l)
|
|
261
|
+
}, L(a[t.propsField.description]), 15, Z)
|
|
262
262
|
])
|
|
263
263
|
],
|
|
264
264
|
6
|
|
@@ -279,12 +279,12 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
279
279
|
class: "icon-right",
|
|
280
280
|
onMousedown: H,
|
|
281
281
|
onMouseup: M,
|
|
282
|
-
onClick:
|
|
282
|
+
onClick: $
|
|
283
283
|
},
|
|
284
284
|
[
|
|
285
285
|
C(o, { class: "operation-icon" }, {
|
|
286
|
-
default:
|
|
287
|
-
C(W(
|
|
286
|
+
default: _(() => [
|
|
287
|
+
C(W(P))
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
290
|
/* STABLE */
|
|
@@ -297,13 +297,13 @@ const X = (e) => (K("data-v-a26cdcaf"), e = e(), q(), e), Y = { class: "ik-hor-s
|
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
const
|
|
301
|
-
const
|
|
300
|
+
const x = (t, s) => {
|
|
301
|
+
const c = t.__vccOpts || t;
|
|
302
302
|
for (const [r, i] of s)
|
|
303
|
-
|
|
304
|
-
return
|
|
305
|
-
},
|
|
303
|
+
c[r] = i;
|
|
304
|
+
return c;
|
|
305
|
+
}, ee = /* @__PURE__ */ x(D, [["__scopeId", "data-v-a26cdcaf"]]), le = K(ee);
|
|
306
306
|
export {
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
le as IKHorizontalStepBar,
|
|
308
|
+
le as default
|
|
309
309
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f.index={},f.vue))})(this,function(f,e){"use strict";const B=(
|
|
1
|
+
(function(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f.index={},f.vue))})(this,function(f,e){"use strict";const B=(l,s)=>{if(l.install=r=>{for(const i of[l,...Object.values(s??{})])r.component(i.name,i)},s)for(const[r,i]of Object.entries(s))l[r]=i;return l};/*! Element Plus Icons Vue v2.3.1 */var w=e.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(l){return(s,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),E=w,v=e.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(l){return(s,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),S=v;const L={class:"ik-hor-step-content"},z=["onClick"],N={class:"ik-hor-step_main"},$=["id","onClick"],b=["id","onClick"],V=e.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},alignCenter:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({title:"title",description:"description",value:"value"})}},emits:["click","update:active"],setup(l,{emit:s}){const r=l,i=s,d=e.ref(!1),u=e.ref(),h=e.ref(),m=e.ref(!1);e.watch(()=>r.active,o=>{let t=document.getElementById("stepItemContent"),a=document.getElementById(`stepItem${o}`),c=document.getElementById("stepItem0");const n=a&&c?(a==null?void 0:a.offsetLeft)-(c==null?void 0:c.offsetLeft):0;t&&a&&(t.scrollLeft=n>(t==null?void 0:t.clientWidth)?n-(t==null?void 0:t.offsetLeft):0)}),e.watch(()=>r.list,()=>{e.nextTick(()=>{let t=document.getElementById("stepItemContent"),a=(t==null?void 0:t.scrollWidth)>(t==null?void 0:t.clientWidth);d.value=a,window.addEventListener("resize",o,!0)});const o=()=>{let t=document.getElementById("stepItemContent"),a=(t==null?void 0:t.scrollWidth)>(t==null?void 0:t.clientWidth);d.value=a}},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{let t=document.getElementById("stepItemContent"),a=(t==null?void 0:t.scrollWidth)>(t==null?void 0:t.clientWidth);d.value=a,window.addEventListener("resize",o,!0)});const o=()=>{let t=document.getElementById("stepItemContent"),a=(t==null?void 0:t.scrollWidth)>(t==null?void 0:t.clientWidth);d.value=a}});const g=(o,t)=>{if(!r.needClick)return;i("update:active",t),i("click",o);let a=document.getElementById("stepItemContent"),c=document.getElementById(`stepItem${t}`),n=document.getElementById("stepItem0");const p=c&&n?(c==null?void 0:c.offsetLeft)-(n==null?void 0:n.offsetLeft):0;a&&c&&(a.scrollLeft=p>(a==null?void 0:a.clientWidth)?p-(a==null?void 0:a.offsetLeft):0)},y=()=>{let o=document.getElementById("stepItemContent");o&&(o.scrollLeft=o.scrollLeft-20)},k=()=>{let o=document.getElementById("stepItemContent");o&&(o.scrollLeft=o.scrollLeft+20)},_=()=>{clearInterval(h.value);let o=document.getElementById("stepItemContent");m.value=!1,h.value=setInterval(()=>{m.value=!0,o&&(o.scrollLeft=o.scrollLeft-20)},100)},T=()=>{clearInterval(h.value),m.value||y()},H=()=>{clearInterval(u.value);let o=document.getElementById("stepItemContent");m.value=!1,u.value=setInterval(()=>{m.value=!0,o&&(o.scrollLeft=o.scrollLeft+20)},100)},W=()=>{clearInterval(u.value),m.value||k()};return(o,t)=>{const a=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",L,[d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"icon-left",onMousedown:_,onMouseup:T,onClick:y},[e.createVNode(a,{class:"operation-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(E),{size:"26px"})]),_:1})],32)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:e.normalizeStyle({justifyContent:d.value?"flex-start":"center"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(c,n)=>{var p;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`${l.alignCenter?"ik-hor-step-item":""} step-item ${n<=l.active?"step-item-active":""}`),style:e.normalizeStyle({width:l.alignCenter?`calc(100%/${(p=l.list)==null?void 0:p.length})`:""}),key:n},[e.createElementVNode("div",{class:e.normalizeClass(`${l.alignCenter?"ik-hor-step_head":""} `)},[n!==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`ik-hor-step_line step-border ${n<=l.active?"step-border-greater-than":""}`),style:e.normalizeStyle({width:`${l.spaceNum.indexOf("px")!=-1?l.spaceNum:`${l.spaceNum}px`}`})},t[0]||(t[0]=[e.createElementVNode("i",{class:"ik-hor-step_line_inner"},null,-1)]),6)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(`step-num ${n===l.active?"step-num-active":n<l.active?"step-num-greater-than":""}`),onClick:I=>g(c,n),style:e.normalizeStyle({backgroundColor:n===l.active&&l.activeColor?l.activeColor:"",cursor:c&&c.disabled?"not-allowed":l.needClick?"pointer":"context-menu"})},[e.renderSlot(o.$slots,"icon",{data:{item:c,index:n}},()=>[e.createTextVNode(e.toDisplayString(n+1),1)],!0)],14,z)],2),e.createElementVNode("div",N,[e.createElementVNode("div",{id:`stepItem${n}`,class:e.normalizeClass(`step-label ${l.active===n?"step-label-active":n<l.active?"step-label-greater-than":""} step-item-${n}`),style:e.normalizeStyle({color:n===l.active&&l.activeColor?l.activeColor:"",cursor:c&&c.disabled?"not-allowed":l.needClick?"pointer":"context-menu"}),onClick:I=>g(c,n)},e.toDisplayString(c[l.propsField.title]),15,$),e.createElementVNode("div",{id:`stepItemDesc${n}`,class:e.normalizeClass(`step-description step-label ${l.active===n?"step-label-active":n<l.active?"step-label-greater-than":""} step-item-${n}`),style:e.normalizeStyle({color:n===l.active&&l.activeColor?l.activeColor:"",cursor:c&&c.disabled?"not-allowed":l.needClick?"pointer":"context-menu"}),onClick:I=>g(c,n)},e.toDisplayString(c[l.propsField.description]),15,b)])],6)}),128))],4),d.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"icon-right",onMousedown:H,onMouseup:W,onClick:k},[e.createVNode(a,{class:"operation-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(S))]),_:1})],32)):e.createCommentVNode("v-if",!0)])}}}),M="",C=B(((l,s)=>{const r=l.__vccOpts||l;for(const[i,d]of s)r[i]=d;return r})(V,[["__scopeId","data-v-a26cdcaf"]]));f.IKHorizontalStepBar=C,f.default=C,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|