iking-web-ui-pro 0.2.4 → 0.2.6
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/IKDetailPreviewFiles/ik.index.es.js +586 -571
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +491 -476
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +756 -741
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +530 -515
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +314 -308
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +963 -944
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +265 -253
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +1611 -0
- package/dist/Provider/ik.index.umd.js +17 -0
- package/dist/index.es.js +38689 -37072
- package/dist/index.umd.js +95 -79
- package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
- package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
- package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
- package/dist/src/components/IkDescription/index.d.ts +3 -3
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +1 -1
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +66 -0
- package/dist/src/components/Provider/index.d.ts +139 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/utils/use-provider.d.ts +8 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
1
|
+
import { defineComponent as F, openBlock as c, createElementBlock as g, createElementVNode as S, inject as ne, computed as L, resolveComponent as N, normalizeClass as w, normalizeStyle as C, createCommentVNode as E, createBlock as T, withCtx as m, createTextVNode as V, toDisplayString as j, ref as D, watch as Z, unref as _, createVNode as $, Transition as se, renderSlot as q, mergeModels as R, useModel as ie, resolveDirective as ue, Fragment as G, withDirectives as J, mergeProps as K, createSlots as re, renderList as ce, pushScopeId as de, popScopeId as pe } from "vue";
|
|
2
|
+
import { ikColor as ve, _ as B, ikStore as H } from "iking-utils-pro";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
for (const
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
for (const [
|
|
10
|
-
a
|
|
11
|
-
return
|
|
4
|
+
const P = (t, h) => {
|
|
5
|
+
if (t.install = (a) => {
|
|
6
|
+
for (const e of [t, ...Object.values(h ?? {})])
|
|
7
|
+
a.component(e.name, e);
|
|
8
|
+
}, h)
|
|
9
|
+
for (const [a, e] of Object.entries(h))
|
|
10
|
+
t[a] = e;
|
|
11
|
+
return t;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var ge = /* @__PURE__ */ F({
|
|
15
15
|
name: "DCaret",
|
|
16
16
|
__name: "d-caret",
|
|
17
|
-
setup(
|
|
18
|
-
return (
|
|
17
|
+
setup(t) {
|
|
18
|
+
return (h, a) => (c(), g("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 1024 1024"
|
|
21
21
|
}, [
|
|
@@ -25,24 +25,24 @@ var me = /* @__PURE__ */ M({
|
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
for (const [
|
|
32
|
-
|
|
33
|
-
return
|
|
28
|
+
}), me = ge;
|
|
29
|
+
const X = (t, h) => {
|
|
30
|
+
const a = t.__vccOpts || t;
|
|
31
|
+
for (const [e, d] of h)
|
|
32
|
+
a[e] = d;
|
|
33
|
+
return a;
|
|
34
34
|
}, ye = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
37
|
-
},
|
|
37
|
+
}, he = {
|
|
38
38
|
key: 1,
|
|
39
39
|
class: "h-[1em] w-[1em]",
|
|
40
40
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
41
|
+
}, ke = ["xlink:href"], be = ["src"], _e = {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "h-[1em] w-[1em]",
|
|
44
44
|
"aria-hidden": "true"
|
|
45
|
-
},
|
|
45
|
+
}, we = ["xlink:href"], Se = ["src"], Ie = /* @__PURE__ */ F({
|
|
46
46
|
name: "IkSvgIcon",
|
|
47
47
|
__name: "index",
|
|
48
48
|
props: {
|
|
@@ -68,85 +68,88 @@ const Y = (a, t) => {
|
|
|
68
68
|
disabled: { type: Boolean, default: !1 },
|
|
69
69
|
tableIconType: { default: "icon" }
|
|
70
70
|
},
|
|
71
|
-
setup(
|
|
72
|
-
const t =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}),
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
setup(t) {
|
|
72
|
+
const h = t, a = ne("iconConfig"), e = L(() => ({
|
|
73
|
+
...(a == null ? void 0 : a.value) || {},
|
|
74
|
+
...h
|
|
75
|
+
})), d = L(() => {
|
|
76
|
+
const { name: l } = e.value;
|
|
77
|
+
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";
|
|
78
|
+
}), s = L(() => {
|
|
79
|
+
const l = [];
|
|
80
|
+
if (e.value.flip)
|
|
81
|
+
switch (e.value.flip) {
|
|
79
82
|
case "horizontal":
|
|
80
|
-
|
|
83
|
+
l.push("rotateY(180deg)");
|
|
81
84
|
break;
|
|
82
85
|
case "vertical":
|
|
83
|
-
|
|
86
|
+
l.push("rotateX(180deg)");
|
|
84
87
|
break;
|
|
85
88
|
case "both":
|
|
86
|
-
|
|
89
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
87
90
|
break;
|
|
88
91
|
}
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
...
|
|
92
|
-
...
|
|
93
|
-
...
|
|
94
|
-
padding:
|
|
95
|
-
...
|
|
96
|
-
"--ik-color-icon-dark":
|
|
97
|
-
"--ik-color-icon-light":
|
|
92
|
+
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
93
|
+
const I = {
|
|
94
|
+
...e.value.color && { color: e.value.color },
|
|
95
|
+
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
96
|
+
...l.length && { transform: l.join(" ") },
|
|
97
|
+
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
98
|
+
...e.value.color && d.value !== "iksig" ? {
|
|
99
|
+
"--ik-color-icon-dark": e.value.color,
|
|
100
|
+
"--ik-color-icon-light": e.value.colorLight || ve.setOpacity(e.value.color, e.value.opacity)
|
|
98
101
|
} : {}
|
|
99
102
|
};
|
|
100
|
-
return
|
|
103
|
+
return e.value.width && (I.width = I.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), I;
|
|
101
104
|
});
|
|
102
|
-
return (
|
|
103
|
-
const
|
|
104
|
-
return e.tableIconType === "icon" ? (
|
|
105
|
-
e.notip || !e.title ? (
|
|
105
|
+
return (l, I) => {
|
|
106
|
+
const z = N("el-tooltip"), p = N("el-button");
|
|
107
|
+
return e.value.tableIconType === "icon" ? (c(), g("span", ye, [
|
|
108
|
+
e.value.notip || !e.value.title ? (c(), g(
|
|
106
109
|
"i",
|
|
107
110
|
{
|
|
108
111
|
key: 0,
|
|
109
112
|
class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
110
|
-
[
|
|
111
|
-
"show-bg": e.showBg || e.bg,
|
|
112
|
-
default: e.size === "default",
|
|
113
|
-
small: e.size === "small",
|
|
114
|
-
big: e.size === "big",
|
|
115
|
-
warning: e.warning ||
|
|
116
|
-
primary: e.primary ||
|
|
117
|
-
success:
|
|
118
|
-
error: e.error ||
|
|
119
|
-
active: e.active,
|
|
120
|
-
disabled: e.disabled
|
|
113
|
+
[l.name]: d.value === "unocss",
|
|
114
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
115
|
+
default: e.value.size === "default",
|
|
116
|
+
small: e.value.size === "small",
|
|
117
|
+
big: e.value.size === "big",
|
|
118
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
119
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
120
|
+
success: l.success || e.value.type === "success",
|
|
121
|
+
error: e.value.error || e.value.type === "error",
|
|
122
|
+
active: e.value.active,
|
|
123
|
+
disabled: e.value.disabled
|
|
121
124
|
}]),
|
|
122
|
-
style: C(
|
|
125
|
+
style: C(s.value)
|
|
123
126
|
},
|
|
124
127
|
[
|
|
125
128
|
E(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
126
|
-
|
|
129
|
+
d.value === "iksig" ? (c(), g(
|
|
127
130
|
"i",
|
|
128
131
|
{
|
|
129
132
|
key: 0,
|
|
130
|
-
class: w(`iksig ${e.name}`),
|
|
131
|
-
style: C(
|
|
133
|
+
class: w(`iksig ${e.value.name}`),
|
|
134
|
+
style: C(s.value)
|
|
132
135
|
},
|
|
133
136
|
null,
|
|
134
137
|
6
|
|
135
138
|
/* CLASS, STYLE */
|
|
136
|
-
)) :
|
|
139
|
+
)) : d.value === "svg" ? (c(), g("svg", he, [
|
|
137
140
|
S("use", {
|
|
138
|
-
"xlink:href": `#${e.name}`
|
|
139
|
-
}, null, 8,
|
|
140
|
-
])) :
|
|
141
|
+
"xlink:href": `#${e.value.name}`
|
|
142
|
+
}, null, 8, ke)
|
|
143
|
+
])) : d.value === "img" ? (c(), g("img", {
|
|
141
144
|
key: 2,
|
|
142
|
-
src: e.name,
|
|
145
|
+
src: e.value.name,
|
|
143
146
|
class: "h-[1em] w-[1em]"
|
|
144
|
-
}, null, 8,
|
|
147
|
+
}, null, 8, be)) : (c(), g(
|
|
145
148
|
"i",
|
|
146
149
|
{
|
|
147
150
|
key: 3,
|
|
148
|
-
class: w(e.name),
|
|
149
|
-
style: C(
|
|
151
|
+
class: w(e.value.name),
|
|
152
|
+
style: C(s.value)
|
|
150
153
|
},
|
|
151
154
|
null,
|
|
152
155
|
6
|
|
@@ -155,54 +158,54 @@ const Y = (a, t) => {
|
|
|
155
158
|
],
|
|
156
159
|
6
|
|
157
160
|
/* CLASS, STYLE */
|
|
158
|
-
)) : (
|
|
161
|
+
)) : (c(), T(z, {
|
|
159
162
|
key: 1,
|
|
160
|
-
content: e.title,
|
|
163
|
+
content: e.value.title,
|
|
161
164
|
placement: "top"
|
|
162
165
|
}, {
|
|
163
|
-
default:
|
|
166
|
+
default: m(() => [
|
|
164
167
|
S(
|
|
165
168
|
"i",
|
|
166
169
|
{
|
|
167
170
|
class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
168
|
-
[
|
|
169
|
-
"show-bg": e.showBg || e.bg,
|
|
170
|
-
default: e.size === "default",
|
|
171
|
-
small: e.size === "small",
|
|
172
|
-
big: e.size === "big",
|
|
173
|
-
warning: e.warning ||
|
|
174
|
-
primary:
|
|
175
|
-
success:
|
|
176
|
-
error: e.error ||
|
|
177
|
-
active: e.active
|
|
171
|
+
[l.name]: d.value === "unocss",
|
|
172
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
173
|
+
default: e.value.size === "default",
|
|
174
|
+
small: e.value.size === "small",
|
|
175
|
+
big: e.value.size === "big",
|
|
176
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
177
|
+
primary: l.primary || e.value.type === "primary",
|
|
178
|
+
success: l.success || e.value.type === "success",
|
|
179
|
+
error: e.value.error || e.value.type === "error",
|
|
180
|
+
active: e.value.active
|
|
178
181
|
}]),
|
|
179
|
-
style: C(
|
|
182
|
+
style: C(s.value)
|
|
180
183
|
},
|
|
181
184
|
[
|
|
182
|
-
|
|
185
|
+
d.value === "iksig" ? (c(), g(
|
|
183
186
|
"i",
|
|
184
187
|
{
|
|
185
188
|
key: 0,
|
|
186
|
-
class: w(`iksig ${e.name}`),
|
|
187
|
-
style: C(
|
|
189
|
+
class: w(`iksig ${e.value.name}`),
|
|
190
|
+
style: C(s.value)
|
|
188
191
|
},
|
|
189
192
|
null,
|
|
190
193
|
6
|
|
191
194
|
/* CLASS, STYLE */
|
|
192
|
-
)) :
|
|
195
|
+
)) : d.value === "svg" ? (c(), g("svg", _e, [
|
|
193
196
|
S("use", {
|
|
194
|
-
"xlink:href": `#${e.name}`
|
|
195
|
-
}, null, 8,
|
|
196
|
-
])) :
|
|
197
|
+
"xlink:href": `#${e.value.name}`
|
|
198
|
+
}, null, 8, we)
|
|
199
|
+
])) : d.value === "img" ? (c(), g("img", {
|
|
197
200
|
key: 2,
|
|
198
|
-
src: e.name,
|
|
201
|
+
src: e.value.name,
|
|
199
202
|
class: "h-[1em] w-[1em]"
|
|
200
|
-
}, null, 8,
|
|
203
|
+
}, null, 8, Se)) : (c(), g(
|
|
201
204
|
"i",
|
|
202
205
|
{
|
|
203
206
|
key: 3,
|
|
204
|
-
class: w(e.name),
|
|
205
|
-
style: C(
|
|
207
|
+
class: w(e.value.name),
|
|
208
|
+
style: C(s.value)
|
|
206
209
|
},
|
|
207
210
|
null,
|
|
208
211
|
6
|
|
@@ -216,13 +219,13 @@ const Y = (a, t) => {
|
|
|
216
219
|
_: 1
|
|
217
220
|
/* STABLE */
|
|
218
221
|
}, 8, ["content"]))
|
|
219
|
-
])) : (
|
|
222
|
+
])) : (c(), T(p, {
|
|
220
223
|
key: 1,
|
|
221
|
-
type: ["warning", "error"].includes(e.type) ? "danger" : ""
|
|
224
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
222
225
|
}, {
|
|
223
|
-
default:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
default: m(() => [
|
|
227
|
+
V(
|
|
228
|
+
j(e.value.title),
|
|
226
229
|
1
|
|
227
230
|
/* TEXT */
|
|
228
231
|
)
|
|
@@ -233,7 +236,7 @@ const Y = (a, t) => {
|
|
|
233
236
|
};
|
|
234
237
|
}
|
|
235
238
|
});
|
|
236
|
-
const
|
|
239
|
+
const xe = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-1be337e4"]]), Be = P(xe), Q = {
|
|
237
240
|
animation: 200,
|
|
238
241
|
group: "gl",
|
|
239
242
|
disabled: !1,
|
|
@@ -384,45 +387,45 @@ const Ie = /* @__PURE__ */ Y(Se, [["__scopeId", "data-v-7d95dbf5"]]), Be = X(Ie)
|
|
|
384
387
|
}
|
|
385
388
|
})
|
|
386
389
|
}
|
|
387
|
-
}, $e = /* @__PURE__ */
|
|
390
|
+
}, $e = /* @__PURE__ */ F({
|
|
388
391
|
__name: "IkDragList",
|
|
389
392
|
props: Ce,
|
|
390
393
|
emits: ["change"],
|
|
391
|
-
setup(
|
|
392
|
-
const
|
|
394
|
+
setup(t, { emit: h }) {
|
|
395
|
+
const a = t, e = h, d = D([]);
|
|
393
396
|
Z(
|
|
394
|
-
() =>
|
|
395
|
-
(
|
|
396
|
-
|
|
397
|
+
() => a.list,
|
|
398
|
+
(p) => {
|
|
399
|
+
d.value = B.cloneDeep(p);
|
|
397
400
|
},
|
|
398
401
|
{
|
|
399
402
|
immediate: !0,
|
|
400
403
|
deep: !0
|
|
401
404
|
}
|
|
402
405
|
);
|
|
403
|
-
const s =
|
|
406
|
+
const s = L(() => ({
|
|
404
407
|
...Q,
|
|
405
|
-
...
|
|
408
|
+
...a,
|
|
406
409
|
itemStyle: {
|
|
407
410
|
...Q.itemStyle,
|
|
408
|
-
...
|
|
411
|
+
...a.itemStyle
|
|
409
412
|
}
|
|
410
|
-
})),
|
|
411
|
-
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
...
|
|
417
|
-
oldIndex:
|
|
418
|
-
newIndex:
|
|
413
|
+
})), l = D(!1), I = () => {
|
|
414
|
+
l.value = !0;
|
|
415
|
+
}, z = (p) => {
|
|
416
|
+
l.value = !1;
|
|
417
|
+
const x = a.list[p.oldIndex];
|
|
418
|
+
e("change", d.value, {
|
|
419
|
+
...x,
|
|
420
|
+
oldIndex: p.oldIndex,
|
|
421
|
+
newIndex: p.newIndex
|
|
419
422
|
});
|
|
420
423
|
};
|
|
421
|
-
return (
|
|
422
|
-
const
|
|
423
|
-
return
|
|
424
|
-
modelValue:
|
|
425
|
-
"onUpdate:modelValue":
|
|
424
|
+
return (p, x) => {
|
|
425
|
+
const f = N("el-icon");
|
|
426
|
+
return c(), T(_(fe), {
|
|
427
|
+
modelValue: d.value,
|
|
428
|
+
"onUpdate:modelValue": x[0] || (x[0] = (i) => d.value = i),
|
|
426
429
|
class: w(["list-group", [s.value.groupClass]]),
|
|
427
430
|
tag: "ul",
|
|
428
431
|
attrs: s.value,
|
|
@@ -432,22 +435,22 @@ const Ie = /* @__PURE__ */ Y(Se, [["__scopeId", "data-v-7d95dbf5"]]), Be = X(Ie)
|
|
|
432
435
|
"ghost-class": s.value.ghostClass,
|
|
433
436
|
"force-fallback": s.value.ghostClass,
|
|
434
437
|
"item-key": "order",
|
|
435
|
-
onStart:
|
|
436
|
-
onEnd:
|
|
438
|
+
onStart: I,
|
|
439
|
+
onEnd: z
|
|
437
440
|
}, {
|
|
438
|
-
item:
|
|
441
|
+
item: m(({ element: i }) => [
|
|
439
442
|
$(
|
|
440
|
-
|
|
443
|
+
se,
|
|
441
444
|
{
|
|
442
445
|
type: "transition",
|
|
443
446
|
name: "flip-list"
|
|
444
447
|
},
|
|
445
448
|
{
|
|
446
|
-
default:
|
|
447
|
-
|
|
449
|
+
default: m(() => [
|
|
450
|
+
p.$slots.item ? q(p.$slots, "item", {
|
|
448
451
|
key: 0,
|
|
449
452
|
item: i
|
|
450
|
-
}, void 0, !0) : (
|
|
453
|
+
}, void 0, !0) : (c(), g(
|
|
451
454
|
"li",
|
|
452
455
|
{
|
|
453
456
|
key: 1,
|
|
@@ -459,15 +462,15 @@ const Ie = /* @__PURE__ */ Y(Se, [["__scopeId", "data-v-7d95dbf5"]]), Be = X(Ie)
|
|
|
459
462
|
})
|
|
460
463
|
},
|
|
461
464
|
[
|
|
462
|
-
s.value.showIcon && !
|
|
463
|
-
default:
|
|
464
|
-
$(_(
|
|
465
|
+
s.value.showIcon && !p.$slots.icon ? (c(), T(f, { key: 0 }, {
|
|
466
|
+
default: m(() => [
|
|
467
|
+
$(_(me))
|
|
465
468
|
]),
|
|
466
469
|
_: 1
|
|
467
470
|
/* STABLE */
|
|
468
|
-
})) :
|
|
469
|
-
|
|
470
|
-
" " +
|
|
471
|
+
})) : q(p.$slots, "icon", { key: 1 }, void 0, !0),
|
|
472
|
+
V(
|
|
473
|
+
" " + j(i.label),
|
|
471
474
|
1
|
|
472
475
|
/* TEXT */
|
|
473
476
|
)
|
|
@@ -489,13 +492,13 @@ const Ie = /* @__PURE__ */ Y(Se, [["__scopeId", "data-v-7d95dbf5"]]), Be = X(Ie)
|
|
|
489
492
|
};
|
|
490
493
|
}
|
|
491
494
|
});
|
|
492
|
-
const ze = /* @__PURE__ */
|
|
495
|
+
const ze = /* @__PURE__ */ X($e, [["__scopeId", "data-v-3716c05e"]]), Ve = P(ze), De = (t) => (de("data-v-b5ed17ed"), t = t(), pe(), t), Ne = /* @__PURE__ */ De(() => /* @__PURE__ */ S(
|
|
493
496
|
"i",
|
|
494
497
|
{ class: "ik ik-shezhi" },
|
|
495
498
|
null,
|
|
496
499
|
-1
|
|
497
500
|
/* HOISTED */
|
|
498
|
-
)), Te = { class: "check-right" },
|
|
501
|
+
)), Te = { class: "check-right" }, je = { class: "dialog-footer" }, Le = /* @__PURE__ */ F({
|
|
499
502
|
__name: "IkBtnSetting",
|
|
500
503
|
props: /* @__PURE__ */ R({
|
|
501
504
|
list: {
|
|
@@ -535,7 +538,7 @@ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze)
|
|
|
535
538
|
config: {
|
|
536
539
|
type: Object,
|
|
537
540
|
default: () => ({
|
|
538
|
-
t: (
|
|
541
|
+
t: (t) => t,
|
|
539
542
|
dialog: {
|
|
540
543
|
l: "700px",
|
|
541
544
|
sl: "600px"
|
|
@@ -554,113 +557,113 @@ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze)
|
|
|
554
557
|
modelModifiers: {}
|
|
555
558
|
}),
|
|
556
559
|
emits: /* @__PURE__ */ R(["sort"], ["update:modelValue"]),
|
|
557
|
-
setup(
|
|
558
|
-
const
|
|
559
|
-
const
|
|
560
|
-
return !
|
|
561
|
-
}),
|
|
562
|
-
var
|
|
560
|
+
setup(t, { emit: h }) {
|
|
561
|
+
const a = t, e = h, d = ie(t, "modelValue"), { t: s, dialog: l, path: I, user: z } = a.config, p = L(() => `${z == null ? void 0 : z.id}_${I}${a.tab !== "" ? `_${a.tab}` : ""}`), x = D([]), f = D([]), i = D([]), M = /* @__PURE__ */ new Map(), A = D(!1), ee = L(() => {
|
|
562
|
+
const u = f.value.length && f.value.length !== a.list.length;
|
|
563
|
+
return !u && f.value.length && (A.value = !0), !!u;
|
|
564
|
+
}), U = (u) => {
|
|
565
|
+
var r;
|
|
563
566
|
const o = B.cloneDeep(i.value);
|
|
564
567
|
o == null || o.forEach((n) => {
|
|
565
568
|
var b;
|
|
566
|
-
if (!
|
|
569
|
+
if (!f.value.length)
|
|
567
570
|
i.value = [];
|
|
568
|
-
else if (!
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
+
else if (!f.value.includes(n == null ? void 0 : n.key)) {
|
|
572
|
+
const k = (b = i.value) == null ? void 0 : b.findIndex((v) => v.key === n.key);
|
|
573
|
+
k !== -1 && i.value.splice(k, 1), n.show = !1, M.set(n.key, n);
|
|
571
574
|
}
|
|
572
|
-
}),
|
|
573
|
-
var
|
|
574
|
-
if (((
|
|
575
|
-
const
|
|
576
|
-
|
|
575
|
+
}), f.value.forEach((n) => {
|
|
576
|
+
var k;
|
|
577
|
+
if (((k = i.value) == null ? void 0 : k.findIndex((v) => (v == null ? void 0 : v.key) === n)) === -1) {
|
|
578
|
+
const v = M.get(n);
|
|
579
|
+
v && (v.show = !0, i.value.push(v));
|
|
577
580
|
}
|
|
578
|
-
}), (
|
|
579
|
-
}, te = (
|
|
580
|
-
if (
|
|
581
|
-
|
|
581
|
+
}), (r = i.value) != null && r.length || (i.value = B.cloneDeep(a.list)), u === !0 && (e("sort", B.cloneDeep(i.value)), d.value = B.cloneDeep(i.value));
|
|
582
|
+
}, te = (u) => {
|
|
583
|
+
if (u)
|
|
584
|
+
f.value = a.list.map((o) => o.key);
|
|
582
585
|
else {
|
|
583
|
-
const o =
|
|
584
|
-
|
|
586
|
+
const o = a.list.find((r) => !r.key || r.label === "操作");
|
|
587
|
+
f.value = o ? [o.key] : [];
|
|
585
588
|
}
|
|
586
|
-
|
|
587
|
-
},
|
|
588
|
-
const
|
|
589
|
+
U();
|
|
590
|
+
}, W = () => {
|
|
591
|
+
const u = H.local.getItem(p.value);
|
|
589
592
|
try {
|
|
590
|
-
const o = B.cloneDeep(
|
|
591
|
-
if ((!
|
|
592
|
-
|
|
593
|
-
o.map(({ show:
|
|
594
|
-
show:
|
|
593
|
+
const o = B.cloneDeep(a == null ? void 0 : a.list);
|
|
594
|
+
if ((!u || !(u != null && u.length)) && H.local.setItem(
|
|
595
|
+
p.value,
|
|
596
|
+
o.map(({ show: r, type: n, key: b, label: k, width: v, minWidth: y, align: oe }) => ({
|
|
597
|
+
show: r,
|
|
595
598
|
key: b,
|
|
596
599
|
type: n,
|
|
597
|
-
label:
|
|
598
|
-
width:
|
|
599
|
-
minWidth:
|
|
600
|
+
label: k,
|
|
601
|
+
width: v,
|
|
602
|
+
minWidth: y,
|
|
600
603
|
align: oe
|
|
601
604
|
}))
|
|
602
|
-
),
|
|
603
|
-
...(o == null ? void 0 : o.map((
|
|
604
|
-
...
|
|
605
|
-
show:
|
|
605
|
+
), x.value = [
|
|
606
|
+
...(o == null ? void 0 : o.map((r) => (M.set(r.key, r), {
|
|
607
|
+
...r,
|
|
608
|
+
show: r.show || !1
|
|
606
609
|
}))) || []
|
|
607
|
-
],
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
+
], u) {
|
|
611
|
+
const r = u.filter((n) => n.show).map((n) => n.key);
|
|
612
|
+
f.value = [...r];
|
|
610
613
|
} else {
|
|
611
|
-
const
|
|
612
|
-
|
|
614
|
+
const r = x.value.filter((n) => n.show);
|
|
615
|
+
f.value = r.map((n) => n.key);
|
|
613
616
|
}
|
|
614
|
-
|
|
617
|
+
U(!0);
|
|
615
618
|
} catch (o) {
|
|
616
619
|
console.info("error: ", o);
|
|
617
620
|
}
|
|
618
621
|
};
|
|
619
|
-
|
|
620
|
-
|
|
622
|
+
W(), Z(() => a.list, () => {
|
|
623
|
+
W();
|
|
621
624
|
}, { deep: !0 });
|
|
622
|
-
const
|
|
623
|
-
|
|
624
|
-
}, le = (
|
|
625
|
-
i.value =
|
|
625
|
+
const O = D(!1), Y = () => {
|
|
626
|
+
O.value = !0;
|
|
627
|
+
}, le = (u) => {
|
|
628
|
+
i.value = u;
|
|
626
629
|
}, ae = () => {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
i.value.map(({ show:
|
|
630
|
-
show:
|
|
630
|
+
O.value = !1, H.local.setItem(
|
|
631
|
+
p.value,
|
|
632
|
+
i.value.map(({ show: u, key: o, label: r, value: n, width: b, minWidth: k, align: v }) => ({
|
|
633
|
+
show: u,
|
|
631
634
|
key: o,
|
|
632
|
-
label:
|
|
635
|
+
label: r,
|
|
633
636
|
value: n,
|
|
634
637
|
width: b,
|
|
635
|
-
minWidth:
|
|
636
|
-
align:
|
|
638
|
+
minWidth: k,
|
|
639
|
+
align: v
|
|
637
640
|
}))
|
|
638
|
-
),
|
|
641
|
+
), e("sort", B.cloneDeep(i.value)), d.value = B.cloneDeep(i.value);
|
|
639
642
|
};
|
|
640
|
-
return (
|
|
641
|
-
const
|
|
642
|
-
return
|
|
643
|
+
return (u, o) => {
|
|
644
|
+
const r = N("el-button"), n = N("el-checkbox"), b = N("el-checkbox-group"), k = N("el-dialog"), v = ue("role");
|
|
645
|
+
return c(), g(
|
|
643
646
|
G,
|
|
644
647
|
null,
|
|
645
648
|
[
|
|
646
|
-
|
|
647
|
-
circle:
|
|
648
|
-
type:
|
|
649
|
-
style: { minWidth:
|
|
650
|
-
onClick:
|
|
649
|
+
t.btnType === "button" ? J((c(), T(r, K({ key: 0 }, u.$attrs, {
|
|
650
|
+
circle: t.circle,
|
|
651
|
+
type: t.type,
|
|
652
|
+
style: { minWidth: t.circle ? "40px" : "", minHeight: t.circle ? "40px" : "" },
|
|
653
|
+
onClick: Y
|
|
651
654
|
}), re({
|
|
652
|
-
icon:
|
|
655
|
+
icon: m(() => [
|
|
653
656
|
Ne
|
|
654
657
|
]),
|
|
655
658
|
_: 2
|
|
656
659
|
/* DYNAMIC */
|
|
657
660
|
}, [
|
|
658
|
-
|
|
661
|
+
t.circle ? void 0 : {
|
|
659
662
|
name: "default",
|
|
660
|
-
fn:
|
|
663
|
+
fn: m(() => [
|
|
661
664
|
E(' {{ t("action.setting") }} '),
|
|
662
|
-
|
|
663
|
-
" " +
|
|
665
|
+
V(
|
|
666
|
+
" " + j(_(s)("设置")),
|
|
664
667
|
1
|
|
665
668
|
/* TEXT */
|
|
666
669
|
)
|
|
@@ -668,41 +671,41 @@ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze)
|
|
|
668
671
|
key: "0"
|
|
669
672
|
}
|
|
670
673
|
]), 1040, ["circle", "type", "style"])), [
|
|
671
|
-
[
|
|
674
|
+
[v, u.$props.role]
|
|
672
675
|
]) : E("v-if", !0),
|
|
673
|
-
|
|
676
|
+
t.btnType === "icon" ? J((c(), T(
|
|
674
677
|
_(Be),
|
|
675
678
|
K({
|
|
676
679
|
key: 1,
|
|
677
680
|
name: "iksvg_shezhi-daohang",
|
|
678
681
|
"show-bg": "",
|
|
679
682
|
size: "default"
|
|
680
|
-
},
|
|
683
|
+
}, u.$attrs, { onClick: Y }),
|
|
681
684
|
null,
|
|
682
685
|
16
|
|
683
686
|
/* FULL_PROPS */
|
|
684
687
|
)), [
|
|
685
|
-
[
|
|
688
|
+
[v, u.$props.role]
|
|
686
689
|
]) : E("v-if", !0),
|
|
687
|
-
$(
|
|
688
|
-
modelValue:
|
|
689
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
690
|
+
$(k, {
|
|
691
|
+
modelValue: O.value,
|
|
692
|
+
"onUpdate:modelValue": o[3] || (o[3] = (y) => O.value = y),
|
|
690
693
|
draggable: "",
|
|
691
|
-
width:
|
|
694
|
+
width: t.inline ? _(l).l : _(l).sl,
|
|
692
695
|
"close-on-click-modal": !1,
|
|
693
696
|
"close-on-press-escape": !1,
|
|
694
697
|
title: "显示字段",
|
|
695
698
|
"append-to-body": "",
|
|
696
|
-
onOpen:
|
|
699
|
+
onOpen: W
|
|
697
700
|
}, {
|
|
698
|
-
footer:
|
|
699
|
-
S("div",
|
|
700
|
-
$(
|
|
701
|
-
onClick: o[2] || (o[2] = (
|
|
701
|
+
footer: m(() => [
|
|
702
|
+
S("div", je, [
|
|
703
|
+
$(r, {
|
|
704
|
+
onClick: o[2] || (o[2] = (y) => O.value = !1)
|
|
702
705
|
}, {
|
|
703
|
-
default:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
+
default: m(() => [
|
|
707
|
+
V(
|
|
708
|
+
j(_(s)("关闭")) + " ",
|
|
706
709
|
1
|
|
707
710
|
/* TEXT */
|
|
708
711
|
),
|
|
@@ -711,14 +714,14 @@ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze)
|
|
|
711
714
|
_: 1
|
|
712
715
|
/* STABLE */
|
|
713
716
|
}),
|
|
714
|
-
$(
|
|
717
|
+
$(r, {
|
|
715
718
|
type: "primary",
|
|
716
719
|
disabled: i.value.length < 2,
|
|
717
720
|
onClick: ae
|
|
718
721
|
}, {
|
|
719
|
-
default:
|
|
720
|
-
|
|
721
|
-
|
|
722
|
+
default: m(() => [
|
|
723
|
+
V(
|
|
724
|
+
j(i.value.length < 2 ? "至少选择一个字段" : _(s)("确定")),
|
|
722
725
|
1
|
|
723
726
|
/* TEXT */
|
|
724
727
|
)
|
|
@@ -728,49 +731,49 @@ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze)
|
|
|
728
731
|
}, 8, ["disabled"])
|
|
729
732
|
])
|
|
730
733
|
]),
|
|
731
|
-
default:
|
|
734
|
+
default: m(() => [
|
|
732
735
|
S(
|
|
733
736
|
"div",
|
|
734
737
|
{
|
|
735
|
-
class: w(["view-fields", [
|
|
738
|
+
class: w(["view-fields", [t.inline ? null : "un-inline"]])
|
|
736
739
|
},
|
|
737
740
|
[
|
|
738
741
|
S(
|
|
739
742
|
"div",
|
|
740
743
|
{
|
|
741
|
-
style: C({ flex:
|
|
744
|
+
style: C({ flex: t.inline ? 2 : 1 })
|
|
742
745
|
},
|
|
743
746
|
[
|
|
744
747
|
$(n, {
|
|
745
|
-
modelValue:
|
|
746
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
748
|
+
modelValue: A.value,
|
|
749
|
+
"onUpdate:modelValue": o[0] || (o[0] = (y) => A.value = y),
|
|
747
750
|
class: "single-line",
|
|
748
751
|
indeterminate: ee.value,
|
|
749
752
|
onChange: te
|
|
750
753
|
}, {
|
|
751
|
-
default:
|
|
752
|
-
|
|
754
|
+
default: m(() => [
|
|
755
|
+
V(" 全选 ")
|
|
753
756
|
]),
|
|
754
757
|
_: 1
|
|
755
758
|
/* STABLE */
|
|
756
759
|
}, 8, ["modelValue", "indeterminate"]),
|
|
757
760
|
$(b, {
|
|
758
|
-
modelValue:
|
|
759
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
760
|
-
onChange:
|
|
761
|
+
modelValue: f.value,
|
|
762
|
+
"onUpdate:modelValue": o[1] || (o[1] = (y) => f.value = y),
|
|
763
|
+
onChange: U
|
|
761
764
|
}, {
|
|
762
|
-
default:
|
|
763
|
-
(
|
|
765
|
+
default: m(() => [
|
|
766
|
+
(c(!0), g(
|
|
764
767
|
G,
|
|
765
768
|
null,
|
|
766
|
-
|
|
767
|
-
key:
|
|
768
|
-
disabled: !
|
|
769
|
-
label:
|
|
769
|
+
ce(x.value, (y) => (c(), T(n, {
|
|
770
|
+
key: y.key,
|
|
771
|
+
disabled: !y.key,
|
|
772
|
+
label: y.key
|
|
770
773
|
}, {
|
|
771
|
-
default:
|
|
772
|
-
|
|
773
|
-
|
|
774
|
+
default: m(() => [
|
|
775
|
+
V(
|
|
776
|
+
j(y.label),
|
|
774
777
|
1
|
|
775
778
|
/* TEXT */
|
|
776
779
|
)
|
|
@@ -811,7 +814,7 @@ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze)
|
|
|
811
814
|
};
|
|
812
815
|
}
|
|
813
816
|
});
|
|
814
|
-
const
|
|
817
|
+
const Oe = /* @__PURE__ */ X(Le, [["__scopeId", "data-v-b5ed17ed"]]), Ae = P(Oe);
|
|
815
818
|
export {
|
|
816
819
|
Ae as IkBtnSetting,
|
|
817
820
|
Ae as default
|