dlzn-ui 2.0.93 → 2.0.94
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/chunks/{AssignUser-Bjm-tcxL.mjs → AssignUser-CouSn8m6.mjs} +3 -3
- package/chunks/{BasicInfo-BWfSZ_HQ.mjs → BasicInfo-BCeofxua.mjs} +1 -1
- package/chunks/{ColumnInfo-sxd5S5fj.mjs → ColumnInfo-DIMFSHjI.mjs} +2 -2
- package/chunks/{Common-DtHjLp8S.mjs → Common-CwFmdwb1.mjs} +2 -2
- package/chunks/{Day-DXmvbaA-.mjs → Day-CYRyMdGp.mjs} +2 -2
- package/chunks/{DictTypeDetail-DExEs2pD.mjs → DictTypeDetail-BuJzsRck.mjs} +2 -2
- package/chunks/{GenInfo-zHlSR8Xi.mjs → GenInfo-u2q3GHjT.mjs} +1 -1
- package/chunks/{Hour-og6bObii.mjs → Hour-BucXva0o.mjs} +1 -1
- package/chunks/{Import-CB1QuML4.mjs → Import-Cbpbw1lG.mjs} +2 -2
- package/chunks/{Index-iSZ25oa5.mjs → Index-7kWmNVUh.mjs} +1 -1
- package/chunks/{Index-DJa6TvxZ.mjs → Index-B6nf1hBs.mjs} +2 -2
- package/chunks/Index-B9ltACCu.mjs +124 -0
- package/chunks/{Index-CJCfI-r7.mjs → Index-BNL5a-Cp.mjs} +1 -1
- package/chunks/{Index-DMar4Ak5.mjs → Index-BZJQOM_U.mjs} +1 -1
- package/chunks/{Index-Cm8ZetsA.mjs → Index-Bk88hnNn.mjs} +2 -2
- package/chunks/{Index-DNWEV6qX.mjs → Index-BrimwFmb.mjs} +1 -1
- package/chunks/{Index-kmSafJeE.mjs → Index-BstvYgFa.mjs} +1 -1
- package/chunks/{Index-cb1Euao4.mjs → Index-Bw-ARCfv.mjs} +1 -1
- package/chunks/{Index-B71kfXN0.mjs → Index-C7ffC0FL.mjs} +2 -2
- package/chunks/{Index-CiXTiCPv.mjs → Index-CvhYPFWQ.mjs} +5 -5
- package/chunks/{Index-D0Rcw6_y.mjs → Index-CzrztdW-.mjs} +1 -1
- package/chunks/Index-D2ylEiec.mjs +46 -0
- package/chunks/{Index-Djtx-Hvr.mjs → Index-DiMU3wUU.mjs} +1 -1
- package/chunks/{Index-CN4X_4BO.mjs → Index-wzt08-bX.mjs} +2 -2
- package/chunks/{IndexItem-DabXJCE1.mjs → IndexItem-D9CJRe8H.mjs} +6 -6
- package/chunks/{Log-Bdl4dLs2.mjs → Log-CRCoNWG4.mjs} +2 -2
- package/chunks/{LoginBg-CMSDCnPF.mjs → LoginBg-YJNdM6MW.mjs} +1 -1
- package/chunks/{Minute-BNXg2byx.mjs → Minute-CbXsIR7_.mjs} +1 -1
- package/chunks/{Month-BJSN_RQi.mjs → Month-CthyKyhv.mjs} +1 -1
- package/chunks/{Preview-B0gJ53SG.mjs → Preview-B98m3MGO.mjs} +1 -1
- package/chunks/{Second-CwPCm_aA.mjs → Second-CIQ6V9se.mjs} +1 -1
- package/chunks/{SelectDept-sNeYNdzH.mjs → SelectDept-CnWQxS5K.mjs} +2 -2
- package/chunks/{SelectMenu-27KCnGVX.mjs → SelectMenu-CkTKjWBF.mjs} +2 -2
- package/chunks/{SelectUser-Cx0YM3ds.mjs → SelectUser-Ckno6MOD.mjs} +2 -2
- package/chunks/{UserInfo-Bb1tmRjV.mjs → UserInfo-CLmJTgYA.mjs} +1 -1
- package/chunks/{Wrapper-D6hdJKG5.mjs → Wrapper-DTafMJUk.mjs} +1 -1
- package/chunks/{app-BBa29b74.mjs → app-Bi5IK4Co.mjs} +1 -1
- package/chunks/{custom-page-list-Cu3uysuq.mjs → custom-page-list-iJnDKzZY.mjs} +4 -4
- package/chunks/{custom-page-table-4RY6Lrxk.mjs → custom-page-table-C1_--vky.mjs} +2 -2
- package/chunks/{date-picker-CoQEj1PX.mjs → date-picker-B2wW7DdC.mjs} +47 -47
- package/chunks/{input-number-DZeNW9Jv.mjs → input-number-D6xmAwom.mjs} +1 -1
- package/chunks/{job-BCL4Boa7.mjs → job-LMdrSGj4.mjs} +3 -3
- package/chunks/{overview-CZjS_5ws.mjs → overview-TtQSpbKc.mjs} +1 -1
- package/chunks/{page-list-Dyusjn67.mjs → page-list-DM1OJ9i_.mjs} +3 -3
- package/chunks/{page-query-10dZRPbn.mjs → page-query-Dt2TDeWb.mjs} +1 -1
- package/chunks/{page-table-D33Gigz2.mjs → page-table-BFRDmAMb.mjs} +4 -4
- package/chunks/{pagination-voqexobJ.mjs → pagination-BqB9JLb_.mjs} +1 -1
- package/chunks/{provider-BipQBIc8.mjs → provider-CygWvvoI.mjs} +98 -98
- package/chunks/{range-input-CTpZmB-d.mjs → range-input-BIjdk8b6.mjs} +1 -1
- package/chunks/{table-CR8g_CQd.mjs → table-KkVV8NF3.mjs} +3 -3
- package/chunks/utils-CR1bJjmo.mjs +126 -0
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/audio-play/index.d.ts +2 -0
- package/components/audio-play/src/audio-play.d.ts +7 -0
- package/components/audio-play/src/audio-play.vue.d.ts +6 -0
- 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/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/date-picker/src/date-picker.vue.d.ts +1 -1
- package/components/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/dialog/src/dialog.vue.d.ts +5 -5
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/index.mjs +12 -12
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/input-number/src/input-number.vue.d.ts +1 -1
- package/components/link/src/link.vue.d.ts +1 -1
- 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.d.ts +16 -16
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-list/src/page-list.vue.d.ts +7 -7
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/page-table/src/page-table.vue.d.ts +10 -10
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/popconfirm/src/popconfirm.vue.d.ts +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/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select/src/select.vue.d.ts +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/table/src/table.vue.d.ts +2 -2
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree/src/tree.vue.d.ts +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/useLabel/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +2 -2
- package/layout/Home1.mjs +10 -3
- package/layout/Login.mjs +2 -2
- 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 +4 -4
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +1 -1
- 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 +2 -2
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/directive/index.mjs +7 -7
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/AudioPlay/Index.mjs +1 -0
- package/plugins/tableRenders/cell/AudioPlay/Index.vue.d.ts +6 -0
- package/plugins/tableRenders/cell/AudioPlay/index.d.ts +2 -0
- package/plugins/tableRenders/cell/AudioPlay/index2.mjs +0 -0
- package/plugins/tableRenders/cell/Avatar/Index.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/FormatDate/Index.mjs +1 -1
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Link/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/index.d.ts +2 -0
- package/plugins/tableRenders/cell/index.mjs +54 -52
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/title/index.mjs +2 -2
- 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/utils/audio/getAudioElement.d.ts +2 -0
- package/utils/audio/getAudioElement.mjs +9 -0
- package/utils/audio/playMediaStream.d.ts +6 -0
- package/utils/audio/playUrl.d.ts +6 -0
- package/utils/gather.mjs +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.mjs +8 -8
- 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 +2 -2
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +2 -2
- package/views/system/dept/index.mjs +17 -17
- package/views/system/dept/utils.mjs +2 -2
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +14 -14
- package/views/system/menu/utils.mjs +2 -2
- package/views/system/notice/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- 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 +3 -3
- package/views/tool/gen/editTable/index.mjs +4 -4
- 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 +4 -4
- 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/chunks/Index-Cuc40XIY.mjs +0 -44
- package/chunks/utils-TGX_Jb3e.mjs +0 -10
|
@@ -8,11 +8,11 @@ import "../components/checkbox/index.mjs";
|
|
|
8
8
|
import { t as r } from "./checkbox-CVOChDUu.mjs";
|
|
9
9
|
import i from "../hooks/useLabel/index.mjs";
|
|
10
10
|
import { n as a, t as o } from "./useAppContext-DAxNLHY9.mjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import m from "../
|
|
11
|
+
import s from "../plugins/autoImport/$msg/index.mjs";
|
|
12
|
+
import c from "../layout/index.mjs";
|
|
13
|
+
import { isFalsy as l, isNotEmpty as u, isValidNumberString as d } from "../utils/boolean.mjs";
|
|
14
|
+
import { stringDisplay as f } from "../utils/string.mjs";
|
|
15
|
+
import { sanitizeHtml as p, saveAs as m } from "../utils/tool.mjs";
|
|
16
16
|
import "../components/scrollbar/index.mjs";
|
|
17
17
|
import h from "../hooks/useMQ/index.mjs";
|
|
18
18
|
import { t as g } from "./scrollbar-DR0tchN3.mjs";
|
|
@@ -29,17 +29,17 @@ import "../components/dropdown/index.mjs";
|
|
|
29
29
|
import re from "../hooks/useContextMenu/index.mjs";
|
|
30
30
|
import { t as ie } from "./dropdown-Bvarrr3c.mjs";
|
|
31
31
|
import ae, { useClearList as oe } from "../hooks/useList/index.mjs";
|
|
32
|
-
import "./utils-
|
|
32
|
+
import "./utils-CR1bJjmo.mjs";
|
|
33
33
|
import "../components/color-picker/index.mjs";
|
|
34
34
|
import { t as se } from "./color-picker-Czz7J_78.mjs";
|
|
35
35
|
import "../components/input/index.mjs";
|
|
36
36
|
import { n as ce, t as le } from "./input-CiSr3rcu.mjs";
|
|
37
37
|
import "../components/date-picker/index.mjs";
|
|
38
|
-
import { t as ue } from "./date-picker-
|
|
38
|
+
import { t as ue } from "./date-picker-B2wW7DdC.mjs";
|
|
39
39
|
import "../components/input-number/index.mjs";
|
|
40
|
-
import { t as de } from "./input-number-
|
|
40
|
+
import { t as de } from "./input-number-D6xmAwom.mjs";
|
|
41
41
|
import "../components/range-input/index.mjs";
|
|
42
|
-
import { t as fe } from "./range-input-
|
|
42
|
+
import { t as fe } from "./range-input-BIjdk8b6.mjs";
|
|
43
43
|
import "../components/tag-input/index.mjs";
|
|
44
44
|
import { n as pe, t as me } from "./tag-input-Df_v5AwS.mjs";
|
|
45
45
|
import "../components/slider/index.mjs";
|
|
@@ -571,7 +571,7 @@ function Gt(e) {
|
|
|
571
571
|
let t = e.component, n = typeof t == "string" ? y[Wt(t)] : t;
|
|
572
572
|
if (n === void 0) {
|
|
573
573
|
let e = `路由组件${Wt(t)}不存在`;
|
|
574
|
-
return console.error(e),
|
|
574
|
+
return console.error(e), c["./NotFound.vue"];
|
|
575
575
|
}
|
|
576
576
|
return typeof t == "string" && Ut.push(Wt(t)), () => n().then((t) => ({
|
|
577
577
|
...t.default,
|
|
@@ -757,36 +757,36 @@ var on = V("login", () => {
|
|
|
757
757
|
function s(e) {
|
|
758
758
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function l(e) {
|
|
761
761
|
o.close(e);
|
|
762
762
|
}
|
|
763
|
-
let
|
|
763
|
+
let u = async (e) => {
|
|
764
764
|
let { value: t } = e;
|
|
765
765
|
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), on().logout());
|
|
766
|
-
},
|
|
767
|
-
function
|
|
768
|
-
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t),
|
|
766
|
+
}, d = h.isMd;
|
|
767
|
+
function f(e, t) {
|
|
768
|
+
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), c = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
769
769
|
o.recentRouters.length > 1 && i.push({
|
|
770
770
|
content: "关闭",
|
|
771
|
-
onClick: () =>
|
|
771
|
+
onClick: () => l(t)
|
|
772
772
|
}, {
|
|
773
773
|
content: "关闭其他",
|
|
774
774
|
onClick: () => {
|
|
775
|
-
|
|
775
|
+
c !== s && r.push(u), o.recentRouters = [u];
|
|
776
776
|
}
|
|
777
777
|
}), s > 0 && i.push({
|
|
778
778
|
content: "关闭左侧",
|
|
779
779
|
onClick: () => {
|
|
780
|
-
|
|
780
|
+
c < s && r.push(u), o.recentRouters = o.recentRouters.slice(s);
|
|
781
781
|
}
|
|
782
782
|
}), s < o.recentRouters.length - 1 && i.push({
|
|
783
783
|
content: "关闭右侧",
|
|
784
784
|
onClick: () => {
|
|
785
|
-
|
|
785
|
+
c > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
786
786
|
}
|
|
787
787
|
}), re(e, i);
|
|
788
788
|
}
|
|
789
|
-
let
|
|
789
|
+
let p = c["./modules/HeaderOperations.vue"] ? Te(c["./modules/HeaderOperations.vue"]) : void 0;
|
|
790
790
|
return (t, r) => (N(), S(R(et), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
791
791
|
default: B(() => [E(R($e), {
|
|
792
792
|
"expand-type": "popup",
|
|
@@ -803,7 +803,7 @@ var on = V("login", () => {
|
|
|
803
803
|
default: B(() => [E(R(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
804
804
|
_: 1
|
|
805
805
|
})]),
|
|
806
|
-
operations: B(() => [R(
|
|
806
|
+
operations: B(() => [R(p) ? (N(), S(R(p), { key: 0 })) : C("v-if", !0), E(R(ie), {
|
|
807
807
|
options: [{
|
|
808
808
|
content: "个人中心",
|
|
809
809
|
value: "profile",
|
|
@@ -819,9 +819,9 @@ var on = V("login", () => {
|
|
|
819
819
|
size: "16"
|
|
820
820
|
})
|
|
821
821
|
}],
|
|
822
|
-
onClick:
|
|
822
|
+
onClick: u
|
|
823
823
|
}, {
|
|
824
|
-
default: B(() => [R(
|
|
824
|
+
default: B(() => [R(d) ? (N(), S(R($), {
|
|
825
825
|
key: 0,
|
|
826
826
|
icon: "material-symbols:account-circle",
|
|
827
827
|
shape: "square",
|
|
@@ -843,7 +843,7 @@ var on = V("login", () => {
|
|
|
843
843
|
default: B(() => [(N(!0), w(be, null, F(R(o).recentRouters, (t) => (N(), S(R(it), {
|
|
844
844
|
key: t.name,
|
|
845
845
|
value: t.name,
|
|
846
|
-
onContextmenu: (e) =>
|
|
846
|
+
onContextmenu: (e) => f(e, t.name)
|
|
847
847
|
}, {
|
|
848
848
|
default: B(() => [Ce("div", sn, [Ce("span", null, L(R(Y)(t.name).meta.title), 1), R(o).recentRouters.length > 1 ? (N(), S(R($), {
|
|
849
849
|
key: 0,
|
|
@@ -851,7 +851,7 @@ var on = V("login", () => {
|
|
|
851
851
|
shape: "square",
|
|
852
852
|
size: "small",
|
|
853
853
|
variant: "text",
|
|
854
|
-
onClick: Be((e) =>
|
|
854
|
+
onClick: Be((e) => l(t.name), ["stop"])
|
|
855
855
|
}, {
|
|
856
856
|
icon: B(() => [E(R(e), {
|
|
857
857
|
icon: "material-symbols:close",
|
|
@@ -976,7 +976,7 @@ function pn() {
|
|
|
976
976
|
return {
|
|
977
977
|
children: [{
|
|
978
978
|
children: [{
|
|
979
|
-
component:
|
|
979
|
+
component: c["./profile/Index.vue"],
|
|
980
980
|
meta: {
|
|
981
981
|
fullScreen: !1,
|
|
982
982
|
hidden: !0,
|
|
@@ -988,7 +988,7 @@ function pn() {
|
|
|
988
988
|
name: "Profile",
|
|
989
989
|
path: "profile"
|
|
990
990
|
}],
|
|
991
|
-
component:
|
|
991
|
+
component: c["./Home.vue"],
|
|
992
992
|
meta: {
|
|
993
993
|
fullScreen: !1,
|
|
994
994
|
hidden: !1,
|
|
@@ -1010,7 +1010,7 @@ var J = xt({
|
|
|
1010
1010
|
routes: [
|
|
1011
1011
|
pn(),
|
|
1012
1012
|
{
|
|
1013
|
-
component:
|
|
1013
|
+
component: c["./Login.vue"],
|
|
1014
1014
|
meta: {
|
|
1015
1015
|
fullScreen: !1,
|
|
1016
1016
|
hidden: !0,
|
|
@@ -1022,8 +1022,8 @@ var J = xt({
|
|
|
1022
1022
|
name: "Login",
|
|
1023
1023
|
path: "/login"
|
|
1024
1024
|
},
|
|
1025
|
-
...
|
|
1026
|
-
component:
|
|
1025
|
+
...c["./Register.vue"] === void 0 ? [] : [{
|
|
1026
|
+
component: c["./Register.vue"],
|
|
1027
1027
|
meta: {
|
|
1028
1028
|
fullScreen: !1,
|
|
1029
1029
|
hidden: !0,
|
|
@@ -1036,7 +1036,7 @@ var J = xt({
|
|
|
1036
1036
|
path: "/register"
|
|
1037
1037
|
}],
|
|
1038
1038
|
{
|
|
1039
|
-
component:
|
|
1039
|
+
component: c["./NotFound.vue"],
|
|
1040
1040
|
meta: {
|
|
1041
1041
|
fullScreen: !1,
|
|
1042
1042
|
hidden: !0,
|
|
@@ -1059,21 +1059,21 @@ J.beforeEach(async (e) => {
|
|
|
1059
1059
|
}));
|
|
1060
1060
|
}), J.afterEach((e, t, n) => {
|
|
1061
1061
|
It.closeAll(), fn.closeAll();
|
|
1062
|
-
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title:
|
|
1063
|
-
document.title =
|
|
1064
|
-
let
|
|
1062
|
+
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: c } = r;
|
|
1063
|
+
document.title = c || G().appInfo.appName;
|
|
1064
|
+
let l = K();
|
|
1065
1065
|
if (![
|
|
1066
1066
|
"Login",
|
|
1067
1067
|
"NotFound",
|
|
1068
1068
|
"Register"
|
|
1069
1069
|
].includes(i) && !a) {
|
|
1070
1070
|
let n = o === t.name || e.query._fromLeftTree !== "true" ? t.name : void 0;
|
|
1071
|
-
|
|
1071
|
+
l.add(n, {
|
|
1072
1072
|
name: i,
|
|
1073
1073
|
query: e.query
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
|
-
v().remove(i), VITE_MODE === "development" && (Ct(n, bt.aborted) ?
|
|
1076
|
+
v().remove(i), VITE_MODE === "development" && (Ct(n, bt.aborted) ? s.info("导航被中断") : Ct(n, bt.cancelled) ? s.info("导航被取消,因为有一个新的导航") : Ct(n, bt.duplicated) && s.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1077
1077
|
});
|
|
1078
1078
|
function Y(e) {
|
|
1079
1079
|
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
@@ -1083,13 +1083,13 @@ var mn = 15e3, hn = "网络错误,请稍后再试";
|
|
|
1083
1083
|
function gn(e, t = !1) {
|
|
1084
1084
|
let n = {};
|
|
1085
1085
|
return Object.keys(e).forEach((r) => {
|
|
1086
|
-
(!t ||
|
|
1086
|
+
(!t || u(e[r])) && (n[r] = e[r]);
|
|
1087
1087
|
}), n;
|
|
1088
1088
|
}
|
|
1089
1089
|
function _n(e, t = !0) {
|
|
1090
1090
|
let n = {};
|
|
1091
1091
|
return Object.keys(e).forEach((r) => {
|
|
1092
|
-
(!t ||
|
|
1092
|
+
(!t || u(e[r])) && (n[r] = e[r]);
|
|
1093
1093
|
}), n;
|
|
1094
1094
|
}
|
|
1095
1095
|
function vn(e, t = !0) {
|
|
@@ -1097,10 +1097,10 @@ function vn(e, t = !0) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
function yn(e) {
|
|
1099
1099
|
let { data: t, response: n, useDownload: r } = e;
|
|
1100
|
-
if (typeof r == "string")
|
|
1100
|
+
if (typeof r == "string") m(t, r);
|
|
1101
1101
|
else {
|
|
1102
1102
|
let e = new URLSearchParams((n.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1103
|
-
e ?
|
|
1103
|
+
e ? m(t, e) : a.error("返回的 response header 没有文件名");
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
var X = wt({
|
|
@@ -1147,25 +1147,25 @@ var X = wt({
|
|
|
1147
1147
|
if (e instanceof Error) {
|
|
1148
1148
|
let { message: t } = e;
|
|
1149
1149
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1150
|
-
if (t.toLowerCase().includes("timeout")) return n &&
|
|
1150
|
+
if (t.toLowerCase().includes("timeout")) return n && s.error("请求超时"), Promise.reject(e);
|
|
1151
1151
|
}
|
|
1152
|
-
return n &&
|
|
1152
|
+
return n && s.error(hn), Promise.reject(e);
|
|
1153
1153
|
},
|
|
1154
1154
|
onSuccess: async (e, t) => {
|
|
1155
1155
|
if (typeof e == "string") return e;
|
|
1156
|
-
let { useDataResult: n, useDownload: r, useFailMsg: i, useResponseBlob: o, useResponseText:
|
|
1156
|
+
let { useDataResult: n, useDownload: r, useFailMsg: i, useResponseBlob: o, useResponseText: c, useSuccessMsg: l, useSysFailMsg: u, useToken: d } = t.meta, { headers: f, ok: m, status: h } = e;
|
|
1157
1157
|
if (m === !1) {
|
|
1158
|
-
if (
|
|
1158
|
+
if (u) {
|
|
1159
1159
|
let e = {
|
|
1160
1160
|
403: "当前操作没有权限",
|
|
1161
1161
|
404: "访问资源不存在",
|
|
1162
1162
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1163
1163
|
}[h] ?? hn;
|
|
1164
|
-
|
|
1164
|
+
s.error(e);
|
|
1165
1165
|
}
|
|
1166
1166
|
return Promise.reject(e);
|
|
1167
1167
|
}
|
|
1168
|
-
if (o && !
|
|
1168
|
+
if (o && !f.get("content-type")?.includes("application/json")) {
|
|
1169
1169
|
let t;
|
|
1170
1170
|
try {
|
|
1171
1171
|
t = await e.blob();
|
|
@@ -1178,7 +1178,7 @@ var X = wt({
|
|
|
1178
1178
|
useDownload: r
|
|
1179
1179
|
}), t;
|
|
1180
1180
|
}
|
|
1181
|
-
if (
|
|
1181
|
+
if (c && !f.get("content-type")?.includes("application/json")) {
|
|
1182
1182
|
let t;
|
|
1183
1183
|
try {
|
|
1184
1184
|
t = await e.text();
|
|
@@ -1194,29 +1194,29 @@ var X = wt({
|
|
|
1194
1194
|
return a.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1195
1195
|
}
|
|
1196
1196
|
if (g?.code !== void 0) {
|
|
1197
|
-
let { code: t, data:
|
|
1197
|
+
let { code: t, data: c, msg: u } = g;
|
|
1198
1198
|
if (t >= 400) {
|
|
1199
1199
|
if (t === 600) {
|
|
1200
|
-
if (
|
|
1200
|
+
if (p(u).then((e) => {
|
|
1201
1201
|
W({
|
|
1202
1202
|
body: () => k("div", { innerHTML: e }),
|
|
1203
1203
|
cancelBtn: null
|
|
1204
1204
|
});
|
|
1205
1205
|
}), !o) return g;
|
|
1206
|
-
} else t === 401 && d ? J.push({ name: "Login" }) : i !== !1 &&
|
|
1206
|
+
} else t === 401 && d ? J.push({ name: "Login" }) : i !== !1 && s.error(i === !0 ? u : i);
|
|
1207
1207
|
return Promise.reject(g);
|
|
1208
1208
|
}
|
|
1209
1209
|
{
|
|
1210
1210
|
let i = yt.alovaResCodeSuccessCb?.({
|
|
1211
1211
|
code: t,
|
|
1212
|
-
data:
|
|
1213
|
-
msg:
|
|
1212
|
+
data: c,
|
|
1213
|
+
msg: u
|
|
1214
1214
|
});
|
|
1215
1215
|
return i === void 0 ? (r !== !1 && (typeof r == "string" ? yn({
|
|
1216
|
-
data:
|
|
1216
|
+
data: c,
|
|
1217
1217
|
response: e,
|
|
1218
1218
|
useDownload: r
|
|
1219
|
-
}) : a.error("下载失败,返回的不是一个有效的地址")),
|
|
1219
|
+
}) : a.error("下载失败,返回的不是一个有效的地址")), l && s(u), n ? c === void 0 ? g : c : g) : i;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
return g;
|
|
@@ -1300,30 +1300,30 @@ var On = /* @__PURE__ */ D({
|
|
|
1300
1300
|
function o(e) {
|
|
1301
1301
|
i.exposed = e ?? {};
|
|
1302
1302
|
}
|
|
1303
|
-
let
|
|
1303
|
+
let s = x(() => {
|
|
1304
1304
|
let e;
|
|
1305
1305
|
return n.dicCode ? (n.options && a.error("TCheckboxGroup: dicCode and options cannot be used together"), e = En(n.dicCode).value) : e = typeof n.options == "string" ? ae(n.options).value : n.options, n.showCheckAll && (e === void 0 ? a.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1306
1306
|
checkAll: !0,
|
|
1307
1307
|
label: "全选"
|
|
1308
1308
|
})), e;
|
|
1309
|
-
}),
|
|
1309
|
+
}), c = x(() => {
|
|
1310
1310
|
if (!Array.isArray(n.modelValue)) a.error("TCheckboxGroup: modelValue must be an array");
|
|
1311
|
-
else if (
|
|
1312
|
-
let e =
|
|
1313
|
-
if (e) return n.modelValue.map((e) =>
|
|
1314
|
-
if (t) return n.modelValue.map((e) =>
|
|
1311
|
+
else if (s.value !== void 0) {
|
|
1312
|
+
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1313
|
+
if (e) return n.modelValue.map((e) => l(e) ? e : String(e));
|
|
1314
|
+
if (t) return n.modelValue.map((e) => d(e) ? Number(e) : e);
|
|
1315
1315
|
}
|
|
1316
1316
|
return n.modelValue;
|
|
1317
|
-
}),
|
|
1317
|
+
}), u = x(() => {
|
|
1318
1318
|
let e = { ...n };
|
|
1319
1319
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1320
1320
|
e[t] === void 0 && delete e[t];
|
|
1321
1321
|
}), e;
|
|
1322
1322
|
});
|
|
1323
1323
|
return (e, t) => (N(), S(I(k(R(We), j(e.$attrs, {
|
|
1324
|
-
...
|
|
1325
|
-
options:
|
|
1326
|
-
modelValue:
|
|
1324
|
+
...u.value,
|
|
1325
|
+
options: s.value,
|
|
1326
|
+
modelValue: c.value,
|
|
1327
1327
|
onChange: (...e) => {
|
|
1328
1328
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1329
1329
|
},
|
|
@@ -1459,25 +1459,25 @@ var On = /* @__PURE__ */ D({
|
|
|
1459
1459
|
function o(e) {
|
|
1460
1460
|
i.exposed = e ?? {};
|
|
1461
1461
|
}
|
|
1462
|
-
let
|
|
1462
|
+
let s = x(() => n.dicCode ? (n.options && a.error("TRadioGroup: dicCode and options cannot be used together"), En(n.dicCode).value) : typeof n.options == "string" ? ae(n.options).value : n.options), c = x(() => {
|
|
1463
1463
|
let e = { ...n };
|
|
1464
1464
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1465
1465
|
e[t] === void 0 && delete e[t];
|
|
1466
1466
|
}), e;
|
|
1467
|
-
}),
|
|
1468
|
-
if (
|
|
1469
|
-
let e =
|
|
1470
|
-
if (e) return
|
|
1471
|
-
if (t) return
|
|
1467
|
+
}), u = x(() => {
|
|
1468
|
+
if (s.value !== void 0 && !l(n.modelValue)) {
|
|
1469
|
+
let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1470
|
+
if (e) return f(n.modelValue);
|
|
1471
|
+
if (t) return d(n.modelValue) ? Number(n.modelValue) : n.modelValue;
|
|
1472
1472
|
}
|
|
1473
1473
|
return n.modelValue;
|
|
1474
1474
|
});
|
|
1475
1475
|
return (e, t) => (N(), S(I(k(R(at), j(e.$attrs, {
|
|
1476
|
-
...
|
|
1477
|
-
options:
|
|
1478
|
-
modelValue:
|
|
1476
|
+
...c.value,
|
|
1477
|
+
options: s.value,
|
|
1478
|
+
modelValue: u.value,
|
|
1479
1479
|
onChange: (...e) => {
|
|
1480
|
-
let [t, ...i] = e, a = R(
|
|
1480
|
+
let [t, ...i] = e, a = R(l)(t) ? "" : t;
|
|
1481
1481
|
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
1482
1482
|
},
|
|
1483
1483
|
ref: o
|
|
@@ -1585,14 +1585,14 @@ var On = /* @__PURE__ */ D({
|
|
|
1585
1585
|
let e = i.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), a = e.every((e) => typeof e[n] == "number");
|
|
1586
1586
|
if (t.multiple) {
|
|
1587
1587
|
if (Array.isArray(t.modelValue)) {
|
|
1588
|
-
if (r) return t.modelValue.map((e) =>
|
|
1589
|
-
if (a) return t.modelValue.map((e) =>
|
|
1588
|
+
if (r) return t.modelValue.map((e) => l(e) ? e : String(e));
|
|
1589
|
+
if (a) return t.modelValue.map((e) => d(e) ? Number(e) : e);
|
|
1590
1590
|
}
|
|
1591
|
-
} else if (r) return
|
|
1592
|
-
else if (a) return
|
|
1591
|
+
} else if (r) return f(t.modelValue);
|
|
1592
|
+
else if (a) return d(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1593
1593
|
}
|
|
1594
1594
|
return t.modelValue;
|
|
1595
|
-
}),
|
|
1595
|
+
}), s = x(() => {
|
|
1596
1596
|
let e = {
|
|
1597
1597
|
...t,
|
|
1598
1598
|
filterable: t.filterable ?? i.value.length > 8
|
|
@@ -1600,29 +1600,29 @@ var On = /* @__PURE__ */ D({
|
|
|
1600
1600
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1601
1601
|
e[t] === void 0 && delete e[t];
|
|
1602
1602
|
}), e;
|
|
1603
|
-
}),
|
|
1603
|
+
}), c = P(0);
|
|
1604
1604
|
je(() => {
|
|
1605
1605
|
gt(n.exposed.$el, () => {
|
|
1606
|
-
|
|
1606
|
+
c.value = n.exposed.$el.offsetWidth;
|
|
1607
1607
|
}, { box: "border-box" });
|
|
1608
1608
|
});
|
|
1609
|
-
let
|
|
1610
|
-
if (
|
|
1609
|
+
let u = x(() => {
|
|
1610
|
+
if (s.value.scroll?.type === "virtual" && i.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
|
|
1611
1611
|
}), p = x(() => ({
|
|
1612
|
-
...
|
|
1612
|
+
...s.value,
|
|
1613
1613
|
modelValue: o.value,
|
|
1614
1614
|
onChange: (...e) => {
|
|
1615
|
-
let [n, ...r] = e, i =
|
|
1615
|
+
let [n, ...r] = e, i = l(n) ? "" : n;
|
|
1616
1616
|
t["onUpdate:modelValue"]?.(i), t.onChange?.(i, ...r);
|
|
1617
1617
|
},
|
|
1618
1618
|
options: i.value,
|
|
1619
1619
|
popupProps: {
|
|
1620
|
-
...
|
|
1620
|
+
...s.value.popupProps ?? {},
|
|
1621
1621
|
overlayInnerStyle: (e, t) => ({
|
|
1622
|
-
...
|
|
1623
|
-
minWidth: `${
|
|
1622
|
+
...u.value === void 0 ? {} : { height: u.value },
|
|
1623
|
+
minWidth: `${c.value}px`,
|
|
1624
1624
|
width: "auto",
|
|
1625
|
-
...typeof
|
|
1625
|
+
...typeof s.value.popupProps?.overlayInnerStyle == "function" ? s.value.popupProps.overlayInnerStyle(e, t) : s.value.popupProps?.overlayInnerStyle ?? {}
|
|
1626
1626
|
})
|
|
1627
1627
|
},
|
|
1628
1628
|
ref: r
|
|
@@ -2028,7 +2028,7 @@ var On = /* @__PURE__ */ D({
|
|
|
2028
2028
|
});
|
|
2029
2029
|
});
|
|
2030
2030
|
function i() {
|
|
2031
|
-
typeof n.downloadTemplate == "string" ?
|
|
2031
|
+
typeof n.downloadTemplate == "string" ? m(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2032
2032
|
}
|
|
2033
2033
|
let a = x(() => {
|
|
2034
2034
|
let e = { ...n };
|
|
@@ -2097,12 +2097,12 @@ var On = /* @__PURE__ */ D({
|
|
|
2097
2097
|
onValidate: { type: Function }
|
|
2098
2098
|
}, At),
|
|
2099
2099
|
setup(e, { expose: t }) {
|
|
2100
|
-
let n = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = yt, c = O(),
|
|
2100
|
+
let n = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = yt, c = O(), u = P(null), d = x(() => n.items.map((e) => {
|
|
2101
2101
|
if (typeof e.__others == "function") {
|
|
2102
2102
|
let t = {
|
|
2103
2103
|
...e,
|
|
2104
2104
|
...e.__others({
|
|
2105
|
-
exposed:
|
|
2105
|
+
exposed: u,
|
|
2106
2106
|
formData: n.data
|
|
2107
2107
|
})
|
|
2108
2108
|
};
|
|
@@ -2227,7 +2227,7 @@ var On = /* @__PURE__ */ D({
|
|
|
2227
2227
|
e(...t).then((e) => {
|
|
2228
2228
|
e === !0 ? r(ee()) : (n.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2229
2229
|
e[t].forEach((e) => {
|
|
2230
|
-
e.result === !1 &&
|
|
2230
|
+
e.result === !1 && s.error(e.message);
|
|
2231
2231
|
});
|
|
2232
2232
|
}), i(e));
|
|
2233
2233
|
});
|
|
@@ -2248,14 +2248,14 @@ var On = /* @__PURE__ */ D({
|
|
|
2248
2248
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2249
2249
|
}
|
|
2250
2250
|
t.getFormData = ee, t.setFormData = (e, t) => {
|
|
2251
|
-
let { ignoreKeys: r = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys:
|
|
2251
|
+
let { ignoreKeys: r = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
|
|
2252
2252
|
Object.keys(n.data).forEach((t) => {
|
|
2253
|
-
r.includes(t) || (
|
|
2253
|
+
r.includes(t) || (s.includes(t) ? n.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && l(e[t]) || (n.data[t] = e[t]), a.includes(t) && typeof n.data[t] == "number" && (n.data[t] = String(n.data[t])));
|
|
2254
2254
|
}), Object.assign(n.data, o);
|
|
2255
2255
|
};
|
|
2256
2256
|
}
|
|
2257
2257
|
let t = e ?? {};
|
|
2258
|
-
|
|
2258
|
+
u.value = t, c.exposed = t;
|
|
2259
2259
|
}
|
|
2260
2260
|
let te = Ie();
|
|
2261
2261
|
je(() => {
|
|
@@ -2282,11 +2282,11 @@ var On = /* @__PURE__ */ D({
|
|
|
2282
2282
|
e.style.minWidth = `${t}px`;
|
|
2283
2283
|
});
|
|
2284
2284
|
}
|
|
2285
|
-
return Me("formData", n.data), Me("formExposed",
|
|
2285
|
+
return Me("formData", n.data), Me("formExposed", u), Me("isFormDisabled", x(() => n.disabled)), Me("isFormReadonly", x(() => n.readonly)), t({}), (t, n) => (N(), w(be, null, [C(" eslint-disable vue/no-mutating-props "), (N(), S(I(R(Ze)), j(j(t.$attrs, {
|
|
2286
2286
|
...v.value,
|
|
2287
2287
|
ref: y
|
|
2288
2288
|
}), { "label-width": "fit-content" }), {
|
|
2289
|
-
default: B(() => [(N(!0), w(be, null, F(d.value.filter((e) => e.show !== !1), (n) => (N(), S(R(Qe), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ..._(n) }, { class: { no_label_item: R(
|
|
2289
|
+
default: B(() => [(N(!0), w(be, null, F(d.value.filter((e) => e.show !== !1), (n) => (N(), S(R(Qe), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ..._(n) }, { class: { no_label_item: R(l)(n._label) } }), { name: n.model }), {
|
|
2290
2290
|
default: B(() => [n.slot ? Pe(t.$slots, n.slot, {}, void 0, !0, 0) : (N(), S(I(h(n.component)), j({
|
|
2291
2291
|
key: 1,
|
|
2292
2292
|
modelValue: e.data[n.model],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import "./utils-CR1bJjmo.mjs";
|
|
1
2
|
import { isFalsy as e } from "../utils/boolean.mjs";
|
|
2
|
-
import "./utils-TGX_Jb3e.mjs";
|
|
3
3
|
import { formatNumber as t } from "../utils/number.mjs";
|
|
4
4
|
import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeModels as s, mergeProps as c, openBlock as l, resolveDynamicComponent as u, unref as d, useModel as f } from "vue";
|
|
5
5
|
import { RangeInput as p } from "tdesign-vue-next";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { U as e, _ as t, n } from "./provider-
|
|
1
|
+
import { U as e, _ as t, n } from "./provider-CygWvvoI.mjs";
|
|
2
2
|
import { t as r } from "./icon-DnBGEq-n.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
4
|
import ee from "../hooks/useMQ/index.mjs";
|
|
5
|
-
import { isFalsy as i } from "../utils/boolean.mjs";
|
|
6
5
|
import { n as te } from "./useAppContext-DAxNLHY9.mjs";
|
|
6
|
+
import { isFalsy as i } from "../utils/boolean.mjs";
|
|
7
7
|
import { getCellRender as ne } from "../plugins/tableRenders/cell/index.mjs";
|
|
8
8
|
import { getTitleRender as re } from "../plugins/tableRenders/title/index.mjs";
|
|
9
|
-
import "./utils-
|
|
9
|
+
import "./utils-CR1bJjmo.mjs";
|
|
10
10
|
import { t as a } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
11
11
|
import { Teleport as ie, computed as o, createBlock as s, createCommentVNode as c, createElementVNode as l, createSlots as ae, createVNode as u, defineComponent as d, getCurrentInstance as oe, guardReactiveProps as f, h as p, mergeDefaults as m, mergeProps as h, nextTick as se, normalizeClass as ce, normalizeProps as g, onMounted as le, onUnmounted as ue, openBlock as _, provide as v, ref as y, renderList as de, renderSlot as b, resolveDynamicComponent as fe, unref as x, useCssVars as pe, useTemplateRef as me, watch as S, withCtx as C } from "vue";
|
|
12
12
|
import { Empty as he, EnhancedTable as ge, Tooltip as w } from "tdesign-vue-next";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import e from "../plugins/autoImport/$msg/index.mjs";
|
|
2
|
+
import { getAudioElement as t, releaseAudioElement as n } from "../utils/audio/getAudioElement.mjs";
|
|
3
|
+
import "../utils/boolean.mjs";
|
|
4
|
+
import "../utils/number.mjs";
|
|
5
|
+
import { stringDisplay as r } from "../utils/string.mjs";
|
|
6
|
+
import "../utils/tool.mjs";
|
|
7
|
+
import { ref as i } from "vue";
|
|
8
|
+
// ../../packages/dlzn-ui/utils/audio/playMediaStream.ts
|
|
9
|
+
var a = class {
|
|
10
|
+
stream;
|
|
11
|
+
onDisposed;
|
|
12
|
+
isLoading = i(!1);
|
|
13
|
+
isPlaying = i(!1);
|
|
14
|
+
audioElement;
|
|
15
|
+
disposed = !1;
|
|
16
|
+
tracks;
|
|
17
|
+
constructor(n, r) {
|
|
18
|
+
this.stream = n, this.onDisposed = r, this.tracks = n.getAudioTracks(), this.audioElement = t();
|
|
19
|
+
for (let e of this.tracks) e.addEventListener("ended", this.onTrackEnded);
|
|
20
|
+
this.audioElement.srcObject = n, this.isLoading.value = !0, this.audioElement.play().then(() => {
|
|
21
|
+
this.isPlaying.value = !0;
|
|
22
|
+
}).catch(() => {
|
|
23
|
+
e.error("音频播放失败"), this.dispose();
|
|
24
|
+
}).finally(() => {
|
|
25
|
+
this.isLoading.value = !1;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
dispose() {
|
|
29
|
+
if (this.isPlaying.value = !1, !this.disposed) {
|
|
30
|
+
this.disposed = !0;
|
|
31
|
+
for (let e of this.tracks) e.removeEventListener("ended", this.onTrackEnded);
|
|
32
|
+
n(this.audioElement), this.onDisposed(this.stream);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
onTrackEnded = () => {
|
|
36
|
+
this.dispose();
|
|
37
|
+
};
|
|
38
|
+
}, o = new class {
|
|
39
|
+
players = /* @__PURE__ */ new Map();
|
|
40
|
+
play(e, t) {
|
|
41
|
+
if (this.players.has(e)) {
|
|
42
|
+
let t = this.players.get(e);
|
|
43
|
+
return {
|
|
44
|
+
isLoading: t.isLoading,
|
|
45
|
+
isPlaying: t.isPlaying
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
t && this.release();
|
|
49
|
+
let n = new a(e, (e) => {
|
|
50
|
+
this.players.delete(e);
|
|
51
|
+
});
|
|
52
|
+
return this.players.set(e, n), {
|
|
53
|
+
isLoading: n.isLoading,
|
|
54
|
+
isPlaying: n.isPlaying
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
release(e) {
|
|
58
|
+
if (e !== void 0) this.players.get(e)?.dispose();
|
|
59
|
+
else for (let e of [...this.players.values()]) e.dispose();
|
|
60
|
+
}
|
|
61
|
+
}();
|
|
62
|
+
function s(e, t = !0) {
|
|
63
|
+
return o.play(e, t);
|
|
64
|
+
}
|
|
65
|
+
function c(e) {
|
|
66
|
+
o.release(e);
|
|
67
|
+
}
|
|
68
|
+
// ../../packages/dlzn-ui/utils/audio/playUrl.ts
|
|
69
|
+
var l = class {
|
|
70
|
+
url;
|
|
71
|
+
onDisposed;
|
|
72
|
+
isLoading = i(!1);
|
|
73
|
+
isPlaying = i(!1);
|
|
74
|
+
audioElement;
|
|
75
|
+
disposed = !1;
|
|
76
|
+
constructor(n, r) {
|
|
77
|
+
this.url = n, this.onDisposed = r, this.audioElement = t(), this.audioElement.addEventListener("ended", this.onEnded), this.audioElement.src = n, this.isLoading.value = !0, this.audioElement.play().then(() => {
|
|
78
|
+
this.isPlaying.value = !0;
|
|
79
|
+
}).catch(() => {
|
|
80
|
+
e.error("音频播放失败"), this.dispose();
|
|
81
|
+
}).finally(() => {
|
|
82
|
+
this.isLoading.value = !1;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
dispose() {
|
|
86
|
+
this.isPlaying.value = !1, this.disposed || (this.disposed = !0, this.audioElement.removeEventListener("ended", this.onEnded), n(this.audioElement), this.onDisposed(this.url));
|
|
87
|
+
}
|
|
88
|
+
onEnded = () => {
|
|
89
|
+
this.dispose();
|
|
90
|
+
};
|
|
91
|
+
}, u = new class {
|
|
92
|
+
players = /* @__PURE__ */ new Map();
|
|
93
|
+
play(e, t) {
|
|
94
|
+
if (this.players.has(e)) {
|
|
95
|
+
let t = this.players.get(e);
|
|
96
|
+
return {
|
|
97
|
+
isLoading: t.isLoading,
|
|
98
|
+
isPlaying: t.isPlaying
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
t && this.release();
|
|
102
|
+
let n = new l(e, (e) => {
|
|
103
|
+
this.players.delete(e);
|
|
104
|
+
});
|
|
105
|
+
return this.players.set(e, n), {
|
|
106
|
+
isLoading: n.isLoading,
|
|
107
|
+
isPlaying: n.isPlaying
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
release(e) {
|
|
111
|
+
if (e !== void 0) this.players.get(e)?.dispose();
|
|
112
|
+
else for (let e of [...this.players.values()]) e.dispose();
|
|
113
|
+
}
|
|
114
|
+
}();
|
|
115
|
+
function d(e, t = !0) {
|
|
116
|
+
return u.play(e, t);
|
|
117
|
+
}
|
|
118
|
+
function f(e) {
|
|
119
|
+
u.release(e);
|
|
120
|
+
}
|
|
121
|
+
// ../../packages/dlzn-ui/utils/gather.ts
|
|
122
|
+
function p(e, t) {
|
|
123
|
+
let n = Array.isArray(t), i = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ?? r(t));
|
|
124
|
+
return n ? i : i[0];
|
|
125
|
+
}
|
|
126
|
+
export { c as a, s as i, d as n, f as r, p as t };
|
package/components/app/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as TApp } from "../../chunks/app-
|
|
1
|
+
export { t as TApp } from "../../chunks/app-Bi5IK4Co.mjs";
|