iking-web-ui-pro 0.2.52 → 0.2.53
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/IKExpandCollapse/ik.index.es.js +3 -3
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- 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 +2098 -2017
- package/dist/IKPreviewFile/ik.index.umd.js +49 -49
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +1035 -1035
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IKVerticalStepBar/ik.index.es.js +3 -3
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +853 -853
- 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 +2794 -2713
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +226 -0
- package/dist/IkApprovalProcessDetail/style.css +1 -0
- package/dist/IkBaseDialog/ik.index.es.js +4 -4
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBottomOperate/ik.index.es.js +60 -60
- package/dist/IkBottomOperate/ik.index.umd.js +1 -1
- package/dist/IkBottomOperate/style.css +1 -1
- package/dist/IkBtnContent/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +111 -111
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +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/IkCollapseCard/ik.index.es.js +4 -4
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +2016 -1935
- package/dist/IkDescription/ik.index.umd.js +49 -49
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +2317 -2236
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +50 -50
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- 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/IkIconPicker/ik.index.es.js +3 -3
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +30 -30
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1467 -1467
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- 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 +791 -710
- package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +5 -5
- package/dist/IkRadioGroup/ik.index.umd.js +1 -1
- package/dist/IkRadioGroup/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +1553 -1536
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +29 -29
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +9 -9
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +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 +26332 -26791
- package/dist/IkTinymce/ik.index.umd.js +61 -61
- package/dist/IkUploadFile/ik.index.es.js +1341 -1260
- package/dist/IkUploadFile/ik.index.umd.js +50 -50
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +278 -278
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +37603 -37964
- package/dist/index.umd.js +133 -133
- 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 -101
- 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/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 +1 -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/IKApprovalProcessDetail/style.css +0 -1
- package/dist/IKCalendar/ik.index.umd.js +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as F, openBlock as r, createElementBlock as f, createElementVNode as S, computed as L, resolveComponent as D, normalizeClass as w, normalizeStyle as B, createCommentVNode as E, createBlock as N, withCtx as g, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as _, createVNode as C, Transition as ne, renderSlot as q, mergeModels as R, useModel as se, resolveDirective as ie, Fragment as G, withDirectives as J, mergeProps as K, createSlots as ue, renderList as re
|
|
2
|
-
import { ikColor as
|
|
3
|
-
import
|
|
4
|
-
const P = (
|
|
5
|
-
if (
|
|
6
|
-
for (const u of [
|
|
1
|
+
import { defineComponent as F, openBlock as r, createElementBlock as f, createElementVNode as S, computed as L, resolveComponent as D, normalizeClass as w, normalizeStyle as B, createCommentVNode as E, createBlock as N, withCtx as g, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as _, createVNode as C, Transition as ne, renderSlot as q, mergeModels as R, useModel as se, resolveDirective as ie, Fragment as G, withDirectives as J, mergeProps as K, createSlots as ue, renderList as re } from "vue";
|
|
2
|
+
import { ikColor as ce, _ as I, ikStore as H } from "iking-utils-pro";
|
|
3
|
+
import de from "vuedraggable";
|
|
4
|
+
const P = (a, y) => {
|
|
5
|
+
if (a.install = (e) => {
|
|
6
|
+
for (const u of [a, ...Object.values(y ?? {})])
|
|
7
7
|
e.component(u.name, u);
|
|
8
8
|
}, y)
|
|
9
9
|
for (const [e, u] of Object.entries(y))
|
|
10
|
-
|
|
11
|
-
return
|
|
10
|
+
a[e] = u;
|
|
11
|
+
return a;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var ve = /* @__PURE__ */ F({
|
|
15
15
|
name: "DCaret",
|
|
16
16
|
__name: "d-caret",
|
|
17
|
-
setup(
|
|
17
|
+
setup(a) {
|
|
18
18
|
return (y, e) => (r(), f("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 1024 1024"
|
|
@@ -25,24 +25,24 @@ var fe = /* @__PURE__ */ F({
|
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
const X = (
|
|
30
|
-
const e =
|
|
28
|
+
}), pe = ve;
|
|
29
|
+
const X = (a, y) => {
|
|
30
|
+
const e = a.__vccOpts || a;
|
|
31
31
|
for (const [u, c] of y)
|
|
32
32
|
e[u] = c;
|
|
33
33
|
return e;
|
|
34
|
-
},
|
|
34
|
+
}, fe = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
37
|
-
},
|
|
37
|
+
}, ge = {
|
|
38
38
|
key: 1,
|
|
39
39
|
class: "h-[1em] w-[1em]",
|
|
40
40
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
41
|
+
}, me = ["xlink:href"], ye = ["src"], he = {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "h-[1em] w-[1em]",
|
|
44
44
|
"aria-hidden": "true"
|
|
45
|
-
},
|
|
45
|
+
}, ke = ["xlink:href"], be = ["src"], _e = /* @__PURE__ */ F({
|
|
46
46
|
name: "IkSvgIcon",
|
|
47
47
|
__name: "index",
|
|
48
48
|
props: {
|
|
@@ -68,8 +68,8 @@ const X = (l, y) => {
|
|
|
68
68
|
warning: { type: Boolean },
|
|
69
69
|
width: {}
|
|
70
70
|
},
|
|
71
|
-
setup(
|
|
72
|
-
const y =
|
|
71
|
+
setup(a) {
|
|
72
|
+
const y = a, e = L(() => y), u = L(() => {
|
|
73
73
|
const { name: t } = e.value;
|
|
74
74
|
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";
|
|
75
75
|
}), c = L(() => {
|
|
@@ -94,15 +94,15 @@ const X = (l, y) => {
|
|
|
94
94
|
...t.length && { transform: t.join(" ") },
|
|
95
95
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
96
96
|
...e.value.color && u.value !== "iksig" ? {
|
|
97
|
-
"--ik-
|
|
98
|
-
"--ik-
|
|
97
|
+
"--ik-icon-deep-color": e.value.color,
|
|
98
|
+
"--ik-icon-shallow-color": e.value.colorLight || ce.setOpacity(e.value.color, e.value.opacity)
|
|
99
99
|
} : {}
|
|
100
100
|
};
|
|
101
101
|
return e.value.width && (k.width = k.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), k;
|
|
102
102
|
});
|
|
103
103
|
return (t, k) => {
|
|
104
104
|
const O = D("el-tooltip"), $ = D("el-button");
|
|
105
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (r(), f("span",
|
|
105
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (r(), f("span", fe, [
|
|
106
106
|
e.value.notip || !e.value.title ? (r(), f(
|
|
107
107
|
"i",
|
|
108
108
|
{
|
|
@@ -134,15 +134,15 @@ const X = (l, y) => {
|
|
|
134
134
|
null,
|
|
135
135
|
6
|
|
136
136
|
/* CLASS, STYLE */
|
|
137
|
-
)) : u.value === "svg" ? (r(), f("svg",
|
|
137
|
+
)) : u.value === "svg" ? (r(), f("svg", ge, [
|
|
138
138
|
S("use", {
|
|
139
139
|
"xlink:href": `#${e.value.name}`
|
|
140
|
-
}, null, 8,
|
|
140
|
+
}, null, 8, me)
|
|
141
141
|
])) : u.value === "img" ? (r(), f("img", {
|
|
142
142
|
key: 2,
|
|
143
143
|
src: e.value.name,
|
|
144
144
|
class: "h-[1em] w-[1em]"
|
|
145
|
-
}, null, 8,
|
|
145
|
+
}, null, 8, ye)) : (r(), f(
|
|
146
146
|
"i",
|
|
147
147
|
{
|
|
148
148
|
key: 3,
|
|
@@ -190,15 +190,15 @@ const X = (l, y) => {
|
|
|
190
190
|
null,
|
|
191
191
|
6
|
|
192
192
|
/* CLASS, STYLE */
|
|
193
|
-
)) : u.value === "svg" ? (r(), f("svg",
|
|
193
|
+
)) : u.value === "svg" ? (r(), f("svg", he, [
|
|
194
194
|
S("use", {
|
|
195
195
|
"xlink:href": `#${e.value.name}`
|
|
196
|
-
}, null, 8,
|
|
196
|
+
}, null, 8, ke)
|
|
197
197
|
])) : u.value === "img" ? (r(), f("img", {
|
|
198
198
|
key: 2,
|
|
199
199
|
src: e.value.name,
|
|
200
200
|
class: "h-[1em] w-[1em]"
|
|
201
|
-
}, null, 8,
|
|
201
|
+
}, null, 8, be)) : (r(), f(
|
|
202
202
|
"i",
|
|
203
203
|
{
|
|
204
204
|
key: 3,
|
|
@@ -234,7 +234,7 @@ const X = (l, y) => {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
const
|
|
237
|
+
const we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we), Q = {
|
|
238
238
|
animation: 200,
|
|
239
239
|
group: "gl",
|
|
240
240
|
disabled: !1,
|
|
@@ -247,7 +247,7 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie)
|
|
|
247
247
|
bottom: 8,
|
|
248
248
|
background: "var(--ik-sub-sidebar-menu-bg)"
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, xe = {
|
|
251
251
|
list: {
|
|
252
252
|
required: !0,
|
|
253
253
|
type: Array,
|
|
@@ -385,16 +385,16 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie)
|
|
|
385
385
|
}
|
|
386
386
|
})
|
|
387
387
|
}
|
|
388
|
-
},
|
|
388
|
+
}, Ie = /* @__PURE__ */ F({
|
|
389
389
|
__name: "IkDragList",
|
|
390
|
-
props:
|
|
390
|
+
props: xe,
|
|
391
391
|
emits: ["change"],
|
|
392
|
-
setup(
|
|
393
|
-
const e =
|
|
392
|
+
setup(a, { emit: y }) {
|
|
393
|
+
const e = a, u = y, c = V([]);
|
|
394
394
|
Z(
|
|
395
395
|
() => e.list,
|
|
396
|
-
(
|
|
397
|
-
c.value =
|
|
396
|
+
(v) => {
|
|
397
|
+
c.value = I.cloneDeep(v);
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
immediate: !0,
|
|
@@ -410,20 +410,20 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie)
|
|
|
410
410
|
}
|
|
411
411
|
})), k = V(!1), O = () => {
|
|
412
412
|
k.value = !0;
|
|
413
|
-
}, $ = (
|
|
413
|
+
}, $ = (v) => {
|
|
414
414
|
k.value = !1;
|
|
415
|
-
const
|
|
415
|
+
const x = e.list[v.oldIndex];
|
|
416
416
|
u("change", c.value, {
|
|
417
|
-
...
|
|
418
|
-
oldIndex:
|
|
419
|
-
newIndex:
|
|
417
|
+
...x,
|
|
418
|
+
oldIndex: v.oldIndex,
|
|
419
|
+
newIndex: v.newIndex
|
|
420
420
|
});
|
|
421
421
|
};
|
|
422
|
-
return (
|
|
423
|
-
const
|
|
424
|
-
return r(), N(_(
|
|
422
|
+
return (v, x) => {
|
|
423
|
+
const p = D("el-icon");
|
|
424
|
+
return r(), N(_(de), {
|
|
425
425
|
modelValue: c.value,
|
|
426
|
-
"onUpdate:modelValue":
|
|
426
|
+
"onUpdate:modelValue": x[0] || (x[0] = (n) => c.value = n),
|
|
427
427
|
class: w(["list-group", [t.value.groupClass]]),
|
|
428
428
|
tag: "ul",
|
|
429
429
|
attrs: t.value,
|
|
@@ -445,7 +445,7 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie)
|
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
default: g(() => [
|
|
448
|
-
|
|
448
|
+
v.$slots.item ? q(v.$slots, "item", {
|
|
449
449
|
key: 0,
|
|
450
450
|
item: n
|
|
451
451
|
}, void 0, !0) : (r(), f(
|
|
@@ -460,13 +460,13 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie)
|
|
|
460
460
|
})
|
|
461
461
|
},
|
|
462
462
|
[
|
|
463
|
-
t.value.showIcon && !
|
|
463
|
+
t.value.showIcon && !v.$slots.icon ? (r(), N(p, { key: 0 }, {
|
|
464
464
|
default: g(() => [
|
|
465
|
-
C(_(
|
|
465
|
+
C(_(pe))
|
|
466
466
|
]),
|
|
467
467
|
_: 1
|
|
468
468
|
/* STABLE */
|
|
469
|
-
})) : q(
|
|
469
|
+
})) : q(v.$slots, "icon", { key: 1 }, void 0, !0),
|
|
470
470
|
z(
|
|
471
471
|
" " + T(n.label),
|
|
472
472
|
1
|
|
@@ -490,13 +490,7 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-52806adf"]]), xe = P(Ie)
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
|
-
const
|
|
494
|
-
"i",
|
|
495
|
-
{ class: "ik ik-shezhi" },
|
|
496
|
-
null,
|
|
497
|
-
-1
|
|
498
|
-
/* HOISTED */
|
|
499
|
-
)), Ne = { class: "check-right" }, Te = { class: "dialog-footer" }, Le = /* @__PURE__ */ F({
|
|
493
|
+
const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be), $e = { class: "check-right" }, ze = { class: "dialog-footer" }, Ve = /* @__PURE__ */ F({
|
|
500
494
|
__name: "IkBtnSetting",
|
|
501
495
|
props: /* @__PURE__ */ R({
|
|
502
496
|
list: {
|
|
@@ -536,7 +530,7 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
536
530
|
config: {
|
|
537
531
|
type: Object,
|
|
538
532
|
default: () => ({
|
|
539
|
-
t: (
|
|
533
|
+
t: (a) => a,
|
|
540
534
|
dialog: {
|
|
541
535
|
l: "700px",
|
|
542
536
|
sl: "600px"
|
|
@@ -555,43 +549,43 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
555
549
|
modelModifiers: {}
|
|
556
550
|
}),
|
|
557
551
|
emits: /* @__PURE__ */ R(["sort"], ["update:modelValue"]),
|
|
558
|
-
setup(
|
|
559
|
-
const e =
|
|
560
|
-
const s =
|
|
561
|
-
return !s &&
|
|
552
|
+
setup(a, { emit: y }) {
|
|
553
|
+
const e = a, u = y, c = se(a, "modelValue"), { t, dialog: k, path: O, user: $ } = e.config, v = L(() => `${$ == null ? void 0 : $.id}_${O}${e.tab !== "" ? `_${e.tab}` : ""}`), x = V([]), p = V([]), n = V([]), M = /* @__PURE__ */ new Map(), A = V(!1), ee = L(() => {
|
|
554
|
+
const s = p.value.length && p.value.length !== e.list.length;
|
|
555
|
+
return !s && p.value.length && (A.value = !0), !!s;
|
|
562
556
|
}), U = (s) => {
|
|
563
557
|
var i;
|
|
564
|
-
const
|
|
565
|
-
|
|
558
|
+
const l = I.cloneDeep(n.value);
|
|
559
|
+
l == null || l.forEach((o) => {
|
|
566
560
|
var b;
|
|
567
|
-
if (!
|
|
561
|
+
if (!p.value.length)
|
|
568
562
|
n.value = [];
|
|
569
|
-
else if (!
|
|
563
|
+
else if (!p.value.includes(o == null ? void 0 : o.key)) {
|
|
570
564
|
const h = (b = n.value) == null ? void 0 : b.findIndex((d) => d.key === o.key);
|
|
571
565
|
h !== -1 && n.value.splice(h, 1), o.show = !1, M.set(o.key, o);
|
|
572
566
|
}
|
|
573
|
-
}),
|
|
567
|
+
}), p.value.forEach((o) => {
|
|
574
568
|
var h;
|
|
575
569
|
if (((h = n.value) == null ? void 0 : h.findIndex((d) => (d == null ? void 0 : d.key) === o)) === -1) {
|
|
576
570
|
const d = M.get(o);
|
|
577
571
|
d && (d.show = !0, n.value.push(d));
|
|
578
572
|
}
|
|
579
|
-
}), (i = n.value) != null && i.length || (n.value =
|
|
573
|
+
}), (i = n.value) != null && i.length || (n.value = I.cloneDeep(e.list)), s === !0 && (u("sort", I.cloneDeep(n.value)), c.value = I.cloneDeep(n.value));
|
|
580
574
|
}, te = (s) => {
|
|
581
575
|
if (s)
|
|
582
|
-
|
|
576
|
+
p.value = e.list.map((l) => l.key);
|
|
583
577
|
else {
|
|
584
|
-
const
|
|
585
|
-
|
|
578
|
+
const l = e.list.find((i) => !i.key || i.label === "操作");
|
|
579
|
+
p.value = l ? [l.key] : [];
|
|
586
580
|
}
|
|
587
581
|
U();
|
|
588
582
|
}, W = () => {
|
|
589
|
-
const s = H.local.getItem(
|
|
583
|
+
const s = H.local.getItem(v.value);
|
|
590
584
|
try {
|
|
591
|
-
const
|
|
585
|
+
const l = I.cloneDeep(e == null ? void 0 : e.list);
|
|
592
586
|
if ((!s || !(s != null && s.length)) && H.local.setItem(
|
|
593
|
-
|
|
594
|
-
|
|
587
|
+
v.value,
|
|
588
|
+
l.map(({ show: i, type: o, key: b, label: h, width: d, minWidth: m, align: oe }) => ({
|
|
595
589
|
show: i,
|
|
596
590
|
key: b,
|
|
597
591
|
type: o,
|
|
@@ -600,21 +594,21 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
600
594
|
minWidth: m,
|
|
601
595
|
align: oe
|
|
602
596
|
}))
|
|
603
|
-
),
|
|
604
|
-
...(
|
|
597
|
+
), x.value = [
|
|
598
|
+
...(l == null ? void 0 : l.map((i) => (M.set(i.key, i), {
|
|
605
599
|
...i,
|
|
606
600
|
show: i.show || !1
|
|
607
601
|
}))) || []
|
|
608
602
|
], s) {
|
|
609
603
|
const i = s.filter((o) => o.show).map((o) => o.key);
|
|
610
|
-
|
|
604
|
+
p.value = [...i];
|
|
611
605
|
} else {
|
|
612
|
-
const i =
|
|
613
|
-
|
|
606
|
+
const i = x.value.filter((o) => o.show);
|
|
607
|
+
p.value = i.map((o) => o.key);
|
|
614
608
|
}
|
|
615
609
|
U(!0);
|
|
616
|
-
} catch (
|
|
617
|
-
console.info("error: ",
|
|
610
|
+
} catch (l) {
|
|
611
|
+
console.info("error: ", l);
|
|
618
612
|
}
|
|
619
613
|
};
|
|
620
614
|
W(), Z(() => e.list, () => {
|
|
@@ -626,37 +620,43 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
626
620
|
n.value = s;
|
|
627
621
|
}, ae = () => {
|
|
628
622
|
j.value = !1, H.local.setItem(
|
|
629
|
-
|
|
630
|
-
n.value.map(({ show: s, key:
|
|
623
|
+
v.value,
|
|
624
|
+
n.value.map(({ show: s, key: l, label: i, value: o, width: b, minWidth: h, align: d }) => ({
|
|
631
625
|
show: s,
|
|
632
|
-
key:
|
|
626
|
+
key: l,
|
|
633
627
|
label: i,
|
|
634
628
|
value: o,
|
|
635
629
|
width: b,
|
|
636
630
|
minWidth: h,
|
|
637
631
|
align: d
|
|
638
632
|
}))
|
|
639
|
-
), u("sort",
|
|
633
|
+
), u("sort", I.cloneDeep(n.value)), c.value = I.cloneDeep(n.value);
|
|
640
634
|
};
|
|
641
|
-
return (s,
|
|
635
|
+
return (s, l) => {
|
|
642
636
|
const i = D("el-button"), o = D("el-checkbox"), b = D("el-checkbox-group"), h = D("el-dialog"), d = ie("role");
|
|
643
637
|
return r(), f(
|
|
644
638
|
G,
|
|
645
639
|
null,
|
|
646
640
|
[
|
|
647
|
-
|
|
648
|
-
circle:
|
|
649
|
-
type:
|
|
650
|
-
style: { minWidth:
|
|
641
|
+
a.btnType === "button" ? J((r(), N(i, K({ key: 0 }, s.$attrs, {
|
|
642
|
+
circle: a.circle,
|
|
643
|
+
type: a.type,
|
|
644
|
+
style: { minWidth: a.circle ? "40px" : "", minHeight: a.circle ? "40px" : "" },
|
|
651
645
|
onClick: Y
|
|
652
646
|
}), ue({
|
|
653
647
|
icon: g(() => [
|
|
654
|
-
|
|
648
|
+
l[4] || (l[4] = S(
|
|
649
|
+
"i",
|
|
650
|
+
{ class: "ik ik-shezhi" },
|
|
651
|
+
null,
|
|
652
|
+
-1
|
|
653
|
+
/* HOISTED */
|
|
654
|
+
))
|
|
655
655
|
]),
|
|
656
656
|
_: 2
|
|
657
657
|
/* DYNAMIC */
|
|
658
658
|
}, [
|
|
659
|
-
|
|
659
|
+
a.circle ? void 0 : {
|
|
660
660
|
name: "default",
|
|
661
661
|
fn: g(() => [
|
|
662
662
|
E(' {{ t("action.setting") }} '),
|
|
@@ -671,8 +671,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
671
671
|
]), 1040, ["circle", "type", "style"])), [
|
|
672
672
|
[d, s.$props.role]
|
|
673
673
|
]) : E("v-if", !0),
|
|
674
|
-
|
|
675
|
-
_(
|
|
674
|
+
a.btnType === "icon" ? J((r(), N(
|
|
675
|
+
_(Se),
|
|
676
676
|
K({
|
|
677
677
|
key: 1,
|
|
678
678
|
name: "iksvg_shezhi-daohang",
|
|
@@ -687,9 +687,9 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
687
687
|
]) : E("v-if", !0),
|
|
688
688
|
C(h, {
|
|
689
689
|
modelValue: j.value,
|
|
690
|
-
"onUpdate:modelValue":
|
|
690
|
+
"onUpdate:modelValue": l[3] || (l[3] = (m) => j.value = m),
|
|
691
691
|
draggable: "",
|
|
692
|
-
width:
|
|
692
|
+
width: a.inline ? _(k).l : _(k).sl,
|
|
693
693
|
"close-on-click-modal": !1,
|
|
694
694
|
"close-on-press-escape": !1,
|
|
695
695
|
title: "显示字段",
|
|
@@ -697,9 +697,9 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
697
697
|
onOpen: W
|
|
698
698
|
}, {
|
|
699
699
|
footer: g(() => [
|
|
700
|
-
S("div",
|
|
700
|
+
S("div", ze, [
|
|
701
701
|
C(i, {
|
|
702
|
-
onClick:
|
|
702
|
+
onClick: l[2] || (l[2] = (m) => j.value = !1)
|
|
703
703
|
}, {
|
|
704
704
|
default: g(() => [
|
|
705
705
|
z(
|
|
@@ -733,38 +733,38 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
733
733
|
S(
|
|
734
734
|
"div",
|
|
735
735
|
{
|
|
736
|
-
class: w(["view-fields", [
|
|
736
|
+
class: w(["view-fields", [a.inline ? null : "un-inline"]])
|
|
737
737
|
},
|
|
738
738
|
[
|
|
739
739
|
S(
|
|
740
740
|
"div",
|
|
741
741
|
{
|
|
742
|
-
style: B({ flex:
|
|
742
|
+
style: B({ flex: a.inline ? 2 : 1 })
|
|
743
743
|
},
|
|
744
744
|
[
|
|
745
745
|
C(o, {
|
|
746
746
|
modelValue: A.value,
|
|
747
|
-
"onUpdate:modelValue":
|
|
747
|
+
"onUpdate:modelValue": l[0] || (l[0] = (m) => A.value = m),
|
|
748
748
|
class: "single-line",
|
|
749
749
|
indeterminate: ee.value,
|
|
750
750
|
onChange: te
|
|
751
751
|
}, {
|
|
752
|
-
default: g(() => [
|
|
752
|
+
default: g(() => l[5] || (l[5] = [
|
|
753
753
|
z(" 全选 ")
|
|
754
|
-
]),
|
|
754
|
+
])),
|
|
755
755
|
_: 1
|
|
756
756
|
/* STABLE */
|
|
757
757
|
}, 8, ["modelValue", "indeterminate"]),
|
|
758
758
|
C(b, {
|
|
759
|
-
modelValue:
|
|
760
|
-
"onUpdate:modelValue":
|
|
759
|
+
modelValue: p.value,
|
|
760
|
+
"onUpdate:modelValue": l[1] || (l[1] = (m) => p.value = m),
|
|
761
761
|
onChange: U
|
|
762
762
|
}, {
|
|
763
763
|
default: g(() => [
|
|
764
764
|
(r(!0), f(
|
|
765
765
|
G,
|
|
766
766
|
null,
|
|
767
|
-
re(
|
|
767
|
+
re(x.value, (m) => (r(), N(o, {
|
|
768
768
|
key: m.key,
|
|
769
769
|
disabled: !m.key,
|
|
770
770
|
label: m.key
|
|
@@ -790,8 +790,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
790
790
|
4
|
|
791
791
|
/* STYLE */
|
|
792
792
|
),
|
|
793
|
-
S("div",
|
|
794
|
-
C(_(
|
|
793
|
+
S("div", $e, [
|
|
794
|
+
C(_(Ce), {
|
|
795
795
|
list: n.value,
|
|
796
796
|
"item-style": { bottom: 4 },
|
|
797
797
|
onChange: le
|
|
@@ -812,8 +812,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
|
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
|
-
const
|
|
815
|
+
const De = /* @__PURE__ */ X(Ve, [["__scopeId", "data-v-b5ed17ed"]]), Oe = P(De);
|
|
816
816
|
export {
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
Oe as IkBtnSetting,
|
|
818
|
+
Oe as default
|
|
819
819
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue,k["iking-utils-pro"],k.vuedraggable))})(this,function(k,e,y,T){"use strict";const v=(a,g)=>{if(a.install=t=>{for(const c of[a,...Object.values(g??{})])t.component(c.name,c)},g)for(const[t,c]of Object.entries(g))a[t]=c;return a};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(a){return(g,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(a,g)=>{const t=a.__vccOpts||a;for(const[c,d]of g)t[c]=d;return t},O={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(a){const g=a,t=e.computed(()=>g),c=e.computed(()=>{const{name:l}=t.value;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"}),d=e.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const _={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&c.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(_.width=_.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),_});return(l,_)=>{const S=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(d.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(d.value)},[c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(w,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-52806adf"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(a,{emit:g}){const t=a,c=g,d=e.ref([]);e.watch(()=>t.list,p=>{d.value=y._.cloneDeep(p)},{immediate:!0,deep:!0});const l=e.computed(()=>({...E,...t,itemStyle:{...E.itemStyle,...t.itemStyle}})),_=e.ref(!1),S=()=>{_.value=!0},w=p=>{_.value=!1;const B=t.list[p.oldIndex];c("change",d.value,{...B,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,B)=>{const m=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:d.value,"onUpdate:modelValue":B[0]||(B[0]=s=>d.value=s),class:e.normalizeClass(["list-group",[l.value.groupClass]]),tag:"ul",attrs:l.value,animation:l.value.animation,group:l.value.group,disabled:l.value.disabled,"ghost-class":l.value.ghostClass,"force-fallback":l.value.ghostClass,"item-key":"order",onStart:S,onEnd:w},{item:e.withCtx(({element:s})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:s},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[l.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${l.value.itemStyle.radius}px`,marginBottom:`${l.value.itemStyle.bottom}px`,backgroundColor:`${l.value.itemStyle.background}`})},[l.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(m,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(s.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(a=>(e.pushScopeId("data-v-b5ed17ed"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:a=>a,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(a,{emit:g}){const t=a,c=g,d=e.useModel(a,"modelValue"),{t:l,dialog:_,path:S,user:w}=t.config,p=e.computed(()=>`${w==null?void 0:w.id}_${S}${t.tab!==""?`_${t.tab}`:""}`),B=e.ref([]),m=e.ref([]),s=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const i=m.value.length&&m.value.length!==t.list.length;return!i&&m.value.length&&(I.value=!0),!!i}),N=i=>{var r;const o=y._.cloneDeep(s.value);o==null||o.forEach(n=>{var b;if(!m.value.length)s.value=[];else if(!m.value.includes(n==null?void 0:n.key)){const h=(b=s.value)==null?void 0:b.findIndex(u=>u.key===n.key);h!==-1&&s.value.splice(h,1),n.show=!1,V.set(n.key,n)}}),m.value.forEach(n=>{var h;if(((h=s.value)==null?void 0:h.findIndex(u=>(u==null?void 0:u.key)===n))===-1){const u=V.get(n);u&&(u.show=!0,s.value.push(u))}}),(r=s.value)!=null&&r.length||(s.value=y._.cloneDeep(t.list)),i===!0&&(c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value))},ee=i=>{if(i)m.value=t.list.map(o=>o.key);else{const o=t.list.find(r=>!r.key||r.label==="操作");m.value=o?[o.key]:[]}N()},z=()=>{const i=y.ikStore.local.getItem(p.value);try{const o=y._.cloneDeep(t==null?void 0:t.list);if((!i||!(i!=null&&i.length))&&y.ikStore.local.setItem(p.value,o.map(({show:r,type:n,key:b,label:h,width:u,minWidth:f,align:ae})=>({show:r,key:b,type:n,label:h,width:u,minWidth:f,align:ae}))),B.value=[...(o==null?void 0:o.map(r=>(V.set(r.key,r),{...r,show:r.show||!1})))||[]],i){const r=i.filter(n=>n.show).map(n=>n.key);m.value=[...r]}else{const r=B.value.filter(n=>n.show);m.value=r.map(n=>n.key)}N(!0)}catch(o){console.info("error: ",o)}};z(),e.watch(()=>t.list,()=>{z()},{deep:!0});const C=e.ref(!1),D=()=>{C.value=!0},te=i=>{s.value=i},le=()=>{C.value=!1,y.ikStore.local.setItem(p.value,s.value.map(({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u})=>({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u}))),c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value)};return(i,o)=>{const r=e.resolveComponent("el-button"),n=e.resolveComponent("el-checkbox"),b=e.resolveComponent("el-checkbox-group"),h=e.resolveComponent("el-dialog"),u=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[a.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(r,e.mergeProps({key:0},i.$attrs,{circle:a.circle,type:a.type,style:{minWidth:a.circle?"40px":"",minHeight:a.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[a.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),a.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},i.$attrs,{onClick:D}),null,16)),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":o[3]||(o[3]=f=>C.value=f),draggable:"",width:a.inline?e.unref(_).l:e.unref(_).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(r,{onClick:o[2]||(o[2]=f=>C.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(r,{type:"primary",disabled:s.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.length<2?"至少选择一个字段":e.unref(l)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[a.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:a.inline?2:1})},[e.createVNode(n,{modelValue:I.value,"onUpdate:modelValue":o[0]||(o[0]=f=>I.value=f),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":o[1]||(o[1]=f=>m.value=f),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,f=>(e.openBlock(),e.createBlock(n,{key:f.key,disabled:!f.key,label:f.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:s.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));k.IkBtnSetting=$,k.default=$,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue,k["iking-utils-pro"],k.vuedraggable))})(this,function(k,e,y,T){"use strict";const v=(o,g)=>{if(o.install=t=>{for(const c of[o,...Object.values(g??{})])t.component(c.name,c)},g)for(const[t,c]of Object.entries(g))o[t]=c;return o};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(o){return(g,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(o,g)=>{const t=o.__vccOpts||o;for(const[c,d]of g)t[c]=d;return t},O={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(o){const g=o,t=e.computed(()=>g),c=e.computed(()=>{const{name:l}=t.value;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"}),d=e.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const b={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&c.value!=="iksig"?{"--ik-icon-deep-color":t.value.color,"--ik-icon-shallow-color":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(b.width=b.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),b});return(l,b)=>{const C=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(d.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)):(e.openBlock(),e.createBlock(C,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(d.value)},[c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(w,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),ae="",Y=v(x(X,[["__scopeId","data-v-e29a45f8"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(o,{emit:g}){const t=o,c=g,d=e.ref([]);e.watch(()=>t.list,p=>{d.value=y._.cloneDeep(p)},{immediate:!0,deep:!0});const l=e.computed(()=>({...E,...t,itemStyle:{...E.itemStyle,...t.itemStyle}})),b=e.ref(!1),C=()=>{b.value=!0},w=p=>{b.value=!1;const B=t.list[p.oldIndex];c("change",d.value,{...B,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,B)=>{const m=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:d.value,"onUpdate:modelValue":B[0]||(B[0]=s=>d.value=s),class:e.normalizeClass(["list-group",[l.value.groupClass]]),tag:"ul",attrs:l.value,animation:l.value.animation,group:l.value.group,disabled:l.value.disabled,"ghost-class":l.value.ghostClass,"force-fallback":l.value.ghostClass,"item-key":"order",onStart:C,onEnd:w},{item:e.withCtx(({element:s})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:s},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[l.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${l.value.itemStyle.radius}px`,marginBottom:`${l.value.itemStyle.bottom}px`,backgroundColor:`${l.value.itemStyle.background}`})},[l.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(m,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(s.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),ne="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K={class:"check-right"},Q={class:"dialog-footer"},Z=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:o=>o,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(o,{emit:g}){const t=o,c=g,d=e.useModel(o,"modelValue"),{t:l,dialog:b,path:C,user:w}=t.config,p=e.computed(()=>`${w==null?void 0:w.id}_${C}${t.tab!==""?`_${t.tab}`:""}`),B=e.ref([]),m=e.ref([]),s=e.ref([]),V=new Map,N=e.ref(!1),U=e.computed(()=>{const i=m.value.length&&m.value.length!==t.list.length;return!i&&m.value.length&&(N.value=!0),!!i}),z=i=>{var r;const a=y._.cloneDeep(s.value);a==null||a.forEach(n=>{var _;if(!m.value.length)s.value=[];else if(!m.value.includes(n==null?void 0:n.key)){const h=(_=s.value)==null?void 0:_.findIndex(u=>u.key===n.key);h!==-1&&s.value.splice(h,1),n.show=!1,V.set(n.key,n)}}),m.value.forEach(n=>{var h;if(((h=s.value)==null?void 0:h.findIndex(u=>(u==null?void 0:u.key)===n))===-1){const u=V.get(n);u&&(u.show=!0,s.value.push(u))}}),(r=s.value)!=null&&r.length||(s.value=y._.cloneDeep(t.list)),i===!0&&(c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value))},P=i=>{if(i)m.value=t.list.map(a=>a.key);else{const a=t.list.find(r=>!r.key||r.label==="操作");m.value=a?[a.key]:[]}z()},I=()=>{const i=y.ikStore.local.getItem(p.value);try{const a=y._.cloneDeep(t==null?void 0:t.list);if((!i||!(i!=null&&i.length))&&y.ikStore.local.setItem(p.value,a.map(({show:r,type:n,key:_,label:h,width:u,minWidth:f,align:le})=>({show:r,key:_,type:n,label:h,width:u,minWidth:f,align:le}))),B.value=[...(a==null?void 0:a.map(r=>(V.set(r.key,r),{...r,show:r.show||!1})))||[]],i){const r=i.filter(n=>n.show).map(n=>n.key);m.value=[...r]}else{const r=B.value.filter(n=>n.show);m.value=r.map(n=>n.key)}z(!0)}catch(a){console.info("error: ",a)}};I(),e.watch(()=>t.list,()=>{I()},{deep:!0});const S=e.ref(!1),D=()=>{S.value=!0},ee=i=>{s.value=i},te=()=>{S.value=!1,y.ikStore.local.setItem(p.value,s.value.map(({show:i,key:a,label:r,value:n,width:_,minWidth:h,align:u})=>({show:i,key:a,label:r,value:n,width:_,minWidth:h,align:u}))),c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value)};return(i,a)=>{const r=e.resolveComponent("el-button"),n=e.resolveComponent("el-checkbox"),_=e.resolveComponent("el-checkbox-group"),h=e.resolveComponent("el-dialog"),u=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(r,e.mergeProps({key:0},i.$attrs,{circle:o.circle,type:o.type,style:{minWidth:o.circle?"40px":"",minHeight:o.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[a[4]||(a[4]=e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1))]),_:2},[o.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),o.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},i.$attrs,{onClick:D}),null,16)),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(h,{modelValue:S.value,"onUpdate:modelValue":a[3]||(a[3]=f=>S.value=f),draggable:"",width:o.inline?e.unref(b).l:e.unref(b).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:I},{footer:e.withCtx(()=>[e.createElementVNode("div",Q,[e.createVNode(r,{onClick:a[2]||(a[2]=f=>S.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(r,{type:"primary",disabled:s.value.length<2,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.length<2?"至少选择一个字段":e.unref(l)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[o.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:o.inline?2:1})},[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":a[0]||(a[0]=f=>N.value=f),class:"single-line",indeterminate:U.value,onChange:P},{default:e.withCtx(()=>a[5]||(a[5]=[e.createTextVNode(" 全选 ")])),_:1},8,["modelValue","indeterminate"]),e.createVNode(_,{modelValue:m.value,"onUpdate:modelValue":a[1]||(a[1]=f=>m.value=f),onChange:z},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,f=>(e.openBlock(),e.createBlock(n,{key:f.key,disabled:!f.key,label:f.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",K,[e.createVNode(e.unref(J),{list:s.value,"item-style":{bottom:4},onChange:ee},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ie="",$=v(x(Z,[["__scopeId","data-v-b5ed17ed"]]));k.IkBtnSetting=$,k.default=$,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-e29a45f8]{display:flex}.ik-svg-icon.ik-icon-span[data-v-e29a45f8]:not(:first-child){margin-left:var(--ik-margin-s-12)}.ghost[data-v-3716c05e]{opacity:.9;background:var(--el-color-primary)!important;color:var(--el-color-white)}.list-group[data-v-3716c05e]{height:100%;width:100%;color:var(--el-text-color-regular);transition:all .25s}.list-group-item[data-v-3716c05e]{cursor:move;border-radius:4px;background:var(--el-color-primary-light-9);margin-bottom:var(--base-m);padding:var(--base-p);-webkit-user-select:none;user-select:none;display:flex;align-items:center}.list-group-item[data-v-3716c05e]:hover{background:var(--el-color-primary-light-7)!important}.list-group-item i[data-v-3716c05e]{margin-right:calc(var(--base-m) / 2);cursor:pointer}.view-fields.un-inline .el-checkbox[data-v-b5ed17ed]{width:100%;background:var(--ik-sub-sidebar-menu-bg);margin:2px 0;padding:8px;border-radius:4px;height:37px}.view-fields[data-v-b5ed17ed]{display:flex;justify-content:space-between;max-height:55vh;overflow-y:auto;overflow-x:hidden}.view-fields .check-right[data-v-b5ed17ed]{margin-top:37px}.view-fields .single-line[data-v-b5ed17ed]{background-color:transparent!important}.view-fields>div[data-v-b5ed17ed]:nth-child(1){padding-right:8px;flex:2;border-right:1px solid var(--el-border-color)}.view-fields>div[data-v-b5ed17ed]:nth-child(2){flex:1;margin-left:8px}.view-fields>div:nth-child(2) .field-sort[data-v-b5ed17ed]{cursor:move;padding:calc(var(--base-p) / 2);color:var(--el-text-color-regular)}.view-fields .el-checkbox[data-v-b5ed17ed]{width:195px;margin-right:0}
|