ling-yun-custom-components 0.0.29 → 0.0.31
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/CustomDialog.mjs +1 -1
- package/es/SearchBar.mjs +1 -1
- package/es/UpdatePasswordDialog.mjs +2 -2
- package/es/assets/layout2.css +1 -1
- package/es/assets/layout3.css +1 -1
- package/es/chunks/{layout.Bg387XYI.js → layout.Cops0Vah.js} +17 -15
- package/es/chunks/{layout.BSdpu71J.js → layout.DXw3haOP.js} +48 -51
- package/lib/CustomDialog.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/assets/layout2.css +1 -1
- package/lib/assets/layout3.css +1 -1
- package/lib/chunks/layout.B9EVVV-O.js +1 -0
- package/lib/chunks/layout.OHsMvEtb.js +1 -0
- package/package.json +2 -2
- package/es/chunks/index.CRROL-C7.js +0 -8991
- package/es/chunks/index.DfOANPhX.js +0 -1729
- package/es/chunks/index._uj6b1Kd.js +0 -8946
- package/es/chunks/layout.3r4JjCjq.js +0 -98
- package/es/chunks/layout.B8mwOOqx.js +0 -149
- package/es/chunks/layout.BZ373u9D.js +0 -584
- package/es/chunks/layout.BsiNPYtX.js +0 -149
- package/es/chunks/layout.CSYJ22Ac.js +0 -234
- package/es/chunks/layout.CUOtHOHG.js +0 -66
- package/es/chunks/layout.CmH2-6H-.js +0 -121
- package/es/chunks/layout.D7cg-xRZ.js +0 -230
- package/es/chunks/layout.DLUJzpco.js +0 -121
- package/es/chunks/layout.Epzao23T.js +0 -234
- package/es/chunks/layout.dhOtQkoC.js +0 -98
- package/es/chunks/layout.iUFnoCjZ.js +0 -230
- package/es/chunks/layout.o_B8gly4.js +0 -584
- package/lib/chunks/index.BKVX0AJJ.js +0 -23
- package/lib/chunks/index.Cm0zRaZN.js +0 -23
- package/lib/chunks/index.DJKAT9lI.js +0 -1
- package/lib/chunks/layout.-2KgXQBu.js +0 -1
- package/lib/chunks/layout.7-8MCU-f.js +0 -1
- package/lib/chunks/layout.9Q_gwznp.js +0 -1
- package/lib/chunks/layout.B8EsRYB6.js +0 -1
- package/lib/chunks/layout.BeQpU6RU.js +0 -1
- package/lib/chunks/layout.BqWe_qix.js +0 -1
- package/lib/chunks/layout.C2BGVUSH.js +0 -1
- package/lib/chunks/layout.D3OyheOl.js +0 -1
- package/lib/chunks/layout.DYKJPi9L.js +0 -1
- package/lib/chunks/layout.DYnlhiPO.js +0 -1
- package/lib/chunks/layout.Dt0IRZ49.js +0 -1
- package/lib/chunks/layout.XtG7xOYE.js +0 -1
- package/lib/chunks/layout.gqpUcAHO.js +0 -1
- package/lib/chunks/layout.s-xNK0r5.js +0 -1
- package/lib/chunks/layout.vff7gZ3-.js +0 -1
package/es/CustomDialog.mjs
CHANGED
package/es/SearchBar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as h } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as I, createVNode as D, unref as f, isRef as b } from "vue";
|
|
3
|
-
import { C as E } from "./chunks/layout.
|
|
4
|
-
import { S as k } from "./chunks/layout.
|
|
3
|
+
import { C as E } from "./chunks/layout.DXw3haOP.js";
|
|
4
|
+
import { S as k } from "./chunks/layout.Cops0Vah.js";
|
|
5
5
|
import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
|
|
6
6
|
import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/UpdatePasswordDialog.css';const U = () => {
|
package/es/assets/layout2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-content[data-v-
|
|
1
|
+
.dialog-content[data-v-9fa594c0]{height:calc(100% - 230px);overflow:auto}.title-name[data-v-9fa594c0]{padding:16px}.custom-dialog-page.el-dialog{height:calc(100% - 78px)!important;overflow:hidden;display:flex;flex-direction:column}.custom-dialog-page.el-dialog .el-dialog__body{flex:1;overflow-y:auto}
|
package/es/assets/layout3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-form[data-v-
|
|
1
|
+
.filter-form[data-v-bdd1bd85]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-bdd1bd85]{display:flex}.filter-preview-form .el-form-item[data-v-bdd1bd85]{width:var(--v6636f7d5);margin-right:10px}.search-bar-form[data-v-bdd1bd85]{grid-template-columns:repeat(auto-fit,minmax(var(--v6636f7d5),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-bdd1bd85]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-bdd1bd85]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-bdd1bd85] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-bdd1bd85]{display:grid}.search-bar-item--wide[data-v-bdd1bd85]{grid-column:span 2}.is-collapsed[data-v-fd5ceec9]{max-height:var(--v2e56a75a)}.operation-buttons[data-v-fd5ceec9]{width:var(--v63e17c4e);z-index:1}.h-32[data-v-fd5ceec9]{height:32px}.drawer-header[data-v-fd5ceec9]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-fd5ceec9]{margin-left:auto}.border-top[data-v-fd5ceec9]{border-top:1px solid var(--parting-line)}[data-v-fd5ceec9] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-fd5ceec9]{max-height:400px}[data-v-fd5ceec9] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
|
|
@@ -101,7 +101,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
101
101
|
emits: ["change", "enter"],
|
|
102
102
|
setup(a, { expose: L }) {
|
|
103
103
|
le((u) => ({
|
|
104
|
-
|
|
104
|
+
v6636f7d5: a.minWidth + "px"
|
|
105
105
|
}));
|
|
106
106
|
const P = Y(() => import("./layout.2Mabaug0.js")), y = Y(() => import("./layout.BHroZ9U9.js")), v = a, i = w(null), c = U(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : "search-bar-form");
|
|
107
107
|
return L({
|
|
@@ -196,13 +196,14 @@ import '../assets/layout3.css';const Ne = [
|
|
|
196
196
|
default: n(() => [
|
|
197
197
|
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ee), {
|
|
198
198
|
key: l.value,
|
|
199
|
-
label: l.value
|
|
199
|
+
label: l.value,
|
|
200
|
+
value: l.value
|
|
200
201
|
}, {
|
|
201
202
|
default: n(() => [
|
|
202
203
|
V(M(l.label), 1)
|
|
203
204
|
]),
|
|
204
205
|
_: 2
|
|
205
|
-
}, 1032, ["label"]))), 128))
|
|
206
|
+
}, 1032, ["label", "value"]))), 128))
|
|
206
207
|
]),
|
|
207
208
|
_: 2
|
|
208
209
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).checkbox ? (r(), m(t(Fe), {
|
|
@@ -214,13 +215,14 @@ import '../assets/layout3.css';const Ne = [
|
|
|
214
215
|
default: n(() => [
|
|
215
216
|
(r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ue), {
|
|
216
217
|
key: l.value,
|
|
217
|
-
label: l.value
|
|
218
|
+
label: l.value,
|
|
219
|
+
value: l.value
|
|
218
220
|
}, {
|
|
219
221
|
default: n(() => [
|
|
220
222
|
V(M(l.label), 1)
|
|
221
223
|
]),
|
|
222
224
|
_: 2
|
|
223
|
-
}, 1032, ["label"]))), 128))
|
|
225
|
+
}, 1032, ["label", "value"]))), 128))
|
|
224
226
|
]),
|
|
225
227
|
_: 2
|
|
226
228
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).textarea ? (r(), m(t(Z), b({
|
|
@@ -245,7 +247,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
245
247
|
_: 3
|
|
246
248
|
}, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
|
|
247
249
|
}
|
|
248
|
-
}), q = /* @__PURE__ */ ne(Oe, [["__scopeId", "data-v-
|
|
250
|
+
}), q = /* @__PURE__ */ ne(Oe, [["__scopeId", "data-v-bdd1bd85"]]), 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
251
|
name: "SearchBar"
|
|
250
252
|
}, {
|
|
251
253
|
__name: "layout",
|
|
@@ -299,8 +301,8 @@ import '../assets/layout3.css';const Ne = [
|
|
|
299
301
|
emits: [B.updateModelValue, B.operation],
|
|
300
302
|
setup(a, { expose: L, emit: P }) {
|
|
301
303
|
le((o) => ({
|
|
302
|
-
|
|
303
|
-
|
|
304
|
+
v2e56a75a: a.maxHeight + "px",
|
|
305
|
+
v63e17c4e: j.value ? j.value + "px" : "100%"
|
|
304
306
|
}));
|
|
305
307
|
const y = a, v = P, i = w({}), c = w(!y.isExpand), u = w(null), D = w(!1), e = w(!1), l = U(() => {
|
|
306
308
|
const o = {};
|
|
@@ -417,15 +419,15 @@ import '../assets/layout3.css';const Ne = [
|
|
|
417
419
|
])]),
|
|
418
420
|
_: 1
|
|
419
421
|
}),
|
|
420
|
-
|
|
422
|
+
S.value?.length ? (r(), m(t(xe), {
|
|
423
|
+
key: 0,
|
|
421
424
|
visible: D.value,
|
|
422
425
|
placement: "bottom-start",
|
|
423
426
|
width: 628,
|
|
424
427
|
trigger: "click"
|
|
425
428
|
}, {
|
|
426
429
|
reference: n(() => [
|
|
427
|
-
|
|
428
|
-
key: 0,
|
|
430
|
+
f(t(z), {
|
|
429
431
|
onClick: s[1] || (s[1] = (d) => D.value = !D.value),
|
|
430
432
|
icon: t(Pe),
|
|
431
433
|
type: "default"
|
|
@@ -434,7 +436,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
434
436
|
V(" 筛选器 ", -1)
|
|
435
437
|
])]),
|
|
436
438
|
_: 1
|
|
437
|
-
}, 8, ["icon"])
|
|
439
|
+
}, 8, ["icon"])
|
|
438
440
|
]),
|
|
439
441
|
default: n(() => [
|
|
440
442
|
g("div", Re, [
|
|
@@ -487,12 +489,12 @@ import '../assets/layout3.css';const Ne = [
|
|
|
487
489
|
])
|
|
488
490
|
]),
|
|
489
491
|
_: 3
|
|
490
|
-
}, 8, ["visible"])
|
|
492
|
+
}, 8, ["visible"])) : O("", !0)
|
|
491
493
|
], 64)) : (r(), $(x, { key: 1 }, [
|
|
492
494
|
Q.value && a.isExpand ? (r(), m(t(z), {
|
|
493
495
|
key: 0,
|
|
494
496
|
icon: c.value ? t(Se) : t(We),
|
|
495
|
-
|
|
497
|
+
text: "",
|
|
496
498
|
onClick: me
|
|
497
499
|
}, {
|
|
498
500
|
default: n(() => [
|
|
@@ -578,7 +580,7 @@ import '../assets/layout3.css';const Ne = [
|
|
|
578
580
|
}, 8, ["modelValue"])
|
|
579
581
|
], 2));
|
|
580
582
|
}
|
|
581
|
-
}), Ze = /* @__PURE__ */ ne(Ke, [["__scopeId", "data-v-
|
|
583
|
+
}), Ze = /* @__PURE__ */ ne(Ke, [["__scopeId", "data-v-fd5ceec9"]]);
|
|
582
584
|
export {
|
|
583
585
|
Ze as S
|
|
584
586
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useAttrs as
|
|
2
|
-
import { ElDialog as q, ElButton as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useAttrs as $, computed as d, onMounted as L, createBlock as p, openBlock as c, unref as a, mergeProps as U, withCtx as r, createElementBlock as y, renderSlot as g, createElementVNode as v, createCommentVNode as A, createTextVNode as h, toDisplayString as C, Fragment as R, createVNode as E } from "vue";
|
|
2
|
+
import { ElDialog as q, ElButton as x, ElIcon as z } from "element-plus";
|
|
3
|
+
import { IconClose as H, IconBack as J } from "color-message-lingyun-vue";
|
|
4
|
+
import { emitsMap as e } from "ling-yun-methods";
|
|
5
5
|
import { _ as K } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import '../assets/layout2.css';const t = {
|
|
7
7
|
DEFAULT: "default",
|
|
@@ -87,7 +87,7 @@ import '../assets/layout2.css';const t = {
|
|
|
87
87
|
e.cancel,
|
|
88
88
|
e.confirm
|
|
89
89
|
],
|
|
90
|
-
setup(
|
|
90
|
+
setup(u, { emit: M }) {
|
|
91
91
|
const P = {
|
|
92
92
|
showCancel: !0,
|
|
93
93
|
showConfirm: !0,
|
|
@@ -95,35 +95,35 @@ import '../assets/layout2.css';const t = {
|
|
|
95
95
|
confirmText: "确认",
|
|
96
96
|
onCancel: null,
|
|
97
97
|
onConfirm: null
|
|
98
|
-
}, o =
|
|
98
|
+
}, o = u, m = $(), n = M, b = d(() => o.dialogMode === t.PAGE ? {
|
|
99
99
|
marginLeft: "250px",
|
|
100
100
|
borderRadius: "24px",
|
|
101
101
|
boxShadow: "none"
|
|
102
|
-
} : {}),
|
|
102
|
+
} : {}), _ = d(() => o.dialogMode === t.PAGE ? !1 : m.modal ? m.modal : !0), B = d(() => o.dialogMode === t.PAGE ? !0 : m.modalPenetrable ? m.modalPenetrable : !1), V = d(() => o.dialogMode === t.PAGE ? "calc(100% - 250px - 12px)" : o.width), F = d(() => o.dialogMode === t.PAGE ? "66px" : o.top || "15vh"), i = d({
|
|
103
103
|
get: () => o.modelValue,
|
|
104
|
-
set: (
|
|
105
|
-
|
|
104
|
+
set: (s) => {
|
|
105
|
+
n(e.updateModelValue, s);
|
|
106
106
|
}
|
|
107
107
|
}), l = d(() => ({
|
|
108
108
|
...P,
|
|
109
109
|
...o.buttons
|
|
110
110
|
})), G = d(() => {
|
|
111
|
-
const { modelValue:
|
|
111
|
+
const { modelValue: s, ...f } = o;
|
|
112
112
|
return f;
|
|
113
113
|
}), O = () => {
|
|
114
|
-
|
|
114
|
+
n(e.open);
|
|
115
115
|
}, T = () => {
|
|
116
|
-
|
|
116
|
+
n(e.opened);
|
|
117
117
|
}, S = () => {
|
|
118
|
-
|
|
118
|
+
n(e.close);
|
|
119
119
|
}, j = () => {
|
|
120
|
-
|
|
120
|
+
n(e.closed);
|
|
121
121
|
}, N = () => {
|
|
122
|
-
|
|
122
|
+
n(e.openAutoFocus);
|
|
123
123
|
}, D = () => {
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
l.value.onCancel ? l.value.onCancel() : i.value = !1,
|
|
124
|
+
n(e.closeAutoFocus);
|
|
125
|
+
}, I = () => {
|
|
126
|
+
l.value.onCancel ? l.value.onCancel() : i.value = !1, n(e.cancel);
|
|
127
127
|
}, k = async () => {
|
|
128
128
|
if (l.value.onConfirm)
|
|
129
129
|
try {
|
|
@@ -132,19 +132,19 @@ import '../assets/layout2.css';const t = {
|
|
|
132
132
|
}
|
|
133
133
|
else
|
|
134
134
|
i.value = !1;
|
|
135
|
-
|
|
135
|
+
n(e.confirm);
|
|
136
136
|
};
|
|
137
137
|
return L(() => {
|
|
138
138
|
o.dialogMode === t.PAGE && (document.querySelector(".el-overlay-dialog").style.overflow = "hidden");
|
|
139
|
-
}), (
|
|
139
|
+
}), (s, f) => (c(), p(a(q), U({
|
|
140
140
|
ref: "dialogRef",
|
|
141
141
|
modelValue: i.value,
|
|
142
142
|
"onUpdate:modelValue": f[1] || (f[1] = (w) => i.value = w)
|
|
143
143
|
}, G.value, {
|
|
144
144
|
width: V.value,
|
|
145
145
|
top: F.value,
|
|
146
|
-
style:
|
|
147
|
-
modal:
|
|
146
|
+
style: b.value,
|
|
147
|
+
modal: _.value,
|
|
148
148
|
"modal-penetrable": B.value,
|
|
149
149
|
onOpen: O,
|
|
150
150
|
onOpened: T,
|
|
@@ -152,64 +152,61 @@ import '../assets/layout2.css';const t = {
|
|
|
152
152
|
onClosed: j,
|
|
153
153
|
onOpenAutoFocus: N,
|
|
154
154
|
onCloseAutoFocus: D,
|
|
155
|
-
"append-to-body":
|
|
155
|
+
"append-to-body": u.appendToBody,
|
|
156
156
|
class: {
|
|
157
|
-
"custom-dialog-page":
|
|
157
|
+
"custom-dialog-page": u.dialogMode === a(t).PAGE
|
|
158
158
|
}
|
|
159
159
|
}), {
|
|
160
|
-
header:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
title: c(() => [
|
|
164
|
-
r.dialogMode === n(t).PAGE ? (u(), g("div", X, [
|
|
165
|
-
x(n(z), {
|
|
160
|
+
header: r(() => [
|
|
161
|
+
u.dialogMode === a(t).PAGE ? (c(), y("div", X, [
|
|
162
|
+
E(a(z), {
|
|
166
163
|
size: 20,
|
|
167
164
|
color: "var(--text-color-1)",
|
|
168
165
|
class: "mg-r-6 pointer",
|
|
169
166
|
onClick: f[0] || (f[0] = (w) => i.value = !1)
|
|
170
167
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
168
|
+
default: r(() => [
|
|
169
|
+
E(a(J))
|
|
173
170
|
]),
|
|
174
171
|
_: 1
|
|
175
172
|
}),
|
|
176
|
-
h(" " + C(
|
|
177
|
-
])) :
|
|
173
|
+
h(" " + C(u.titleName), 1)
|
|
174
|
+
])) : g(s.$slots, "header", { key: 1 }, void 0, !0)
|
|
178
175
|
]),
|
|
179
|
-
footer:
|
|
180
|
-
|
|
176
|
+
footer: r(() => [
|
|
177
|
+
g(s.$slots, "footer", {}, () => [
|
|
181
178
|
v("div", Y, [
|
|
182
|
-
|
|
179
|
+
u.dialogMode === a(t).PAGE ? (c(), y("div", Z, [
|
|
183
180
|
v("div", ee, [
|
|
184
181
|
v("div", oe, [
|
|
185
|
-
l.value.showConfirm ? (
|
|
182
|
+
l.value.showConfirm ? (c(), p(a(x), {
|
|
186
183
|
key: 0,
|
|
187
184
|
type: "primary",
|
|
188
185
|
onClick: k
|
|
189
186
|
}, {
|
|
190
|
-
default:
|
|
187
|
+
default: r(() => [
|
|
191
188
|
h(C(l.value.confirmText), 1)
|
|
192
189
|
]),
|
|
193
190
|
_: 1
|
|
194
191
|
})) : A("", !0)
|
|
195
192
|
])
|
|
196
193
|
])
|
|
197
|
-
])) : (
|
|
198
|
-
l.value.showCancel ? (
|
|
194
|
+
])) : (c(), y(R, { key: 1 }, [
|
|
195
|
+
l.value.showCancel ? (c(), p(a(x), {
|
|
199
196
|
key: 0,
|
|
200
|
-
onClick:
|
|
197
|
+
onClick: I
|
|
201
198
|
}, {
|
|
202
|
-
default:
|
|
199
|
+
default: r(() => [
|
|
203
200
|
h(C(l.value.cancelText), 1)
|
|
204
201
|
]),
|
|
205
202
|
_: 1
|
|
206
203
|
})) : A("", !0),
|
|
207
|
-
l.value.showConfirm ? (
|
|
204
|
+
l.value.showConfirm ? (c(), p(a(x), {
|
|
208
205
|
key: 1,
|
|
209
206
|
type: "primary",
|
|
210
207
|
onClick: k
|
|
211
208
|
}, {
|
|
212
|
-
default:
|
|
209
|
+
default: r(() => [
|
|
213
210
|
h(C(l.value.confirmText), 1)
|
|
214
211
|
]),
|
|
215
212
|
_: 1
|
|
@@ -218,17 +215,17 @@ import '../assets/layout2.css';const t = {
|
|
|
218
215
|
])
|
|
219
216
|
], !0)
|
|
220
217
|
]),
|
|
221
|
-
default:
|
|
222
|
-
|
|
218
|
+
default: r(() => [
|
|
219
|
+
u.dialogMode === a(t).PAGE ? (c(), y("div", Q, [
|
|
223
220
|
v("div", W, [
|
|
224
|
-
|
|
221
|
+
g(s.$slots, "default", {}, void 0, !0)
|
|
225
222
|
])
|
|
226
|
-
])) :
|
|
223
|
+
])) : g(s.$slots, "default", { key: 1 }, void 0, !0)
|
|
227
224
|
]),
|
|
228
225
|
_: 3
|
|
229
226
|
}, 16, ["modelValue", "width", "top", "style", "modal", "modal-penetrable", "append-to-body", "class"]));
|
|
230
227
|
}
|
|
231
|
-
}),
|
|
228
|
+
}), ce = /* @__PURE__ */ K(te, [["__scopeId", "data-v-9fa594c0"]]);
|
|
232
229
|
export {
|
|
233
|
-
|
|
230
|
+
ce as C
|
|
234
231
|
};
|
package/lib/CustomDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./chunks/index.CkihWzK6.js"),o=require("./chunks/layout.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./chunks/index.CkihWzK6.js"),o=require("./chunks/layout.B9EVVV-O.js"),e=t.withInstall(o.CustomDialog);exports.CustomDialog=e;exports.default=e;
|
package/lib/SearchBar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./chunks/index.CkihWzK6.js"),t=require("./chunks/layout.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./chunks/index.CkihWzK6.js"),t=require("./chunks/layout.OHsMvEtb.js"),e=r.withInstall(t.SearchBar);exports.SearchBar=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/UpdatePasswordDialog.css');const P=require("./chunks/index.CkihWzK6.js"),e=require("vue"),_=require("./chunks/layout.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/UpdatePasswordDialog.css');const P=require("./chunks/index.CkihWzK6.js"),e=require("vue"),_=require("./chunks/layout.B9EVVV-O.js"),M=require("./chunks/layout.OHsMvEtb.js"),o=require("ling-yun-methods"),V=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),h=()=>{const u=e.ref({password:"",confirmPassword:""}),p=e.computed(()=>[{label:"请输入新密码",key:"password",type:o.componentType.text,placeholder:"请输入6-20位,需包含大小写字母、数字",wide:!0,required:!0,showPassword:!0,validator:d},{label:"请再次输入新密码",key:"confirmPassword",type:o.componentType.text,placeholder:"请输入6-20位,需包含大小写字母、数字",wide:!0,required:!0,showPassword:!0,validator:i}]),d=(l,s,t)=>{!s||!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/.test(s)?t(new Error("请输入6-20位,需包含大小写字母、数字")):t()},i=(l,s,t)=>{s===""?t(new Error("两次密码不一致")):s!==u.value.password?t(new Error("两次密码不一致")):t()};return{formData:u,userFromItems:p}},x={__name:"layout",props:{modelValue:{type:Boolean,default:!1},nowUserData:{type:Object,default:()=>{}},apiConfig:{type:Object,default:()=>{}}},emits:[o.emitsMap.updateModelValue,o.emitsMap.change],setup(u,{emit:p}){const d=u,i=p,l=e.computed({get:()=>d.modelValue,set:r=>i(o.emitsMap.updateModelValue,r)}),s=e.ref(null),{formData:t,userFromItems:y}=h(),g=async()=>{const r=await d.apiConfig.getSecretKeyApi();if(r.code!==o.codeMap.success)return{};const{key:a,iv:n,keyId:c}=r.data,{password:f}=s.value.getFormData(),m=o.AESCrypto.encrypt(f,a,n);return{keyId:c,encryptedPassword:m}},v=async()=>{let r=!1;return await s.value.validate(async a=>{if(!a)return;const{keyId:n,encryptedPassword:c}=await g();if(!n||!c)return;const f={userId:d.nowUserData.id,newPassword:c,aesKeyId:n};(await d.apiConfig.updatePasswordApi(f)).code===o.codeMap.success&&(o.messageSuccess("修改成功"),l.value=!1,r=!0,i(o.emitsMap.change))}),r};return(r,a)=>(e.openBlock(),e.createBlock(_.CustomDialog,{modelValue:l.value,"onUpdate:modelValue":a[1]||(a[1]=n=>l.value=n),title:"修改密码",buttons:{confirmText:"确定",onConfirm:v},top:"30vh",width:"568px","destroy-on-close":""},{default:e.withCtx(()=>[e.createVNode(M.SearchBar,{modelValue:e.unref(t),"onUpdate:modelValue":a[0]||(a[0]=n=>e.isRef(t)?t.value=n:null),ref_key:"formRef",ref:s,items:e.unref(y),isExpand:!1,operationList:[],filterMode:!1,labelPosition:"top"},null,8,["modelValue","items"])]),_:1},8,["modelValue","buttons"]))}},b=V._export_sfc(x,[["__scopeId","data-v-0088227a"]]),w=P.withInstall(b);exports.UpdatePasswordDialog=w;exports.default=w;
|
package/lib/assets/layout2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-content[data-v-
|
|
1
|
+
.dialog-content[data-v-9fa594c0]{height:calc(100% - 230px);overflow:auto}.title-name[data-v-9fa594c0]{padding:16px}.custom-dialog-page.el-dialog{height:calc(100% - 78px)!important;overflow:hidden;display:flex;flex-direction:column}.custom-dialog-page.el-dialog .el-dialog__body{flex:1;overflow-y:auto}
|
package/lib/assets/layout3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-form[data-v-
|
|
1
|
+
.filter-form[data-v-bdd1bd85]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-bdd1bd85]{display:flex}.filter-preview-form .el-form-item[data-v-bdd1bd85]{width:var(--v6636f7d5);margin-right:10px}.search-bar-form[data-v-bdd1bd85]{grid-template-columns:repeat(auto-fit,minmax(var(--v6636f7d5),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-bdd1bd85]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-bdd1bd85]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-bdd1bd85] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-bdd1bd85]{display:grid}.search-bar-item--wide[data-v-bdd1bd85]{grid-column:span 2}.is-collapsed[data-v-fd5ceec9]{max-height:var(--v2e56a75a)}.operation-buttons[data-v-fd5ceec9]{width:var(--v63e17c4e);z-index:1}.h-32[data-v-fd5ceec9]{height:32px}.drawer-header[data-v-fd5ceec9]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-fd5ceec9]{margin-left:auto}.border-top[data-v-fd5ceec9]{border-top:1px solid var(--parting-line)}[data-v-fd5ceec9] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-fd5ceec9]{max-height:400px}[data-v-fd5ceec9] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/layout2.css');const e=require("vue"),r=require("element-plus"),f=require("color-message-lingyun-vue"),t=require("ling-yun-methods"),N=require("./_plugin-vue_export-helper.BHFhmbuH.js"),l={DEFAULT:"default",PAGE:"page"},_={key:0,class:"flex justify-center w-full"},S={class:"dialog-content flex flex-col",style:{width:"60%"}},T={key:0,class:"title-name flex items-center"},F={class:"dialog-footer"},G={key:0,class:"flex justify-center items-center w-full"},O={class:"flex justify-center items-center",style:{width:"60%"}},D={class:"flex justify-end items-center w-full"},j=Object.assign({name:"CustomDialog"},{__name:"layout",props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:"50%"},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeIcon:{type:Object,default:f.IconClose},buttons:{type:Object,default:()=>({})},appendToBody:{type:Boolean,default:!0},dialogMode:{type:String,default:l.DEFAULT},titleName:{type:String,default:"默认标题"}},emits:[t.emitsMap.updateModelValue,t.emitsMap.open,t.emitsMap.opened,t.emitsMap.close,t.emitsMap.closed,t.emitsMap.openAutoFocus,t.emitsMap.closeAutoFocus,t.emitsMap.cancel,t.emitsMap.confirm],setup(c,{emit:y}){const g={showCancel:!0,showConfirm:!0,cancelText:"取消",confirmText:"确认",onCancel:null,onConfirm:null},o=c,i=e.useAttrs(),n=y,h=e.computed(()=>o.dialogMode===l.PAGE?{marginLeft:"250px",borderRadius:"24px",boxShadow:"none"}:{}),C=e.computed(()=>o.dialogMode===l.PAGE?!1:i.modal?i.modal:!0),M=e.computed(()=>o.dialogMode===l.PAGE?!0:i.modalPenetrable?i.modalPenetrable:!1),v=e.computed(()=>o.dialogMode===l.PAGE?"calc(100% - 250px - 12px)":o.width),k=e.computed(()=>o.dialogMode===l.PAGE?"66px":o.top||"15vh"),d=e.computed({get:()=>o.modelValue,set:s=>{n(t.emitsMap.updateModelValue,s)}}),a=e.computed(()=>({...g,...o.buttons})),x=e.computed(()=>{const{modelValue:s,...u}=o;return u}),B=()=>{n(t.emitsMap.open)},E=()=>{n(t.emitsMap.opened)},w=()=>{n(t.emitsMap.close)},V=()=>{n(t.emitsMap.closed)},A=()=>{n(t.emitsMap.openAutoFocus)},P=()=>{n(t.emitsMap.closeAutoFocus)},b=()=>{a.value.onCancel?a.value.onCancel():d.value=!1,n(t.emitsMap.cancel)},m=async()=>{if(a.value.onConfirm)try{await a.value.onConfirm()!==!1&&(d.value=!1)}catch{}else d.value=!1;n(t.emitsMap.confirm)};return e.onMounted(()=>{o.dialogMode===l.PAGE&&(document.querySelector(".el-overlay-dialog").style.overflow="hidden")}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(r.ElDialog),e.mergeProps({ref:"dialogRef",modelValue:d.value,"onUpdate:modelValue":u[1]||(u[1]=p=>d.value=p)},x.value,{width:v.value,top:k.value,style:h.value,modal:C.value,"modal-penetrable":M.value,onOpen:B,onOpened:E,onClose:w,onClosed:V,onOpenAutoFocus:A,onCloseAutoFocus:P,"append-to-body":c.appendToBody,class:{"custom-dialog-page":c.dialogMode===e.unref(l).PAGE}}),{header:e.withCtx(()=>[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(r.ElIcon),{size:20,color:"var(--text-color-1)",class:"mg-r-6 pointer",onClick:u[0]||(u[0]=p=>d.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(f.IconBack))]),_:1}),e.createTextVNode(" "+e.toDisplayString(c.titleName),1)])):e.renderSlot(s.$slots,"header",{key:1},void 0,!0)]),footer:e.withCtx(()=>[e.renderSlot(s.$slots,"footer",{},()=>[e.createElementVNode("div",F,[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",O,[e.createElementVNode("div",D,[a.value.showConfirm?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value.confirmText),1)]),_:1})):e.createCommentVNode("",!0)])])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.value.showCancel?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value.cancelText),1)]),_:1})):e.createCommentVNode("",!0),a.value.showConfirm?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:1,type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value.confirmText),1)]),_:1})):e.createCommentVNode("",!0)],64))])],!0)]),default:e.withCtx(()=>[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",S,[e.renderSlot(s.$slots,"default",{},void 0,!0)])])):e.renderSlot(s.$slots,"default",{key:1},void 0,!0)]),_:3},16,["modelValue","width","top","style","modal","modal-penetrable","append-to-body","class"]))}}),q=N._export_sfc(j,[["__scopeId","data-v-9fa594c0"]]);exports.CustomDialog=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/layout3.css');const e=require("vue"),u=require("element-plus"),V=require("color-message-lingyun-vue"),n=require("ling-yun-methods"),P=require("./_plugin-vue_export-helper.BHFhmbuH.js"),M=require("./layout.B-T_NE6r.js"),A=[{type:"primary",label:"查询",value:n.operationConfigMap.search},{type:"default",label:"重置",value:n.operationConfigMap.reset}],S=320,B={__name:"OperationButtons",props:{operationList:{type:Array,default:()=>[]}},emits:["operation"],setup(a,{emit:h}){const k=h,c=m=>{k("operation",m)};return(m,i)=>m.$slots.operation?e.renderSlot(m.$slots,"operation",{key:0,operationList:a.operationList}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.operationList,f=>(e.openBlock(),e.createBlock(e.unref(u.ElButton),{key:f.value,type:f.type,icon:f.icon,onClick:r=>c(f.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["type","icon","onClick"]))),128))}},j=Object.assign({name:"FormWrapper"},{__name:"FormWrapper",props:{items:{type:Array,default:()=>[]},formData:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},labelWidth:{type:[String,Number],default:"auto"},labelPosition:{type:String,default:n.labelPositionMap.right},showLabel:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1},isFilterPreview:{type:Boolean,default:!1},minWidth:{type:Number,default:S}},emits:["change","enter"],setup(a,{expose:h}){e.useCssVars(r=>({v6636f7d5:a.minWidth+"px"}));const k=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./layout.BSF3ruxz.js"))),c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./layout.DWbm8gXV.js"))),m=a,i=e.ref(null),f=e.computed(()=>m.isFilter?"filter-form":m.isFilterPreview?"filter-preview-form":"search-bar-form");return h({validate:r=>i.value?i.value.validate(r):Promise.resolve(!0),resetFields:()=>{i.value&&i.value.resetFields()},clearValidate:r=>{i.value&&i.value.clearValidate(r)},scrollToField:r=>{i.value&&i.value.scrollToField(r)}}),(r,y)=>(e.openBlock(),e.createBlock(e.unref(u.ElForm),{ref_key:"formRef",ref:i,model:a.formData,"label-width":a.labelWidth,"label-position":a.labelPosition,inline:a.inline,rules:a.rules,class:e.normalizeClass({[f.value]:!0,"items-end display-grid":!a.isFilterPreview})},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createBlock(e.unref(u.ElFormItem),e.mergeProps({key:t.key,label:a.showLabel?t.label:"",prop:t.key,"show-label":a.showLabel,class:[{"search-bar-item--wide":t.wide}]},{ref_for:!0},t),{default:e.withCtx(()=>[e.renderSlot(r.$slots,t.key,{item:t,formData:a.formData},()=>[t.type===e.unref(n.componentType).text?(e.openBlock(),e.createBlock(e.unref(u.ElInput),e.mergeProps({key:0,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o},{ref_for:!0},t,{class:"w-full",onChange:o=>r.$emit("change",t.key,a.formData[t.key]),onKeyup:e.withKeys(o=>r.$emit("enter",t.key,a.formData[t.key]),["enter"])}),null,16,["modelValue","onUpdate:modelValue","onChange","onKeyup"])):t.type===e.unref(n.componentType).select?(e.openBlock(),e.createBlock(e.unref(k),e.mergeProps({key:1,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o,"static-options":t.options},{ref_for:!0},t,{onChange:o=>r.$emit("change",t.key,a.formData[t.key]),class:"w-full"}),null,16,["modelValue","onUpdate:modelValue","static-options","onChange"])):t.type===e.unref(n.componentType).date?(e.openBlock(),e.createBlock(e.unref(u.ElDatePicker),e.mergeProps({key:2,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o},{ref_for:!0},{...t,...e.unref(n.dateParamsMap)[t.dateType]},{type:t.dateType,format:t.format||e.unref(n.dateFormat).date,"value-format":t.valueFormat||e.unref(n.dateFormat).dateTime,class:"w-full",onChange:o=>r.$emit("change",t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"])):t.type===e.unref(n.componentType).inputNumber?(e.openBlock(),e.createBlock(e.unref(u.ElInputNumber),e.mergeProps({key:3,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o},{ref_for:!0},t,{class:"w-full",onChange:o=>r.$emit("change",t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(n.componentType).switch?(e.openBlock(),e.createBlock(e.unref(u.ElSwitch),e.mergeProps({key:4,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o},{ref_for:!0},t,{onChange:o=>r.$emit("change",t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(n.componentType).radio?(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:5,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o,onChange:o=>r.$emit("change",t.key,a.formData[t.key])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,o=>(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:o.value,label:o.value,value:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(n.componentType).checkbox?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:6,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o,onChange:o=>r.$emit("change",t.key,a.formData[t.key])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,o=>(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:o.value,label:o.value,value:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(n.componentType).textarea?(e.openBlock(),e.createBlock(e.unref(u.ElInput),e.mergeProps({key:7,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o},{ref_for:!0},t,{class:"w-full",type:"textarea",onChange:o=>r.$emit("change",t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(n.componentType).upload?(e.openBlock(),e.createBlock(e.unref(c),e.mergeProps({key:8,modelValue:a.formData[t.key],"onUpdate:modelValue":o=>a.formData[t.key]=o},{ref_for:!0},t),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],!0)]),_:2},1040,["label","prop","show-label","class"]))),128)),e.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["model","label-width","label-position","inline","rules","class"]))}}),x=P._export_sfc(j,[["__scopeId","data-v-bdd1bd85"]]),H={class:"h-32 w-full"},K={class:"flex items-center justify-between pd-b-20"},G={class:"text-right"},Y={class:"drawer-header"},J={class:"flex-1 pd-l-16 pd-r-16 overflow-y-auto"},Q={class:"text-right border-top pd-t-16 pd-l-16 pd-r-16"},X=Object.assign({name:"SearchBar"},{__name:"layout",props:{items:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},labelWidth:{type:[String,Number],default:"auto"},labelPosition:{type:String,default:n.labelPositionMap.right,validator:a=>[n.labelPositionMap.left,n.labelPositionMap.right,n.labelPositionMap.top].includes(a)},isExpand:{type:Boolean,default:!0},maxHeight:{type:Number,default:84},minWidth:{type:Number,default:S},operationList:{type:Array,default:A},filterMode:{type:Boolean,default:!0}},emits:[n.emitsMap.updateModelValue,n.emitsMap.operation],setup(a,{expose:h,emit:k}){e.useCssVars(l=>({v2e56a75a:a.maxHeight+"px",v63e17c4e:C.value?C.value+"px":"100%"}));const c=a,m=k,i=e.ref({}),f=e.ref(!c.isExpand),r=e.ref(null),y=e.ref(!1),t=e.ref(!1),o=e.computed(()=>{const l={};return c.items.forEach(s=>{if(s.required){const d=[{required:!0,message:`${s.label}不能为空`,trigger:"blur"}];typeof s.validator=="function"&&d.push({validator:s.validator,trigger:"blur"}),l[s.key]=d}}),l}),b=e.computed(()=>c.items?.filter(l=>!l.hidden)||[]),E=e.computed(()=>c.filterMode?b.value?.slice(0,2)||[]:b.value),v=e.computed(()=>c.filterMode?b.value.slice(2):[]),D=l=>{i.value={...l}},F=()=>{m(n.emitsMap.updateModelValue,{...i.value})},T=(l,s)=>{i.value[l]=s,g(n.operationConfigMap.search)},L=()=>i.value,w=(l,s)=>{m(n.emitsMap.operation,n.operationConfigMap.search,i.value)},g=l=>{F(),m(n.emitsMap.operation,l,i.value),(l===n.operationConfigMap.search||l===n.operationConfigMap.reset)&&(y.value=!1,t.value=!1)},U=l=>r.value.validate(l),C=e.ref(0),I=l=>{C.value=l+32},W=()=>{f.value=!f.value},z=()=>{y.value=!1,t.value=!0},R=()=>{t.value=!1,y.value=!0},N=e.ref(!1),$=l=>{N.value=l>c.maxHeight},O=e.computed(()=>c.filterMode||f.value?"10px":"0");return e.onMounted(()=>{D(c.modelValue),$()}),e.watch(()=>c.modelValue,l=>{D(l)},{immediate:!0,deep:!0}),h({validate:U,getFormData:L,formRef:r}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative overflow-hidden w-full",{flex:a.filterMode}])},[e.createElementVNode("div",{class:e.normalizeClass({"is-collapsed overflow-hidden":!f.value})},[e.createVNode(e.unref(u.ElAutoResizer),null,{default:e.withCtx(({height:d})=>[e.createTextVNode(e.toDisplayString($(d))+" ",1),e.createVNode(x,{ref_key:"formRef",ref:r,items:E.value,"form-data":i.value,rules:o.value,"label-width":a.labelWidth,"label-position":a.labelPosition,inline:!0,"show-label":!a.filterMode,"min-width":a.minWidth,"is-filter-preview":a.filterMode,onChange:T,onEnter:w},e.createSlots({default:e.withCtx(()=>[a.isExpand&&!a.filterMode?(e.openBlock(),e.createBlock(e.unref(u.ElFormItem),{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createVNode(e.unref(u.ElAutoResizer),null,{default:e.withCtx(({width:p})=>[e.createTextVNode(e.toDisplayString(I(p)),1)]),_:1})])]),_:1})):e.createCommentVNode("",!0)]),_:2},[e.renderList(E.value,p=>({name:p.key,fn:e.withCtx(q=>[e.renderSlot(l.$slots,p.key,e.normalizeProps(e.guardReactiveProps(q)),void 0,!0)])}))]),1032,["items","form-data","rules","label-width","label-position","show-label","min-width","is-filter-preview"])]),_:3})],2),e.createElementVNode("div",{class:e.normalizeClass(["operation-buttons",{"absolute right-0 bg-fff text-right":a.isExpand&&!a.filterMode,"text-left":a.filterMode}]),style:e.normalizeStyle({bottom:O.value})},[a.filterMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(u.ElButton),{onClick:s[0]||(s[0]=d=>g(e.unref(n.operationConfigMap).reset)),type:"default"},{default:e.withCtx(()=>[...s[3]||(s[3]=[e.createTextVNode("重置",-1)])]),_:1}),v.value?.length?(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{key:0,visible:y.value,placement:"bottom-start",width:628,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(e.unref(u.ElButton),{onClick:s[1]||(s[1]=d=>y.value=!y.value),icon:e.unref(V.IconCheck),type:"default"},{default:e.withCtx(()=>[...s[4]||(s[4]=[e.createTextVNode(" 筛选器 ",-1)])]),_:1},8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createVNode(M.CustomTitle,{content:"筛选器",fontSize:16}),e.createVNode(e.unref(u.ElIcon),{size:16,onClick:z},{default:e.withCtx(()=>[e.createVNode(e.unref(V.IconMagnify))]),_:1})]),e.createVNode(x,{items:v.value,"form-data":i.value,"label-width":"auto","label-position":"top",inline:!1,"show-label":!0,"is-filter":!0,"min-width":a.minWidth,class:"filter-form-popover overflow-y-auto",onEnter:w},e.createSlots({_:2},[e.renderList(v.value,d=>({name:d.key,fn:e.withCtx(p=>[e.renderSlot(l.$slots,d.key,e.normalizeProps(e.guardReactiveProps(p)),void 0,!0)])}))]),1032,["items","form-data","min-width"]),e.createElementVNode("div",G,[e.createVNode(B,{"operation-list":a.operationList,onOperation:g},e.createSlots({_:2},[l.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:d})=>[e.renderSlot(l.$slots,"operation",{operationList:d},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])])]),_:3},8,["visible"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[N.value&&a.isExpand?(e.openBlock(),e.createBlock(e.unref(u.ElButton),{key:0,icon:f.value?e.unref(V.IconUp):e.unref(V.IconDown),text:"",onClick:W},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value?"收起":"展开"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0),e.createVNode(B,{"operation-list":a.operationList,onOperation:g},e.createSlots({_:2},[l.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:d})=>[e.renderSlot(l.$slots,"operation",{operationList:d},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])],64))],6),e.createVNode(e.unref(u.ElDrawer),{modelValue:t.value,"onUpdate:modelValue":s[2]||(s[2]=d=>t.value=d),size:"628","show-close":!1},{header:e.withCtx(()=>[e.createElementVNode("div",Y,[e.createVNode(M.CustomTitle,{content:"筛选器",fontSize:16}),e.createVNode(e.unref(u.ElIcon),{size:16,onClick:R,class:"shrink-button"},{default:e.withCtx(()=>[e.createVNode(e.unref(V.IconShrink))]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createVNode(x,{items:v.value,"form-data":i.value,"label-width":"auto","label-position":"top",inline:!1,"show-label":!0,"is-filter":!0,"min-width":a.minWidth,onEnter:w},e.createSlots({_:2},[e.renderList(v.value,d=>({name:d.key,fn:e.withCtx(p=>[e.renderSlot(l.$slots,d.key,e.normalizeProps(e.guardReactiveProps(p)),void 0,!0)])}))]),1032,["items","form-data","min-width"])]),e.createElementVNode("div",Q,[e.createVNode(B,{"operation-list":a.operationList,onOperation:g},e.createSlots({_:2},[l.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:d})=>[e.renderSlot(l.$slots,"operation",{operationList:d},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])])]),_:3},8,["modelValue"])],2))}}),Z=P._export_sfc(X,[["__scopeId","data-v-fd5ceec9"]]);exports.SearchBar=Z;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ling-yun-custom-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"component library",
|
|
6
6
|
"ui framework",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"peerDependencies": {
|
|
186
186
|
"axios": "^1.8.2",
|
|
187
187
|
"vue": "^3.5.13",
|
|
188
|
-
"color-message-lingyun-vue": "^0.0.
|
|
188
|
+
"color-message-lingyun-vue": "^0.0.10"
|
|
189
189
|
},
|
|
190
190
|
"optionalDependencies": {
|
|
191
191
|
"@ast-grep/napi-linux-x64-musl": "^0.39.6",
|