ling-yun-custom-components 0.0.34 → 0.0.36
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/es/BatchImport.mjs +1 -1
- package/es/BuildComponents.mjs +1 -1
- package/es/CustomDialog.mjs +1 -1
- package/es/CustomDropdown.mjs +10 -10
- package/es/CustomTab.mjs +7 -7
- package/es/CustomTitle.mjs +1 -1
- package/es/FileList.mjs +1 -1
- package/es/GradientButton.mjs +7 -7
- package/es/IconEmpty.mjs +1 -1
- package/es/IconRenderer.mjs +62 -13
- package/es/IconSelect.mjs +3 -3
- package/es/PageNotFound.mjs +42 -0
- package/es/PaginationTable.mjs +1 -1
- package/es/SearchBar.mjs +1 -1
- package/es/TreeSelect.mjs +2 -2
- package/es/TreeShowSelect.mjs +1 -1
- package/es/UpdatePasswordDialog.mjs +3 -3
- package/es/UploadFile.mjs +1 -1
- package/es/assets/BuildComponents.css +1 -1
- package/es/assets/CustomDropdown.css +1 -1
- package/es/assets/CustomTab.css +1 -1
- package/es/assets/GradientButton.css +1 -1
- package/es/assets/IconSelect.css +1 -1
- package/es/assets/PageNotFound.css +0 -0
- package/es/assets/PaginationTable.css +1 -1
- package/es/assets/TreeSelect.css +1 -1
- package/es/assets/TreeShowSelect.css +1 -1
- package/es/assets/UpdatePasswordDialog.css +1 -1
- package/es/assets/layout2.css +1 -1
- package/es/assets/layout3.css +1 -1
- package/es/assets/layout4.css +1 -1
- package/es/assets/layout5.css +1 -1
- package/es/assets/layout6.css +1 -1
- package/es/chunks/global.BoqYDmws.js +8387 -0
- package/es/chunks/global.DBatr4rf.js +15746 -0
- package/es/chunks/global.DLyUBjAm.js +8080 -0
- package/es/chunks/{global.DYRS55FP.js → global.DpSgdQXX.js} +1839 -1761
- package/es/chunks/{layout.DJVruWAW.js → layout.9WADm5Lv.js} +90 -88
- package/es/chunks/{layout.CHE7L3Br.js → layout.BHroZ9U9.js} +12 -12
- package/es/chunks/{layout.B0thq8O1.js → layout.BKJPyxR8.js} +5 -5
- package/es/chunks/layout.BgtHhnxJ.js +66 -0
- package/es/chunks/{layout.kfyyRIKp.js → layout.C9yoozRN.js} +113 -107
- package/es/chunks/layout.CRtj9xK9.js +230 -0
- package/es/chunks/layout.CYgILBXq.js +592 -0
- package/es/chunks/{layout.z1w9j_0V.js → layout.DBgjqaxe.js} +2 -2
- package/es/chunks/layout.DTDMwNO7.js +231 -0
- package/es/chunks/{layout.CiNClIOK.js → layout.DXw3haOP.js} +1 -1
- package/es/chunks/layout.D_fCzVf0.js +39 -0
- package/es/chunks/layout.DdM4MaRr.js +149 -0
- package/es/chunks/{layout.ksXFwQhz.js → layout.vvR_4ki7.js} +9 -9
- package/es/index.mjs +49 -44
- package/lib/BatchImport.js +1 -1
- package/lib/BuildComponents.js +1 -1
- package/lib/CustomDialog.js +1 -1
- package/lib/CustomDropdown.js +1 -1
- package/lib/CustomTab.js +1 -1
- package/lib/CustomTitle.js +1 -1
- package/lib/FileList.js +1 -1
- package/lib/GradientButton.js +1 -1
- package/lib/IconEmpty.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/PageNotFound.js +1 -0
- package/lib/PaginationTable.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/TreeSelect.js +1 -1
- package/lib/TreeShowSelect.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/UploadFile.js +1 -1
- package/lib/assets/BuildComponents.css +1 -1
- package/lib/assets/CustomDropdown.css +1 -1
- package/lib/assets/CustomTab.css +1 -1
- package/lib/assets/GradientButton.css +1 -1
- package/lib/assets/IconSelect.css +1 -1
- package/lib/assets/PageNotFound.css +0 -0
- package/lib/assets/PaginationTable.css +1 -1
- package/lib/assets/TreeSelect.css +1 -1
- package/lib/assets/TreeShowSelect.css +1 -1
- package/lib/assets/UpdatePasswordDialog.css +1 -1
- package/lib/assets/layout2.css +1 -1
- package/lib/assets/layout3.css +1 -1
- package/lib/assets/layout4.css +1 -1
- package/lib/assets/layout5.css +1 -1
- package/lib/assets/layout6.css +1 -1
- package/lib/chunks/global.3UE6pLnj.js +1 -0
- package/lib/chunks/global.BNCddmRI.js +1 -0
- package/lib/chunks/global.Cmc2k3td.js +1 -0
- package/lib/chunks/global.DUq6tY9B.js +1 -0
- package/lib/chunks/{layout.TNSpahDr.js → layout.B-T_NE6r.js} +1 -1
- package/lib/chunks/{layout.BX7XTp-7.js → layout.B8d4J538.js} +1 -1
- package/lib/chunks/{layout.CKQTUDQH.js → layout.B9EVVV-O.js} +1 -1
- package/lib/chunks/layout.BCsKDB9S.js +1 -0
- package/lib/chunks/layout.BbWwZ-k5.js +1 -0
- package/lib/chunks/layout.BlY_nSey.js +1 -0
- package/lib/chunks/layout.CsWdFS5P.js +1 -0
- package/lib/chunks/layout.D0p4CwoO.js +1 -0
- package/lib/chunks/layout.D4arET4r.js +1 -0
- package/lib/chunks/layout.DE2mqrz_.js +1 -0
- package/lib/chunks/{layout.2cqUIJaF.js → layout.DWbm8gXV.js} +1 -1
- package/lib/chunks/layout.Js61I3wA.js +1 -0
- package/lib/chunks/layout.YVnsUDl7.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +5 -4
- package/lib/chunks/global.CSN_bdu1.js +0 -1
- package/lib/chunks/layout.BemBeSDu.js +0 -1
- package/lib/chunks/layout.CBrqQREH.js +0 -1
- package/lib/chunks/layout.DfE3Jkpv.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { renderSlot as
|
|
2
|
-
import { ElButton as z, ElForm as
|
|
3
|
-
import { IconMagnify as Le, IconCheck as Pe, IconUp as
|
|
4
|
-
import { operationConfigMap as C, labelPositionMap as I, componentType as
|
|
1
|
+
import { renderSlot as k, createElementBlock as $, openBlock as r, Fragment as x, renderList as E, createBlock as m, unref as t, withCtx as n, createTextVNode as D, toDisplayString as M, useCssVars as le, defineAsyncComponent as Y, ref as V, computed as U, withModifiers as pe, normalizeClass as N, mergeProps as g, createCommentVNode as O, withKeys as ke, onMounted as be, watch as ge, createElementVNode as w, createVNode as f, createSlots as F, normalizeProps as A, guardReactiveProps as H, normalizeStyle as we } from "vue";
|
|
2
|
+
import { ElButton as z, ElForm as Ve, ElFormItem as oe, ElInput as Z, ElDatePicker as De, ElInputNumber as Ce, ElSwitch as $e, ElRadioGroup as Ee, ElRadio as Fe, ElCheckboxGroup as Ue, ElCheckbox as xe, ElAutoResizer as _, ElPopover as Me, ElIcon as ee, ElDrawer as Se } from "element-plus";
|
|
3
|
+
import { IconMagnify as Le, IconCheck as Pe, IconUp as We, IconDown as Be, IconShrink as Ie } from "color-message-lingyun-vue";
|
|
4
|
+
import { operationConfigMap as C, labelPositionMap as I, componentType as p, dateParamsMap as Ne, dateFormat as ae, emitsMap as B } from "ling-yun-methods";
|
|
5
5
|
import { _ as ne } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { C as te } from "./layout.
|
|
7
|
-
import '../assets/layout3.css';const
|
|
6
|
+
import { C as te } from "./layout.BKJPyxR8.js";
|
|
7
|
+
import '../assets/layout3.css';const Oe = [
|
|
8
8
|
{
|
|
9
9
|
type: "primary",
|
|
10
10
|
label: "查询",
|
|
@@ -24,11 +24,11 @@ import '../assets/layout3.css';const Ne = [
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
emits: ["operation"],
|
|
27
|
-
setup(a, { emit:
|
|
28
|
-
const
|
|
29
|
-
|
|
27
|
+
setup(a, { emit: S }) {
|
|
28
|
+
const L = S, y = (v) => {
|
|
29
|
+
L("operation", v);
|
|
30
30
|
};
|
|
31
|
-
return (v, i) => v.$slots.operation ?
|
|
31
|
+
return (v, i) => v.$slots.operation ? k(v.$slots, "operation", {
|
|
32
32
|
key: 0,
|
|
33
33
|
operationList: a.operationList
|
|
34
34
|
}) : (r(!0), $(x, { key: 1 }, E(a.operationList, (c) => (r(), m(t(z), {
|
|
@@ -38,12 +38,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
38
38
|
onClick: (u) => y(c.value)
|
|
39
39
|
}, {
|
|
40
40
|
default: n(() => [
|
|
41
|
-
|
|
41
|
+
D(M(c.label), 1)
|
|
42
42
|
]),
|
|
43
43
|
_: 2
|
|
44
44
|
}, 1032, ["type", "icon", "onClick"]))), 128));
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, ze = /* @__PURE__ */ Object.assign({
|
|
47
47
|
name: "FormWrapper"
|
|
48
48
|
}, {
|
|
49
49
|
__name: "FormWrapper",
|
|
@@ -99,12 +99,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
emits: ["change", "enter"],
|
|
102
|
-
setup(a, { expose:
|
|
102
|
+
setup(a, { expose: S }) {
|
|
103
103
|
le((u) => ({
|
|
104
|
-
|
|
104
|
+
v21117ed0: a.minWidth + "px"
|
|
105
105
|
}));
|
|
106
|
-
const
|
|
107
|
-
return
|
|
106
|
+
const L = Y(() => import("./layout.2Mabaug0.js")), y = Y(() => import("./layout.BHroZ9U9.js")), v = a, i = V(null), c = U(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : "search-bar-form");
|
|
107
|
+
return S({
|
|
108
108
|
validate: (u) => i.value ? i.value.validate(u) : Promise.resolve(!0),
|
|
109
109
|
resetFields: () => {
|
|
110
110
|
i.value && i.value.resetFields();
|
|
@@ -115,7 +115,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
115
115
|
scrollToField: (u) => {
|
|
116
116
|
i.value && i.value.scrollToField(u);
|
|
117
117
|
}
|
|
118
|
-
}), (u,
|
|
118
|
+
}), (u, h) => (r(), m(t(Ve), {
|
|
119
119
|
ref_key: "formRef",
|
|
120
120
|
ref: i,
|
|
121
121
|
model: a.formData,
|
|
@@ -126,10 +126,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
126
126
|
class: N({
|
|
127
127
|
[c.value]: !0,
|
|
128
128
|
"items-end display-grid": !a.isFilterPreview
|
|
129
|
-
})
|
|
129
|
+
}),
|
|
130
|
+
onSubmit: h[0] || (h[0] = pe(() => {
|
|
131
|
+
}, ["prevent", "stop"]))
|
|
130
132
|
}, {
|
|
131
133
|
default: n(() => [
|
|
132
|
-
(r(!0), $(x, null, E(a.items, (e) => (r(), m(t(oe),
|
|
134
|
+
(r(!0), $(x, null, E(a.items, (e) => (r(), m(t(oe), g({
|
|
133
135
|
key: e.key,
|
|
134
136
|
label: a.showLabel ? e.label : "",
|
|
135
137
|
prop: e.key,
|
|
@@ -141,19 +143,19 @@ import '../assets/layout3.css';const Ne = [
|
|
|
141
143
|
]
|
|
142
144
|
}, { ref_for: !0 }, e), {
|
|
143
145
|
default: n(() => [
|
|
144
|
-
|
|
146
|
+
k(u.$slots, e.key, {
|
|
145
147
|
item: e,
|
|
146
148
|
formData: a.formData
|
|
147
149
|
}, () => [
|
|
148
|
-
e.type === t(
|
|
150
|
+
e.type === t(p).text ? (r(), m(t(Z), g({
|
|
149
151
|
key: 0,
|
|
150
152
|
modelValue: a.formData[e.key],
|
|
151
153
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
152
154
|
}, { ref_for: !0 }, e, {
|
|
153
155
|
class: "w-full",
|
|
154
156
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key]),
|
|
155
|
-
onKeyup:
|
|
156
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(
|
|
157
|
+
onKeyup: ke((l) => u.$emit("enter", e.key, a.formData[e.key]), ["enter"])
|
|
158
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(p).select ? (r(), m(t(L), g({
|
|
157
159
|
key: 1,
|
|
158
160
|
modelValue: a.formData[e.key],
|
|
159
161
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l,
|
|
@@ -161,72 +163,72 @@ import '../assets/layout3.css';const Ne = [
|
|
|
161
163
|
}, { ref_for: !0 }, e, {
|
|
162
164
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key]),
|
|
163
165
|
class: "w-full"
|
|
164
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(
|
|
166
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(p).date ? (r(), m(t(De), g({
|
|
165
167
|
key: 2,
|
|
166
168
|
modelValue: a.formData[e.key],
|
|
167
169
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
168
170
|
}, { ref_for: !0 }, {
|
|
169
171
|
...e,
|
|
170
|
-
...t(
|
|
172
|
+
...t(Ne)[e.dateType]
|
|
171
173
|
}, {
|
|
172
174
|
type: e.dateType,
|
|
173
175
|
format: e.format || t(ae).date,
|
|
174
176
|
"value-format": e.valueFormat || t(ae).dateTime,
|
|
175
177
|
class: "w-full",
|
|
176
178
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
177
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(
|
|
179
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(p).inputNumber ? (r(), m(t(Ce), g({
|
|
178
180
|
key: 3,
|
|
179
181
|
modelValue: a.formData[e.key],
|
|
180
182
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
181
183
|
}, { ref_for: !0 }, e, {
|
|
182
184
|
class: "w-full",
|
|
183
185
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
184
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(
|
|
186
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).switch ? (r(), m(t($e), g({
|
|
185
187
|
key: 4,
|
|
186
188
|
modelValue: a.formData[e.key],
|
|
187
189
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
188
190
|
}, { ref_for: !0 }, e, {
|
|
189
191
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
190
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(
|
|
192
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).radio ? (r(), m(t(Ee), {
|
|
191
193
|
key: 5,
|
|
192
194
|
modelValue: a.formData[e.key],
|
|
193
195
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l,
|
|
194
196
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
195
197
|
}, {
|
|
196
198
|
default: n(() => [
|
|
197
|
-
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(
|
|
199
|
+
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Fe), {
|
|
198
200
|
key: l.value,
|
|
199
201
|
label: l.value,
|
|
200
202
|
value: l.value,
|
|
201
203
|
disabled: l.disabled
|
|
202
204
|
}, {
|
|
203
205
|
default: n(() => [
|
|
204
|
-
|
|
206
|
+
D(M(l.label), 1)
|
|
205
207
|
]),
|
|
206
208
|
_: 2
|
|
207
209
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
208
210
|
]),
|
|
209
211
|
_: 2
|
|
210
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(
|
|
212
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).checkbox ? (r(), m(t(Ue), {
|
|
211
213
|
key: 6,
|
|
212
214
|
modelValue: a.formData[e.key],
|
|
213
215
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l,
|
|
214
216
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
215
217
|
}, {
|
|
216
218
|
default: n(() => [
|
|
217
|
-
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(
|
|
219
|
+
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(xe), {
|
|
218
220
|
key: l.value,
|
|
219
221
|
label: l.value,
|
|
220
222
|
value: l.value
|
|
221
223
|
}, {
|
|
222
224
|
default: n(() => [
|
|
223
|
-
|
|
225
|
+
D(M(l.label), 1)
|
|
224
226
|
]),
|
|
225
227
|
_: 2
|
|
226
228
|
}, 1032, ["label", "value"]))), 128))
|
|
227
229
|
]),
|
|
228
230
|
_: 2
|
|
229
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(
|
|
231
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).textarea ? (r(), m(t(Z), g({
|
|
230
232
|
key: 7,
|
|
231
233
|
modelValue: a.formData[e.key],
|
|
232
234
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
@@ -234,7 +236,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
234
236
|
class: "w-full",
|
|
235
237
|
type: "textarea",
|
|
236
238
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
237
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(
|
|
239
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).upload ? (r(), m(t(y), g({
|
|
238
240
|
key: 8,
|
|
239
241
|
modelValue: a.formData[e.key],
|
|
240
242
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
@@ -243,12 +245,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
243
245
|
]),
|
|
244
246
|
_: 2
|
|
245
247
|
}, 1040, ["label", "prop", "show-label", "class"]))), 128)),
|
|
246
|
-
|
|
248
|
+
k(u.$slots, "default", {}, void 0, !0)
|
|
247
249
|
]),
|
|
248
250
|
_: 3
|
|
249
251
|
}, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
|
|
250
252
|
}
|
|
251
|
-
}), q = /* @__PURE__ */ ne(
|
|
253
|
+
}), q = /* @__PURE__ */ ne(ze, [["__scopeId", "data-v-6092c6e2"]]), Re = { class: "h-32 w-full" }, Te = { class: "flex items-center justify-between pd-b-20" }, je = { class: "text-right" }, Ae = { class: "drawer-header" }, He = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, Ke = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, qe = /* @__PURE__ */ Object.assign({
|
|
252
254
|
name: "SearchBar"
|
|
253
255
|
}, {
|
|
254
256
|
__name: "layout",
|
|
@@ -291,7 +293,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
291
293
|
},
|
|
292
294
|
operationList: {
|
|
293
295
|
type: Array,
|
|
294
|
-
default:
|
|
296
|
+
default: Oe
|
|
295
297
|
},
|
|
296
298
|
// 是否为筛选器模式
|
|
297
299
|
filterMode: {
|
|
@@ -300,12 +302,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
300
302
|
}
|
|
301
303
|
},
|
|
302
304
|
emits: [B.updateModelValue, B.operation],
|
|
303
|
-
setup(a, { expose:
|
|
305
|
+
setup(a, { expose: S, emit: L }) {
|
|
304
306
|
le((o) => ({
|
|
305
|
-
|
|
306
|
-
|
|
307
|
+
v2e56a75a: a.maxHeight + "px",
|
|
308
|
+
v63e17c4e: j.value ? j.value + "px" : "100%"
|
|
307
309
|
}));
|
|
308
|
-
const y = a, v =
|
|
310
|
+
const y = a, v = L, i = V({}), c = V(!y.isExpand), u = V(null), h = V(!1), e = V(!1), l = U(() => {
|
|
309
311
|
const o = {};
|
|
310
312
|
return y.items.forEach((s) => {
|
|
311
313
|
if (s.required) {
|
|
@@ -313,7 +315,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
313
315
|
typeof s.validator == "function" && d.push({ validator: s.validator, trigger: "blur" }), o[s.key] = d;
|
|
314
316
|
}
|
|
315
317
|
}), o;
|
|
316
|
-
}), R = U(() => y.items?.filter((o) => !o.hidden) || []), G = U(() => y.filterMode ? R.value?.slice(0, 2) || [] : R.value),
|
|
318
|
+
}), R = U(() => y.items?.filter((o) => !o.hidden) || []), G = U(() => y.filterMode ? R.value?.slice(0, 2) || [] : R.value), P = U(() => y.filterMode ? R.value.slice(2) : []), J = (o) => {
|
|
317
319
|
i.value = { ...o };
|
|
318
320
|
}, ue = () => {
|
|
319
321
|
v(B.updateModelValue, { ...i.value });
|
|
@@ -322,27 +324,27 @@ import '../assets/layout3.css';const Ne = [
|
|
|
322
324
|
}, de = () => i.value, T = (o, s) => {
|
|
323
325
|
v(B.operation, C.search, i.value);
|
|
324
326
|
}, W = (o) => {
|
|
325
|
-
ue(), v(B.operation, o, i.value), (o === C.search || o === C.reset) && (
|
|
326
|
-
}, se = (o) => u.value.validate(o), j =
|
|
327
|
+
ue(), v(B.operation, o, i.value), (o === C.search || o === C.reset) && (h.value = !1, e.value = !1);
|
|
328
|
+
}, se = (o) => u.value.validate(o), j = V(0), fe = (o) => {
|
|
327
329
|
j.value = o + 32;
|
|
328
330
|
}, me = () => {
|
|
329
331
|
c.value = !c.value;
|
|
330
332
|
}, ce = () => {
|
|
331
|
-
|
|
333
|
+
h.value = !1, e.value = !0;
|
|
332
334
|
}, ye = () => {
|
|
333
|
-
e.value = !1,
|
|
334
|
-
}, Q =
|
|
335
|
+
e.value = !1, h.value = !0;
|
|
336
|
+
}, Q = V(!1), X = (o) => {
|
|
335
337
|
Q.value = o > y.maxHeight;
|
|
336
338
|
}, ve = U(() => y.filterMode || c.value ? "10px" : "0");
|
|
337
|
-
return
|
|
339
|
+
return be(() => {
|
|
338
340
|
J(y.modelValue), X();
|
|
339
|
-
}),
|
|
341
|
+
}), ge(
|
|
340
342
|
() => y.modelValue,
|
|
341
343
|
(o) => {
|
|
342
344
|
J(o);
|
|
343
345
|
},
|
|
344
346
|
{ immediate: !0, deep: !0 }
|
|
345
|
-
),
|
|
347
|
+
), S({
|
|
346
348
|
validate: se,
|
|
347
349
|
getFormData: de,
|
|
348
350
|
// clearValidate,
|
|
@@ -352,14 +354,14 @@ import '../assets/layout3.css';const Ne = [
|
|
|
352
354
|
}), (o, s) => (r(), $("div", {
|
|
353
355
|
class: N(["relative overflow-hidden w-full", { flex: a.filterMode }])
|
|
354
356
|
}, [
|
|
355
|
-
|
|
357
|
+
w("div", {
|
|
356
358
|
class: N({
|
|
357
359
|
"is-collapsed overflow-hidden": !c.value
|
|
358
360
|
})
|
|
359
361
|
}, [
|
|
360
362
|
f(t(_), null, {
|
|
361
363
|
default: n(({ height: d }) => [
|
|
362
|
-
|
|
364
|
+
D(M(X(d)) + " ", 1),
|
|
363
365
|
f(q, {
|
|
364
366
|
ref_key: "formRef",
|
|
365
367
|
ref: u,
|
|
@@ -378,10 +380,10 @@ import '../assets/layout3.css';const Ne = [
|
|
|
378
380
|
default: n(() => [
|
|
379
381
|
a.isExpand && !a.filterMode ? (r(), m(t(oe), { key: 0 }, {
|
|
380
382
|
default: n(() => [
|
|
381
|
-
|
|
383
|
+
w("div", Re, [
|
|
382
384
|
f(t(_), null, {
|
|
383
|
-
default: n(({ width:
|
|
384
|
-
|
|
385
|
+
default: n(({ width: b }) => [
|
|
386
|
+
D(M(fe(b)), 1)
|
|
385
387
|
]),
|
|
386
388
|
_: 1
|
|
387
389
|
})
|
|
@@ -392,10 +394,10 @@ import '../assets/layout3.css';const Ne = [
|
|
|
392
394
|
]),
|
|
393
395
|
_: 2
|
|
394
396
|
}, [
|
|
395
|
-
E(G.value, (
|
|
396
|
-
name:
|
|
397
|
+
E(G.value, (b) => ({
|
|
398
|
+
name: b.key,
|
|
397
399
|
fn: n((he) => [
|
|
398
|
-
|
|
400
|
+
k(o.$slots, b.key, A(H(he)), void 0, !0)
|
|
399
401
|
])
|
|
400
402
|
}))
|
|
401
403
|
]), 1032, ["items", "form-data", "rules", "label-width", "label-position", "show-label", "min-width", "is-filter-preview"])
|
|
@@ -403,12 +405,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
403
405
|
_: 3
|
|
404
406
|
})
|
|
405
407
|
], 2),
|
|
406
|
-
|
|
408
|
+
w("div", {
|
|
407
409
|
class: N(["operation-buttons", {
|
|
408
410
|
"absolute right-0 bg-fff text-right": a.isExpand && !a.filterMode,
|
|
409
411
|
"text-left": a.filterMode
|
|
410
412
|
}]),
|
|
411
|
-
style:
|
|
413
|
+
style: we({ bottom: ve.value })
|
|
412
414
|
}, [
|
|
413
415
|
a.filterMode ? (r(), $(x, { key: 0 }, [
|
|
414
416
|
f(t(z), {
|
|
@@ -416,31 +418,31 @@ import '../assets/layout3.css';const Ne = [
|
|
|
416
418
|
type: "default"
|
|
417
419
|
}, {
|
|
418
420
|
default: n(() => [...s[3] || (s[3] = [
|
|
419
|
-
|
|
421
|
+
D("重置", -1)
|
|
420
422
|
])]),
|
|
421
423
|
_: 1
|
|
422
424
|
}),
|
|
423
|
-
|
|
425
|
+
P.value?.length ? (r(), m(t(Me), {
|
|
424
426
|
key: 0,
|
|
425
|
-
visible:
|
|
427
|
+
visible: h.value,
|
|
426
428
|
placement: "bottom-start",
|
|
427
429
|
width: 628,
|
|
428
430
|
trigger: "click"
|
|
429
431
|
}, {
|
|
430
432
|
reference: n(() => [
|
|
431
433
|
f(t(z), {
|
|
432
|
-
onClick: s[1] || (s[1] = (d) =>
|
|
434
|
+
onClick: s[1] || (s[1] = (d) => h.value = !h.value),
|
|
433
435
|
icon: t(Pe),
|
|
434
436
|
type: "default"
|
|
435
437
|
}, {
|
|
436
438
|
default: n(() => [...s[4] || (s[4] = [
|
|
437
|
-
|
|
439
|
+
D(" 筛选器 ", -1)
|
|
438
440
|
])]),
|
|
439
441
|
_: 1
|
|
440
442
|
}, 8, ["icon"])
|
|
441
443
|
]),
|
|
442
444
|
default: n(() => [
|
|
443
|
-
|
|
445
|
+
w("div", Te, [
|
|
444
446
|
f(te, {
|
|
445
447
|
content: "筛选器",
|
|
446
448
|
fontSize: 16
|
|
@@ -456,7 +458,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
456
458
|
})
|
|
457
459
|
]),
|
|
458
460
|
f(q, {
|
|
459
|
-
items:
|
|
461
|
+
items: P.value,
|
|
460
462
|
"form-data": i.value,
|
|
461
463
|
"label-width": "auto",
|
|
462
464
|
"label-position": "top",
|
|
@@ -467,14 +469,14 @@ import '../assets/layout3.css';const Ne = [
|
|
|
467
469
|
class: "filter-form-popover overflow-y-auto",
|
|
468
470
|
onEnter: T
|
|
469
471
|
}, F({ _: 2 }, [
|
|
470
|
-
E(
|
|
472
|
+
E(P.value, (d) => ({
|
|
471
473
|
name: d.key,
|
|
472
|
-
fn: n((
|
|
473
|
-
|
|
474
|
+
fn: n((b) => [
|
|
475
|
+
k(o.$slots, d.key, A(H(b)), void 0, !0)
|
|
474
476
|
])
|
|
475
477
|
}))
|
|
476
478
|
]), 1032, ["items", "form-data", "min-width"]),
|
|
477
|
-
|
|
479
|
+
w("div", je, [
|
|
478
480
|
f(K, {
|
|
479
481
|
"operation-list": a.operationList,
|
|
480
482
|
onOperation: W
|
|
@@ -482,7 +484,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
482
484
|
o.$slots.operation ? {
|
|
483
485
|
name: "operation",
|
|
484
486
|
fn: n(({ operationList: d }) => [
|
|
485
|
-
|
|
487
|
+
k(o.$slots, "operation", { operationList: d }, void 0, !0)
|
|
486
488
|
]),
|
|
487
489
|
key: "0"
|
|
488
490
|
} : void 0
|
|
@@ -494,12 +496,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
494
496
|
], 64)) : (r(), $(x, { key: 1 }, [
|
|
495
497
|
Q.value && a.isExpand ? (r(), m(t(z), {
|
|
496
498
|
key: 0,
|
|
497
|
-
icon: c.value ? t(
|
|
499
|
+
icon: c.value ? t(We) : t(Be),
|
|
498
500
|
text: "",
|
|
499
501
|
onClick: me
|
|
500
502
|
}, {
|
|
501
503
|
default: n(() => [
|
|
502
|
-
|
|
504
|
+
D(M(c.value ? "收起" : "展开"), 1)
|
|
503
505
|
]),
|
|
504
506
|
_: 1
|
|
505
507
|
}, 8, ["icon"])) : O("", !0),
|
|
@@ -510,21 +512,21 @@ import '../assets/layout3.css';const Ne = [
|
|
|
510
512
|
o.$slots.operation ? {
|
|
511
513
|
name: "operation",
|
|
512
514
|
fn: n(({ operationList: d }) => [
|
|
513
|
-
|
|
515
|
+
k(o.$slots, "operation", { operationList: d }, void 0, !0)
|
|
514
516
|
]),
|
|
515
517
|
key: "0"
|
|
516
518
|
} : void 0
|
|
517
519
|
]), 1032, ["operation-list"])
|
|
518
520
|
], 64))
|
|
519
521
|
], 6),
|
|
520
|
-
f(t(
|
|
522
|
+
f(t(Se), {
|
|
521
523
|
modelValue: e.value,
|
|
522
524
|
"onUpdate:modelValue": s[2] || (s[2] = (d) => e.value = d),
|
|
523
525
|
size: "628",
|
|
524
526
|
"show-close": !1
|
|
525
527
|
}, {
|
|
526
528
|
header: n(() => [
|
|
527
|
-
|
|
529
|
+
w("div", Ae, [
|
|
528
530
|
f(te, {
|
|
529
531
|
content: "筛选器",
|
|
530
532
|
fontSize: 16
|
|
@@ -535,16 +537,16 @@ import '../assets/layout3.css';const Ne = [
|
|
|
535
537
|
class: "shrink-button"
|
|
536
538
|
}, {
|
|
537
539
|
default: n(() => [
|
|
538
|
-
f(t(
|
|
540
|
+
f(t(Ie))
|
|
539
541
|
]),
|
|
540
542
|
_: 1
|
|
541
543
|
})
|
|
542
544
|
])
|
|
543
545
|
]),
|
|
544
546
|
default: n(() => [
|
|
545
|
-
|
|
547
|
+
w("div", He, [
|
|
546
548
|
f(q, {
|
|
547
|
-
items:
|
|
549
|
+
items: P.value,
|
|
548
550
|
"form-data": i.value,
|
|
549
551
|
"label-width": "auto",
|
|
550
552
|
"label-position": "top",
|
|
@@ -554,15 +556,15 @@ import '../assets/layout3.css';const Ne = [
|
|
|
554
556
|
"min-width": a.minWidth,
|
|
555
557
|
onEnter: T
|
|
556
558
|
}, F({ _: 2 }, [
|
|
557
|
-
E(
|
|
559
|
+
E(P.value, (d) => ({
|
|
558
560
|
name: d.key,
|
|
559
|
-
fn: n((
|
|
560
|
-
|
|
561
|
+
fn: n((b) => [
|
|
562
|
+
k(o.$slots, d.key, A(H(b)), void 0, !0)
|
|
561
563
|
])
|
|
562
564
|
}))
|
|
563
565
|
]), 1032, ["items", "form-data", "min-width"])
|
|
564
566
|
]),
|
|
565
|
-
|
|
567
|
+
w("div", Ke, [
|
|
566
568
|
f(K, {
|
|
567
569
|
"operation-list": a.operationList,
|
|
568
570
|
onOperation: W
|
|
@@ -570,7 +572,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
570
572
|
o.$slots.operation ? {
|
|
571
573
|
name: "operation",
|
|
572
574
|
fn: n(({ operationList: d }) => [
|
|
573
|
-
|
|
575
|
+
k(o.$slots, "operation", { operationList: d }, void 0, !0)
|
|
574
576
|
]),
|
|
575
577
|
key: "0"
|
|
576
578
|
} : void 0
|
|
@@ -581,7 +583,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
581
583
|
}, 8, ["modelValue"])
|
|
582
584
|
], 2));
|
|
583
585
|
}
|
|
584
|
-
}),
|
|
586
|
+
}), _e = /* @__PURE__ */ ne(qe, [["__scopeId", "data-v-fd5ceec9"]]);
|
|
585
587
|
export {
|
|
586
|
-
|
|
588
|
+
_e as S
|
|
587
589
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as z, computed as p, watch as M, createElementBlock as
|
|
1
|
+
import { ref as z, computed as p, watch as M, createElementBlock as f, openBlock as m, createVNode as R, createBlock as k, createCommentVNode as U, unref as h, mergeProps as B, withCtx as D, renderSlot as O, Fragment as E, createElementVNode as c, toDisplayString as x } from "vue";
|
|
2
2
|
import { ElUpload as N, ElImage as Y } from "element-plus";
|
|
3
3
|
import { emitsMap as i, uploadFileTypeMap as L, messageError as Q, messageWarning as F } from "ling-yun-methods";
|
|
4
|
-
import { _ as J, u as v } from "./layout.
|
|
4
|
+
import { _ as J, u as v } from "./layout.vvR_4ki7.js";
|
|
5
5
|
import { _ as K } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import '../assets/layout5.css';const u = [];
|
|
7
7
|
for (let A = 0; A < 256; ++A)
|
|
@@ -178,7 +178,7 @@ const aA = "data:image/webp;base64,UklGRroSAABXRUJQVlA4WAoAAAAwAAAAvwAAyQAASUNDU
|
|
|
178
178
|
), a({
|
|
179
179
|
handleBeforeUpload: b,
|
|
180
180
|
httpRequest: q
|
|
181
|
-
}), (e, l) => (m(),
|
|
181
|
+
}), (e, l) => (m(), f("div", lA, [
|
|
182
182
|
R(h(N), B({
|
|
183
183
|
ref_key: "uploadRef",
|
|
184
184
|
ref: j,
|
|
@@ -196,20 +196,20 @@ const aA = "data:image/webp;base64,UklGRroSAABXRUJQVlA4WAoAAAAwAAAAvwAAyQAASUNDU
|
|
|
196
196
|
e.$slots.tip ? O(e.$slots, "tip", {
|
|
197
197
|
key: 0,
|
|
198
198
|
uploadTip: o.value
|
|
199
|
-
}, void 0, !0) : (m(),
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
}, void 0, !0) : (m(), f(E, { key: 1 }, [
|
|
200
|
+
c("div", uA, [
|
|
201
|
+
c("div", nA, [
|
|
202
202
|
R(h(Y), {
|
|
203
203
|
src: h(aA),
|
|
204
204
|
class: "absolute image"
|
|
205
205
|
}, null, 8, ["src"])
|
|
206
206
|
])
|
|
207
207
|
]),
|
|
208
|
-
l[1] || (l[1] =
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
o.value.formatMaxSize ? (m(),
|
|
212
|
-
o.value.maxCount ? (m(),
|
|
208
|
+
l[1] || (l[1] = c("div", { class: "text-262626 fz-14 weight-500" }, "点击或拖拽文件上传", -1)),
|
|
209
|
+
c("div", oA, [
|
|
210
|
+
c("span", null, x(o.value.formatAcceptText), 1),
|
|
211
|
+
o.value.formatMaxSize ? (m(), f("span", rA, "," + x(o.value.formatMaxSize), 1)) : U("", !0),
|
|
212
|
+
o.value.maxCount ? (m(), f("span", dA, "," + x(o.value.maxCount), 1)) : U("", !0)
|
|
213
213
|
])
|
|
214
214
|
], 64))
|
|
215
215
|
]),
|
|
@@ -224,7 +224,7 @@ const aA = "data:image/webp;base64,UklGRroSAABXRUJQVlA4WAoAAAAwAAAAvwAAyQAASUNDU
|
|
|
224
224
|
}, e.$attrs, { onDelete: H }), null, 16, ["modelValue", "field-mapping", "show-delete"])) : U("", !0)
|
|
225
225
|
]));
|
|
226
226
|
}
|
|
227
|
-
}), vA = /* @__PURE__ */ K(iA, [["__scopeId", "data-v-
|
|
227
|
+
}), vA = /* @__PURE__ */ K(iA, [["__scopeId", "data-v-c9d51ce3"]]);
|
|
228
228
|
export {
|
|
229
229
|
vA as default
|
|
230
230
|
};
|
|
@@ -28,12 +28,12 @@ import '../assets/layout4.css';const r = { class: "custom-title" }, i = /* @__PU
|
|
|
28
28
|
},
|
|
29
29
|
setup(t) {
|
|
30
30
|
return o((e) => ({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
v47d985ee: t.fontWeight,
|
|
32
|
+
v6d50a5d6: t.fontSize + "px",
|
|
33
|
+
v4b029cbc: t.color
|
|
34
34
|
})), (e, l) => (n(), c("div", r, a(t.content), 1));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), d = /* @__PURE__ */ s(i, [["__scopeId", "data-v-4d572364"]]);
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
d as C
|
|
39
39
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { computed as n, createElementBlock as i, openBlock as o, createVNode as r, createElementVNode as l, unref as a, withCtx as m, createBlock as s, resolveDynamicComponent as p, normalizeStyle as y, toDisplayString as f } from "vue";
|
|
2
|
+
import { IconEmpty as u } from "color-message-lingyun-vue";
|
|
3
|
+
import { ElIcon as d } from "element-plus";
|
|
4
|
+
import { _ as x } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import '../assets/PageNotFound.css';const S = { class: "icon-empty flex flex-col items-center justify-center" }, z = /* @__PURE__ */ Object.assign({
|
|
6
|
+
name: "IconEmpty"
|
|
7
|
+
}, {
|
|
8
|
+
__name: "layout",
|
|
9
|
+
props: {
|
|
10
|
+
// 图标组件
|
|
11
|
+
icon: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: u
|
|
14
|
+
},
|
|
15
|
+
// 图标大小
|
|
16
|
+
iconSize: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 64
|
|
19
|
+
},
|
|
20
|
+
// 图标颜色
|
|
21
|
+
iconColor: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "#c0c4cc"
|
|
24
|
+
},
|
|
25
|
+
// 显示文字
|
|
26
|
+
text: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "暂无数据"
|
|
29
|
+
},
|
|
30
|
+
// 文字颜色
|
|
31
|
+
textColor: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "#909399"
|
|
34
|
+
},
|
|
35
|
+
// 文字字号
|
|
36
|
+
textSize: {
|
|
37
|
+
type: Number,
|
|
38
|
+
default: 14
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
setup(t) {
|
|
42
|
+
const e = t, c = n(() => ({
|
|
43
|
+
color: e.textColor,
|
|
44
|
+
fontSize: `${e.textSize}px`
|
|
45
|
+
}));
|
|
46
|
+
return (E, I) => (o(), i("div", S, [
|
|
47
|
+
r(a(d), {
|
|
48
|
+
size: t.iconSize,
|
|
49
|
+
color: t.iconColor,
|
|
50
|
+
class: "icon-empty-icon"
|
|
51
|
+
}, {
|
|
52
|
+
default: m(() => [
|
|
53
|
+
(o(), s(p(t.icon)))
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["size", "color"]),
|
|
57
|
+
l("div", {
|
|
58
|
+
class: "icon-empty-text",
|
|
59
|
+
style: y(c.value)
|
|
60
|
+
}, f(t.text), 5)
|
|
61
|
+
]));
|
|
62
|
+
}
|
|
63
|
+
}), b = /* @__PURE__ */ x(z, [["__scopeId", "data-v-c69a2cce"]]);
|
|
64
|
+
export {
|
|
65
|
+
b as I
|
|
66
|
+
};
|