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 @@
|
|
|
1
|
+
.bottom[data-v-baa941fc]{width:100%;border-top:1px solid var(--ik-icon-bg);display:flex;align-items:center;justify-content:space-between}.bottom .el-button[data-v-baa941fc]{font-weight:400;font-size:14px}.bottom .bottom-left .el-button[data-v-baa941fc]{width:98px;font-weight:400;font-size:14px}.bottom .bottom-right .el-button[data-v-baa941fc]{width:84px}.bottom .input-prepend[data-v-baa941fc]{flex:1}.bottom .input-prepend p[data-v-baa941fc]{font-weight:700;color:var(--el-text-color-regular)}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { defineComponent as A, inject as I, ref as u, watch as F, resolveComponent as O, resolveDirective as T, openBlock as d, createElementBlock as h, normalizeStyle as U, createVNode as y, withCtx as p, createTextVNode as c, createCommentVNode as k, createBlock as N, renderSlot as q, Fragment as D, withDirectives as G } from "vue";
|
|
2
|
+
import { ElMessage as w } from "element-plus";
|
|
3
|
+
const H = (s, v) => (s.install = (i) => {
|
|
4
|
+
for (const n of [s, ...Object.values({})])
|
|
5
|
+
i.component(n.name, n);
|
|
6
|
+
}, s), J = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "bottom-left"
|
|
9
|
+
}, K = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "bottom-right"
|
|
12
|
+
}, L = /* @__PURE__ */ A({
|
|
13
|
+
__name: "IkBottomOperate",
|
|
14
|
+
props: {
|
|
15
|
+
// 是否显示上一条下一条按钮
|
|
16
|
+
lastShow: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
// 是否显示右侧按钮组
|
|
21
|
+
buttonShow: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
// 是否输入框显示
|
|
26
|
+
inputShow: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
// 表格数据全部id合集
|
|
31
|
+
ids: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default: () => []
|
|
34
|
+
},
|
|
35
|
+
// 当前数据id
|
|
36
|
+
rowId: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
padding: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "8px 0"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["cancel", "update:visible", "confirm", "repulse", "prevChange", "nextChange"],
|
|
46
|
+
setup(s, { expose: v, emit: i }) {
|
|
47
|
+
const n = s, a = i, o = I("searchData"), _ = I("search"), b = I("countTotal"), P = u(!1), R = () => {
|
|
48
|
+
r.value = "", a("update:visible", !1), a("cancel");
|
|
49
|
+
}, j = async () => {
|
|
50
|
+
a("confirm", r.value), r.value = "";
|
|
51
|
+
}, r = u(""), E = async () => {
|
|
52
|
+
if (r.value === "" && n.inputShow) {
|
|
53
|
+
w.warning("请输入意见说明");
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
a("repulse", r.value), r.value = "";
|
|
57
|
+
}, M = () => {
|
|
58
|
+
B("prev");
|
|
59
|
+
}, $ = () => {
|
|
60
|
+
B("next");
|
|
61
|
+
};
|
|
62
|
+
u(n.ids);
|
|
63
|
+
const S = u(1), B = (e) => {
|
|
64
|
+
e === "next" ? V() : z();
|
|
65
|
+
}, f = u(!1), V = async () => {
|
|
66
|
+
var m, x;
|
|
67
|
+
g.value = !1, o != null && o.value && (S.value = Math.ceil((b == null ? void 0 : b.value) / ((m = o.value) == null ? void 0 : m.rows)));
|
|
68
|
+
const e = n.ids, t = e == null ? void 0 : e.findIndex((C) => C === n.rowId);
|
|
69
|
+
if (t === e.length - 1) {
|
|
70
|
+
if (o != null && o.value) {
|
|
71
|
+
if (S.value === ((x = o.value) == null ? void 0 : x.page)) {
|
|
72
|
+
w.warning("已经是最后一条数据"), f.value = !0;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
o.value.page++, await _(), e.length && a("nextChange", {
|
|
76
|
+
targetItem: e[0],
|
|
77
|
+
targetIndex: 0
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
w.warning("已经是最后一条数据"), f.value = !0;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const l = t + 1;
|
|
84
|
+
a("nextChange", {
|
|
85
|
+
targetItem: e[l],
|
|
86
|
+
targetIndex: l
|
|
87
|
+
});
|
|
88
|
+
}, g = u(!1), z = async () => {
|
|
89
|
+
f.value = !1;
|
|
90
|
+
const e = n.ids, t = e == null ? void 0 : e.findIndex((l) => l === n.rowId);
|
|
91
|
+
if (t < 1) {
|
|
92
|
+
if (o != null && o.value && o.value.page > 1) {
|
|
93
|
+
o.value.page--, await _(), e.length && a("nextChange", {
|
|
94
|
+
targetItem: e[e.length - 1],
|
|
95
|
+
targetIndex: e.length - 1
|
|
96
|
+
});
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
w.warning("已经是第一条数据"), g.value = !0;
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
a("prevChange", {
|
|
103
|
+
targetItem: e[t - 1],
|
|
104
|
+
targetIndex: t - 1
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
return v({ handleNext: V }), F(
|
|
108
|
+
() => n.ids,
|
|
109
|
+
(e) => {
|
|
110
|
+
e && (g.value = !1, f.value = !1);
|
|
111
|
+
},
|
|
112
|
+
{ immediate: !0 }
|
|
113
|
+
), (e, t) => {
|
|
114
|
+
const l = O("el-button"), m = O("el-input"), x = T("loading");
|
|
115
|
+
return d(), h(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
class: "bottom",
|
|
119
|
+
style: U({ padding: s.padding })
|
|
120
|
+
},
|
|
121
|
+
[
|
|
122
|
+
n.lastShow ? (d(), h("div", J, [
|
|
123
|
+
y(l, {
|
|
124
|
+
disabled: g.value,
|
|
125
|
+
onClick: M
|
|
126
|
+
}, {
|
|
127
|
+
default: p(() => [...t[1] || (t[1] = [
|
|
128
|
+
c(
|
|
129
|
+
"上一条",
|
|
130
|
+
-1
|
|
131
|
+
/* CACHED */
|
|
132
|
+
)
|
|
133
|
+
])]),
|
|
134
|
+
_: 1
|
|
135
|
+
/* STABLE */
|
|
136
|
+
}, 8, ["disabled"]),
|
|
137
|
+
y(l, {
|
|
138
|
+
disabled: f.value,
|
|
139
|
+
onClick: $,
|
|
140
|
+
style: { "margin-right": "24px" }
|
|
141
|
+
}, {
|
|
142
|
+
default: p(() => [...t[2] || (t[2] = [
|
|
143
|
+
c(
|
|
144
|
+
"下一条",
|
|
145
|
+
-1
|
|
146
|
+
/* CACHED */
|
|
147
|
+
)
|
|
148
|
+
])]),
|
|
149
|
+
_: 1
|
|
150
|
+
/* STABLE */
|
|
151
|
+
}, 8, ["disabled"])
|
|
152
|
+
])) : k("v-if", !0),
|
|
153
|
+
n.inputShow ? (d(), N(m, {
|
|
154
|
+
key: 1,
|
|
155
|
+
modelValue: r.value,
|
|
156
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => r.value = C),
|
|
157
|
+
maxlength: "50",
|
|
158
|
+
placeholder: "请输入意见说明",
|
|
159
|
+
"show-word-limit": "",
|
|
160
|
+
class: "input-prepend"
|
|
161
|
+
}, {
|
|
162
|
+
prepend: p(() => [...t[3] || (t[3] = [
|
|
163
|
+
c(
|
|
164
|
+
"意见说明",
|
|
165
|
+
-1
|
|
166
|
+
/* CACHED */
|
|
167
|
+
)
|
|
168
|
+
])]),
|
|
169
|
+
_: 1
|
|
170
|
+
/* STABLE */
|
|
171
|
+
}, 8, ["modelValue"])) : k("v-if", !0),
|
|
172
|
+
n.buttonShow ? (d(), h("div", K, [
|
|
173
|
+
e.$slots.bottomRight ? q(e.$slots, "bottomRight", { key: 0 }, void 0, !0) : (d(), h(
|
|
174
|
+
D,
|
|
175
|
+
{ key: 1 },
|
|
176
|
+
[
|
|
177
|
+
y(l, {
|
|
178
|
+
onClick: R,
|
|
179
|
+
style: { "margin-left": "24px" }
|
|
180
|
+
}, {
|
|
181
|
+
default: p(() => [...t[4] || (t[4] = [
|
|
182
|
+
c(
|
|
183
|
+
"取消",
|
|
184
|
+
-1
|
|
185
|
+
/* CACHED */
|
|
186
|
+
)
|
|
187
|
+
])]),
|
|
188
|
+
_: 1
|
|
189
|
+
/* STABLE */
|
|
190
|
+
}),
|
|
191
|
+
G((d(), N(l, {
|
|
192
|
+
type: "primary",
|
|
193
|
+
onClick: j
|
|
194
|
+
}, {
|
|
195
|
+
default: p(() => [...t[5] || (t[5] = [
|
|
196
|
+
c(
|
|
197
|
+
"确认",
|
|
198
|
+
-1
|
|
199
|
+
/* CACHED */
|
|
200
|
+
)
|
|
201
|
+
])]),
|
|
202
|
+
_: 1
|
|
203
|
+
/* STABLE */
|
|
204
|
+
})), [
|
|
205
|
+
[x, P.value]
|
|
206
|
+
]),
|
|
207
|
+
y(l, {
|
|
208
|
+
type: "danger",
|
|
209
|
+
onClick: E
|
|
210
|
+
}, {
|
|
211
|
+
default: p(() => [...t[6] || (t[6] = [
|
|
212
|
+
c(
|
|
213
|
+
"打回",
|
|
214
|
+
-1
|
|
215
|
+
/* CACHED */
|
|
216
|
+
)
|
|
217
|
+
])]),
|
|
218
|
+
_: 1
|
|
219
|
+
/* STABLE */
|
|
220
|
+
})
|
|
221
|
+
],
|
|
222
|
+
64
|
|
223
|
+
/* STABLE_FRAGMENT */
|
|
224
|
+
))
|
|
225
|
+
])) : k("v-if", !0)
|
|
226
|
+
],
|
|
227
|
+
4
|
|
228
|
+
/* STYLE */
|
|
229
|
+
);
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
}), Q = (s, v) => {
|
|
233
|
+
const i = s.__vccOpts || s;
|
|
234
|
+
for (const [n, a] of v)
|
|
235
|
+
i[n] = a;
|
|
236
|
+
return i;
|
|
237
|
+
}, W = /* @__PURE__ */ Q(L, [["__scopeId", "data-v-baa941fc"]]), Z = H(W);
|
|
238
|
+
export {
|
|
239
|
+
Z as IkBottomOperate,
|
|
240
|
+
Z as default
|
|
241
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gl-btn-content .el-dropdown-menu__item:not(.is-disabled):focus{background-color:transparent}.gl-btn-content .el-dropdown-menu__item i{margin-right:0}.gl-btn-content .el-dropdown-menu__item .el-button.is-text{padding:var(--base-p) calc(var(--base-p) * 2)}.gl-btn-content .el-dropdown-menu__item .ik-icon-btn.show-bg.start-margin{margin-left:0}.more-operate{height:32px;width:32px;border-radius:6px;background-color:var(--ik-icon-bg);transition:background-color .3s;cursor:pointer}.more-operate:hover{background-color:var(--ik-main-icon-active-color);color:var(--el-color-primary)}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineComponent as y, ref as b, watchEffect as C, createVNode as l, resolveComponent as d, withDirectives as x, mergeProps as I, resolveDirective as S } from "vue";
|
|
2
|
+
import { MoreFilled as h } from "@element-plus/icons-vue";
|
|
3
|
+
const B = (n, t) => (n.install = (c) => {
|
|
4
|
+
for (const i of [n, ...Object.values({})])
|
|
5
|
+
c.component(i.name, i);
|
|
6
|
+
}, n), D = /* @__PURE__ */ y({
|
|
7
|
+
name: "IkBtnContent",
|
|
8
|
+
components: {
|
|
9
|
+
MoreFilled: h
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
// 外部显示数量
|
|
13
|
+
num: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 3
|
|
16
|
+
},
|
|
17
|
+
// 如何触发展开
|
|
18
|
+
trigger: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "click"
|
|
21
|
+
},
|
|
22
|
+
// 展开位置
|
|
23
|
+
placement: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "bottom"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(n, {
|
|
29
|
+
slots: t,
|
|
30
|
+
attrs: c
|
|
31
|
+
}) {
|
|
32
|
+
const i = b(null), p = b(0), f = (r) => r == null ? void 0 : r.filter((u) => typeof u.children != "string");
|
|
33
|
+
return C(() => {
|
|
34
|
+
var r, u, o;
|
|
35
|
+
i.value = (u = (r = t.default) == null ? void 0 : r.call(t)) == null ? void 0 : u.filter((a) => typeof a.children != "string"), p.value = ((o = i.value) == null ? void 0 : o.length) || 0;
|
|
36
|
+
}), () => {
|
|
37
|
+
var r, u;
|
|
38
|
+
return l("div", {
|
|
39
|
+
class: "flex"
|
|
40
|
+
}, [
|
|
41
|
+
// 未超出限制按钮渲染
|
|
42
|
+
(u = f((r = t.default) == null ? void 0 : r.call(t))) == null ? void 0 : u.map((o, a) => a + 1 > n.num ? null : o),
|
|
43
|
+
// 超出限制按钮渲染
|
|
44
|
+
p.value > n.num ? l(d("el-dropdown"), {
|
|
45
|
+
trigger: n.trigger,
|
|
46
|
+
"popper-class": "gl-btn-content"
|
|
47
|
+
}, {
|
|
48
|
+
default: () => l(d("el-icon"), {
|
|
49
|
+
title: "更多",
|
|
50
|
+
class: "ml-[12px] more-operate"
|
|
51
|
+
}, {
|
|
52
|
+
default: () => [l(h, null, null)]
|
|
53
|
+
}),
|
|
54
|
+
dropdown: () => l(d("el-dropdown-menu"), null, {
|
|
55
|
+
default: () => {
|
|
56
|
+
var o, a;
|
|
57
|
+
return [p.value > n.num ? (a = f((o = t.default) == null ? void 0 : o.call(t))) == null ? void 0 : a.map((e, k) => k < n.num ? null : l(d("el-dropdown-item"), null, {
|
|
58
|
+
default: () => {
|
|
59
|
+
var m, g;
|
|
60
|
+
return [x(l(d("el-button"), I(e == null ? void 0 : e.props, {
|
|
61
|
+
link: !0
|
|
62
|
+
}), {
|
|
63
|
+
default: () => {
|
|
64
|
+
var v, w;
|
|
65
|
+
return [((v = e == null ? void 0 : e.props) == null ? void 0 : v.title) || ((w = e == null ? void 0 : e.props) == null ? void 0 : w.label)];
|
|
66
|
+
}
|
|
67
|
+
}), [[S("role"), (g = (m = e == null ? void 0 : e.dirs) == null ? void 0 : m[0]) == null ? void 0 : g.value]])];
|
|
68
|
+
}
|
|
69
|
+
})) : null];
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
}) : null
|
|
73
|
+
]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}), j = B(D);
|
|
77
|
+
export {
|
|
78
|
+
j as IkBtnContent,
|
|
79
|
+
j as default
|
|
80
|
+
};
|
|
@@ -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%}.ik-collapse-box-card[data-v-f29f6bf5]{flex:1;margin-bottom:20px;--el-card-border-radius: 0}.ik-collapse-box-card[data-v-f29f6bf5] .el-card__header{padding:12px;color:var(--el-text-color-regular);background-color:var(--el-bg-color-page);border-bottom:none}.ik-collapse-box-card[data-v-f29f6bf5] .el-card__header .el-button.is-link:hover{--ik-icon-deep-color: var(--ik-color-primary);--ik-icon-shallow-color: var(--ik-icon-shallow-hover)}.ik-collapse-box-card[data-v-f29f6bf5] .ik-svg-icon{transition:all .25s}.ik-collapse-box-card[data-v-f29f6bf5] .ik-svg-icon.toogle{transform:rotate(-90deg)}.ik-collapse-box-card.hiddened[data-v-f29f6bf5] .el-card__body{grid-template-rows:0fr;padding-top:0!important;padding-bottom:0!important;overflow:hidden;opacity:0}.ik-collapse-box-card[data-v-f29f6bf5] .el-card__body{display:grid;grid-template-rows:1fr;padding:0;overflow:hidden!important;opacity:1;transition:all .25s ease}.ik-collapse-box-card[data-v-f29f6bf5] .el-card__body table>tbody>tr>td>.cell .cell-icon{font-size:14px}.ik-collapse-box-card[data-v-f29f6bf5] .el-card__body table>tbody>tr>td>.cell .el-button span{margin-left:3px}
|