dlzn-ui 2.0.89 → 2.0.91
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/assets/pagination-BpKuirTF.css +1 -0
- package/assets/table-CVArV2Pt.css +1 -0
- package/chunks/{AssignUser-vDx4D82G.mjs → AssignUser-Cba5vAl1.mjs} +14 -14
- package/chunks/{BasicInfo-BvKBHQyo.mjs → BasicInfo-Bvq-HQJ_.mjs} +1 -1
- package/chunks/{ColumnInfo-BYddY4ID.mjs → ColumnInfo-CRLX-mvV.mjs} +2 -2
- package/chunks/{Common-DgFtn6uk.mjs → Common-Bq9qdi2i.mjs} +1 -1
- package/chunks/{Day-D57OuSr1.mjs → Day-BUVcUtFu.mjs} +1 -1
- package/chunks/{DictTypeDetail-Bgcoi5BX.mjs → DictTypeDetail-BcE2-B5V.mjs} +8 -8
- package/chunks/{GenInfo-Cpjb07t9.mjs → GenInfo-DJq_EewR.mjs} +1 -1
- package/chunks/{Hour-C2kHsnWx.mjs → Hour-CwQQPXaR.mjs} +1 -1
- package/chunks/{Import-CUwSBuu3.mjs → Import-rJdKqVqG.mjs} +2 -2
- package/chunks/{Index-BHTir2BG.mjs → Index-C_K9w486.mjs} +1 -1
- package/chunks/{Index-qbd9CTh4.mjs → Index-DVPHy-2h.mjs} +1 -1
- package/chunks/{Index-C_Gf0Jgf.mjs → Index-Wsuv1_GI.mjs} +1 -1
- package/chunks/{Index-BLw1K1xl.mjs → Index-xm96pJY-.mjs} +1 -1
- package/chunks/{IndexItem-COlhUIdm.mjs → IndexItem-mkv5naiz.mjs} +1 -1
- package/chunks/{Log-uPhl0QJF.mjs → Log-i0vc4tLi.mjs} +14 -16
- package/chunks/{LoginBg-DBc-wBJI.mjs → LoginBg-BtYLzpau.mjs} +1 -1
- package/chunks/{Minute-cq4gHso5.mjs → Minute-DVOyQfoM.mjs} +1 -1
- package/chunks/{Month-RO9Bk7PX.mjs → Month-C9EsJdGm.mjs} +1 -1
- package/chunks/{Preview-Gx0BbBT4.mjs → Preview-DT31fnBR.mjs} +1 -1
- package/chunks/{Second-CKdMmksB.mjs → Second-2dWCZLjn.mjs} +1 -1
- package/chunks/{SelectDept-BPAzWxOq.mjs → SelectDept-C_mJ04_S.mjs} +1 -1
- package/chunks/{SelectMenu-C8m9RvV3.mjs → SelectMenu-D_SA_EiZ.mjs} +1 -1
- package/chunks/{SelectUser-sanLPSrz.mjs → SelectUser-DLAbDQ8W.mjs} +2 -2
- package/chunks/{UserInfo-CDNoS8Vd.mjs → UserInfo-Dl2INqhu.mjs} +9 -9
- package/chunks/{app-Cd7qvZaM.mjs → app-MIQr7kNK.mjs} +1 -1
- package/chunks/{custom-page-list-BZCbj6h1.mjs → custom-page-list-DHK_NW0i.mjs} +4 -4
- package/chunks/{custom-page-table-Cm72ycKd.mjs → custom-page-table-1gOvwcJL.mjs} +2 -2
- package/chunks/{job-dsXPTFKb.mjs → job-D6_vm6Ii.mjs} +24 -24
- package/chunks/{overview-ub_GTqi8.mjs → overview-amJc1B-Y.mjs} +1 -1
- package/chunks/{page-list-CX7BUCM4.mjs → page-list-nd2K6s0p.mjs} +3 -3
- package/chunks/page-query-Bp2Wfk95.mjs +119 -0
- package/chunks/{page-table-B4zES_VU.mjs → page-table-Bgq2mekF.mjs} +57 -57
- package/chunks/{pagination-D9VeheYA.mjs → pagination-BlUizDPX.mjs} +3 -3
- package/chunks/{provider-BeVE1nWg.mjs → provider-6bwbdidw.mjs} +76 -76
- package/chunks/{table-DTNEiuNZ.mjs → table-C-19SNwB.mjs} +12 -12
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +10 -10
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-query/src/page-query.vue.d.ts +1 -2
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.d.ts +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useMountedPromise/index.d.ts +2 -0
- package/hooks/useMountedPromise/index.mjs +14 -0
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +5 -5
- package/layout/Home1.mjs +2 -2
- package/layout/Login.mjs +3 -3
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +3 -3
- package/package.json +1 -1
- package/plugins/autoImport/$alova/index.d.ts +1 -0
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +3 -3
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +10 -10
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +11 -11
- package/views/system/dept/index.mjs +15 -15
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +15 -15
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +19 -19
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +6 -6
- package/views/system/post/index.mjs +6 -6
- package/views/system/role/index.mjs +31 -31
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +41 -41
- package/views/tool/gen/editTable/index.mjs +30 -30
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +11 -11
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/pagination-B9tRH6dt.css +0 -1
- package/assets/table-D9WewhPF.css +0 -1
- package/chunks/page-query-BmWKqp80.mjs +0 -121
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { G as e, n as t, o as n } from "./provider-BeVE1nWg.mjs";
|
|
2
|
-
import { computed as r, createBlock as i, createCommentVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeDefaults as d, mergeProps as f, nextTick as p, normalizeProps as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useTemplateRef as x, watch as S, withCtx as C } from "vue";
|
|
3
|
-
import { useResizeObserver as w } from "@vueuse/core";
|
|
4
|
-
import { cloneDeep as T, groupBy as E } from "lodash-es";
|
|
5
|
-
// ../../packages/dlzn-ui/components/page-query/src/page-query.vue
|
|
6
|
-
var D = /* @__PURE__ */ l({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "page-query",
|
|
9
|
-
props: /*@__PURE__*/ d({
|
|
10
|
-
autoLabelWidth: { type: Boolean },
|
|
11
|
-
data: {},
|
|
12
|
-
items: {},
|
|
13
|
-
labelAlign: {},
|
|
14
|
-
msgErrorWhenValidate: { type: Boolean },
|
|
15
|
-
colon: { type: Boolean },
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
errorMessage: {},
|
|
18
|
-
id: {},
|
|
19
|
-
layout: {},
|
|
20
|
-
preventSubmitDefault: { type: Boolean },
|
|
21
|
-
readonly: { type: Boolean },
|
|
22
|
-
requiredMark: { type: Boolean },
|
|
23
|
-
requiredMarkPosition: {},
|
|
24
|
-
resetType: {},
|
|
25
|
-
rules: {},
|
|
26
|
-
scrollToFirstError: {},
|
|
27
|
-
showErrorMessage: { type: Boolean },
|
|
28
|
-
statusIcon: { type: Boolean },
|
|
29
|
-
submitWithWarningMessage: { type: Boolean },
|
|
30
|
-
onReset: { type: Function },
|
|
31
|
-
onSubmit: { type: Function },
|
|
32
|
-
onValidate: { type: Function }
|
|
33
|
-
}, e),
|
|
34
|
-
emits: ["query", "reset"],
|
|
35
|
-
setup(e, { expose: l, emit: d }) {
|
|
36
|
-
let D = e, O = d, k = g(T(D.data));
|
|
37
|
-
S(() => D.data, (e) => {
|
|
38
|
-
Object.assign(k.value, T(e));
|
|
39
|
-
}, { deep: !0 });
|
|
40
|
-
let A = r(() => [...D.items, { slot: "_btn" }]), j = r(() => {
|
|
41
|
-
let e = { ...D };
|
|
42
|
-
return delete e.items, delete e.data, e;
|
|
43
|
-
}), M = x("formRef"), N = g(!1), P = g(!1), F = null;
|
|
44
|
-
w(M, (e) => {
|
|
45
|
-
F = e[0]?.target ?? null, I();
|
|
46
|
-
});
|
|
47
|
-
function I() {
|
|
48
|
-
p(() => {
|
|
49
|
-
if (F === null) return;
|
|
50
|
-
let e = [...F.querySelectorAll(".t-form__item")];
|
|
51
|
-
e.forEach((t) => {
|
|
52
|
-
t.style.display = getComputedStyle(e[0]).display;
|
|
53
|
-
});
|
|
54
|
-
let t = E(e, (e) => e.offsetTop), n = Object.keys(t).map(Number).sort((e, t) => e - t);
|
|
55
|
-
P.value = n.length > 3 || n.length === 3 && n.at(-1) - n.at(-2) === n.at(1) - n.at(0), N.value || (n.slice(2, -1).forEach((e) => {
|
|
56
|
-
t[e].forEach((e) => {
|
|
57
|
-
e.style.display = "none";
|
|
58
|
-
});
|
|
59
|
-
}), n.length > 2 && P.value && (t[n[1]].at(-1).style.display = "none"));
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
S([N, () => A.value.length], I);
|
|
63
|
-
function L() {
|
|
64
|
-
O("query", k.value, !1);
|
|
65
|
-
}
|
|
66
|
-
function R() {
|
|
67
|
-
O("query", k.value, !0);
|
|
68
|
-
}
|
|
69
|
-
function z() {
|
|
70
|
-
B(), O("reset", k.value);
|
|
71
|
-
}
|
|
72
|
-
function B() {
|
|
73
|
-
Object.keys(k.value).forEach((e) => {
|
|
74
|
-
Object.hasOwn(D.data, e) ? k.value[e] = D.data[e] : Array.isArray(k.value[e]) ? k.value[e] = [] : k.value[e] = "";
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return l({
|
|
78
|
-
formData: k,
|
|
79
|
-
query: L,
|
|
80
|
-
reset: z,
|
|
81
|
-
resetFormData: B
|
|
82
|
-
}), (e, r) => (h(), i(b(n), f({
|
|
83
|
-
ref_key: "formRef",
|
|
84
|
-
ref: M,
|
|
85
|
-
data: k.value,
|
|
86
|
-
items: A.value
|
|
87
|
-
}, f(e.$attrs, j.value, { class: "relative" })), o({
|
|
88
|
-
_btn: C(() => [
|
|
89
|
-
c(b(t), {
|
|
90
|
-
class: "shrink",
|
|
91
|
-
onClick: R
|
|
92
|
-
}, {
|
|
93
|
-
default: C(() => [...r[1] ||= [s("查询", -1)]]),
|
|
94
|
-
_: 1
|
|
95
|
-
}),
|
|
96
|
-
c(b(t), {
|
|
97
|
-
class: "shrink",
|
|
98
|
-
theme: "default",
|
|
99
|
-
onClick: z
|
|
100
|
-
}, {
|
|
101
|
-
default: C(() => [...r[2] ||= [s("重置", -1)]]),
|
|
102
|
-
_: 1
|
|
103
|
-
}),
|
|
104
|
-
P.value ? (h(), i(b(t), {
|
|
105
|
-
key: 0,
|
|
106
|
-
class: "shrink",
|
|
107
|
-
variant: "outline",
|
|
108
|
-
onClick: r[0] ||= (e) => N.value = !N.value
|
|
109
|
-
}, {
|
|
110
|
-
default: C(() => [s(y(N.value ? "收起" : "展开"), 1)]),
|
|
111
|
-
_: 1
|
|
112
|
-
})) : a("v-if", !0)
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, [_(Object.keys(e.$slots), (t) => ({
|
|
116
|
-
name: t,
|
|
117
|
-
fn: C((n) => [v(e.$slots, t, m(u(n)))])
|
|
118
|
-
}))]), 1040, ["data", "items"]));
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
export { D as t };
|