ik-next-ui 0.0.1
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/Demo/ik.index.es.js +8 -0
- package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
- package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
- package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
- package/dist/IkAutoCard/ik-next-ui.css +1 -0
- package/dist/IkAutoCard/ik.index.es.js +51 -0
- package/dist/IkBaseDialog/ik-next-ui.css +1 -0
- package/dist/IkBaseDialog/ik.index.es.js +1954 -0
- package/dist/IkBottomOperate/ik-next-ui.css +1 -0
- package/dist/IkBottomOperate/ik.index.es.js +241 -0
- package/dist/IkBtnContent/ik-next-ui.css +1 -0
- package/dist/IkBtnContent/ik.index.es.js +80 -0
- package/dist/IkCollapseCard/ik-next-ui.css +1 -0
- package/dist/IkCollapseCard/ik.index.es.js +1924 -0
- package/dist/IkCurrencyInput/ik.index.es.js +60 -0
- package/dist/IkDescription/ik-next-ui.css +1 -0
- package/dist/IkDescription/ik.index.es.js +16544 -0
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
- package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
- package/dist/IkDragList/ik-next-ui.css +1 -0
- package/dist/IkDragList/ik.index.es.js +445 -0
- package/dist/IkEmpty/ik-next-ui.css +1 -0
- package/dist/IkEmpty/ik.index.es.js +44 -0
- package/dist/IkFileIcon/ik.index.es.js +619 -0
- package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
- package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
- package/dist/IkIconPicker/ik-next-ui.css +1 -0
- package/dist/IkIconPicker/ik.index.es.js +2060 -0
- package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
- package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
- package/dist/IkImageViewer/ik.index.es.js +552 -0
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
- package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
- package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
- package/dist/IkPage/ik.index.es.js +1 -0
- package/dist/IkPickerUser/ik-next-ui.css +1 -0
- package/dist/IkPickerUser/ik.index.es.js +2077 -0
- package/dist/IkPlayer/ik-next-ui.css +1 -0
- package/dist/IkPlayer/ik.index.es.js +11071 -0
- package/dist/IkPreviewFile/ik-next-ui.css +1 -0
- package/dist/IkPreviewFile/ik.index.es.js +16385 -0
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
- package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
- package/dist/IkRadioGroup/ik-next-ui.css +1 -0
- package/dist/IkRadioGroup/ik.index.es.js +1937 -0
- package/dist/IkSelectTag/ik-next-ui.css +1 -0
- package/dist/IkSelectTag/ik.index.es.js +359 -0
- package/dist/IkSideText/ik-next-ui.css +1 -0
- package/dist/IkSideText/ik.index.es.js +2084 -0
- package/dist/IkStatu/ik-next-ui.css +1 -0
- package/dist/IkStatu/ik.index.es.js +131 -0
- package/dist/IkStatuOver/ik-next-ui.css +1 -0
- package/dist/IkStatuOver/ik.index.es.js +284 -0
- package/dist/IkSvgIcon/ik-next-ui.css +1 -0
- package/dist/IkSvgIcon/ik.index.es.js +1845 -0
- package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
- package/dist/IkTinymce/ik-next-ui.css +1 -0
- package/dist/IkTinymce/ik.index.es.js +50349 -0
- package/dist/IkTooltip/ik.index.es.js +48 -0
- package/dist/IkTree/ik-next-ui.css +1 -0
- package/dist/IkTree/ik.index.es.js +136 -0
- package/dist/IkUploadFile/ik-next-ui.css +1 -0
- package/dist/IkUploadFile/ik.index.es.js +17251 -0
- package/dist/IkUploadImage/ik-next-ui.css +1 -0
- package/dist/IkUploadImage/ik.index.es.js +2946 -0
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
- package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
- package/dist/Provider/ik.index.es.js +42 -0
- package/dist/ik-next-ui.css +9 -0
- package/dist/index.es.js +84696 -0
- package/dist/index.umd.js +371 -0
- package/dist/resolver.cjs +1 -0
- package/dist/resolver.js +63 -0
- package/dist/src/components/Demo/index.d.ts +4 -0
- package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
- package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
- package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
- package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
- package/dist/src/components/IkAutoCard/index.d.ts +60 -0
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
- package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
- package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
- package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
- package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
- package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
- package/dist/src/components/IkDescription/index.d.ts +235 -0
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
- package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
- package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
- package/dist/src/components/IkDragList/index.d.ts +509 -0
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
- package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
- package/dist/src/components/IkEmpty/index.d.ts +69 -0
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
- package/dist/src/components/IkFileIcon/index.d.ts +40 -0
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
- package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
- package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
- package/dist/src/components/IkIconPicker/index.d.ts +83 -0
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
- package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
- package/dist/src/components/IkImageViewer/index.d.ts +6 -0
- package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
- package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
- package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
- package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
- package/dist/src/components/IkPage/index.d.ts +0 -0
- package/dist/src/components/IkPickerUser/index.d.ts +373 -0
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
- package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
- package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
- package/dist/src/components/IkPickerUser/types.d.ts +28 -0
- package/dist/src/components/IkPlayer/index.d.ts +82 -0
- package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
- package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
- package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
- package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
- package/dist/src/components/IkSelectTag/index.d.ts +85 -0
- package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
- package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
- package/dist/src/components/IkSideText/index.d.ts +113 -0
- package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
- package/dist/src/components/IkStatu/index.d.ts +117 -0
- package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
- package/dist/src/components/IkStatuOver/index.d.ts +36 -0
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
- package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
- package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
- package/dist/src/components/IkTinymce/index.d.ts +215 -0
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
- package/dist/src/components/IkTooltip/index.d.ts +84 -0
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
- package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
- package/dist/src/components/IkTree/index.d.ts +4693 -0
- package/dist/src/components/IkUploadFile/index.d.ts +586 -0
- package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
- package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
- package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
- package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
- package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
- package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
- package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
- package/dist/src/components/IkUploadImage/index.d.ts +287 -0
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
- package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
- package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
- package/dist/src/components/Provider/index.d.ts +99 -0
- package/dist/src/components/index.d.ts +37 -0
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
- package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
- package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
- package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
- package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
- package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
- package/dist/src/enum/search.d.ts +88 -0
- package/dist/src/iking-ui/component.d.ts +4 -0
- package/dist/src/iking-ui/defaults.d.ts +4 -0
- package/dist/src/iking-ui/index.d.ts +6 -0
- package/dist/src/iking-ui/make-installer.d.ts +5 -0
- package/dist/src/iking-ui/resolver.d.ts +16 -0
- package/dist/src/utils/approval.d.ts +10 -0
- package/dist/src/utils/file.d.ts +27 -0
- package/dist/src/utils/index.d.ts +12 -0
- package/dist/src/utils/install.d.ts +6 -0
- package/dist/src/utils/math.d.ts +3 -0
- package/dist/src/utils/object.d.ts +4 -0
- package/dist/src/utils/theme.d.ts +1 -0
- package/dist/src/utils/typescript.d.ts +6 -0
- package/dist/src/utils/use-provider.d.ts +15 -0
- package/package.json +236 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { defineComponent as M, ref as g, watch as w, nextTick as b, onMounted as F, resolveComponent as O, openBlock as d, createElementBlock as v, createVNode as I, withCtx as z, unref as W, createCommentVNode as L, createElementVNode as r, normalizeStyle as f, Fragment as V, renderList as j, normalizeClass as m, renderSlot as A, createTextVNode as q, toDisplayString as $ } from "vue";
|
|
2
|
+
import { ArrowLeft as G, ArrowRight as J } from "@element-plus/icons-vue";
|
|
3
|
+
const K = (e, C) => (e.install = (s) => {
|
|
4
|
+
for (const i of [e, ...Object.values({})])
|
|
5
|
+
s.component(i.name, i);
|
|
6
|
+
}, e), P = { class: "ik-hor-step-content" }, Q = ["onClick"], U = { class: "ik-hor-step_main" }, X = ["id", "onClick"], Y = ["id", "onClick"], Z = /* @__PURE__ */ M({
|
|
7
|
+
__name: "IkHorizontalStepBar",
|
|
8
|
+
props: {
|
|
9
|
+
spaceNum: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "58px"
|
|
12
|
+
},
|
|
13
|
+
// 当前激活的下标
|
|
14
|
+
active: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
// 当前激活颜色
|
|
19
|
+
activeColor: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
// 步骤是否可点击
|
|
24
|
+
needClick: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
// 步骤数据
|
|
29
|
+
list: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
// 文本方向 居中
|
|
34
|
+
alignCenter: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
// 数字样式:circle 圆形,rect 矩形
|
|
39
|
+
numShape: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "rect",
|
|
42
|
+
validator: (e) => ["circle", "rect"].includes(e)
|
|
43
|
+
},
|
|
44
|
+
// 映射字段
|
|
45
|
+
propsField: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: () => ({
|
|
48
|
+
title: "title",
|
|
49
|
+
description: "description",
|
|
50
|
+
value: "value"
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
emits: ["click", "update:active"],
|
|
55
|
+
setup(e, { emit: C }) {
|
|
56
|
+
const s = e, i = C, a = g(!1), y = g(), k = g(), u = g(!1);
|
|
57
|
+
w(
|
|
58
|
+
() => s.active,
|
|
59
|
+
(n) => {
|
|
60
|
+
let t = document.getElementById("stepItemContent"), c = document.getElementById(`stepItem${n}`), o = document.getElementById("stepItem0");
|
|
61
|
+
const l = c && o ? (c == null ? void 0 : c.offsetLeft) - (o == null ? void 0 : o.offsetLeft) : 0;
|
|
62
|
+
t && c && (t.scrollLeft = l > (t == null ? void 0 : t.clientWidth) ? l - (t == null ? void 0 : t.offsetLeft) : 0);
|
|
63
|
+
}
|
|
64
|
+
), w(
|
|
65
|
+
() => s.list,
|
|
66
|
+
() => {
|
|
67
|
+
b(() => {
|
|
68
|
+
let t = document.getElementById("stepItemContent"), c = (t == null ? void 0 : t.scrollWidth) > (t == null ? void 0 : t.clientWidth);
|
|
69
|
+
a.value = c, window.addEventListener("resize", n, !0);
|
|
70
|
+
});
|
|
71
|
+
const n = () => {
|
|
72
|
+
let t = document.getElementById("stepItemContent"), c = (t == null ? void 0 : t.scrollWidth) > (t == null ? void 0 : t.clientWidth);
|
|
73
|
+
a.value = c;
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
{ deep: !0 }
|
|
77
|
+
), F(() => {
|
|
78
|
+
b(() => {
|
|
79
|
+
let t = document.getElementById("stepItemContent"), c = (t == null ? void 0 : t.scrollWidth) > (t == null ? void 0 : t.clientWidth);
|
|
80
|
+
a.value = c, window.addEventListener("resize", n, !0);
|
|
81
|
+
});
|
|
82
|
+
const n = () => {
|
|
83
|
+
let t = document.getElementById("stepItemContent"), c = (t == null ? void 0 : t.scrollWidth) > (t == null ? void 0 : t.clientWidth);
|
|
84
|
+
a.value = c;
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
const p = (n, t) => {
|
|
88
|
+
if (!s.needClick) return;
|
|
89
|
+
i("update:active", t), i("click", n);
|
|
90
|
+
let c = document.getElementById("stepItemContent"), o = document.getElementById(`stepItem${t}`), l = document.getElementById("stepItem0");
|
|
91
|
+
const h = o && l ? (o == null ? void 0 : o.offsetLeft) - (l == null ? void 0 : l.offsetLeft) : 0;
|
|
92
|
+
c && o && (c.scrollLeft = h > (c == null ? void 0 : c.clientWidth) ? h - (c == null ? void 0 : c.offsetLeft) : 0);
|
|
93
|
+
}, B = () => {
|
|
94
|
+
let n = document.getElementById("stepItemContent");
|
|
95
|
+
n && (n.scrollLeft = n.scrollLeft - 20);
|
|
96
|
+
}, S = () => {
|
|
97
|
+
let n = document.getElementById("stepItemContent");
|
|
98
|
+
n && (n.scrollLeft = n.scrollLeft + 20);
|
|
99
|
+
}, N = () => {
|
|
100
|
+
clearInterval(k.value);
|
|
101
|
+
let n = document.getElementById("stepItemContent");
|
|
102
|
+
u.value = !1, k.value = setInterval(() => {
|
|
103
|
+
u.value = !0, n && (n.scrollLeft = n.scrollLeft - 20);
|
|
104
|
+
}, 100);
|
|
105
|
+
}, T = () => {
|
|
106
|
+
clearInterval(k.value), u.value || B();
|
|
107
|
+
}, H = () => {
|
|
108
|
+
clearInterval(y.value);
|
|
109
|
+
let n = document.getElementById("stepItemContent");
|
|
110
|
+
u.value = !1, y.value = setInterval(() => {
|
|
111
|
+
u.value = !0, n && (n.scrollLeft = n.scrollLeft + 20);
|
|
112
|
+
}, 100);
|
|
113
|
+
}, R = () => {
|
|
114
|
+
clearInterval(y.value), u.value || S();
|
|
115
|
+
};
|
|
116
|
+
return (n, t) => {
|
|
117
|
+
const c = O("el-icon");
|
|
118
|
+
return d(), v("div", P, [
|
|
119
|
+
a.value ? (d(), v(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
key: 0,
|
|
123
|
+
class: "icon-left",
|
|
124
|
+
onMousedown: N,
|
|
125
|
+
onMouseup: T,
|
|
126
|
+
onClick: B
|
|
127
|
+
},
|
|
128
|
+
[
|
|
129
|
+
I(c, { class: "operation-icon" }, {
|
|
130
|
+
default: z(() => [
|
|
131
|
+
I(W(G), { size: "26px" })
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
})
|
|
136
|
+
],
|
|
137
|
+
32
|
|
138
|
+
/* NEED_HYDRATION */
|
|
139
|
+
)) : L("v-if", !0),
|
|
140
|
+
r(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
class: "step-item-content",
|
|
144
|
+
id: "stepItemContent",
|
|
145
|
+
style: f({
|
|
146
|
+
justifyContent: a.value ? "flex-start" : "center"
|
|
147
|
+
// width: alignCenter ? `100%` : '',
|
|
148
|
+
})
|
|
149
|
+
},
|
|
150
|
+
[
|
|
151
|
+
(d(!0), v(
|
|
152
|
+
V,
|
|
153
|
+
null,
|
|
154
|
+
j(e.list, (o, l) => {
|
|
155
|
+
var h;
|
|
156
|
+
return d(), v(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
class: m(`${e.alignCenter ? "ik-hor-step-item" : ""} step-item ${l <= e.active ? "step-item-active" : ""}`),
|
|
160
|
+
style: f({ width: e.alignCenter ? `calc(100%/${(h = e.list) == null ? void 0 : h.length})` : "" }),
|
|
161
|
+
key: l
|
|
162
|
+
},
|
|
163
|
+
[
|
|
164
|
+
r(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
class: m(`${e.alignCenter ? "ik-hor-step_head" : ""} `)
|
|
168
|
+
},
|
|
169
|
+
[
|
|
170
|
+
l !== 0 ? (d(), v(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
key: 0,
|
|
174
|
+
class: m(`ik-hor-step_line step-border ${l <= e.active ? "step-border-greater-than" : ""}`),
|
|
175
|
+
style: f({
|
|
176
|
+
width: `${e.spaceNum.indexOf("px") != -1 ? e.spaceNum : `${e.spaceNum}px`}`
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
[...t[0] || (t[0] = [
|
|
180
|
+
r(
|
|
181
|
+
"i",
|
|
182
|
+
{ class: "ik-hor-step_line_inner" },
|
|
183
|
+
null,
|
|
184
|
+
-1
|
|
185
|
+
/* CACHED */
|
|
186
|
+
)
|
|
187
|
+
])],
|
|
188
|
+
6
|
|
189
|
+
/* CLASS, STYLE */
|
|
190
|
+
)) : L("v-if", !0),
|
|
191
|
+
r("div", {
|
|
192
|
+
class: m(`step-num step-num-${e.numShape} ${l === e.active ? "step-num-active" : l < e.active ? "step-num-greater-than" : ""}`),
|
|
193
|
+
onClick: (E) => p(o, l),
|
|
194
|
+
style: f({
|
|
195
|
+
backgroundColor: l === e.active && e.activeColor ? e.activeColor : "",
|
|
196
|
+
"--ik-step-active-shadow": l === e.active && e.activeColor ? `${e.activeColor}40` : "rgba(3, 158, 247, 0.4)",
|
|
197
|
+
cursor: o && o.disabled ? "not-allowed" : e.needClick ? "pointer" : "context-menu"
|
|
198
|
+
})
|
|
199
|
+
}, [
|
|
200
|
+
A(n.$slots, "icon", {
|
|
201
|
+
data: { item: o, index: l }
|
|
202
|
+
}, () => [
|
|
203
|
+
q(
|
|
204
|
+
$(l + 1),
|
|
205
|
+
1
|
|
206
|
+
/* TEXT */
|
|
207
|
+
)
|
|
208
|
+
], !0)
|
|
209
|
+
], 14, Q)
|
|
210
|
+
],
|
|
211
|
+
2
|
|
212
|
+
/* CLASS */
|
|
213
|
+
),
|
|
214
|
+
r("div", U, [
|
|
215
|
+
r("div", {
|
|
216
|
+
id: `stepItem${l}`,
|
|
217
|
+
class: m(`step-label ${e.active === l ? "step-label-active" : l < e.active ? "step-label-greater-than" : ""} step-item-${l}`),
|
|
218
|
+
style: f({
|
|
219
|
+
color: l === e.active && e.activeColor ? e.activeColor : "",
|
|
220
|
+
cursor: o && o.disabled ? "not-allowed" : e.needClick ? "pointer" : "context-menu"
|
|
221
|
+
}),
|
|
222
|
+
onClick: (E) => p(o, l)
|
|
223
|
+
}, $(o[e.propsField.title]), 15, X),
|
|
224
|
+
r("div", {
|
|
225
|
+
id: `stepItemDesc${l}`,
|
|
226
|
+
class: m(`step-description step-label ${e.active === l ? "step-label-active" : l < e.active ? "step-label-greater-than" : ""} step-item-${l}`),
|
|
227
|
+
style: f({
|
|
228
|
+
color: l === e.active && e.activeColor ? e.activeColor : "",
|
|
229
|
+
cursor: o && o.disabled ? "not-allowed" : e.needClick ? "pointer" : "context-menu"
|
|
230
|
+
}),
|
|
231
|
+
onClick: (E) => p(o, l)
|
|
232
|
+
}, $(o[e.propsField.description]), 15, Y)
|
|
233
|
+
])
|
|
234
|
+
],
|
|
235
|
+
6
|
|
236
|
+
/* CLASS, STYLE */
|
|
237
|
+
);
|
|
238
|
+
}),
|
|
239
|
+
128
|
|
240
|
+
/* KEYED_FRAGMENT */
|
|
241
|
+
))
|
|
242
|
+
],
|
|
243
|
+
4
|
|
244
|
+
/* STYLE */
|
|
245
|
+
),
|
|
246
|
+
a.value ? (d(), v(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
key: 1,
|
|
250
|
+
class: "icon-right",
|
|
251
|
+
onMousedown: H,
|
|
252
|
+
onMouseup: R,
|
|
253
|
+
onClick: S
|
|
254
|
+
},
|
|
255
|
+
[
|
|
256
|
+
I(c, { class: "operation-icon" }, {
|
|
257
|
+
default: z(() => [
|
|
258
|
+
I(W(J))
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
/* STABLE */
|
|
262
|
+
})
|
|
263
|
+
],
|
|
264
|
+
32
|
|
265
|
+
/* NEED_HYDRATION */
|
|
266
|
+
)) : L("v-if", !0)
|
|
267
|
+
]);
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}), D = (e, C) => {
|
|
271
|
+
const s = e.__vccOpts || e;
|
|
272
|
+
for (const [i, a] of C)
|
|
273
|
+
s[i] = a;
|
|
274
|
+
return s;
|
|
275
|
+
}, x = /* @__PURE__ */ D(Z, [["__scopeId", "data-v-432d8709"]]), te = K(x);
|
|
276
|
+
export {
|
|
277
|
+
te as IkHorizontalStepBar,
|
|
278
|
+
te as default
|
|
279
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ik-icon[data-v-701f2359]{cursor:pointer;outline:none;border-radius:var(--ik-radius)}.ik-icon[data-v-701f2359] .el-tooltip__trigger{width:inherit;height:inherit}.ik-icon .iconfont[data-v-701f2359]{display:inline-flex;align-items:center;justify-content:center}.ik-icon .two-color-icon[data-v-701f2359]{transition:all .2s ease}.ik-icon.margin+.ik-icon[data-v-701f2359]:not(.un-margin){margin-left:var(--ik-margin-8)}.ik-icon:not(.is-disabled):hover .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-deep-hover);--ik-icon-shallow-color: var(--ik-icon-shallow-hover)}.ik-icon.is-active .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-deep-active);--ik-icon-shallow-color: var(--ik-icon-shallow-active)}.ik-icon.is-disabled .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-deep-disabled);--ik-icon-shallow-color: var(--ik-icon-shallow-disabled);cursor:not-allowed;opacity:.6}.ik-icon.is-success:not(.is-disabled):hover .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-success-deep-hover);--ik-icon-shallow-color: var(--ik-icon-success-shallow-hover)}.ik-icon.is-success.is-active .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-success-deep-active);--ik-icon-shallow-color: var(--ik-icon-success-shallow-active)}.ik-icon.is-warning:not(.is-disabled):hover .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-warning-deep-hover);--ik-icon-shallow-color: var(--ik-icon-warning-shallow-hover)}.ik-icon.is-warning.is-active .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-warning-deep-active);--ik-icon-shallow-color: var(--ik-icon-warning-shallow-active)}.ik-icon.is-danger:not(.is-disabled):hover .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-danger-deep-hover);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-hover)}.ik-icon.is-danger.is-active .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-danger-deep-active);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-active)}.ik-icon.is-error:not(.is-disabled):hover .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-danger-deep-hover);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-hover)}.ik-icon.is-error.is-active .two-color-icon[data-v-701f2359]{--ik-icon-deep-color: var(--ik-icon-danger-deep-active);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-active)}.ik-icon.text-danger[data-v-701f2359]:hover,.ik-icon .iksvg_shanchu[data-v-701f2359]:hover{color:var(--ik-color-error)}.ik-icon.is-active[data-v-701f2359]{color:var(--ik-color-primary)}.ik-icon.bg[data-v-701f2359]{color:var(--ik-icon-color);background-color:var(--ik-icon-bg)}.ik-icon.bg.is-active[data-v-701f2359]{color:var(--ik-color-primary);background-color:var(--ik-icon-hover-bg)}.ik-icon.bg[data-v-701f2359]:not(.is-disabled):hover{color:var(--ik-color-primary);background-color:var(--ik-icon-hover-bg)}.ik-icon.bg.is-disabled[data-v-701f2359]{background-color:var(--ik-icon-disabled-bg)}.ik-icon.bg.is-success.is-active[data-v-701f2359]{color:var(--ik-color-success);background-color:var(--ik-icon-success-hover-bg)}.ik-icon.bg.is-success[data-v-701f2359]:not(.is-disabled):hover{color:var(--ik-color-success);background-color:var(--ik-icon-success-hover-bg)}.ik-icon.bg.is-warning.is-active[data-v-701f2359]{color:var(--ik-color-warning);background-color:var(--ik-icon-warning-hover-bg)}.ik-icon.bg.is-warning[data-v-701f2359]:not(.is-disabled):hover{color:var(--ik-color-warning);background-color:var(--ik-icon-warning-hover-bg)}.ik-icon.bg.is-danger.is-active[data-v-701f2359]{color:var(--ik-color-error);background-color:var(--ik-icon-danger-hover-bg)}.ik-icon.bg.is-danger[data-v-701f2359]:not(.is-disabled):hover{color:var(--ik-color-error);background-color:var(--ik-icon-danger-hover-bg)}.ik-icon.bg.is-error.is-active[data-v-701f2359]{color:var(--ik-color-error);background-color:var(--ik-icon-error-hover-bg)}.ik-icon.bg.is-error[data-v-701f2359]:not(.is-disabled):hover{color:var(--ik-color-error);background-color:var(--ik-icon-error-bg)}.ik-icon.bg.text-danger.is-active[data-v-701f2359]{color:var(--ik-color-error);background-color:var(--ik-danger-light-2)}.ik-icon.bg.text-danger[data-v-701f2359]:not(.is-disabled):hover{color:var(--ik-color-error);background-color:var(--ik-danger-light-2)}.ik-icon.bg .iksvg_shanchu[data-v-701f2359]:hover{color:var(--ik-color-error);background-color:var(--ik-danger-light-2)}.ik-icon.bg svg[data-v-701f2359]{padding:21%}.icon-picker-pop .icon-list[data-v-3d7941f0]{display:grid;grid-template-columns:repeat(auto-fill,36px);grid-gap:var(--ik-margin-16);justify-content:flex-start;justify-items:flex-end;max-height:400px;margin-top:16px;overflow-y:auto;font-size:25px;content-visibility:auto}.icon-picker-pop .icon-list .ik-svg-icon[data-v-3d7941f0]{content-visibility:auto}.icon-picker-header{position:relative;display:inline-flex;display:flex;align-items:center;justify-content:center;width:var(--ik-base-height);height:var(--ik-base-height);cursor:pointer;border:1px dashed var(--ik-color-divider);border-radius:var(--ik-border-radius-xs);transition:border .25s ease-in-out}.icon-picker-header:hover{border-color:var(--ik-color-primary)}.icon-picker-header .icon-delete{position:absolute;top:-6px;right:-8px;font-size:var(--ik-font-size-t2)}
|