ling-yun-custom-components 0.0.10 → 0.0.22
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 +50 -50
- package/es/CustomDialog.mjs +1 -1
- package/es/CustomDropdown.mjs +24 -24
- package/es/CustomPagination.mjs +1 -1
- package/es/CustomSelect.mjs +1 -1
- package/es/FileList.mjs +1 -1
- package/es/GradientButton.mjs +23 -23
- package/es/IconEmpty.mjs +1 -1
- package/es/IconRenderer.mjs +21 -18
- package/es/IconSelect.mjs +33 -33
- package/es/PaginationTable.mjs +37 -37
- package/es/SearchBar.mjs +1 -1
- package/es/TreeSelect.mjs +25 -25
- package/es/UpdatePasswordDialog.mjs +21 -21
- package/es/UploadFile.mjs +1 -1
- package/es/chunks/{index.D4Kbv-m1.js → index.CRROL-C7.js} +100 -100
- package/es/chunks/{index.DlooXR0t.js → index._uj6b1Kd.js} +2953 -3583
- package/es/chunks/{layout.C0UEMbnF.js → layout.3r4JjCjq.js} +1 -1
- package/es/chunks/layout.B8mwOOqx.js +149 -0
- package/es/chunks/{layout.LCKaV7EX.js → layout.BHroZ9U9.js} +1 -1
- package/es/chunks/{layout.DeAFov0o.js → layout.BSdpu71J.js} +1 -1
- package/es/chunks/{layout.6MxjcpGc.js → layout.BZ373u9D.js} +43 -43
- package/es/chunks/{layout.CnANFnM1.js → layout.Bg387XYI.js} +31 -31
- package/es/chunks/{layout._A_rHZM7.js → layout.BsiNPYtX.js} +1 -1
- package/es/chunks/{layout.ypvwQzq5.js → layout.BzQrppiO.js} +19 -19
- package/es/chunks/{layout.Dvw3u-s5.js → layout.CSYJ22Ac.js} +22 -22
- package/es/chunks/{layout.CtWHo87D.js → layout.CmH2-6H-.js} +1 -1
- package/es/chunks/{layout.BJE8rMzK.js → layout.D7cg-xRZ.js} +2 -2
- package/es/chunks/layout.DBgjqaxe.js +66 -0
- package/es/chunks/{layout.t3qD0LTW.js → layout.DLUJzpco.js} +4 -4
- package/es/chunks/{layout.Day1LJyl.js → layout.Epzao23T.js} +9 -9
- package/es/chunks/{layout.f58eO4Hr.js → layout.dhOtQkoC.js} +13 -13
- package/es/chunks/{layout.1y3OJ-ea.js → layout.iUFnoCjZ.js} +2 -2
- package/es/chunks/{layout.CTQtuC78.js → layout.o_B8gly4.js} +2 -2
- package/es/chunks/{layout.CiNI5oQK.js → layout.vvR_4ki7.js} +48 -48
- package/lib/BatchImport.js +1 -1
- package/lib/CustomDialog.js +1 -1
- package/lib/CustomDropdown.js +1 -1
- package/lib/CustomPagination.js +1 -1
- package/lib/CustomSelect.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/PaginationTable.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/TreeSelect.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/UploadFile.js +1 -1
- package/lib/chunks/index.BKVX0AJJ.js +23 -0
- package/lib/chunks/{index.CrvqvcN9.js → index.Cm0zRaZN.js} +2 -2
- package/lib/chunks/{layout.BXdjRFbn.js → layout.-2KgXQBu.js} +1 -1
- package/lib/chunks/layout.7-8MCU-f.js +1 -0
- package/lib/chunks/{layout.CoSBrO12.js → layout.9Q_gwznp.js} +1 -1
- package/lib/chunks/layout.B8EsRYB6.js +1 -0
- package/lib/chunks/layout.B8d4J538.js +1 -0
- package/lib/chunks/{layout.CwA4IJ1g.js → layout.BeQpU6RU.js} +1 -1
- package/lib/chunks/{layout.5iOiFlVu.js → layout.BqWe_qix.js} +1 -1
- package/lib/chunks/{layout.-yZzrp74.js → layout.C2BGVUSH.js} +1 -1
- package/lib/chunks/{layout.DDTIwGYp.js → layout.D3OyheOl.js} +1 -1
- package/lib/chunks/layout.DE2WIKAN.js +1 -0
- package/lib/chunks/{layout.BhL14Rqh.js → layout.DWbm8gXV.js} +1 -1
- package/lib/chunks/layout.DYKJPi9L.js +1 -0
- package/lib/chunks/layout.DYnlhiPO.js +1 -0
- package/lib/chunks/layout.Dt0IRZ49.js +1 -0
- package/lib/chunks/layout.Js61I3wA.js +1 -0
- package/lib/chunks/layout.XtG7xOYE.js +1 -0
- package/lib/chunks/{layout.CDg3sCTi.js → layout.s-xNK0r5.js} +1 -1
- package/lib/chunks/{layout.DfiLurg1.js → layout.vff7gZ3-.js} +1 -1
- package/package.json +15 -15
- package/es/chunks/layout.ZxPdKhRp.js +0 -149
- package/lib/chunks/index.Bixsw9fA.js +0 -23
- package/lib/chunks/layout.2PAIPzYY.js +0 -1
- package/lib/chunks/layout.BBNd1hLQ.js +0 -1
- package/lib/chunks/layout.BNJsxQ2g.js +0 -1
- package/lib/chunks/layout.BmQYiD_b.js +0 -1
- package/lib/chunks/layout.CeVldGUL.js +0 -1
- package/lib/chunks/layout.CjJiAY0w.js +0 -1
- package/lib/chunks/layout.DOS2ezSW.js +0 -1
- package/lib/chunks/layout.D_TxPvRy.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as l, createBlock as f, openBlock as z, unref as y, mergeProps as S } from "vue";
|
|
2
2
|
import { ElPagination as C } from "element-plus";
|
|
3
3
|
import { d as P, e as b } from "./index.DfOANPhX.js";
|
|
4
|
-
import { b as t,
|
|
4
|
+
import { b as t, c as p, v as d } from "./index.CRROL-C7.js";
|
|
5
5
|
const O = /* @__PURE__ */ Object.assign({
|
|
6
6
|
name: "CustomPagination"
|
|
7
7
|
}, {
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { useCssVars as L, ref as N, watch as U, createElementBlock as u, createCommentVNode as v, openBlock as r, Fragment as x, renderList as j, normalizeClass as z, unref as o, createElementVNode as m, createBlock as f, normalizeStyle as O, withCtx as S, resolveDynamicComponent as E, toDisplayString as k, renderSlot as w, createVNode as R } from "vue";
|
|
2
|
+
import { ElImage as T, ElIcon as M } from "element-plus";
|
|
3
|
+
import { f as c, t as P, m as a } from "./index._uj6b1Kd.js";
|
|
4
|
+
import { IconDelete as A, IconTxt as G, IconPpt as I, IconXls as b, IconDoc as F, IconPdf as K } from "color-message-lingyun-vue";
|
|
5
|
+
import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import '../assets/layout6.css';const i = {
|
|
7
|
+
uploading: "uploading",
|
|
8
|
+
success: "success",
|
|
9
|
+
error: "error"
|
|
10
|
+
}, q = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "file-list display-grid pd-t-12 pd-b-12"
|
|
13
|
+
}, H = { class: "flex overflow-hidden flex-1 pd-r-10" }, J = { class: "pd-l-8 flex-1 overflow-hidden" }, Q = ["title"], W = { class: "fz-12 text-ellipsis lh-16" }, Y = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "text-74798c"
|
|
16
|
+
}, Z = /* @__PURE__ */ Object.assign({
|
|
17
|
+
name: "FileList"
|
|
18
|
+
}, {
|
|
19
|
+
__name: "layout",
|
|
20
|
+
props: {
|
|
21
|
+
// 文件列表数据
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: () => []
|
|
25
|
+
},
|
|
26
|
+
// 是否显示删除按钮
|
|
27
|
+
showDelete: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
},
|
|
31
|
+
// 字段映射配置
|
|
32
|
+
fieldMapping: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => ({
|
|
35
|
+
// fileName: 'fileName',
|
|
36
|
+
// fileUrl: 'fileUrl',
|
|
37
|
+
})
|
|
38
|
+
},
|
|
39
|
+
rowCount: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 2
|
|
42
|
+
},
|
|
43
|
+
// 图标大小
|
|
44
|
+
iconSize: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 36
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: [c.delete, c.change, c.updateModelValue],
|
|
50
|
+
setup(l, { emit: _ }) {
|
|
51
|
+
L((e) => ({
|
|
52
|
+
v247946fe: l.rowCount
|
|
53
|
+
}));
|
|
54
|
+
const p = l, g = _, n = N(p.modelValue), B = Object.fromEntries(
|
|
55
|
+
Object.entries(P).map(([e, s]) => [s, e])
|
|
56
|
+
), h = (e) => e[p.fieldMapping.fileUrl] ? e[p.fieldMapping.fileUrl] : e.raw && e.raw instanceof File ? URL.createObjectURL(e.raw) : e instanceof File ? URL.createObjectURL(e) : "", C = {
|
|
57
|
+
[a.pdf]: K,
|
|
58
|
+
[a.doc]: F,
|
|
59
|
+
[a.docx]: F,
|
|
60
|
+
[a.xls]: b,
|
|
61
|
+
[a.xlsx]: b,
|
|
62
|
+
[a.ppt]: I,
|
|
63
|
+
[a.pptx]: I,
|
|
64
|
+
[a.txt]: G
|
|
65
|
+
}, V = (e) => e?.includes("image"), $ = (e) => {
|
|
66
|
+
const s = B[e];
|
|
67
|
+
return C[s];
|
|
68
|
+
}, y = (e) => {
|
|
69
|
+
if (!e || e === 0) return "0 B";
|
|
70
|
+
const s = 1024, t = ["B", "KB", "MB", "GB"], d = Math.floor(Math.log(e) / Math.log(s));
|
|
71
|
+
return `${parseFloat((e / Math.pow(s, d)).toFixed(2))} ${t[d]}`;
|
|
72
|
+
}, D = (e, s) => {
|
|
73
|
+
n.value.splice(s, 1), g(c.delete, e), g(c.updateModelValue, n.value), g(c.change, n.value);
|
|
74
|
+
};
|
|
75
|
+
return U(
|
|
76
|
+
() => p.modelValue,
|
|
77
|
+
(e) => {
|
|
78
|
+
n.value = e;
|
|
79
|
+
},
|
|
80
|
+
{ immediate: !0 }
|
|
81
|
+
), (e, s) => n.value?.length ? (r(), u("div", q, [
|
|
82
|
+
(r(!0), u(x, null, j(n.value, (t, d) => (r(), u("div", {
|
|
83
|
+
key: d,
|
|
84
|
+
class: z(["pd-l-8 pd-r-8 pd-t-6 pd-b-6 radius-8 file-item overflow-hidden flex items-center", {
|
|
85
|
+
"bg-uploading": t.fileStatus === o(i).uploading,
|
|
86
|
+
"bg-fcfdff": t.fileStatus !== o(i).uploading,
|
|
87
|
+
"border-error": t.fileStatus === o(i).error,
|
|
88
|
+
"border-normal": t.fileStatus !== o(i).error
|
|
89
|
+
}])
|
|
90
|
+
}, [
|
|
91
|
+
m("div", H, [
|
|
92
|
+
V(t?.type) && h(t) ? (r(), f(o(T), {
|
|
93
|
+
key: 0,
|
|
94
|
+
src: h(t),
|
|
95
|
+
class: "radius-4",
|
|
96
|
+
fit: "cover",
|
|
97
|
+
style: O({ width: `${l.iconSize}px`, height: `${l.iconSize}px` })
|
|
98
|
+
}, null, 8, ["src", "style"])) : (r(), f(o(M), {
|
|
99
|
+
key: 1,
|
|
100
|
+
size: l.iconSize,
|
|
101
|
+
class: "pointer"
|
|
102
|
+
}, {
|
|
103
|
+
default: S(() => [
|
|
104
|
+
(r(), f(E($(t?.type))))
|
|
105
|
+
]),
|
|
106
|
+
_: 2
|
|
107
|
+
}, 1032, ["size"])),
|
|
108
|
+
m("div", J, [
|
|
109
|
+
m("div", {
|
|
110
|
+
class: z(["fz-14 text-ellipsis lh-20 flex-1", {
|
|
111
|
+
"text-ec0e13": t.fileStatus === o(i).error,
|
|
112
|
+
"text-262626": t.fileStatus !== o(i).error
|
|
113
|
+
}]),
|
|
114
|
+
title: t[l.fieldMapping.fileName]
|
|
115
|
+
}, k(t[l.fieldMapping.fileName]), 11, Q),
|
|
116
|
+
m("div", W, [
|
|
117
|
+
e.$slots.status ? w(e.$slots, "status", {
|
|
118
|
+
key: 0,
|
|
119
|
+
file: t
|
|
120
|
+
}, void 0, !0) : (r(), u(x, { key: 1 }, [
|
|
121
|
+
e.$slots.size ? w(e.$slots, "size", {
|
|
122
|
+
key: 0,
|
|
123
|
+
file: t,
|
|
124
|
+
size: y(t.size)
|
|
125
|
+
}, void 0, !0) : (r(), u("span", Y, k(y(t.size)), 1))
|
|
126
|
+
], 64))
|
|
127
|
+
])
|
|
128
|
+
])
|
|
129
|
+
]),
|
|
130
|
+
l.showDelete ? (r(), f(o(M), {
|
|
131
|
+
key: 0,
|
|
132
|
+
size: 16,
|
|
133
|
+
color: t.fileStatus === o(i).error ? "var(--error-color-1)" : "var(--text-color-4)",
|
|
134
|
+
class: "pointer",
|
|
135
|
+
onClick: (ee) => D(t, d)
|
|
136
|
+
}, {
|
|
137
|
+
default: S(() => [
|
|
138
|
+
R(o(A))
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}, 8, ["color", "onClick"])) : v("", !0)
|
|
142
|
+
], 2))), 128))
|
|
143
|
+
])) : v("", !0);
|
|
144
|
+
}
|
|
145
|
+
}), ae = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-0980a743"]]);
|
|
146
|
+
export {
|
|
147
|
+
ae as _,
|
|
148
|
+
i as u
|
|
149
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAttrs as I, computed as d, onMounted as L, createBlock as y, openBlock as u, unref as n, mergeProps as U, withCtx as c, createElementBlock as g, renderSlot as m, createElementVNode as v, createCommentVNode as A, createTextVNode as h, toDisplayString as C, Fragment as R, createVNode as x } from "vue";
|
|
2
2
|
import { ElDialog as q, ElButton as b, ElIcon as z } from "element-plus";
|
|
3
3
|
import { j as H, k as J } from "./index.DfOANPhX.js";
|
|
4
|
-
import { b as e } from "./index.
|
|
4
|
+
import { b as e } from "./index.CRROL-C7.js";
|
|
5
5
|
import { _ as K } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import '../assets/layout2.css';const t = {
|
|
7
7
|
DEFAULT: "default",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { renderSlot as k, createElementBlock as $, openBlock as r, Fragment as
|
|
2
|
-
import { ElButton as z, ElForm as we, ElFormItem as oe, ElInput as Z, ElDatePicker as Ve, ElInputNumber as De, ElSwitch as Ce, ElRadioGroup as $e, ElRadio as Ee, ElCheckboxGroup as Fe, ElCheckbox as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 V, toDisplayString as L, useCssVars as le, defineAsyncComponent as Y, ref as w, computed as U, normalizeClass as N, mergeProps as b, createCommentVNode as O, withKeys as ke, onMounted as pe, watch as be, createElementVNode as g, createVNode as f, createSlots as F, normalizeProps as A, guardReactiveProps as H, normalizeStyle as ge } from "vue";
|
|
2
|
+
import { ElButton as z, ElForm as we, ElFormItem as oe, ElInput as Z, ElDatePicker as Ve, ElInputNumber as De, ElSwitch as Ce, ElRadioGroup as $e, ElRadio as Ee, ElCheckboxGroup as Fe, ElCheckbox as Ue, ElAutoResizer as _, ElPopover as xe, ElIcon as ee, ElDrawer as Le } from "element-plus";
|
|
3
|
+
import { IconMagnify as Se, IconCheck as We, IconUp as Be, IconDown as Ie, IconShrink as Me } from "color-message-lingyun-vue";
|
|
4
|
+
import { X as C, s as P, N as h, Q as Pe, J as ae, f as M } from "./index._uj6b1Kd.js";
|
|
5
5
|
import { _ as ne } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import { C as te } from "./layout.BKJPyxR8.js";
|
|
7
|
-
import '../assets/layout3.css';const
|
|
7
|
+
import '../assets/layout3.css';const Ne = [
|
|
8
8
|
{
|
|
9
9
|
type: "primary",
|
|
10
10
|
label: "查询",
|
|
@@ -31,7 +31,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
31
31
|
return (v, i) => v.$slots.operation ? k(v.$slots, "operation", {
|
|
32
32
|
key: 0,
|
|
33
33
|
operationList: a.operationList
|
|
34
|
-
}) : (r(!0), $(
|
|
34
|
+
}) : (r(!0), $(x, { key: 1 }, E(a.operationList, (c) => (r(), m(t(z), {
|
|
35
35
|
key: c.value,
|
|
36
36
|
type: c.type,
|
|
37
37
|
icon: c.icon,
|
|
@@ -43,7 +43,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
43
43
|
_: 2
|
|
44
44
|
}, 1032, ["type", "icon", "onClick"]))), 128));
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, Oe = /* @__PURE__ */ Object.assign({
|
|
47
47
|
name: "FormWrapper"
|
|
48
48
|
}, {
|
|
49
49
|
__name: "FormWrapper",
|
|
@@ -71,7 +71,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
71
71
|
// 标签位置
|
|
72
72
|
labelPosition: {
|
|
73
73
|
type: String,
|
|
74
|
-
default:
|
|
74
|
+
default: P.right
|
|
75
75
|
},
|
|
76
76
|
// 是否显示标签
|
|
77
77
|
showLabel: {
|
|
@@ -103,7 +103,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
103
103
|
le((u) => ({
|
|
104
104
|
v5a659130: a.minWidth + "px"
|
|
105
105
|
}));
|
|
106
|
-
const W = Y(() => import("./layout.
|
|
106
|
+
const W = Y(() => import("./layout.DLUJzpco.js")), y = Y(() => import("./layout.iUFnoCjZ.js")), v = a, i = w(null), c = U(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : "search-bar-form");
|
|
107
107
|
return S({
|
|
108
108
|
validate: (u) => i.value ? i.value.validate(u) : Promise.resolve(!0),
|
|
109
109
|
resetFields: () => {
|
|
@@ -123,13 +123,13 @@ import '../assets/layout3.css';const Oe = [
|
|
|
123
123
|
"label-position": a.labelPosition,
|
|
124
124
|
inline: a.inline,
|
|
125
125
|
rules: a.rules,
|
|
126
|
-
class:
|
|
126
|
+
class: N({
|
|
127
127
|
[c.value]: !0,
|
|
128
128
|
"items-end display-grid": !a.isFilterPreview
|
|
129
129
|
})
|
|
130
130
|
}, {
|
|
131
131
|
default: n(() => [
|
|
132
|
-
(r(!0), $(
|
|
132
|
+
(r(!0), $(x, null, E(a.items, (e) => (r(), m(t(oe), b({
|
|
133
133
|
key: e.key,
|
|
134
134
|
label: a.showLabel ? e.label : "",
|
|
135
135
|
prop: e.key,
|
|
@@ -167,7 +167,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
167
167
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
168
168
|
}, { ref_for: !0 }, {
|
|
169
169
|
...e,
|
|
170
|
-
...t(
|
|
170
|
+
...t(Pe)[e.dateType]
|
|
171
171
|
}, {
|
|
172
172
|
type: e.dateType,
|
|
173
173
|
format: e.format || t(ae).date,
|
|
@@ -194,7 +194,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
194
194
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
195
195
|
}, {
|
|
196
196
|
default: n(() => [
|
|
197
|
-
(r(!0), $(
|
|
197
|
+
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ee), {
|
|
198
198
|
key: l.value,
|
|
199
199
|
label: l.value
|
|
200
200
|
}, {
|
|
@@ -212,7 +212,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
212
212
|
onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
|
|
213
213
|
}, {
|
|
214
214
|
default: n(() => [
|
|
215
|
-
(r(!0), $(
|
|
215
|
+
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ue), {
|
|
216
216
|
key: l.value,
|
|
217
217
|
label: l.value
|
|
218
218
|
}, {
|
|
@@ -235,7 +235,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
235
235
|
key: 8,
|
|
236
236
|
modelValue: a.formData[e.key],
|
|
237
237
|
"onUpdate:modelValue": (l) => a.formData[e.key] = l
|
|
238
|
-
}, { ref_for: !0 }, e), null, 16, ["modelValue", "onUpdate:modelValue"])) :
|
|
238
|
+
}, { ref_for: !0 }, e), null, 16, ["modelValue", "onUpdate:modelValue"])) : O("", !0)
|
|
239
239
|
], !0)
|
|
240
240
|
]),
|
|
241
241
|
_: 2
|
|
@@ -245,7 +245,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
245
245
|
_: 3
|
|
246
246
|
}, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
|
|
247
247
|
}
|
|
248
|
-
}), q = /* @__PURE__ */ ne(
|
|
248
|
+
}), q = /* @__PURE__ */ ne(Oe, [["__scopeId", "data-v-a3300eb1"]]), ze = { class: "h-32 w-full" }, Re = { class: "flex items-center justify-between pd-b-20" }, Te = { class: "text-right" }, je = { class: "drawer-header" }, Ae = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, He = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, Ke = /* @__PURE__ */ Object.assign({
|
|
249
249
|
name: "SearchBar"
|
|
250
250
|
}, {
|
|
251
251
|
__name: "layout",
|
|
@@ -268,8 +268,8 @@ import '../assets/layout3.css';const Oe = [
|
|
|
268
268
|
// 标签位置
|
|
269
269
|
labelPosition: {
|
|
270
270
|
type: String,
|
|
271
|
-
default:
|
|
272
|
-
validator: (a) => [
|
|
271
|
+
default: P.right,
|
|
272
|
+
validator: (a) => [P.left, P.right, P.top].includes(a)
|
|
273
273
|
},
|
|
274
274
|
// 是否可以展开
|
|
275
275
|
isExpand: {
|
|
@@ -288,7 +288,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
288
288
|
},
|
|
289
289
|
operationList: {
|
|
290
290
|
type: Array,
|
|
291
|
-
default:
|
|
291
|
+
default: Ne
|
|
292
292
|
},
|
|
293
293
|
// 是否为筛选器模式
|
|
294
294
|
filterMode: {
|
|
@@ -296,13 +296,13 @@ import '../assets/layout3.css';const Oe = [
|
|
|
296
296
|
default: !0
|
|
297
297
|
}
|
|
298
298
|
},
|
|
299
|
-
emits: [
|
|
299
|
+
emits: [M.updateModelValue, M.operation],
|
|
300
300
|
setup(a, { expose: S, emit: W }) {
|
|
301
301
|
le((o) => ({
|
|
302
302
|
fdcf2012: a.maxHeight + "px",
|
|
303
303
|
v307de011: j.value ? j.value + "px" : "100%"
|
|
304
304
|
}));
|
|
305
|
-
const y = a, v = W, i = w({}), c = w(!y.isExpand), u = w(null), D = w(!1), e = w(!1), l =
|
|
305
|
+
const y = a, v = W, i = w({}), c = w(!y.isExpand), u = w(null), D = w(!1), e = w(!1), l = U(() => {
|
|
306
306
|
const o = {};
|
|
307
307
|
return y.items.forEach((s) => {
|
|
308
308
|
if (s.required) {
|
|
@@ -310,16 +310,16 @@ import '../assets/layout3.css';const Oe = [
|
|
|
310
310
|
typeof s.validator == "function" && d.push({ validator: s.validator, trigger: "blur" }), o[s.key] = d;
|
|
311
311
|
}
|
|
312
312
|
}), o;
|
|
313
|
-
}), R =
|
|
313
|
+
}), R = U(() => y.items?.filter((o) => !o.hidden) || []), G = U(() => y.filterMode ? R.value?.slice(0, 2) || [] : R.value), B = U(() => y.filterMode ? R.value.slice(2) : []), J = (o) => {
|
|
314
314
|
i.value = { ...o };
|
|
315
315
|
}, ue = () => {
|
|
316
|
-
v(
|
|
316
|
+
v(M.updateModelValue, { ...i.value });
|
|
317
317
|
}, ie = (o, s) => {
|
|
318
|
-
i.value[o] = s,
|
|
318
|
+
i.value[o] = s, I(C.search);
|
|
319
319
|
}, de = () => i.value, T = (o, s) => {
|
|
320
|
-
v(
|
|
321
|
-
},
|
|
322
|
-
ue(), v(
|
|
320
|
+
v(M.operation, C.search, i.value);
|
|
321
|
+
}, I = (o) => {
|
|
322
|
+
ue(), v(M.operation, o, i.value), (o === C.search || o === C.reset) && (D.value = !1, e.value = !1);
|
|
323
323
|
}, se = (o) => u.value.validate(o), j = w(0), fe = (o) => {
|
|
324
324
|
j.value = o + 32;
|
|
325
325
|
}, me = () => {
|
|
@@ -330,7 +330,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
330
330
|
e.value = !1, D.value = !0;
|
|
331
331
|
}, Q = w(!1), X = (o) => {
|
|
332
332
|
Q.value = o > y.maxHeight;
|
|
333
|
-
}, ve =
|
|
333
|
+
}, ve = U(() => y.filterMode || c.value ? "10px" : "0");
|
|
334
334
|
return pe(() => {
|
|
335
335
|
J(y.modelValue), X();
|
|
336
336
|
}), be(
|
|
@@ -347,10 +347,10 @@ import '../assets/layout3.css';const Oe = [
|
|
|
347
347
|
// scrollToField,
|
|
348
348
|
formRef: u
|
|
349
349
|
}), (o, s) => (r(), $("div", {
|
|
350
|
-
class:
|
|
350
|
+
class: N(["relative overflow-hidden w-full", { flex: a.filterMode }])
|
|
351
351
|
}, [
|
|
352
352
|
g("div", {
|
|
353
|
-
class:
|
|
353
|
+
class: N({
|
|
354
354
|
"is-collapsed overflow-hidden": !c.value
|
|
355
355
|
})
|
|
356
356
|
}, [
|
|
@@ -385,7 +385,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
385
385
|
])
|
|
386
386
|
]),
|
|
387
387
|
_: 1
|
|
388
|
-
})) :
|
|
388
|
+
})) : O("", !0)
|
|
389
389
|
]),
|
|
390
390
|
_: 2
|
|
391
391
|
}, [
|
|
@@ -401,15 +401,15 @@ import '../assets/layout3.css';const Oe = [
|
|
|
401
401
|
})
|
|
402
402
|
], 2),
|
|
403
403
|
g("div", {
|
|
404
|
-
class:
|
|
404
|
+
class: N(["operation-buttons", {
|
|
405
405
|
"absolute right-0 bg-fff text-right": a.isExpand && !a.filterMode,
|
|
406
406
|
"text-left": a.filterMode
|
|
407
407
|
}]),
|
|
408
408
|
style: ge({ bottom: ve.value })
|
|
409
409
|
}, [
|
|
410
|
-
a.filterMode ? (r(), $(
|
|
410
|
+
a.filterMode ? (r(), $(x, { key: 0 }, [
|
|
411
411
|
f(t(z), {
|
|
412
|
-
onClick: s[0] || (s[0] = (d) =>
|
|
412
|
+
onClick: s[0] || (s[0] = (d) => I(t(C).reset)),
|
|
413
413
|
type: "default"
|
|
414
414
|
}, {
|
|
415
415
|
default: n(() => [...s[3] || (s[3] = [
|
|
@@ -417,7 +417,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
417
417
|
])]),
|
|
418
418
|
_: 1
|
|
419
419
|
}),
|
|
420
|
-
f(t(
|
|
420
|
+
f(t(xe), {
|
|
421
421
|
visible: D.value,
|
|
422
422
|
placement: "bottom-start",
|
|
423
423
|
width: 628,
|
|
@@ -434,7 +434,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
434
434
|
V(" 筛选器 ", -1)
|
|
435
435
|
])]),
|
|
436
436
|
_: 1
|
|
437
|
-
}, 8, ["icon"])) :
|
|
437
|
+
}, 8, ["icon"])) : O("", !0)
|
|
438
438
|
]),
|
|
439
439
|
default: n(() => [
|
|
440
440
|
g("div", Re, [
|
|
@@ -474,7 +474,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
474
474
|
g("div", Te, [
|
|
475
475
|
f(K, {
|
|
476
476
|
"operation-list": a.operationList,
|
|
477
|
-
onOperation:
|
|
477
|
+
onOperation: I
|
|
478
478
|
}, F({ _: 2 }, [
|
|
479
479
|
o.$slots.operation ? {
|
|
480
480
|
name: "operation",
|
|
@@ -488,10 +488,10 @@ import '../assets/layout3.css';const Oe = [
|
|
|
488
488
|
]),
|
|
489
489
|
_: 3
|
|
490
490
|
}, 8, ["visible"])
|
|
491
|
-
], 64)) : (r(), $(
|
|
491
|
+
], 64)) : (r(), $(x, { key: 1 }, [
|
|
492
492
|
Q.value && a.isExpand ? (r(), m(t(z), {
|
|
493
493
|
key: 0,
|
|
494
|
-
icon: c.value ? t(Be) : t(
|
|
494
|
+
icon: c.value ? t(Be) : t(Ie),
|
|
495
495
|
type: "text",
|
|
496
496
|
onClick: me
|
|
497
497
|
}, {
|
|
@@ -499,10 +499,10 @@ import '../assets/layout3.css';const Oe = [
|
|
|
499
499
|
V(L(c.value ? "收起" : "展开"), 1)
|
|
500
500
|
]),
|
|
501
501
|
_: 1
|
|
502
|
-
}, 8, ["icon"])) :
|
|
502
|
+
}, 8, ["icon"])) : O("", !0),
|
|
503
503
|
f(K, {
|
|
504
504
|
"operation-list": a.operationList,
|
|
505
|
-
onOperation:
|
|
505
|
+
onOperation: I
|
|
506
506
|
}, F({ _: 2 }, [
|
|
507
507
|
o.$slots.operation ? {
|
|
508
508
|
name: "operation",
|
|
@@ -532,7 +532,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
532
532
|
class: "shrink-button"
|
|
533
533
|
}, {
|
|
534
534
|
default: n(() => [
|
|
535
|
-
f(t(
|
|
535
|
+
f(t(Me))
|
|
536
536
|
]),
|
|
537
537
|
_: 1
|
|
538
538
|
})
|
|
@@ -562,7 +562,7 @@ import '../assets/layout3.css';const Oe = [
|
|
|
562
562
|
g("div", He, [
|
|
563
563
|
f(K, {
|
|
564
564
|
"operation-list": a.operationList,
|
|
565
|
-
onOperation:
|
|
565
|
+
onOperation: I
|
|
566
566
|
}, F({ _: 2 }, [
|
|
567
567
|
o.$slots.operation ? {
|
|
568
568
|
name: "operation",
|