iking-web-ui-pro 0.2.53 → 0.2.55
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/{IkApprovalProcess → IKApprovalProcess}/ik.index.es.js +860 -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 +2659 -2704
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +226 -0
- package/dist/IKApprovalProcessDetail/style.css +1 -0
- package/dist/{IkCalendar → IKCalendar}/ik.index.es.js +2355 -2372
- package/dist/IKCalendar/ik.index.umd.js +1 -0
- package/dist/{IkCalendar → IKCalendar}/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 +2355 -2400
- package/dist/IKPreviewFile/ik.index.umd.js +59 -59
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +1058 -1058
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IkBottomOperate/ik.index.es.js +59 -59
- package/dist/IkBottomOperate/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +110 -110
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +2402 -2447
- package/dist/IkDescription/ik.index.umd.js +59 -59
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +2681 -2726
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +52 -52
- 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 +584 -601
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkImageEditor/ik.index.es.js +22 -0
- package/dist/IkImageEditor/ik.index.umd.js +1 -0
- package/dist/IkImageUploadEditor/ik.index.es.js +162 -0
- package/dist/IkImageUploadEditor/ik.index.umd.js +1 -0
- package/dist/IkMonacoEditor/ik.index.es.js +27 -27
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkPageFull/ik.index.es.js +1466 -1466
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPickerUser/ik.index.es.js +839 -839
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPlayer/ik.index.es.js +981 -1062
- package/dist/IkPlayer/ik.index.umd.js +52 -52
- package/dist/IkPreviewFileDialog/ik.index.es.js +709 -790
- package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
- package/dist/IkSchedule/ik.index.es.js +1535 -1552
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +108 -108
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +27118 -26402
- package/dist/IkTinymce/ik.index.umd.js +61 -61
- package/dist/IkTinymce/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1372 -1451
- package/dist/IkUploadFile/ik.index.umd.js +50 -50
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +313 -313
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/index.es.js +39463 -38651
- 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 +90 -30
- package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +7 -7
- package/dist/src/components/IKPreviewFile/index.d.ts +120 -13
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +16 -7
- package/dist/src/components/IKSearch/index.d.ts +84 -24
- 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 +12 -6
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/index.d.ts +35 -6
- 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 +43 -15
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
- package/dist/src/components/IkBtnContent/index.d.ts +5 -7
- package/dist/src/components/IkBtnContent/src/index.d.ts +5 -7
- 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 +12 -6
- 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 +39 -6
- 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 +130 -13
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
- package/dist/src/components/IkEmpty/index.d.ts +19 -6
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkFileIcon/index.d.ts +4 -4
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
- package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
- package/dist/src/components/IkIconPicker/index.d.ts +4 -4
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkImageEditor/index.d.ts +2 -0
- package/dist/src/components/IkImageUploadEditor/index.d.ts +191 -0
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +192 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +10 -167
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +10 -167
- 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 +143 -54
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +5 -369
- 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 +14 -20
- package/dist/src/components/IkPageTabs/index.d.ts +38 -13
- 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 +26 -10
- 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 +48 -17
- package/dist/src/components/IkSelectTag/index.d.ts +25 -10
- 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 +19 -6
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTree/IkTree.vue.d.ts +127 -807
- package/dist/src/components/IkTree/index.d.ts +601 -2620
- package/dist/src/components/IkUploadFile/index.d.ts +135 -14
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
- package/dist/src/components/IkUploadImage/index.d.ts +79 -10
- 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 +27 -6
- package/dist/src/components/index.d.ts +3 -3
- 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 } from "vue";
|
|
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, pushScopeId as ce, popScopeId as de } from "vue";
|
|
2
|
+
import { ikColor as pe, _ as x, ikStore as H } from "iking-utils-pro";
|
|
3
|
+
import ve from "vuedraggable";
|
|
4
|
+
const P = (l, y) => {
|
|
5
|
+
if (l.install = (e) => {
|
|
6
|
+
for (const u of [l, ...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
|
+
l[e] = u;
|
|
11
|
+
return l;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var fe = /* @__PURE__ */ F({
|
|
15
15
|
name: "DCaret",
|
|
16
16
|
__name: "d-caret",
|
|
17
|
-
setup(
|
|
17
|
+
setup(l) {
|
|
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 ve = /* @__PURE__ */ F({
|
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
const X = (
|
|
30
|
-
const e =
|
|
28
|
+
}), ge = fe;
|
|
29
|
+
const X = (l, y) => {
|
|
30
|
+
const e = l.__vccOpts || l;
|
|
31
31
|
for (const [u, c] of y)
|
|
32
32
|
e[u] = c;
|
|
33
33
|
return e;
|
|
34
|
-
},
|
|
34
|
+
}, me = {
|
|
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
|
+
}, ye = {
|
|
38
38
|
key: 1,
|
|
39
39
|
class: "h-[1em] w-[1em]",
|
|
40
40
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
41
|
+
}, he = ["xlink:href"], ke = ["src"], be = {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "h-[1em] w-[1em]",
|
|
44
44
|
"aria-hidden": "true"
|
|
45
|
-
},
|
|
45
|
+
}, _e = ["xlink:href"], we = ["src"], Se = /* @__PURE__ */ F({
|
|
46
46
|
name: "IkSvgIcon",
|
|
47
47
|
__name: "index",
|
|
48
48
|
props: {
|
|
@@ -68,8 +68,8 @@ const X = (a, y) => {
|
|
|
68
68
|
warning: { type: Boolean },
|
|
69
69
|
width: {}
|
|
70
70
|
},
|
|
71
|
-
setup(
|
|
72
|
-
const y =
|
|
71
|
+
setup(l) {
|
|
72
|
+
const y = l, 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(() => {
|
|
@@ -95,14 +95,14 @@ const X = (a, y) => {
|
|
|
95
95
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
96
96
|
...e.value.color && u.value !== "iksig" ? {
|
|
97
97
|
"--ik-icon-deep-color": e.value.color,
|
|
98
|
-
"--ik-icon-shallow-color": e.value.colorLight ||
|
|
98
|
+
"--ik-icon-shallow-color": e.value.colorLight || pe.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", me, [
|
|
106
106
|
e.value.notip || !e.value.title ? (r(), f(
|
|
107
107
|
"i",
|
|
108
108
|
{
|
|
@@ -134,15 +134,15 @@ const X = (a, 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", ye, [
|
|
138
138
|
S("use", {
|
|
139
139
|
"xlink:href": `#${e.value.name}`
|
|
140
|
-
}, null, 8,
|
|
140
|
+
}, null, 8, he)
|
|
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, ke)) : (r(), f(
|
|
146
146
|
"i",
|
|
147
147
|
{
|
|
148
148
|
key: 3,
|
|
@@ -190,15 +190,15 @@ const X = (a, 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", be, [
|
|
194
194
|
S("use", {
|
|
195
195
|
"xlink:href": `#${e.value.name}`
|
|
196
|
-
}, null, 8,
|
|
196
|
+
}, null, 8, _e)
|
|
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, we)) : (r(), f(
|
|
202
202
|
"i",
|
|
203
203
|
{
|
|
204
204
|
key: 3,
|
|
@@ -234,7 +234,7 @@ const X = (a, y) => {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
const
|
|
237
|
+
const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-e29a45f8"]]), xe = P(Ie), Q = {
|
|
238
238
|
animation: 200,
|
|
239
239
|
group: "gl",
|
|
240
240
|
disabled: !1,
|
|
@@ -247,7 +247,7 @@ const we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we)
|
|
|
247
247
|
bottom: 8,
|
|
248
248
|
background: "var(--ik-sub-sidebar-menu-bg)"
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, Be = {
|
|
251
251
|
list: {
|
|
252
252
|
required: !0,
|
|
253
253
|
type: Array,
|
|
@@ -385,16 +385,16 @@ const we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we)
|
|
|
385
385
|
}
|
|
386
386
|
})
|
|
387
387
|
}
|
|
388
|
-
},
|
|
388
|
+
}, Ce = /* @__PURE__ */ F({
|
|
389
389
|
__name: "IkDragList",
|
|
390
|
-
props:
|
|
390
|
+
props: Be,
|
|
391
391
|
emits: ["change"],
|
|
392
|
-
setup(
|
|
393
|
-
const e =
|
|
392
|
+
setup(l, { emit: y }) {
|
|
393
|
+
const e = l, u = y, c = V([]);
|
|
394
394
|
Z(
|
|
395
395
|
() => e.list,
|
|
396
|
-
(
|
|
397
|
-
c.value =
|
|
396
|
+
(p) => {
|
|
397
|
+
c.value = x.cloneDeep(p);
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
immediate: !0,
|
|
@@ -410,20 +410,20 @@ const we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we)
|
|
|
410
410
|
}
|
|
411
411
|
})), k = V(!1), O = () => {
|
|
412
412
|
k.value = !0;
|
|
413
|
-
}, $ = (
|
|
413
|
+
}, $ = (p) => {
|
|
414
414
|
k.value = !1;
|
|
415
|
-
const
|
|
415
|
+
const I = e.list[p.oldIndex];
|
|
416
416
|
u("change", c.value, {
|
|
417
|
-
...
|
|
418
|
-
oldIndex:
|
|
419
|
-
newIndex:
|
|
417
|
+
...I,
|
|
418
|
+
oldIndex: p.oldIndex,
|
|
419
|
+
newIndex: p.newIndex
|
|
420
420
|
});
|
|
421
421
|
};
|
|
422
|
-
return (
|
|
423
|
-
const
|
|
424
|
-
return r(), N(_(
|
|
422
|
+
return (p, I) => {
|
|
423
|
+
const v = D("el-icon");
|
|
424
|
+
return r(), N(_(ve), {
|
|
425
425
|
modelValue: c.value,
|
|
426
|
-
"onUpdate:modelValue":
|
|
426
|
+
"onUpdate:modelValue": I[0] || (I[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 we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we)
|
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
default: g(() => [
|
|
448
|
-
|
|
448
|
+
p.$slots.item ? q(p.$slots, "item", {
|
|
449
449
|
key: 0,
|
|
450
450
|
item: n
|
|
451
451
|
}, void 0, !0) : (r(), f(
|
|
@@ -460,13 +460,13 @@ const we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we)
|
|
|
460
460
|
})
|
|
461
461
|
},
|
|
462
462
|
[
|
|
463
|
-
t.value.showIcon && !
|
|
463
|
+
t.value.showIcon && !p.$slots.icon ? (r(), N(v, { key: 0 }, {
|
|
464
464
|
default: g(() => [
|
|
465
|
-
C(_(
|
|
465
|
+
C(_(ge))
|
|
466
466
|
]),
|
|
467
467
|
_: 1
|
|
468
468
|
/* STABLE */
|
|
469
|
-
})) : q(
|
|
469
|
+
})) : q(p.$slots, "icon", { key: 1 }, void 0, !0),
|
|
470
470
|
z(
|
|
471
471
|
" " + T(n.label),
|
|
472
472
|
1
|
|
@@ -490,7 +490,13 @@ const we = /* @__PURE__ */ X(_e, [["__scopeId", "data-v-e29a45f8"]]), Se = P(we)
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
|
-
const
|
|
493
|
+
const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e), Ve = (l) => (ce("data-v-b5ed17ed"), l = l(), de(), l), De = /* @__PURE__ */ Ve(() => /* @__PURE__ */ S(
|
|
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({
|
|
494
500
|
__name: "IkBtnSetting",
|
|
495
501
|
props: /* @__PURE__ */ R({
|
|
496
502
|
list: {
|
|
@@ -530,7 +536,7 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
530
536
|
config: {
|
|
531
537
|
type: Object,
|
|
532
538
|
default: () => ({
|
|
533
|
-
t: (
|
|
539
|
+
t: (l) => l,
|
|
534
540
|
dialog: {
|
|
535
541
|
l: "700px",
|
|
536
542
|
sl: "600px"
|
|
@@ -549,43 +555,43 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
549
555
|
modelModifiers: {}
|
|
550
556
|
}),
|
|
551
557
|
emits: /* @__PURE__ */ R(["sort"], ["update:modelValue"]),
|
|
552
|
-
setup(
|
|
553
|
-
const e =
|
|
554
|
-
const s =
|
|
555
|
-
return !s &&
|
|
558
|
+
setup(l, { emit: y }) {
|
|
559
|
+
const e = l, u = y, c = se(l, "modelValue"), { t, dialog: k, path: O, user: $ } = e.config, p = L(() => `${$ == null ? void 0 : $.id}_${O}${e.tab !== "" ? `_${e.tab}` : ""}`), I = V([]), v = V([]), n = V([]), M = /* @__PURE__ */ new Map(), A = V(!1), ee = L(() => {
|
|
560
|
+
const s = v.value.length && v.value.length !== e.list.length;
|
|
561
|
+
return !s && v.value.length && (A.value = !0), !!s;
|
|
556
562
|
}), U = (s) => {
|
|
557
563
|
var i;
|
|
558
|
-
const
|
|
559
|
-
|
|
564
|
+
const a = x.cloneDeep(n.value);
|
|
565
|
+
a == null || a.forEach((o) => {
|
|
560
566
|
var b;
|
|
561
|
-
if (!
|
|
567
|
+
if (!v.value.length)
|
|
562
568
|
n.value = [];
|
|
563
|
-
else if (!
|
|
569
|
+
else if (!v.value.includes(o == null ? void 0 : o.key)) {
|
|
564
570
|
const h = (b = n.value) == null ? void 0 : b.findIndex((d) => d.key === o.key);
|
|
565
571
|
h !== -1 && n.value.splice(h, 1), o.show = !1, M.set(o.key, o);
|
|
566
572
|
}
|
|
567
|
-
}),
|
|
573
|
+
}), v.value.forEach((o) => {
|
|
568
574
|
var h;
|
|
569
575
|
if (((h = n.value) == null ? void 0 : h.findIndex((d) => (d == null ? void 0 : d.key) === o)) === -1) {
|
|
570
576
|
const d = M.get(o);
|
|
571
577
|
d && (d.show = !0, n.value.push(d));
|
|
572
578
|
}
|
|
573
|
-
}), (i = n.value) != null && i.length || (n.value =
|
|
579
|
+
}), (i = n.value) != null && i.length || (n.value = x.cloneDeep(e.list)), s === !0 && (u("sort", x.cloneDeep(n.value)), c.value = x.cloneDeep(n.value));
|
|
574
580
|
}, te = (s) => {
|
|
575
581
|
if (s)
|
|
576
|
-
|
|
582
|
+
v.value = e.list.map((a) => a.key);
|
|
577
583
|
else {
|
|
578
|
-
const
|
|
579
|
-
|
|
584
|
+
const a = e.list.find((i) => !i.key || i.label === "操作");
|
|
585
|
+
v.value = a ? [a.key] : [];
|
|
580
586
|
}
|
|
581
587
|
U();
|
|
582
588
|
}, W = () => {
|
|
583
|
-
const s = H.local.getItem(
|
|
589
|
+
const s = H.local.getItem(p.value);
|
|
584
590
|
try {
|
|
585
|
-
const
|
|
591
|
+
const a = x.cloneDeep(e == null ? void 0 : e.list);
|
|
586
592
|
if ((!s || !(s != null && s.length)) && H.local.setItem(
|
|
587
|
-
|
|
588
|
-
|
|
593
|
+
p.value,
|
|
594
|
+
a.map(({ show: i, type: o, key: b, label: h, width: d, minWidth: m, align: oe }) => ({
|
|
589
595
|
show: i,
|
|
590
596
|
key: b,
|
|
591
597
|
type: o,
|
|
@@ -594,21 +600,21 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
594
600
|
minWidth: m,
|
|
595
601
|
align: oe
|
|
596
602
|
}))
|
|
597
|
-
),
|
|
598
|
-
...(
|
|
603
|
+
), I.value = [
|
|
604
|
+
...(a == null ? void 0 : a.map((i) => (M.set(i.key, i), {
|
|
599
605
|
...i,
|
|
600
606
|
show: i.show || !1
|
|
601
607
|
}))) || []
|
|
602
608
|
], s) {
|
|
603
609
|
const i = s.filter((o) => o.show).map((o) => o.key);
|
|
604
|
-
|
|
610
|
+
v.value = [...i];
|
|
605
611
|
} else {
|
|
606
|
-
const i =
|
|
607
|
-
|
|
612
|
+
const i = I.value.filter((o) => o.show);
|
|
613
|
+
v.value = i.map((o) => o.key);
|
|
608
614
|
}
|
|
609
615
|
U(!0);
|
|
610
|
-
} catch (
|
|
611
|
-
console.info("error: ",
|
|
616
|
+
} catch (a) {
|
|
617
|
+
console.info("error: ", a);
|
|
612
618
|
}
|
|
613
619
|
};
|
|
614
620
|
W(), Z(() => e.list, () => {
|
|
@@ -620,43 +626,37 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
620
626
|
n.value = s;
|
|
621
627
|
}, ae = () => {
|
|
622
628
|
j.value = !1, H.local.setItem(
|
|
623
|
-
|
|
624
|
-
n.value.map(({ show: s, key:
|
|
629
|
+
p.value,
|
|
630
|
+
n.value.map(({ show: s, key: a, label: i, value: o, width: b, minWidth: h, align: d }) => ({
|
|
625
631
|
show: s,
|
|
626
|
-
key:
|
|
632
|
+
key: a,
|
|
627
633
|
label: i,
|
|
628
634
|
value: o,
|
|
629
635
|
width: b,
|
|
630
636
|
minWidth: h,
|
|
631
637
|
align: d
|
|
632
638
|
}))
|
|
633
|
-
), u("sort",
|
|
639
|
+
), u("sort", x.cloneDeep(n.value)), c.value = x.cloneDeep(n.value);
|
|
634
640
|
};
|
|
635
|
-
return (s,
|
|
641
|
+
return (s, a) => {
|
|
636
642
|
const i = D("el-button"), o = D("el-checkbox"), b = D("el-checkbox-group"), h = D("el-dialog"), d = ie("role");
|
|
637
643
|
return r(), f(
|
|
638
644
|
G,
|
|
639
645
|
null,
|
|
640
646
|
[
|
|
641
|
-
|
|
642
|
-
circle:
|
|
643
|
-
type:
|
|
644
|
-
style: { minWidth:
|
|
647
|
+
l.btnType === "button" ? J((r(), N(i, K({ key: 0 }, s.$attrs, {
|
|
648
|
+
circle: l.circle,
|
|
649
|
+
type: l.type,
|
|
650
|
+
style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
|
|
645
651
|
onClick: Y
|
|
646
652
|
}), ue({
|
|
647
653
|
icon: g(() => [
|
|
648
|
-
|
|
649
|
-
"i",
|
|
650
|
-
{ class: "ik ik-shezhi" },
|
|
651
|
-
null,
|
|
652
|
-
-1
|
|
653
|
-
/* HOISTED */
|
|
654
|
-
))
|
|
654
|
+
De
|
|
655
655
|
]),
|
|
656
656
|
_: 2
|
|
657
657
|
/* DYNAMIC */
|
|
658
658
|
}, [
|
|
659
|
-
|
|
659
|
+
l.circle ? void 0 : {
|
|
660
660
|
name: "default",
|
|
661
661
|
fn: g(() => [
|
|
662
662
|
E(' {{ t("action.setting") }} '),
|
|
@@ -671,8 +671,8 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
671
671
|
]), 1040, ["circle", "type", "style"])), [
|
|
672
672
|
[d, s.$props.role]
|
|
673
673
|
]) : E("v-if", !0),
|
|
674
|
-
|
|
675
|
-
_(
|
|
674
|
+
l.btnType === "icon" ? J((r(), N(
|
|
675
|
+
_(xe),
|
|
676
676
|
K({
|
|
677
677
|
key: 1,
|
|
678
678
|
name: "iksvg_shezhi-daohang",
|
|
@@ -687,9 +687,9 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
687
687
|
]) : E("v-if", !0),
|
|
688
688
|
C(h, {
|
|
689
689
|
modelValue: j.value,
|
|
690
|
-
"onUpdate:modelValue":
|
|
690
|
+
"onUpdate:modelValue": a[3] || (a[3] = (m) => j.value = m),
|
|
691
691
|
draggable: "",
|
|
692
|
-
width:
|
|
692
|
+
width: l.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 Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
697
697
|
onOpen: W
|
|
698
698
|
}, {
|
|
699
699
|
footer: g(() => [
|
|
700
|
-
S("div",
|
|
700
|
+
S("div", Te, [
|
|
701
701
|
C(i, {
|
|
702
|
-
onClick:
|
|
702
|
+
onClick: a[2] || (a[2] = (m) => j.value = !1)
|
|
703
703
|
}, {
|
|
704
704
|
default: g(() => [
|
|
705
705
|
z(
|
|
@@ -733,38 +733,38 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
733
733
|
S(
|
|
734
734
|
"div",
|
|
735
735
|
{
|
|
736
|
-
class: w(["view-fields", [
|
|
736
|
+
class: w(["view-fields", [l.inline ? null : "un-inline"]])
|
|
737
737
|
},
|
|
738
738
|
[
|
|
739
739
|
S(
|
|
740
740
|
"div",
|
|
741
741
|
{
|
|
742
|
-
style: B({ flex:
|
|
742
|
+
style: B({ flex: l.inline ? 2 : 1 })
|
|
743
743
|
},
|
|
744
744
|
[
|
|
745
745
|
C(o, {
|
|
746
746
|
modelValue: A.value,
|
|
747
|
-
"onUpdate:modelValue":
|
|
747
|
+
"onUpdate:modelValue": a[0] || (a[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(() => [
|
|
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: v.value,
|
|
760
|
+
"onUpdate:modelValue": a[1] || (a[1] = (m) => v.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(I.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 Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
790
790
|
4
|
|
791
791
|
/* STYLE */
|
|
792
792
|
),
|
|
793
|
-
S("div",
|
|
794
|
-
C(_(
|
|
793
|
+
S("div", Ne, [
|
|
794
|
+
C(_(ze), {
|
|
795
795
|
list: n.value,
|
|
796
796
|
"item-style": { bottom: 4 },
|
|
797
797
|
onChange: le
|
|
@@ -812,8 +812,8 @@ const Be = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-3716c05e"]]), Ce = P(Be)
|
|
|
812
812
|
};
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
|
-
const
|
|
815
|
+
const Oe = /* @__PURE__ */ X(Le, [["__scopeId", "data-v-b5ed17ed"]]), Me = P(Oe);
|
|
816
816
|
export {
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
Me as IkBtnSetting,
|
|
818
|
+
Me 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=(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
|
+
(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-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&&(_.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-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(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"}})});
|