@maketribe/ms-app 4.0.8 → 4.0.9
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/dist/cjs/{404-BcyBYA9h.cjs → 404-BPEClOTg.cjs} +2 -2
- package/dist/cjs/{404-BcyBYA9h.cjs.map → 404-BPEClOTg.cjs.map} +1 -1
- package/dist/cjs/{Editor-CWX7UR6p.cjs → Editor-Dm6iVXqg.cjs} +3 -3
- package/dist/cjs/{Editor-CWX7UR6p.cjs.map → Editor-Dm6iVXqg.cjs.map} +1 -1
- package/dist/cjs/Editor-UijVew0S.cjs.map +1 -1
- package/dist/cjs/{Editor-CkUewz0F.cjs → Editor-r0C51uF9.cjs} +2 -2
- package/dist/cjs/{Editor-CkUewz0F.cjs.map → Editor-r0C51uF9.cjs.map} +1 -1
- package/dist/cjs/{PermissionManage-CEajKRMq.cjs → PermissionManage-C7Xg-wii.cjs} +4 -5
- package/dist/cjs/{PermissionManage-CEajKRMq.cjs.map → PermissionManage-C7Xg-wii.cjs.map} +1 -1
- package/dist/cjs/{ResourceSelectInput-CwjSseu5.cjs → ResourceSelectInput-CwlmTqbd.cjs} +2 -2
- package/dist/cjs/ResourceSelectInput-CwlmTqbd.cjs.map +1 -0
- package/dist/cjs/{dialog-UiUickaR.cjs → dialog-Cvm2-doC.cjs} +2 -2
- package/dist/cjs/{dialog-UiUickaR.cjs.map → dialog-Cvm2-doC.cjs.map} +1 -1
- package/dist/cjs/{dialog-DPSFSbLg.cjs → dialog-DMcs6fRc.cjs} +2 -2
- package/dist/cjs/{dialog-DPSFSbLg.cjs.map → dialog-DMcs6fRc.cjs.map} +1 -1
- package/dist/cjs/{dialog-CUp1sqak.cjs → dialog-DNfS8tGa.cjs} +2 -2
- package/dist/cjs/{dialog-CUp1sqak.cjs.map → dialog-DNfS8tGa.cjs.map} +1 -1
- package/dist/cjs/{edit-Cv-bvSO-.cjs → edit-DJ4DPrce.cjs} +4 -5
- package/dist/cjs/{edit-Cv-bvSO-.cjs.map → edit-DJ4DPrce.cjs.map} +1 -1
- package/dist/cjs/index-1agV8Gnh.cjs.map +1 -1
- package/dist/cjs/{index-B5Jk76qD.cjs → index-B4ZWoHMl.cjs} +4 -6
- package/dist/cjs/{index-B5Jk76qD.cjs.map → index-B4ZWoHMl.cjs.map} +1 -1
- package/dist/cjs/{index-CCd6UbrI.cjs → index-B6GntGqH.cjs} +4 -4
- package/dist/cjs/{index-CCd6UbrI.cjs.map → index-B6GntGqH.cjs.map} +1 -1
- package/dist/cjs/{index-D8ePTW5B.cjs → index-B9rw_5us.cjs} +3 -4
- package/dist/cjs/{index-D8ePTW5B.cjs.map → index-B9rw_5us.cjs.map} +1 -1
- package/dist/cjs/{index-BteK92_G.cjs → index-BAbHrjt0.cjs} +2 -2
- package/dist/cjs/{index-BteK92_G.cjs.map → index-BAbHrjt0.cjs.map} +1 -1
- package/dist/cjs/{index-CFstnXe5.cjs → index-BC2an1Uu.cjs} +2 -2
- package/dist/cjs/{index-CFstnXe5.cjs.map → index-BC2an1Uu.cjs.map} +1 -1
- package/dist/cjs/{index-wXYz-VtP.cjs → index-BCw3a06g.cjs} +4 -10
- package/dist/cjs/{index-wXYz-VtP.cjs.map → index-BCw3a06g.cjs.map} +1 -1
- package/dist/cjs/{index-_UZpv7yM.cjs → index-BI4quwn5.cjs} +3 -4
- package/dist/cjs/{index-_UZpv7yM.cjs.map → index-BI4quwn5.cjs.map} +1 -1
- package/dist/cjs/{index-BORfIpo4.cjs → index-BUCV8-xD.cjs} +872 -1129
- package/dist/cjs/index-BUCV8-xD.cjs.map +1 -0
- package/dist/cjs/{index-CzZco8dM.cjs → index-BbTdkhEQ.cjs} +2 -2
- package/dist/cjs/{index-CzZco8dM.cjs.map → index-BbTdkhEQ.cjs.map} +1 -1
- package/dist/cjs/{index-DewyGVMj.cjs → index-C3g5CFYi.cjs} +3 -3
- package/dist/cjs/{index-DewyGVMj.cjs.map → index-C3g5CFYi.cjs.map} +1 -1
- package/dist/cjs/{index-C2CjifJI.cjs → index-C8QLFii6.cjs} +3 -3
- package/dist/cjs/{index-C2CjifJI.cjs.map → index-C8QLFii6.cjs.map} +1 -1
- package/dist/cjs/index-CZGf6tYf.cjs.map +1 -1
- package/dist/cjs/{index-DOZKDPia.cjs → index-C_-dvvOO.cjs} +17 -32
- package/dist/cjs/{index-DOZKDPia.cjs.map → index-C_-dvvOO.cjs.map} +1 -1
- package/dist/cjs/{index-B00QCsLs.cjs → index-CgnYqmo9.cjs} +3 -3
- package/dist/cjs/{index-B00QCsLs.cjs.map → index-CgnYqmo9.cjs.map} +1 -1
- package/dist/cjs/index-Cj3GY0CU.cjs.map +1 -1
- package/dist/cjs/{index-DOraGvyA.cjs → index-CpROwYqz.cjs} +2 -2
- package/dist/cjs/{index-DOraGvyA.cjs.map → index-CpROwYqz.cjs.map} +1 -1
- package/dist/cjs/{index-agouMhUr.cjs → index-CrMSJRSa.cjs} +2 -2
- package/dist/cjs/{index-agouMhUr.cjs.map → index-CrMSJRSa.cjs.map} +1 -1
- package/dist/cjs/{index-wA9TDr88.cjs → index-Cz456tw_.cjs} +2 -2
- package/dist/cjs/{index-wA9TDr88.cjs.map → index-Cz456tw_.cjs.map} +1 -1
- package/dist/cjs/{index-CBwkhmHa.cjs → index-D7f3Rl6k.cjs} +3 -3
- package/dist/cjs/{index-CBwkhmHa.cjs.map → index-D7f3Rl6k.cjs.map} +1 -1
- package/dist/cjs/index-D9rm8vzi.cjs.map +1 -1
- package/dist/cjs/{index-CaydAoTZ.cjs → index-DAFPSj10.cjs} +3 -3
- package/dist/cjs/{index-CaydAoTZ.cjs.map → index-DAFPSj10.cjs.map} +1 -1
- package/dist/cjs/{index-BcQEWDfn.cjs → index-DU1N0l6j.cjs} +2 -2
- package/dist/cjs/{index-BcQEWDfn.cjs.map → index-DU1N0l6j.cjs.map} +1 -1
- package/dist/cjs/{index-BRubaJrC.cjs → index-DXasMfCq.cjs} +5 -8
- package/dist/cjs/{index-BRubaJrC.cjs.map → index-DXasMfCq.cjs.map} +1 -1
- package/dist/cjs/{index-DlsPF3in.cjs → index-DZUlc_v7.cjs} +2 -2
- package/dist/cjs/index-DZUlc_v7.cjs.map +1 -0
- package/dist/cjs/index-D_CB0k2e.cjs.map +1 -1
- package/dist/cjs/{index-W4RDWU_d.cjs → index-DdcsqstF.cjs} +2 -2
- package/dist/cjs/{index-W4RDWU_d.cjs.map → index-DdcsqstF.cjs.map} +1 -1
- package/dist/cjs/{index-CxRsoIKT.cjs → index-DhYT_qm1.cjs} +6 -11
- package/dist/cjs/{index-CxRsoIKT.cjs.map → index-DhYT_qm1.cjs.map} +1 -1
- package/dist/cjs/{index-cm5gBzWf.cjs → index-Dsq6ODhZ.cjs} +2 -2
- package/dist/cjs/{index-cm5gBzWf.cjs.map → index-Dsq6ODhZ.cjs.map} +1 -1
- package/dist/cjs/{index-CdaDFrD9.cjs → index-DwvlZC6R.cjs} +2 -2
- package/dist/cjs/{index-CdaDFrD9.cjs.map → index-DwvlZC6R.cjs.map} +1 -1
- package/dist/cjs/index-RjnvS-h4.cjs.map +1 -1
- package/dist/cjs/{index-QKfdZjj-.cjs → index-WOD9EhUR.cjs} +2 -2
- package/dist/cjs/{index-QKfdZjj-.cjs.map → index-WOD9EhUR.cjs.map} +1 -1
- package/dist/cjs/{index-B_ZwReuq.cjs → index-XCAqvZkT.cjs} +2 -2
- package/dist/cjs/index-XCAqvZkT.cjs.map +1 -0
- package/dist/cjs/{index-DiYVRCa9.cjs → index-i7_EofWw.cjs} +4 -5
- package/dist/cjs/{index-DiYVRCa9.cjs.map → index-i7_EofWw.cjs.map} +1 -1
- package/dist/cjs/{index-Cep5uyzP.cjs → index-q1_p8QOz.cjs} +2 -2
- package/dist/cjs/{index-Cep5uyzP.cjs.map → index-q1_p8QOz.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{style.css → ms-app.css} +13 -13
- package/dist/cjs/{normal-BJ3nj7k7.cjs → normal-BwrvpsP7.cjs} +2 -2
- package/dist/cjs/{normal-BJ3nj7k7.cjs.map → normal-BwrvpsP7.cjs.map} +1 -1
- package/dist/cjs/{normal-Ct1bhILi.cjs → normal-dqsyELbO.cjs} +2 -2
- package/dist/cjs/{normal-Ct1bhILi.cjs.map → normal-dqsyELbO.cjs.map} +1 -1
- package/dist/cjs/{table-DFXzVtCV.cjs → table-DwtI3Z1Y.cjs} +5 -5
- package/dist/cjs/{table-DFXzVtCV.cjs.map → table-DwtI3Z1Y.cjs.map} +1 -1
- package/dist/cjs/use-condition-BsNGbgF4.cjs.map +1 -1
- package/dist/esm/{404-4GjdGOUn.js → 404-D-X3EKEl.js} +3 -3
- package/dist/esm/{404-4GjdGOUn.js.map → 404-D-X3EKEl.js.map} +1 -1
- package/dist/esm/Editor-C6qfKcVi.js.map +1 -1
- package/dist/esm/{Editor-CxZOYEcy.js → Editor-CPeJtlen.js} +2 -2
- package/dist/esm/{Editor-CxZOYEcy.js.map → Editor-CPeJtlen.js.map} +1 -1
- package/dist/esm/{Editor-DRNRitxW.js → Editor-D8ao5xa_.js} +3 -3
- package/dist/esm/{Editor-DRNRitxW.js.map → Editor-D8ao5xa_.js.map} +1 -1
- package/dist/esm/{PermissionManage-CI105J0X.js → PermissionManage-Drqh6bZl.js} +6 -7
- package/dist/esm/{PermissionManage-CI105J0X.js.map → PermissionManage-Drqh6bZl.js.map} +1 -1
- package/dist/esm/{ResourceSelectInput-fCjibeX7.js → ResourceSelectInput-Dh1liggt.js} +2 -2
- package/dist/esm/{ResourceSelectInput-fCjibeX7.js.map → ResourceSelectInput-Dh1liggt.js.map} +1 -1
- package/dist/esm/{dialog-CEPLQYPs.js → dialog-BCUjKmRJ.js} +3 -3
- package/dist/esm/{dialog-CEPLQYPs.js.map → dialog-BCUjKmRJ.js.map} +1 -1
- package/dist/esm/{dialog-BRO6K-fZ.js → dialog-Dfw2Hyma.js} +3 -3
- package/dist/esm/{dialog-BRO6K-fZ.js.map → dialog-Dfw2Hyma.js.map} +1 -1
- package/dist/esm/{dialog-CuqyBbA4.js → dialog-Dx1_PByu.js} +3 -3
- package/dist/esm/{dialog-CuqyBbA4.js.map → dialog-Dx1_PByu.js.map} +1 -1
- package/dist/esm/{edit-BQMsh2Wu.js → edit-CL9ew0K5.js} +5 -6
- package/dist/esm/{edit-BQMsh2Wu.js.map → edit-CL9ew0K5.js.map} +1 -1
- package/dist/esm/{index-DiCx9Bo_.js → index-8_tegZTS.js} +3 -3
- package/dist/esm/{index-DiCx9Bo_.js.map → index-8_tegZTS.js.map} +1 -1
- package/dist/esm/{index-DAtEO7rT.js → index-9xY--M0f.js} +3 -3
- package/dist/esm/index-9xY--M0f.js.map +1 -0
- package/dist/esm/{index-BSRra91J.js → index-B-aUha22.js} +880 -1137
- package/dist/esm/index-B-aUha22.js.map +1 -0
- package/dist/esm/{index-BS0hsacU.js → index-BGATqI6o.js} +3 -3
- package/dist/esm/{index-BS0hsacU.js.map → index-BGATqI6o.js.map} +1 -1
- package/dist/esm/{index--2sHYJhe.js → index-BHRnbCp4.js} +5 -7
- package/dist/esm/{index--2sHYJhe.js.map → index-BHRnbCp4.js.map} +1 -1
- package/dist/esm/{index-C_Rjpa7v.js → index-BJyjbwYB.js} +4 -5
- package/dist/esm/{index-C_Rjpa7v.js.map → index-BJyjbwYB.js.map} +1 -1
- package/dist/esm/{index-BIGLf9ZU.js → index-BM4RT6bs.js} +2 -2
- package/dist/esm/{index-BIGLf9ZU.js.map → index-BM4RT6bs.js.map} +1 -1
- package/dist/esm/index-BOLuOARv.js.map +1 -1
- package/dist/esm/{index-zJ0HunNp.js → index-BXfKq4TE.js} +3 -3
- package/dist/esm/{index-zJ0HunNp.js.map → index-BXfKq4TE.js.map} +1 -1
- package/dist/esm/{index-PpPO-af8.js → index-B_WzSRqh.js} +3 -3
- package/dist/esm/{index-PpPO-af8.js.map → index-B_WzSRqh.js.map} +1 -1
- package/dist/esm/index-Baelgnzy.js.map +1 -1
- package/dist/esm/{index-CBsL44AI.js → index-BesRQOOQ.js} +2 -2
- package/dist/esm/{index-CBsL44AI.js.map → index-BesRQOOQ.js.map} +1 -1
- package/dist/esm/{index-CszzgnNr.js → index-Bhhtz3Yu.js} +6 -9
- package/dist/esm/{index-CszzgnNr.js.map → index-Bhhtz3Yu.js.map} +1 -1
- package/dist/esm/{index-DtTgZxBA.js → index-BsWs1zP5.js} +2 -2
- package/dist/esm/{index-DtTgZxBA.js.map → index-BsWs1zP5.js.map} +1 -1
- package/dist/esm/{index-DwKEx8TN.js → index-BuTSTk63.js} +7 -12
- package/dist/esm/{index-DwKEx8TN.js.map → index-BuTSTk63.js.map} +1 -1
- package/dist/esm/{index-BX6mdjO9.js → index-ByFdp6oy.js} +2 -2
- package/dist/esm/{index-BX6mdjO9.js.map → index-ByFdp6oy.js.map} +1 -1
- package/dist/esm/{index-B9oVfLBc.js → index-CG4NeJSD.js} +18 -33
- package/dist/esm/{index-B9oVfLBc.js.map → index-CG4NeJSD.js.map} +1 -1
- package/dist/esm/index-CII7QOSh.js.map +1 -1
- package/dist/esm/{index-C3a2vEDs.js → index-CrIWIc_t.js} +3 -3
- package/dist/esm/{index-C3a2vEDs.js.map → index-CrIWIc_t.js.map} +1 -1
- package/dist/esm/{index-OWRQrJ-M.js → index-D4UQG5qr.js} +3 -3
- package/dist/esm/{index-OWRQrJ-M.js.map → index-D4UQG5qr.js.map} +1 -1
- package/dist/esm/{index-WLPh41ZY.js → index-DIjf8saG.js} +3 -3
- package/dist/esm/{index-WLPh41ZY.js.map → index-DIjf8saG.js.map} +1 -1
- package/dist/esm/{index-BtN1bV1g.js → index-DNLqF2ga.js} +4 -10
- package/dist/esm/{index-BtN1bV1g.js.map → index-DNLqF2ga.js.map} +1 -1
- package/dist/esm/{index-BAOwezV3.js → index-DRMoT6dv.js} +3 -3
- package/dist/esm/index-DRMoT6dv.js.map +1 -0
- package/dist/esm/index-DVjlAsMm.js.map +1 -1
- package/dist/esm/{index-YmaFKgAf.js → index-Dc66zrKf.js} +3 -3
- package/dist/esm/{index-YmaFKgAf.js.map → index-Dc66zrKf.js.map} +1 -1
- package/dist/esm/{index-BTi2mAxZ.js → index-Df_PDwBj.js} +4 -4
- package/dist/esm/{index-BTi2mAxZ.js.map → index-Df_PDwBj.js.map} +1 -1
- package/dist/esm/{index-DkEwBuFg.js → index-DjB2Bpvo.js} +2 -2
- package/dist/esm/{index-DkEwBuFg.js.map → index-DjB2Bpvo.js.map} +1 -1
- package/dist/esm/{index-BsryWmE_.js → index-DwmNH96j.js} +2 -2
- package/dist/esm/{index-BsryWmE_.js.map → index-DwmNH96j.js.map} +1 -1
- package/dist/esm/{index-B1ZXiH2d.js → index-MQ8OZGCg.js} +2 -2
- package/dist/esm/{index-B1ZXiH2d.js.map → index-MQ8OZGCg.js.map} +1 -1
- package/dist/esm/{index-BPlv3RkM.js → index-RIqErp5L.js} +4 -5
- package/dist/esm/{index-BPlv3RkM.js.map → index-RIqErp5L.js.map} +1 -1
- package/dist/esm/index-UGKoGZpd.js.map +1 -1
- package/dist/esm/{index-DIB6K4w5.js → index-X4uZVo2B.js} +2 -2
- package/dist/esm/{index-DIB6K4w5.js.map → index-X4uZVo2B.js.map} +1 -1
- package/dist/esm/index-YO7GGbnc.js.map +1 -1
- package/dist/esm/{index-B5rCF_Da.js → index-nAOtrNQ-.js} +4 -5
- package/dist/esm/{index-B5rCF_Da.js.map → index-nAOtrNQ-.js.map} +1 -1
- package/dist/esm/{index-CKWllS0N.js → index-vFxwAa_4.js} +2 -2
- package/dist/esm/{index-CKWllS0N.js.map → index-vFxwAa_4.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{style.css → ms-app.css} +13 -13
- package/dist/esm/{normal-C2VgP5z2.js → normal-By6pxQ8V.js} +3 -3
- package/dist/esm/{normal-C2VgP5z2.js.map → normal-By6pxQ8V.js.map} +1 -1
- package/dist/esm/{normal-B2otSaQY.js → normal-IcqK9eiC.js} +3 -3
- package/dist/esm/{normal-B2otSaQY.js.map → normal-IcqK9eiC.js.map} +1 -1
- package/dist/esm/{table-BlqTjF3P.js → table-CDFkhcnd.js} +6 -6
- package/dist/esm/{table-BlqTjF3P.js.map → table-CDFkhcnd.js.map} +1 -1
- package/dist/esm/use-condition-CM-TzG8I.js.map +1 -1
- package/dist/types/components/basic/ConfigProvider/composables.d.ts +1 -1
- package/dist/types/components/basic/DataSelect/DataSelect.d.ts +2 -2
- package/dist/types/components/basic/DataSelect/index.d.ts +2 -2
- package/dist/types/components/basic/DataSelect/options.d.ts +1 -1
- package/dist/types/components/basic/DynamicFormPanel/DynamicFormPanel.d.ts +2 -2
- package/dist/types/components/basic/LexicalEditor/LexicalComposer.vue.d.ts +5 -9
- package/dist/types/components/basic/LexicalEditor/plugins/AutoFocusPlugin.vue.d.ts +5 -7
- package/dist/types/components/basic/LexicalEditor/plugins/HistoryPlugin.vue.d.ts +4 -6
- package/dist/types/components/basic/LexicalEditor/plugins/LexicalMarkdownShortcutPlugin.vue.d.ts +6 -8
- package/dist/types/components/basic/LexicalEditor/plugins/LinkPlugin.vue.d.ts +4 -6
- package/dist/types/components/basic/LexicalEditor/stage/ContentEditable.vue.d.ts +7 -27
- package/dist/types/components/basic/LexicalEditor/stage/index.vue.d.ts +5 -11
- package/dist/types/components/basic/SvgIcon/SvgIcon.vue.d.ts +6 -12
- package/dist/types/components/basic/VisualPageEditor/editor.vue.d.ts +7 -10
- package/dist/types/components/basic/VisualPageEditor/index.d.ts +3 -2
- package/dist/types/components/business/ResourceManager/index.d.ts +1 -1
- package/dist/types/components/business/ResourceManager/index.vue.d.ts +5 -9
- package/dist/types/components/business/Upload/UploadFile.vue.d.ts +7 -11
- package/dist/types/components/business/Upload/UploadImage.vue.d.ts +2 -2
- package/dist/types/components/business/Upload/UploadVideo.vue.d.ts +2 -2
- package/dist/types/components/business/Upload/index.d.ts +9 -9
- package/dist/types/components/business/Upload/options.d.ts +3 -3
- package/dist/types/components/data-model/data-form/data-form-options.d.ts +1 -1
- package/dist/types/components/data-model/data-form/data-form.vue.d.ts +18 -24
- package/dist/types/components/data-model/data-form/index.d.ts +6 -6
- package/dist/types/components/data-model/data-group-panel/index.vue.d.ts +18 -21
- package/dist/types/components/data-model/data-table/components/column-tag/column-tag-options.d.ts +1 -1
- package/dist/types/components/data-model/data-table/components/column-tag/column-tag.d.ts +2 -2
- package/dist/types/components/data-model/data-table/components/column-tag/index.d.ts +2 -2
- package/dist/types/components/data-model/data-table/data-table-options.d.ts +1 -1
- package/dist/types/components/data-model/data-table/data-table.vue.d.ts +9 -15
- package/dist/types/components/data-model/data-table/index.d.ts +6 -6
- package/dist/types/components/data-model/data-table/views/tree/index.d.ts +14 -14
- package/dist/types/components/data-model/data-table/views/tree/tree.d.ts +14 -14
- package/dist/types/components/data-model/data-tree-list/index.d.ts +2 -2
- package/dist/types/components/data-model/data-tree-list/index.vue.d.ts +8 -996
- package/dist/types/components/layouts/AsyncComponentView/index.d.ts +1 -1
- package/dist/types/components/layouts/AsyncComponentView/index.vue.d.ts +5 -9
- package/dist/types/components/layouts/ListItem/index.d.ts +1 -1
- package/dist/types/components/layouts/ListItem/index.vue.d.ts +5 -9
- package/dist/types/components/layouts/PagePanel/index.d.ts +15 -8
- package/dist/types/components/layouts/PagePanel/index.vue.d.ts +19 -16
- package/dist/types/components/layouts/SimplePageLayout/index.d.ts +1 -1
- package/dist/types/components/layouts/SimplePageLayout/index.vue.d.ts +5 -9
- package/dist/types/components/layouts/SlideFadeTransition/index.d.ts +1 -1
- package/dist/types/components/layouts/SlideFadeTransition/index.vue.d.ts +5 -9
- package/dist/types/layouts/components/Breadcrumb/index.vue.d.ts +5 -9
- package/dist/types/layouts/components/Breadcrumb/item.vue.d.ts +12 -20
- package/dist/types/layouts/components/Kbd/index.vue.d.ts +5 -9
- package/dist/types/layouts/components/Logo/index.vue.d.ts +6 -9
- package/dist/types/layouts/components/Menu/index.vue.d.ts +2 -3
- package/dist/types/layouts/components/Menu/item.vue.d.ts +2 -3
- package/dist/types/layouts/components/Menu/sub.vue.d.ts +2 -3
- package/dist/types/layouts/store/modules/tabbar.d.ts +3 -3
- package/dist/types/layouts/utils/composables/useViewTransition.d.ts +1 -1
- package/package.json +10 -10
- package/dist/cjs/ResourceSelectInput-CwjSseu5.cjs.map +0 -1
- package/dist/cjs/index-BORfIpo4.cjs.map +0 -1
- package/dist/cjs/index-B_ZwReuq.cjs.map +0 -1
- package/dist/cjs/index-DlsPF3in.cjs.map +0 -1
- package/dist/esm/index-BAOwezV3.js.map +0 -1
- package/dist/esm/index-BSRra91J.js.map +0 -1
- package/dist/esm/index-DAtEO7rT.js.map +0 -1
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja;
|
|
6
2
|
const vue = require("vue");
|
|
7
3
|
const dm = require("@maketribe/dm");
|
|
8
4
|
const elementPlus = require("element-plus");
|
|
@@ -12,7 +8,6 @@ const request = require("@maketribe/request");
|
|
|
12
8
|
const locale = require("@maketribe/locale");
|
|
13
9
|
const lodashEs = require("lodash-es");
|
|
14
10
|
const pinia$1 = require("pinia");
|
|
15
|
-
const merge = require("lodash-es/merge");
|
|
16
11
|
const path = require("path-browserify");
|
|
17
12
|
const vue$1 = require("@iconify/vue");
|
|
18
13
|
const iconsVue = require("@element-plus/icons-vue");
|
|
@@ -170,84 +165,84 @@ class DataTableComponents extends dm.Components {
|
|
|
170
165
|
name: "MKColumnAction",
|
|
171
166
|
title: "操作",
|
|
172
167
|
component: vue.defineAsyncComponent(
|
|
173
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
168
|
+
async () => Promise.resolve().then(() => require("./index-DdcsqstF.cjs"))
|
|
174
169
|
)
|
|
175
170
|
});
|
|
176
171
|
this.registerComponent({
|
|
177
172
|
name: "MKColumnText",
|
|
178
173
|
title: "文本",
|
|
179
174
|
component: vue.defineAsyncComponent(
|
|
180
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
175
|
+
async () => Promise.resolve().then(() => require("./index-D7f3Rl6k.cjs"))
|
|
181
176
|
)
|
|
182
177
|
});
|
|
183
178
|
this.registerComponent({
|
|
184
179
|
name: "MKColumnObjectMappingText",
|
|
185
180
|
title: "对象映射文本",
|
|
186
181
|
component: vue.defineAsyncComponent(
|
|
187
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
182
|
+
async () => Promise.resolve().then(() => require("./index-DAFPSj10.cjs"))
|
|
188
183
|
)
|
|
189
184
|
});
|
|
190
185
|
this.registerComponent({
|
|
191
186
|
name: "MKColumnImage",
|
|
192
187
|
title: "图片",
|
|
193
188
|
component: vue.defineAsyncComponent(
|
|
194
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
189
|
+
async () => Promise.resolve().then(() => require("./index-Dsq6ODhZ.cjs"))
|
|
195
190
|
)
|
|
196
191
|
});
|
|
197
192
|
this.registerComponent({
|
|
198
193
|
name: "MKColumnSelect",
|
|
199
194
|
title: "行选择",
|
|
200
195
|
component: vue.defineAsyncComponent(
|
|
201
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
196
|
+
async () => Promise.resolve().then(() => require("./index-DU1N0l6j.cjs"))
|
|
202
197
|
)
|
|
203
198
|
});
|
|
204
199
|
this.registerComponent({
|
|
205
200
|
name: "MKColumnJson",
|
|
206
201
|
title: "JSON",
|
|
207
202
|
component: vue.defineAsyncComponent(
|
|
208
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
203
|
+
async () => Promise.resolve().then(() => require("./index-CrMSJRSa.cjs"))
|
|
209
204
|
)
|
|
210
205
|
});
|
|
211
206
|
this.registerComponent({
|
|
212
207
|
name: "MKColumnDate",
|
|
213
208
|
title: "日期时间",
|
|
214
209
|
component: vue.defineAsyncComponent(
|
|
215
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
210
|
+
async () => Promise.resolve().then(() => require("./index-B6GntGqH.cjs"))
|
|
216
211
|
)
|
|
217
212
|
});
|
|
218
213
|
this.registerComponent({
|
|
219
214
|
name: "MKColumnSwitch",
|
|
220
215
|
title: "开关",
|
|
221
216
|
component: vue.defineAsyncComponent(
|
|
222
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
217
|
+
async () => Promise.resolve().then(() => require("./index-CpROwYqz.cjs"))
|
|
223
218
|
)
|
|
224
219
|
});
|
|
225
220
|
this.registerComponent({
|
|
226
221
|
name: "MKColumnTag",
|
|
227
222
|
title: "标签",
|
|
228
223
|
component: vue.defineAsyncComponent(
|
|
229
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
224
|
+
async () => Promise.resolve().then(() => require("./index-DwvlZC6R.cjs"))
|
|
230
225
|
)
|
|
231
226
|
});
|
|
232
227
|
this.registerComponent({
|
|
233
228
|
name: "MKColumnLink",
|
|
234
229
|
title: "链接",
|
|
235
230
|
component: vue.defineAsyncComponent(
|
|
236
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
231
|
+
async () => Promise.resolve().then(() => require("./index-CgnYqmo9.cjs"))
|
|
237
232
|
)
|
|
238
233
|
});
|
|
239
234
|
this.registerComponent({
|
|
240
235
|
name: "MKColumnSort",
|
|
241
236
|
title: "拖拽排序",
|
|
242
237
|
component: vue.defineAsyncComponent(
|
|
243
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
238
|
+
async () => Promise.resolve().then(() => require("./index-Cz456tw_.cjs"))
|
|
244
239
|
)
|
|
245
240
|
});
|
|
246
241
|
this.registerComponent({
|
|
247
242
|
name: "MKColumnIcon",
|
|
248
243
|
title: "图标",
|
|
249
244
|
component: vue.defineAsyncComponent(
|
|
250
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
245
|
+
async () => Promise.resolve().then(() => require("./index-C3g5CFYi.cjs"))
|
|
251
246
|
)
|
|
252
247
|
});
|
|
253
248
|
}
|
|
@@ -273,14 +268,14 @@ class DataTableHeaderComponents extends dm.Components {
|
|
|
273
268
|
name: "MKBatchOpt",
|
|
274
269
|
title: "批量操作",
|
|
275
270
|
component: vue.defineAsyncComponent(
|
|
276
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
271
|
+
async () => Promise.resolve().then(() => require("./index-i7_EofWw.cjs"))
|
|
277
272
|
)
|
|
278
273
|
});
|
|
279
274
|
this.registerComponent({
|
|
280
275
|
name: "MKTableFilter",
|
|
281
276
|
title: "筛选",
|
|
282
277
|
component: vue.defineAsyncComponent(
|
|
283
|
-
async () => Promise.resolve().then(() => require("./index-
|
|
278
|
+
async () => Promise.resolve().then(() => require("./index-C_-dvvOO.cjs"))
|
|
284
279
|
)
|
|
285
280
|
});
|
|
286
281
|
}
|
|
@@ -323,7 +318,7 @@ class DataFormComponents extends dm.Components {
|
|
|
323
318
|
name: "MKFormRadioBox",
|
|
324
319
|
title: "单选框",
|
|
325
320
|
component: vue.defineAsyncComponent(
|
|
326
|
-
() => Promise.resolve().then(() => require("./index-
|
|
321
|
+
() => Promise.resolve().then(() => require("./index-C8QLFii6.cjs"))
|
|
327
322
|
)
|
|
328
323
|
});
|
|
329
324
|
this.registerComponent({
|
|
@@ -358,7 +353,7 @@ class DataFormComponents extends dm.Components {
|
|
|
358
353
|
name: "MKFormDetail",
|
|
359
354
|
title: "明细",
|
|
360
355
|
component: vue.defineAsyncComponent(
|
|
361
|
-
() => Promise.resolve().then(() => require("./index-
|
|
356
|
+
() => Promise.resolve().then(() => require("./index-B4ZWoHMl.cjs"))
|
|
362
357
|
)
|
|
363
358
|
});
|
|
364
359
|
this.registerComponent({
|
|
@@ -379,14 +374,14 @@ class DataFormComponents extends dm.Components {
|
|
|
379
374
|
name: "MKDataTreeSelect",
|
|
380
375
|
title: "树选择器",
|
|
381
376
|
component: vue.defineAsyncComponent(
|
|
382
|
-
() => Promise.resolve().then(() => require("./index-
|
|
377
|
+
() => Promise.resolve().then(() => require("./index-BCw3a06g.cjs"))
|
|
383
378
|
)
|
|
384
379
|
});
|
|
385
380
|
this.registerComponent({
|
|
386
381
|
name: "MKResourceSelectInput",
|
|
387
382
|
title: "资源选择输入框",
|
|
388
383
|
component: vue.defineAsyncComponent(
|
|
389
|
-
() => Promise.resolve().then(() => require("./ResourceSelectInput-
|
|
384
|
+
() => Promise.resolve().then(() => require("./ResourceSelectInput-CwlmTqbd.cjs"))
|
|
390
385
|
)
|
|
391
386
|
});
|
|
392
387
|
this.registerComponent({
|
|
@@ -422,7 +417,7 @@ class DataFilterComponents extends dm.Components {
|
|
|
422
417
|
title: "下拉框",
|
|
423
418
|
defaultOperator: dm.Operator.IN,
|
|
424
419
|
component: vue.defineAsyncComponent(
|
|
425
|
-
() => Promise.resolve().then(() => require("./index-
|
|
420
|
+
() => Promise.resolve().then(() => require("./index-BbTdkhEQ.cjs"))
|
|
426
421
|
)
|
|
427
422
|
});
|
|
428
423
|
this.registerComponent({
|
|
@@ -430,7 +425,7 @@ class DataFilterComponents extends dm.Components {
|
|
|
430
425
|
title: "树形下拉框",
|
|
431
426
|
defaultOperator: dm.Operator.IN,
|
|
432
427
|
component: vue.defineAsyncComponent(
|
|
433
|
-
() => Promise.resolve().then(() => require("./index-
|
|
428
|
+
() => Promise.resolve().then(() => require("./index-BCw3a06g.cjs"))
|
|
434
429
|
)
|
|
435
430
|
});
|
|
436
431
|
this.registerComponent({
|
|
@@ -469,18 +464,18 @@ class ConfigComponents extends dm.Components {
|
|
|
469
464
|
}
|
|
470
465
|
}
|
|
471
466
|
class MenuNode {
|
|
467
|
+
id;
|
|
468
|
+
iconName;
|
|
469
|
+
title;
|
|
470
|
+
permissionPoints;
|
|
471
|
+
route;
|
|
472
|
+
routes;
|
|
473
|
+
type;
|
|
474
|
+
path;
|
|
475
|
+
urlType;
|
|
476
|
+
children;
|
|
477
|
+
parent;
|
|
472
478
|
constructor(options) {
|
|
473
|
-
__publicField(this, "id");
|
|
474
|
-
__publicField(this, "iconName");
|
|
475
|
-
__publicField(this, "title");
|
|
476
|
-
__publicField(this, "permissionPoints");
|
|
477
|
-
__publicField(this, "route");
|
|
478
|
-
__publicField(this, "routes");
|
|
479
|
-
__publicField(this, "type");
|
|
480
|
-
__publicField(this, "path");
|
|
481
|
-
__publicField(this, "urlType");
|
|
482
|
-
__publicField(this, "children");
|
|
483
|
-
__publicField(this, "parent");
|
|
484
479
|
const { id, children, route, routes, iconName, title, path: path2, permissionPoints, urlType, type } = options;
|
|
485
480
|
this.id = id;
|
|
486
481
|
this.route = route ?? null;
|
|
@@ -505,15 +500,15 @@ class MenuNode {
|
|
|
505
500
|
}
|
|
506
501
|
}
|
|
507
502
|
class Menu extends utils.Disposable {
|
|
503
|
+
rootMenus = [];
|
|
504
|
+
_currentMenu = null;
|
|
505
|
+
isCollapsed = false;
|
|
506
|
+
isVisible = true;
|
|
507
|
+
permissionPointManager;
|
|
508
|
+
router;
|
|
509
|
+
currentMenuChangeEvent = this.register(new utils.Event());
|
|
508
510
|
constructor(permissionPointManager, router) {
|
|
509
511
|
super();
|
|
510
|
-
__publicField(this, "rootMenus", []);
|
|
511
|
-
__publicField(this, "_currentMenu", null);
|
|
512
|
-
__publicField(this, "isCollapsed", false);
|
|
513
|
-
__publicField(this, "isVisible", true);
|
|
514
|
-
__publicField(this, "permissionPointManager");
|
|
515
|
-
__publicField(this, "router");
|
|
516
|
-
__publicField(this, "currentMenuChangeEvent", this.register(new utils.Event()));
|
|
517
512
|
this.permissionPointManager = permissionPointManager;
|
|
518
513
|
this.router = router;
|
|
519
514
|
}
|
|
@@ -605,17 +600,17 @@ class Menu extends utils.Disposable {
|
|
|
605
600
|
}
|
|
606
601
|
}
|
|
607
602
|
class Tab extends utils.Disposable {
|
|
603
|
+
id;
|
|
604
|
+
title;
|
|
605
|
+
affix;
|
|
606
|
+
realRoute;
|
|
607
|
+
route;
|
|
608
|
+
beforeCloseEvent = this.register(new utils.Event());
|
|
609
|
+
refreshEvent = this.register(new utils.Event());
|
|
610
|
+
beforeSwitchEvent = this.register(new utils.Event());
|
|
611
|
+
tabs;
|
|
608
612
|
constructor(options) {
|
|
609
613
|
super();
|
|
610
|
-
__publicField(this, "id");
|
|
611
|
-
__publicField(this, "title");
|
|
612
|
-
__publicField(this, "affix");
|
|
613
|
-
__publicField(this, "realRoute");
|
|
614
|
-
__publicField(this, "route");
|
|
615
|
-
__publicField(this, "beforeCloseEvent", this.register(new utils.Event()));
|
|
616
|
-
__publicField(this, "refreshEvent", this.register(new utils.Event()));
|
|
617
|
-
__publicField(this, "beforeSwitchEvent", this.register(new utils.Event()));
|
|
618
|
-
__publicField(this, "tabs");
|
|
619
614
|
this.id = options.id;
|
|
620
615
|
this.title = options.title;
|
|
621
616
|
this.affix = options.affix ?? false;
|
|
@@ -634,25 +629,24 @@ class Tab extends utils.Disposable {
|
|
|
634
629
|
}
|
|
635
630
|
}
|
|
636
631
|
class Tabs extends utils.Disposable {
|
|
632
|
+
userSession;
|
|
633
|
+
_tabs = [];
|
|
634
|
+
_currentTab = null;
|
|
635
|
+
currentTabChangeEvent = this.register(
|
|
636
|
+
new utils.Event()
|
|
637
|
+
);
|
|
638
|
+
tabsChangeEvent = this.register(new utils.Event());
|
|
637
639
|
constructor(userSession) {
|
|
638
640
|
super();
|
|
639
|
-
__publicField(this, "userSession");
|
|
640
|
-
__publicField(this, "_tabs", []);
|
|
641
|
-
__publicField(this, "_currentTab", null);
|
|
642
|
-
__publicField(this, "currentTabChangeEvent", this.register(
|
|
643
|
-
new utils.Event()
|
|
644
|
-
));
|
|
645
|
-
__publicField(this, "tabsChangeEvent", this.register(new utils.Event()));
|
|
646
641
|
this.userSession = userSession;
|
|
647
642
|
}
|
|
648
643
|
init() {
|
|
649
644
|
const getAffixRoutes = () => {
|
|
650
|
-
var _a2;
|
|
651
645
|
let routes = this.userSession.vueRouter.getRoutes().slice();
|
|
652
646
|
const affixRoutes = [];
|
|
653
647
|
for (let i = 0; i < routes.length; i++) {
|
|
654
648
|
const route = routes[i];
|
|
655
|
-
if (
|
|
649
|
+
if (route.meta?.affix === true) {
|
|
656
650
|
affixRoutes.push(route);
|
|
657
651
|
}
|
|
658
652
|
}
|
|
@@ -708,12 +702,11 @@ class Tabs extends utils.Disposable {
|
|
|
708
702
|
return this.getTabs().find((tab) => tab.id === id) ?? null;
|
|
709
703
|
}
|
|
710
704
|
async closeTab(tab) {
|
|
711
|
-
var _a2;
|
|
712
705
|
if (await tab.beforeCloseEvent.emitAsync() === false) {
|
|
713
706
|
return;
|
|
714
707
|
}
|
|
715
708
|
const tabItemList = this.getTabs().slice();
|
|
716
|
-
if (
|
|
709
|
+
if (this.getCurrentTab()?.getID() !== tab.getID()) {
|
|
717
710
|
this.setTabs(tabItemList.filter((item) => item.getID() !== tab.getID()));
|
|
718
711
|
return;
|
|
719
712
|
}
|
|
@@ -754,11 +747,12 @@ class Tabs extends utils.Disposable {
|
|
|
754
747
|
this.setTabs([currentTab]);
|
|
755
748
|
}
|
|
756
749
|
}
|
|
757
|
-
|
|
750
|
+
class DataModelDefines {
|
|
751
|
+
static instance = new DataModelDefines();
|
|
752
|
+
_dataTableDefines;
|
|
753
|
+
_dataFormDefines;
|
|
754
|
+
_dataTreeDefines;
|
|
758
755
|
constructor() {
|
|
759
|
-
__publicField(this, "_dataTableDefines");
|
|
760
|
-
__publicField(this, "_dataFormDefines");
|
|
761
|
-
__publicField(this, "_dataTreeDefines");
|
|
762
756
|
this._dataTableDefines = /* @__PURE__ */ new Map();
|
|
763
757
|
this._dataFormDefines = /* @__PURE__ */ new Map();
|
|
764
758
|
this._dataTreeDefines = /* @__PURE__ */ new Map();
|
|
@@ -790,21 +784,19 @@ const _DataModelDefines = class _DataModelDefines {
|
|
|
790
784
|
registerDataTreeDefine(name, dataTreeDefine) {
|
|
791
785
|
this._dataTreeDefines.set(name, dataTreeDefine);
|
|
792
786
|
}
|
|
793
|
-
}
|
|
794
|
-
__publicField(_DataModelDefines, "instance", new _DataModelDefines());
|
|
795
|
-
let DataModelDefines = _DataModelDefines;
|
|
787
|
+
}
|
|
796
788
|
class UserInfo {
|
|
789
|
+
id;
|
|
790
|
+
account;
|
|
791
|
+
email;
|
|
792
|
+
nickName;
|
|
793
|
+
avatar;
|
|
794
|
+
isLocked;
|
|
795
|
+
isSuper;
|
|
796
|
+
payload;
|
|
797
|
+
roles;
|
|
798
|
+
permissionPoints;
|
|
797
799
|
constructor(msAppClient, payload, roles, permissionPoints) {
|
|
798
|
-
__publicField(this, "id");
|
|
799
|
-
__publicField(this, "account");
|
|
800
|
-
__publicField(this, "email");
|
|
801
|
-
__publicField(this, "nickName");
|
|
802
|
-
__publicField(this, "avatar");
|
|
803
|
-
__publicField(this, "isLocked");
|
|
804
|
-
__publicField(this, "isSuper");
|
|
805
|
-
__publicField(this, "payload");
|
|
806
|
-
__publicField(this, "roles");
|
|
807
|
-
__publicField(this, "permissionPoints");
|
|
808
800
|
this.id = payload.id;
|
|
809
801
|
this.avatar = payload.avatar;
|
|
810
802
|
this.account = payload.account;
|
|
@@ -832,10 +824,10 @@ class UserInfo {
|
|
|
832
824
|
}
|
|
833
825
|
const NORMALIZE_ROUTE_NAME_REG = /^dv\/([^/]+)\/([^/]+)(\/.+)?$/;
|
|
834
826
|
class Router extends utils.Disposable {
|
|
827
|
+
userSession;
|
|
828
|
+
routes = [];
|
|
835
829
|
constructor(userSession) {
|
|
836
830
|
super();
|
|
837
|
-
__publicField(this, "userSession");
|
|
838
|
-
__publicField(this, "routes", []);
|
|
839
831
|
this.userSession = userSession;
|
|
840
832
|
}
|
|
841
833
|
setRoutes(routes) {
|
|
@@ -863,7 +855,7 @@ class Router extends utils.Disposable {
|
|
|
863
855
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
864
856
|
name: defaultPageRoute.name,
|
|
865
857
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
866
|
-
component: () => Promise.resolve().then(() => require("./normal-
|
|
858
|
+
component: () => Promise.resolve().then(() => require("./normal-dqsyELbO.cjs")),
|
|
867
859
|
meta
|
|
868
860
|
});
|
|
869
861
|
break;
|
|
@@ -871,7 +863,7 @@ class Router extends utils.Disposable {
|
|
|
871
863
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
872
864
|
name: defaultPageRoute.name,
|
|
873
865
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
874
|
-
component: () => Promise.resolve().then(() => require("./dialog-
|
|
866
|
+
component: () => Promise.resolve().then(() => require("./dialog-DMcs6fRc.cjs")),
|
|
875
867
|
meta
|
|
876
868
|
});
|
|
877
869
|
break;
|
|
@@ -883,7 +875,7 @@ class Router extends utils.Disposable {
|
|
|
883
875
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
884
876
|
name: defaultPageRoute.name,
|
|
885
877
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
886
|
-
component: () => Promise.resolve().then(() => require("./dialog-
|
|
878
|
+
component: () => Promise.resolve().then(() => require("./dialog-DNfS8tGa.cjs")),
|
|
887
879
|
meta
|
|
888
880
|
});
|
|
889
881
|
break;
|
|
@@ -895,7 +887,7 @@ class Router extends utils.Disposable {
|
|
|
895
887
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
896
888
|
name: defaultPageRoute.name,
|
|
897
889
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
898
|
-
component: () => Promise.resolve().then(() => require("./dialog-
|
|
890
|
+
component: () => Promise.resolve().then(() => require("./dialog-Cvm2-doC.cjs")),
|
|
899
891
|
meta
|
|
900
892
|
});
|
|
901
893
|
break;
|
|
@@ -903,7 +895,7 @@ class Router extends utils.Disposable {
|
|
|
903
895
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
904
896
|
name: defaultPageRoute.name,
|
|
905
897
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
906
|
-
component: () => Promise.resolve().then(() => require("./normal-
|
|
898
|
+
component: () => Promise.resolve().then(() => require("./normal-BwrvpsP7.cjs")),
|
|
907
899
|
meta
|
|
908
900
|
});
|
|
909
901
|
}
|
|
@@ -913,7 +905,7 @@ class Router extends utils.Disposable {
|
|
|
913
905
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
914
906
|
name: defaultPageRoute.name,
|
|
915
907
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
916
|
-
component: () => Promise.resolve().then(() => require("./table-
|
|
908
|
+
component: () => Promise.resolve().then(() => require("./table-DwtI3Z1Y.cjs")),
|
|
917
909
|
meta
|
|
918
910
|
});
|
|
919
911
|
break;
|
|
@@ -921,7 +913,7 @@ class Router extends utils.Disposable {
|
|
|
921
913
|
vueRouter2.addRoute("mk-ms-layout", {
|
|
922
914
|
name: defaultPageRoute.name,
|
|
923
915
|
path: defaultPageRoute.route || `/dv/${name}/edit/:id?`,
|
|
924
|
-
component: () => Promise.resolve().then(() => require("./edit-
|
|
916
|
+
component: () => Promise.resolve().then(() => require("./edit-DJ4DPrce.cjs")),
|
|
925
917
|
meta
|
|
926
918
|
});
|
|
927
919
|
break;
|
|
@@ -947,8 +939,8 @@ class Router extends utils.Disposable {
|
|
|
947
939
|
}
|
|
948
940
|
}
|
|
949
941
|
class PermissionPointManager {
|
|
942
|
+
permissionPoints;
|
|
950
943
|
constructor() {
|
|
951
|
-
__publicField(this, "permissionPoints");
|
|
952
944
|
this.permissionPoints = [];
|
|
953
945
|
}
|
|
954
946
|
setPermissionPoints(permissionPoints) {
|
|
@@ -964,21 +956,21 @@ class PermissionPointManager {
|
|
|
964
956
|
}
|
|
965
957
|
let uid$2 = 0;
|
|
966
958
|
class UserSession extends utils.Disposable {
|
|
959
|
+
id = uid$2++;
|
|
960
|
+
msAppClient;
|
|
961
|
+
vueRouter;
|
|
962
|
+
userInfo;
|
|
963
|
+
menu;
|
|
964
|
+
tabs;
|
|
965
|
+
router;
|
|
966
|
+
permissionPointManager;
|
|
967
|
+
accessToken;
|
|
968
|
+
xAccessToken;
|
|
969
|
+
beforeInitRouterEvent = this.register(new utils.Event());
|
|
970
|
+
locking = false;
|
|
971
|
+
lockingChangeEvent = this.register(new utils.Event());
|
|
967
972
|
constructor(options) {
|
|
968
973
|
super();
|
|
969
|
-
__publicField(this, "id", uid$2++);
|
|
970
|
-
__publicField(this, "msAppClient");
|
|
971
|
-
__publicField(this, "vueRouter");
|
|
972
|
-
__publicField(this, "userInfo");
|
|
973
|
-
__publicField(this, "menu");
|
|
974
|
-
__publicField(this, "tabs");
|
|
975
|
-
__publicField(this, "router");
|
|
976
|
-
__publicField(this, "permissionPointManager");
|
|
977
|
-
__publicField(this, "accessToken");
|
|
978
|
-
__publicField(this, "xAccessToken");
|
|
979
|
-
__publicField(this, "beforeInitRouterEvent", this.register(new utils.Event()));
|
|
980
|
-
__publicField(this, "locking", false);
|
|
981
|
-
__publicField(this, "lockingChangeEvent", this.register(new utils.Event()));
|
|
982
974
|
this.msAppClient = options.msAppClient;
|
|
983
975
|
this.vueRouter = this.msAppClient.vueRouter;
|
|
984
976
|
this.userInfo = null;
|
|
@@ -1092,30 +1084,40 @@ const globalConfig = vue.ref();
|
|
|
1092
1084
|
function useGlobalConfig(key, defaultValue = void 0) {
|
|
1093
1085
|
const config = vue.getCurrentInstance() ? vue.inject(CONFIG_PROVIDER_CONTEXT_KEY, globalConfig) : globalConfig;
|
|
1094
1086
|
if (key) {
|
|
1095
|
-
return vue.computed(() =>
|
|
1096
|
-
var _a2;
|
|
1097
|
-
return ((_a2 = vue.unref(config)) == null ? void 0 : _a2[key]) ?? defaultValue;
|
|
1098
|
-
});
|
|
1087
|
+
return vue.computed(() => vue.unref(config)?.[key] ?? defaultValue);
|
|
1099
1088
|
}
|
|
1100
1089
|
return config;
|
|
1101
1090
|
}
|
|
1091
|
+
function mergeConfig(cfg, oldCfg) {
|
|
1092
|
+
const newCfg = {};
|
|
1093
|
+
Object.keys(oldCfg).forEach((k) => {
|
|
1094
|
+
if (cfg[k] !== void 0) {
|
|
1095
|
+
newCfg[k] = cfg[k];
|
|
1096
|
+
} else if (oldCfg[k] !== void 0) {
|
|
1097
|
+
newCfg[k] = oldCfg[k];
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
Object.keys(cfg).forEach((k) => {
|
|
1101
|
+
if (newCfg[k] === void 0 && cfg[k] !== void 0) {
|
|
1102
|
+
newCfg[k] = cfg[k];
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
return newCfg;
|
|
1106
|
+
}
|
|
1102
1107
|
function provideGlobalConfig(config, app, global = false) {
|
|
1103
1108
|
const inSetup = !!vue.getCurrentInstance();
|
|
1104
1109
|
const oldConfig = inSetup ? useGlobalConfig() : globalConfig;
|
|
1105
|
-
const provideFn =
|
|
1110
|
+
const provideFn = app?.provide ?? (inSetup ? vue.provide : void 0);
|
|
1106
1111
|
if (!provideFn) {
|
|
1107
1112
|
throw new Error("");
|
|
1108
1113
|
}
|
|
1109
|
-
const
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1114
|
+
const cfg = vue.unref(config);
|
|
1115
|
+
const context = vue.computed(() => !oldConfig?.value ? cfg : mergeConfig(cfg, oldConfig.value));
|
|
1116
|
+
if (Object.keys(context.value).filter((key) => context.value[key] !== void 0).length > 0) {
|
|
1117
|
+
vue.provide(CONFIG_PROVIDER_CONTEXT_KEY, context);
|
|
1118
|
+
if (global || !globalConfig.value) {
|
|
1119
|
+
globalConfig.value = context.value;
|
|
1113
1120
|
}
|
|
1114
|
-
return merge(oldConfig.value, cfg);
|
|
1115
|
-
});
|
|
1116
|
-
vue.provide(CONFIG_PROVIDER_CONTEXT_KEY, context);
|
|
1117
|
-
if (global || !globalConfig.value) {
|
|
1118
|
-
globalConfig.value = context.value;
|
|
1119
1121
|
}
|
|
1120
1122
|
return context;
|
|
1121
1123
|
}
|
|
@@ -1150,10 +1152,7 @@ const ConfigProvider = /* @__PURE__ */ vue.defineComponent({
|
|
|
1150
1152
|
slots
|
|
1151
1153
|
}) {
|
|
1152
1154
|
provideGlobalConfig(props);
|
|
1153
|
-
const currentLocale = vue.computed(() =>
|
|
1154
|
-
var _a2;
|
|
1155
|
-
return (_a2 = props.i18n) == null ? void 0 : _a2.currentLanguage;
|
|
1156
|
-
});
|
|
1155
|
+
const currentLocale = vue.computed(() => props.i18n?.currentLanguage);
|
|
1157
1156
|
return () => {
|
|
1158
1157
|
let _slot;
|
|
1159
1158
|
return vue.createVNode(elementPlus.ElConfigProvider, {
|
|
@@ -1169,13 +1168,9 @@ const useComponent = (componentName, components2) => {
|
|
|
1169
1168
|
const componentInfo = vue.computed(
|
|
1170
1169
|
() => vue.unref(components2).resolveComponent(vue.unref(componentName))
|
|
1171
1170
|
);
|
|
1172
|
-
const component = vue.computed(() =>
|
|
1173
|
-
var _a2;
|
|
1174
|
-
return ((_a2 = vue.unref(componentInfo)) == null ? void 0 : _a2.component) ?? null;
|
|
1175
|
-
});
|
|
1171
|
+
const component = vue.computed(() => vue.unref(componentInfo)?.component ?? null);
|
|
1176
1172
|
const componentProps = vue.computed(() => {
|
|
1177
|
-
|
|
1178
|
-
const componentProps2 = ((_a2 = vue.unref(componentInfo)) == null ? void 0 : _a2.defaultProps) ?? null;
|
|
1173
|
+
const componentProps2 = vue.unref(componentInfo)?.defaultProps ?? null;
|
|
1179
1174
|
return componentProps2 ? { ...componentProps2 } : null;
|
|
1180
1175
|
});
|
|
1181
1176
|
return { componentInfo, component, componentProps };
|
|
@@ -1198,10 +1193,7 @@ const useComponentWithDefault = (componentInfo, defaultComponentInfo) => {
|
|
|
1198
1193
|
};
|
|
1199
1194
|
const useRenderInfoComponent = (column, components2) => {
|
|
1200
1195
|
const columnComponentInfo = vue.computed(
|
|
1201
|
-
() =>
|
|
1202
|
-
var _a2;
|
|
1203
|
-
return ((_a2 = vue.unref(column)) == null ? void 0 : _a2.componentInfo) || "";
|
|
1204
|
-
}
|
|
1196
|
+
() => vue.unref(column)?.componentInfo || ""
|
|
1205
1197
|
);
|
|
1206
1198
|
const componentInfo = vue.ref(null);
|
|
1207
1199
|
vue.watch(
|
|
@@ -1219,19 +1211,15 @@ const useRenderInfoComponent = (column, components2) => {
|
|
|
1219
1211
|
},
|
|
1220
1212
|
{ immediate: true }
|
|
1221
1213
|
);
|
|
1222
|
-
const component = vue.computed(() =>
|
|
1223
|
-
var _a2;
|
|
1224
|
-
return ((_a2 = vue.unref(componentInfo)) == null ? void 0 : _a2.component) ?? null;
|
|
1225
|
-
});
|
|
1214
|
+
const component = vue.computed(() => vue.unref(componentInfo)?.component ?? null);
|
|
1226
1215
|
const componentProps = vue.computed(() => {
|
|
1227
|
-
var _a2;
|
|
1228
1216
|
const _componentInfo = vue.unref(componentInfo);
|
|
1229
1217
|
if (!_componentInfo) {
|
|
1230
1218
|
return null;
|
|
1231
1219
|
}
|
|
1232
1220
|
return {
|
|
1233
1221
|
..._componentInfo.defaultProps,
|
|
1234
|
-
...
|
|
1222
|
+
...vue.unref(column)?.componentProps
|
|
1235
1223
|
};
|
|
1236
1224
|
});
|
|
1237
1225
|
return {
|
|
@@ -1287,36 +1275,27 @@ const useI18n = () => {
|
|
|
1287
1275
|
return vue.unref(useGlobalConfig("i18n")) ?? null;
|
|
1288
1276
|
};
|
|
1289
1277
|
const onTabBeforeClose = (callback) => {
|
|
1290
|
-
|
|
1291
|
-
(_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeCloseEvent.once(
|
|
1278
|
+
MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeCloseEvent.once(
|
|
1292
1279
|
callback
|
|
1293
1280
|
);
|
|
1294
1281
|
};
|
|
1295
1282
|
const onTabRefresh = (callback) => {
|
|
1296
|
-
|
|
1297
|
-
(_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeSwitchEvent.on(
|
|
1283
|
+
MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeSwitchEvent.on(
|
|
1298
1284
|
callback
|
|
1299
1285
|
);
|
|
1300
1286
|
};
|
|
1301
1287
|
const onTabBeforeSwitch = (callback) => {
|
|
1302
|
-
|
|
1303
|
-
(_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeCloseEvent.on(
|
|
1288
|
+
MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeCloseEvent.on(
|
|
1304
1289
|
callback
|
|
1305
1290
|
);
|
|
1306
1291
|
};
|
|
1307
1292
|
const useCurrentTab = () => MSAppClient.instance.userSession.tabs.getCurrentTab() ?? null;
|
|
1308
|
-
const useHttpRequest = () =>
|
|
1309
|
-
var _a2;
|
|
1310
|
-
return ((_a2 = MSAppClient.instance) == null ? void 0 : _a2.httpRequest) ?? null;
|
|
1311
|
-
};
|
|
1293
|
+
const useHttpRequest = () => MSAppClient.instance?.httpRequest ?? null;
|
|
1312
1294
|
const useMSAppClient = () => {
|
|
1313
1295
|
const msAppClientContext = vue.inject(MSAPPCLIENT_CONTEXT_KEY);
|
|
1314
|
-
return
|
|
1315
|
-
};
|
|
1316
|
-
const useUserInfo = () => {
|
|
1317
|
-
var _a2, _b2;
|
|
1318
|
-
return ((_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) ?? null;
|
|
1296
|
+
return msAppClientContext?.msAppClient ?? MSAppClient.instance;
|
|
1319
1297
|
};
|
|
1298
|
+
const useUserInfo = () => MSAppClient.instance?.userSession?.userInfo ?? null;
|
|
1320
1299
|
const useSingleView = (options) => {
|
|
1321
1300
|
const isShowDataForm = vue.ref(false);
|
|
1322
1301
|
const handleDataTable = (dataTable) => {
|
|
@@ -1354,9 +1333,8 @@ const useSingleView = (options) => {
|
|
|
1354
1333
|
const handleDataForm = (dataForm) => {
|
|
1355
1334
|
if (dataForm) {
|
|
1356
1335
|
dataForm.submittedEvent.on(() => {
|
|
1357
|
-
var _a2;
|
|
1358
1336
|
isShowDataForm.value = false;
|
|
1359
|
-
|
|
1337
|
+
vue.unref(options.dataTable)?.load();
|
|
1360
1338
|
});
|
|
1361
1339
|
dataForm.cancelEvent.on(() => {
|
|
1362
1340
|
isShowDataForm.value = false;
|
|
@@ -1370,8 +1348,8 @@ const useSingleView = (options) => {
|
|
|
1370
1348
|
isShowDataForm.value = false;
|
|
1371
1349
|
handleDataTable(dataTable);
|
|
1372
1350
|
onCleanup(() => {
|
|
1373
|
-
dataTable
|
|
1374
|
-
dataTable
|
|
1351
|
+
dataTable?.clearSelection();
|
|
1352
|
+
dataTable?.dispose();
|
|
1375
1353
|
});
|
|
1376
1354
|
},
|
|
1377
1355
|
{ immediate: true }
|
|
@@ -1391,7 +1369,7 @@ const useSingleView = (options) => {
|
|
|
1391
1369
|
isShowDataForm.value = false;
|
|
1392
1370
|
handleDataForm(dataForm);
|
|
1393
1371
|
onCleanup(() => {
|
|
1394
|
-
dataForm
|
|
1372
|
+
dataForm?.dispose();
|
|
1395
1373
|
});
|
|
1396
1374
|
},
|
|
1397
1375
|
{ immediate: true }
|
|
@@ -1666,7 +1644,6 @@ const useMenuStore = pinia$1.defineStore(
|
|
|
1666
1644
|
const filesystemMenusRaw = vue.ref([]);
|
|
1667
1645
|
const actived = vue.ref(0);
|
|
1668
1646
|
function convertMenu(menuNodes) {
|
|
1669
|
-
var _a2;
|
|
1670
1647
|
const returnMenus = [];
|
|
1671
1648
|
for (const menuNode of menuNodes) {
|
|
1672
1649
|
const menuItem = {
|
|
@@ -1676,7 +1653,7 @@ const useMenuStore = pinia$1.defineStore(
|
|
|
1676
1653
|
auth: "",
|
|
1677
1654
|
type: menuNode.type
|
|
1678
1655
|
},
|
|
1679
|
-
name:
|
|
1656
|
+
name: menuNode.route?.name ?? menuNode.id,
|
|
1680
1657
|
children: []
|
|
1681
1658
|
};
|
|
1682
1659
|
menuItem.children = convertMenuRecursive(menuNode.children);
|
|
@@ -1685,14 +1662,13 @@ const useMenuStore = pinia$1.defineStore(
|
|
|
1685
1662
|
return returnMenus;
|
|
1686
1663
|
}
|
|
1687
1664
|
function convertMenuRecursive(menuNodes, basePath = "") {
|
|
1688
|
-
var _a2, _b2, _c2;
|
|
1689
1665
|
const returnMenus = [];
|
|
1690
1666
|
for (const menuNode of menuNodes) {
|
|
1691
1667
|
const menuItem = {
|
|
1692
1668
|
path: menuNode.urlType == 1 ? resolveRoutePath(basePath, menuNode.path) : "",
|
|
1693
|
-
name:
|
|
1694
|
-
group: !
|
|
1695
|
-
routes:
|
|
1669
|
+
name: menuNode.route?.name ?? menuNode.id,
|
|
1670
|
+
group: !menuNode.route?.name,
|
|
1671
|
+
routes: menuNode.routes?.map((item) => item.name) ?? [],
|
|
1696
1672
|
meta: {
|
|
1697
1673
|
title: menuNode.title,
|
|
1698
1674
|
icon: menuNode.iconName,
|
|
@@ -1727,10 +1703,7 @@ const useMenuStore = pinia$1.defineStore(
|
|
|
1727
1703
|
function getDeepestPath(menu2, rootPath = "") {
|
|
1728
1704
|
let path2 = "";
|
|
1729
1705
|
if (menu2.children) {
|
|
1730
|
-
const item = menu2.children.find((item2) =>
|
|
1731
|
-
var _a2;
|
|
1732
|
-
return ((_a2 = item2.meta) == null ? void 0 : _a2.menu) !== false;
|
|
1733
|
-
});
|
|
1706
|
+
const item = menu2.children.find((item2) => item2.meta?.menu !== false);
|
|
1734
1707
|
if (item) {
|
|
1735
1708
|
path2 = getDeepestPath(item, resolveRoutePath(rootPath, menu2.path));
|
|
1736
1709
|
} else {
|
|
@@ -1753,8 +1726,7 @@ const useMenuStore = pinia$1.defineStore(
|
|
|
1753
1726
|
function getDefaultOpenedPaths(menus) {
|
|
1754
1727
|
const defaultOpenedPaths2 = [];
|
|
1755
1728
|
menus.forEach((item) => {
|
|
1756
|
-
|
|
1757
|
-
if (((_a2 = item.meta) == null ? void 0 : _a2.defaultOpened) && item.children) {
|
|
1729
|
+
if (item.meta?.defaultOpened && item.children) {
|
|
1758
1730
|
defaultOpenedPaths2.push(item.name);
|
|
1759
1731
|
const childrenDefaultOpenedPaths = getDefaultOpenedPaths(item.children);
|
|
1760
1732
|
if (childrenDefaultOpenedPaths.length > 0) {
|
|
@@ -1773,12 +1745,11 @@ const useMenuStore = pinia$1.defineStore(
|
|
|
1773
1745
|
actived.value = data;
|
|
1774
1746
|
} else {
|
|
1775
1747
|
const getIndex = () => {
|
|
1776
|
-
var _a2;
|
|
1777
1748
|
for (let index2 = 0, len = allMenus.value.length; index2 < len; index2++) {
|
|
1778
1749
|
let children = [allMenus.value[index2]];
|
|
1779
1750
|
for (let i = 0; i < children.length; i++) {
|
|
1780
1751
|
const item = children[i];
|
|
1781
|
-
if (item.name === data ||
|
|
1752
|
+
if (item.name === data || item.routes?.includes(data)) {
|
|
1782
1753
|
return index2;
|
|
1783
1754
|
}
|
|
1784
1755
|
if (Array.isArray(item.children)) {
|
|
@@ -1827,17 +1798,14 @@ const authBeforeEach = async (msAppClient, to, from) => {
|
|
|
1827
1798
|
}
|
|
1828
1799
|
};
|
|
1829
1800
|
class PageManager {
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
__publicField(this, "msAppClientDisposable", null);
|
|
1837
|
-
}
|
|
1801
|
+
normalPages = [];
|
|
1802
|
+
extendsPages = [];
|
|
1803
|
+
msAppClient = null;
|
|
1804
|
+
msAppClientChangeEvent = new utils.Event();
|
|
1805
|
+
afterInitdEvent = new utils.Event();
|
|
1806
|
+
msAppClientDisposable = null;
|
|
1838
1807
|
setMSAppClient(msAppClient) {
|
|
1839
|
-
|
|
1840
|
-
(_a2 = this.msAppClientDisposable) == null ? void 0 : _a2.dispose();
|
|
1808
|
+
this.msAppClientDisposable?.dispose();
|
|
1841
1809
|
this.msAppClientDisposable = new utils.Disposable();
|
|
1842
1810
|
this.msAppClient = msAppClient;
|
|
1843
1811
|
this.msAppClientChangeEvent.emit({ msAppClient });
|
|
@@ -1864,7 +1832,7 @@ class PageManager {
|
|
|
1864
1832
|
this.addNormalPage({
|
|
1865
1833
|
name: "mk-ms-layout",
|
|
1866
1834
|
path: "/",
|
|
1867
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
1835
|
+
component: () => Promise.resolve().then(() => require("./index-XCAqvZkT.cjs"))
|
|
1868
1836
|
});
|
|
1869
1837
|
this.addNormalPage({
|
|
1870
1838
|
name: "login",
|
|
@@ -1872,7 +1840,7 @@ class PageManager {
|
|
|
1872
1840
|
meta: {
|
|
1873
1841
|
isAuthorization: false
|
|
1874
1842
|
},
|
|
1875
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
1843
|
+
component: () => Promise.resolve().then(() => require("./index-BI4quwn5.cjs"))
|
|
1876
1844
|
});
|
|
1877
1845
|
this.addNormalPage({
|
|
1878
1846
|
name: "signup",
|
|
@@ -1880,11 +1848,10 @@ class PageManager {
|
|
|
1880
1848
|
meta: {
|
|
1881
1849
|
isAuthorization: false
|
|
1882
1850
|
},
|
|
1883
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
1851
|
+
component: () => Promise.resolve().then(() => require("./index-q1_p8QOz.cjs"))
|
|
1884
1852
|
});
|
|
1885
1853
|
this.afterInitdEvent.emit();
|
|
1886
1854
|
this.msAppClientChangeEvent.on(({ msAppClient }) => {
|
|
1887
|
-
var _a2, _b2;
|
|
1888
1855
|
if (!msAppClient) {
|
|
1889
1856
|
return;
|
|
1890
1857
|
}
|
|
@@ -1898,14 +1865,14 @@ class PageManager {
|
|
|
1898
1865
|
vueRouter2.addRoute(normalPage);
|
|
1899
1866
|
}
|
|
1900
1867
|
}
|
|
1901
|
-
|
|
1868
|
+
this.msAppClientDisposable?.register(
|
|
1902
1869
|
utils.createDisposable(() => {
|
|
1903
1870
|
for (const addedNormalPageName of addedNormalPageNames) {
|
|
1904
1871
|
vueRouter2.removeRoute(addedNormalPageName);
|
|
1905
1872
|
}
|
|
1906
1873
|
})
|
|
1907
1874
|
);
|
|
1908
|
-
|
|
1875
|
+
this.msAppClientDisposable?.register(
|
|
1909
1876
|
msAppClient.beforeInitUserSessionEvent.on(({ userSession }) => {
|
|
1910
1877
|
if (!userSession) {
|
|
1911
1878
|
return;
|
|
@@ -1932,7 +1899,7 @@ class PageManager {
|
|
|
1932
1899
|
this.addExtendsPage({
|
|
1933
1900
|
name: "notFound",
|
|
1934
1901
|
path: "/:pathMatch(.*)*",
|
|
1935
|
-
component: () => Promise.resolve().then(() => require("./404-
|
|
1902
|
+
component: () => Promise.resolve().then(() => require("./404-BPEClOTg.cjs"))
|
|
1936
1903
|
});
|
|
1937
1904
|
}
|
|
1938
1905
|
userSession.register(
|
|
@@ -1949,17 +1916,17 @@ class PageManager {
|
|
|
1949
1916
|
}
|
|
1950
1917
|
}
|
|
1951
1918
|
class InternalMkModule {
|
|
1919
|
+
app;
|
|
1920
|
+
dataTableComponents = new dm.Components();
|
|
1921
|
+
dataFormComponents = new dm.Components();
|
|
1922
|
+
dataFilterComponents = new dm.Components();
|
|
1923
|
+
whereFilterComponents = new dm.Components();
|
|
1924
|
+
dataTableClasses = [];
|
|
1925
|
+
dataFormClasses = [];
|
|
1926
|
+
dataTreeClasses = [];
|
|
1927
|
+
normalPages = [];
|
|
1928
|
+
extendsPages = [];
|
|
1952
1929
|
constructor(app) {
|
|
1953
|
-
__publicField(this, "app");
|
|
1954
|
-
__publicField(this, "dataTableComponents", new dm.Components());
|
|
1955
|
-
__publicField(this, "dataFormComponents", new dm.Components());
|
|
1956
|
-
__publicField(this, "dataFilterComponents", new dm.Components());
|
|
1957
|
-
__publicField(this, "whereFilterComponents", new dm.Components());
|
|
1958
|
-
__publicField(this, "dataTableClasses", []);
|
|
1959
|
-
__publicField(this, "dataFormClasses", []);
|
|
1960
|
-
__publicField(this, "dataTreeClasses", []);
|
|
1961
|
-
__publicField(this, "normalPages", []);
|
|
1962
|
-
__publicField(this, "extendsPages", []);
|
|
1963
1930
|
this.app = app;
|
|
1964
1931
|
}
|
|
1965
1932
|
/**
|
|
@@ -2011,10 +1978,11 @@ class InternalMkModule {
|
|
|
2011
1978
|
this.extendsPages.push(route);
|
|
2012
1979
|
}
|
|
2013
1980
|
}
|
|
2014
|
-
|
|
1981
|
+
class MsMaterialGroupForm extends dm.DataForm {
|
|
1982
|
+
static [DATA_MODEL_NAME] = "mk-material-group";
|
|
2015
1983
|
constructor(options = {}) {
|
|
2016
1984
|
super({
|
|
2017
|
-
name:
|
|
1985
|
+
name: MsMaterialGroupForm[DATA_MODEL_NAME],
|
|
2018
1986
|
moduleName: MODULE_NAME,
|
|
2019
1987
|
...options
|
|
2020
1988
|
});
|
|
@@ -2035,18 +2003,17 @@ const _MsMaterialGroupForm = class _MsMaterialGroupForm extends (_b = dm.DataFor
|
|
|
2035
2003
|
const { children, ...submitData } = data;
|
|
2036
2004
|
return submitData;
|
|
2037
2005
|
}
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2006
|
+
}
|
|
2007
|
+
class MsMaterialGroupTree extends dm.DataTree {
|
|
2008
|
+
static [DATA_MODEL_NAME] = "mk-material-group";
|
|
2009
|
+
currentDataTreeNode;
|
|
2042
2010
|
constructor(options = {}) {
|
|
2043
2011
|
super({
|
|
2044
|
-
name:
|
|
2012
|
+
name: MsMaterialGroupTree[DATA_MODEL_NAME],
|
|
2045
2013
|
moduleName: MODULE_NAME,
|
|
2046
2014
|
props: { label: "desc", parent: "parentGroupId" },
|
|
2047
2015
|
...options
|
|
2048
2016
|
});
|
|
2049
|
-
__publicField(this, "currentDataTreeNode");
|
|
2050
2017
|
this.currentDataTreeNode = null;
|
|
2051
2018
|
}
|
|
2052
2019
|
formatItem(item) {
|
|
@@ -2078,13 +2045,12 @@ const _MsMaterialGroupTree = class _MsMaterialGroupTree extends (_d = dm.DataTre
|
|
|
2078
2045
|
setCurrentNode(node) {
|
|
2079
2046
|
this.currentDataTreeNode = node;
|
|
2080
2047
|
}
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
const _MsMaterialForm = class _MsMaterialForm extends (_f = dm.DataForm, _e = DATA_MODEL_NAME, _f) {
|
|
2048
|
+
}
|
|
2049
|
+
class MsMaterialForm extends dm.DataForm {
|
|
2050
|
+
static [DATA_MODEL_NAME] = "mk-material";
|
|
2085
2051
|
constructor(options = {}) {
|
|
2086
2052
|
super({
|
|
2087
|
-
name:
|
|
2053
|
+
name: MsMaterialForm[DATA_MODEL_NAME],
|
|
2088
2054
|
moduleName: MODULE_NAME,
|
|
2089
2055
|
...options
|
|
2090
2056
|
});
|
|
@@ -2116,17 +2082,16 @@ const _MsMaterialForm = class _MsMaterialForm extends (_f = dm.DataForm, _e = DA
|
|
|
2116
2082
|
path: data.path
|
|
2117
2083
|
};
|
|
2118
2084
|
}
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2085
|
+
}
|
|
2086
|
+
class MsConfigForm extends dm.DataForm {
|
|
2087
|
+
static [DATA_MODEL_NAME] = "mk-sys-config";
|
|
2088
|
+
configComponent;
|
|
2123
2089
|
constructor(options = {}) {
|
|
2124
2090
|
super({
|
|
2125
|
-
name:
|
|
2091
|
+
name: MsConfigForm[DATA_MODEL_NAME],
|
|
2126
2092
|
moduleName: MODULE_NAME,
|
|
2127
2093
|
...options
|
|
2128
2094
|
});
|
|
2129
|
-
__publicField(this, "configComponent");
|
|
2130
2095
|
this.configComponent = options.configComponent ?? new ConfigComponents();
|
|
2131
2096
|
}
|
|
2132
2097
|
async initialize() {
|
|
@@ -2158,8 +2123,7 @@ const _MsConfigForm = class _MsConfigForm extends (_h = dm.DataForm, _g = DATA_M
|
|
|
2158
2123
|
rules: [
|
|
2159
2124
|
{
|
|
2160
2125
|
validator: (rule, value, callback) => {
|
|
2161
|
-
|
|
2162
|
-
if (((_a2 = this.data) == null ? void 0 : _a2.type) === "json") {
|
|
2126
|
+
if (this.data?.type === "json") {
|
|
2163
2127
|
try {
|
|
2164
2128
|
JSON.parse(value);
|
|
2165
2129
|
} catch (e) {
|
|
@@ -2182,7 +2146,7 @@ const _MsConfigForm = class _MsConfigForm extends (_h = dm.DataForm, _g = DATA_M
|
|
|
2182
2146
|
]);
|
|
2183
2147
|
let disposable = null;
|
|
2184
2148
|
this.dataChangeEvent.on(({ data }) => {
|
|
2185
|
-
disposable
|
|
2149
|
+
disposable?.dispose();
|
|
2186
2150
|
if (!data) {
|
|
2187
2151
|
return null;
|
|
2188
2152
|
}
|
|
@@ -2234,22 +2198,22 @@ const _MsConfigForm = class _MsConfigForm extends (_h = dm.DataForm, _g = DATA_M
|
|
|
2234
2198
|
resolveItemType(config) {
|
|
2235
2199
|
return this.resolveType(config.type);
|
|
2236
2200
|
}
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2201
|
+
}
|
|
2202
|
+
class MsConfigTable extends dm.DataTable {
|
|
2203
|
+
static [DATA_MODEL_NAME] = "mk-sys-config";
|
|
2204
|
+
static _instance = null;
|
|
2241
2205
|
static get instance() {
|
|
2242
|
-
if (!
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2206
|
+
if (!MsConfigTable._instance) {
|
|
2207
|
+
MsConfigTable._instance = new MsConfigTable();
|
|
2208
|
+
MsConfigTable._instance.init().then(() => {
|
|
2209
|
+
MsConfigTable._instance.dataFilter.setReady();
|
|
2246
2210
|
});
|
|
2247
2211
|
}
|
|
2248
|
-
return
|
|
2212
|
+
return MsConfigTable._instance;
|
|
2249
2213
|
}
|
|
2250
2214
|
constructor(options = {}) {
|
|
2251
2215
|
super({
|
|
2252
|
-
name:
|
|
2216
|
+
name: MsConfigTable[DATA_MODEL_NAME],
|
|
2253
2217
|
moduleName: MODULE_NAME,
|
|
2254
2218
|
// sortFieldName: "sortNo",
|
|
2255
2219
|
...options
|
|
@@ -2262,10 +2226,7 @@ const _MsConfigTable = class _MsConfigTable extends (_j = dm.DataTable, _i = DAT
|
|
|
2262
2226
|
new dm.AddButton(),
|
|
2263
2227
|
new dm.TableHeaderItem({
|
|
2264
2228
|
componentInfo: "MKBatchOpt",
|
|
2265
|
-
predicate: () =>
|
|
2266
|
-
var _a2, _b2, _c2;
|
|
2267
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
2268
|
-
}
|
|
2229
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
2269
2230
|
})
|
|
2270
2231
|
];
|
|
2271
2232
|
this.dataFilter.setColumns([
|
|
@@ -2294,10 +2255,9 @@ const _MsConfigTable = class _MsConfigTable extends (_j = dm.DataTable, _i = DAT
|
|
|
2294
2255
|
return { ...item, value };
|
|
2295
2256
|
}
|
|
2296
2257
|
static async loadConfig(key) {
|
|
2297
|
-
var _a2;
|
|
2298
2258
|
const where = new request.Where();
|
|
2299
2259
|
where.addCondition("key", "=", key);
|
|
2300
|
-
const dataViewRequest =
|
|
2260
|
+
const dataViewRequest = MsConfigTable.instance.dataViewRequest;
|
|
2301
2261
|
const response = await dataViewRequest.allList({
|
|
2302
2262
|
data: { condition: where }
|
|
2303
2263
|
});
|
|
@@ -2305,15 +2265,14 @@ const _MsConfigTable = class _MsConfigTable extends (_j = dm.DataTable, _i = DAT
|
|
|
2305
2265
|
...response,
|
|
2306
2266
|
data: {
|
|
2307
2267
|
...response.data,
|
|
2308
|
-
data:
|
|
2268
|
+
data: response.data.data?.[0] ?? null
|
|
2309
2269
|
}
|
|
2310
2270
|
};
|
|
2311
2271
|
}
|
|
2312
2272
|
static async getConfigValue(key) {
|
|
2313
|
-
var _a2;
|
|
2314
2273
|
const where = new request.Where();
|
|
2315
2274
|
where.addCondition("key", "=", key);
|
|
2316
|
-
const dataViewRequest =
|
|
2275
|
+
const dataViewRequest = MsConfigTable.instance.dataViewRequest;
|
|
2317
2276
|
const response = await dataViewRequest.query({
|
|
2318
2277
|
data: { condition: where, pc: 1, pn: 1 }
|
|
2319
2278
|
});
|
|
@@ -2321,13 +2280,13 @@ const _MsConfigTable = class _MsConfigTable extends (_j = dm.DataTable, _i = DAT
|
|
|
2321
2280
|
throw new Error(response.data.msg);
|
|
2322
2281
|
}
|
|
2323
2282
|
try {
|
|
2324
|
-
return JSON.parse(
|
|
2283
|
+
return JSON.parse(response.data.data[0]?.value);
|
|
2325
2284
|
} catch {
|
|
2326
2285
|
return null;
|
|
2327
2286
|
}
|
|
2328
2287
|
}
|
|
2329
2288
|
static async setConfigValue(key, value) {
|
|
2330
|
-
const dataViewRequest =
|
|
2289
|
+
const dataViewRequest = MsConfigTable.instance.dataViewRequest;
|
|
2331
2290
|
const where = new request.Where();
|
|
2332
2291
|
where.addCondition("key", "=", key);
|
|
2333
2292
|
const listResponse = await dataViewRequest.query({
|
|
@@ -2342,10 +2301,7 @@ const _MsConfigTable = class _MsConfigTable extends (_j = dm.DataTable, _i = DAT
|
|
|
2342
2301
|
});
|
|
2343
2302
|
return response.data;
|
|
2344
2303
|
}
|
|
2345
|
-
}
|
|
2346
|
-
__publicField(_MsConfigTable, _i, "mk-sys-config");
|
|
2347
|
-
__publicField(_MsConfigTable, "_instance", null);
|
|
2348
|
-
let MsConfigTable = _MsConfigTable;
|
|
2304
|
+
}
|
|
2349
2305
|
class MsMaterialComponents extends dm.Components {
|
|
2350
2306
|
constructor() {
|
|
2351
2307
|
super();
|
|
@@ -2378,24 +2334,25 @@ function getDefaultSelectMaterialGroup(nodes) {
|
|
|
2378
2334
|
}
|
|
2379
2335
|
return getDefaultSelectMaterialGroup(nodes[0].children) ?? nodes[0];
|
|
2380
2336
|
}
|
|
2381
|
-
|
|
2337
|
+
class MsMaterialTable extends dm.DataTable {
|
|
2338
|
+
static [DATA_MODEL_NAME] = "mk-material";
|
|
2339
|
+
materialTypes = [];
|
|
2340
|
+
allowMaterialTypeValues = [];
|
|
2341
|
+
materialComponents;
|
|
2342
|
+
currentMaterialGroupId = null;
|
|
2343
|
+
currentMaterialType = null;
|
|
2344
|
+
// 素材上传
|
|
2345
|
+
upload;
|
|
2346
|
+
// 素材组
|
|
2347
|
+
materialGroupTree = this.register(new MsMaterialGroupTree());
|
|
2348
|
+
// 素材表单
|
|
2349
|
+
materialForm;
|
|
2382
2350
|
constructor(options = {}) {
|
|
2383
2351
|
super({
|
|
2384
|
-
name:
|
|
2352
|
+
name: MsMaterialTable[DATA_MODEL_NAME],
|
|
2385
2353
|
moduleName: MODULE_NAME,
|
|
2386
2354
|
...options
|
|
2387
2355
|
});
|
|
2388
|
-
__publicField(this, "materialTypes", []);
|
|
2389
|
-
__publicField(this, "allowMaterialTypeValues", []);
|
|
2390
|
-
__publicField(this, "materialComponents");
|
|
2391
|
-
__publicField(this, "currentMaterialGroupId", null);
|
|
2392
|
-
__publicField(this, "currentMaterialType", null);
|
|
2393
|
-
// 素材上传
|
|
2394
|
-
__publicField(this, "upload");
|
|
2395
|
-
// 素材组
|
|
2396
|
-
__publicField(this, "materialGroupTree", this.register(new MsMaterialGroupTree()));
|
|
2397
|
-
// 素材表单
|
|
2398
|
-
__publicField(this, "materialForm");
|
|
2399
2356
|
this.materialComponents = options.materialComponents ?? new MsMaterialComponents();
|
|
2400
2357
|
this.upload = new request.WebFileUpload({
|
|
2401
2358
|
filters: [
|
|
@@ -2410,9 +2367,9 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = dm.DataTable, _k =
|
|
|
2410
2367
|
]
|
|
2411
2368
|
});
|
|
2412
2369
|
this.materialForm = this.register(new class extends MsMaterialForm {
|
|
2370
|
+
formGroupTree;
|
|
2413
2371
|
constructor(groupTree) {
|
|
2414
2372
|
super();
|
|
2415
|
-
__publicField(this, "formGroupTree");
|
|
2416
2373
|
this.formGroupTree = groupTree;
|
|
2417
2374
|
}
|
|
2418
2375
|
async initialize() {
|
|
@@ -2434,7 +2391,7 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = dm.DataTable, _k =
|
|
|
2434
2391
|
async initialize() {
|
|
2435
2392
|
await super.initialize();
|
|
2436
2393
|
const dvOpt = request.DvOpt.createInstance({
|
|
2437
|
-
name:
|
|
2394
|
+
name: MsMaterialTable[DATA_MODEL_NAME]
|
|
2438
2395
|
});
|
|
2439
2396
|
this.upload.uploadEvent.on(({ uploadItem }) => {
|
|
2440
2397
|
this.loadingManager.startLoading();
|
|
@@ -2554,8 +2511,7 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = dm.DataTable, _k =
|
|
|
2554
2511
|
this.attachMaterialTableCondition();
|
|
2555
2512
|
}
|
|
2556
2513
|
setCurrentMaterialType(materialType) {
|
|
2557
|
-
|
|
2558
|
-
if ((materialType == null ? void 0 : materialType.value) === ((_a2 = this.currentMaterialType) == null ? void 0 : _a2.value)) {
|
|
2514
|
+
if (materialType?.value === this.currentMaterialType?.value) {
|
|
2559
2515
|
return;
|
|
2560
2516
|
}
|
|
2561
2517
|
this.currentMaterialType = materialType;
|
|
@@ -2593,13 +2549,12 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = dm.DataTable, _k =
|
|
|
2593
2549
|
this.materialForm.dispose();
|
|
2594
2550
|
this.materialGroupTree.dispose();
|
|
2595
2551
|
}
|
|
2596
|
-
}
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
const _MsRoleForm = class _MsRoleForm extends (_n = dm.DataForm, _m = DATA_MODEL_NAME, _n) {
|
|
2552
|
+
}
|
|
2553
|
+
class MsRoleForm extends dm.DataForm {
|
|
2554
|
+
static [DATA_MODEL_NAME] = "ms-role";
|
|
2600
2555
|
constructor(options = {}) {
|
|
2601
2556
|
super({
|
|
2602
|
-
name:
|
|
2557
|
+
name: MsRoleForm[DATA_MODEL_NAME],
|
|
2603
2558
|
moduleName: MODULE_NAME,
|
|
2604
2559
|
...options
|
|
2605
2560
|
});
|
|
@@ -2630,19 +2585,18 @@ const _MsRoleForm = class _MsRoleForm extends (_n = dm.DataForm, _m = DATA_MODEL
|
|
|
2630
2585
|
memo: item.memo || ""
|
|
2631
2586
|
};
|
|
2632
2587
|
}
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2588
|
+
}
|
|
2589
|
+
class MsRoleTable extends dm.DataTable {
|
|
2590
|
+
static [DATA_MODEL_NAME] = "ms-role";
|
|
2591
|
+
configRolePermissionEvent = this.register(
|
|
2592
|
+
new utils.Event()
|
|
2593
|
+
);
|
|
2637
2594
|
constructor(options = {}) {
|
|
2638
2595
|
super({
|
|
2639
|
-
name:
|
|
2596
|
+
name: MsRoleTable[DATA_MODEL_NAME],
|
|
2640
2597
|
moduleName: MODULE_NAME,
|
|
2641
2598
|
...options
|
|
2642
2599
|
});
|
|
2643
|
-
__publicField(this, "configRolePermissionEvent", this.register(
|
|
2644
|
-
new utils.Event()
|
|
2645
|
-
));
|
|
2646
2600
|
}
|
|
2647
2601
|
async initialize() {
|
|
2648
2602
|
await super.initialize();
|
|
@@ -2651,10 +2605,7 @@ const _MsRoleTable = class _MsRoleTable extends (_p = dm.DataTable, _o = DATA_MO
|
|
|
2651
2605
|
new dm.AddButton(),
|
|
2652
2606
|
new dm.TableHeaderItem({
|
|
2653
2607
|
componentInfo: "MKBatchOpt",
|
|
2654
|
-
predicate: () =>
|
|
2655
|
-
var _a2, _b2, _c2;
|
|
2656
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
2657
|
-
}
|
|
2608
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
2658
2609
|
})
|
|
2659
2610
|
];
|
|
2660
2611
|
this.dataFilter.setColumns([
|
|
@@ -2695,13 +2646,12 @@ const _MsRoleTable = class _MsRoleTable extends (_p = dm.DataTable, _o = DATA_MO
|
|
|
2695
2646
|
desc: item.desc || ""
|
|
2696
2647
|
};
|
|
2697
2648
|
}
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
const _MsRolePermissionPointTable = class _MsRolePermissionPointTable extends (_r = dm.DataTable, _q = DATA_MODEL_NAME, _r) {
|
|
2649
|
+
}
|
|
2650
|
+
class MsRolePermissionPointTable extends dm.DataTable {
|
|
2651
|
+
static [DATA_MODEL_NAME] = "ms-role-permission-point";
|
|
2702
2652
|
constructor(options = {}) {
|
|
2703
2653
|
super({
|
|
2704
|
-
name:
|
|
2654
|
+
name: MsRolePermissionPointTable[DATA_MODEL_NAME],
|
|
2705
2655
|
moduleName: MODULE_NAME,
|
|
2706
2656
|
...options
|
|
2707
2657
|
});
|
|
@@ -2718,13 +2668,12 @@ const _MsRolePermissionPointTable = class _MsRolePermissionPointTable extends (_
|
|
|
2718
2668
|
]);
|
|
2719
2669
|
this.dataFilter.setReady();
|
|
2720
2670
|
}
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
const _MsRoleRouteTable = class _MsRoleRouteTable extends (_t = dm.DataTable, _s = DATA_MODEL_NAME, _t) {
|
|
2671
|
+
}
|
|
2672
|
+
class MsRoleRouteTable extends dm.DataTable {
|
|
2673
|
+
static [DATA_MODEL_NAME] = "ms-role-route";
|
|
2725
2674
|
constructor(options = {}) {
|
|
2726
2675
|
super({
|
|
2727
|
-
name:
|
|
2676
|
+
name: MsRoleRouteTable[DATA_MODEL_NAME],
|
|
2728
2677
|
moduleName: MODULE_NAME,
|
|
2729
2678
|
...options
|
|
2730
2679
|
});
|
|
@@ -2741,13 +2690,12 @@ const _MsRoleRouteTable = class _MsRoleRouteTable extends (_t = dm.DataTable, _s
|
|
|
2741
2690
|
]);
|
|
2742
2691
|
this.dataFilter.setReady();
|
|
2743
2692
|
}
|
|
2744
|
-
}
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
const _MsMenuTable = class _MsMenuTable extends (_v = dm.DataTable, _u = DATA_MODEL_NAME, _v) {
|
|
2693
|
+
}
|
|
2694
|
+
class MsMenuTable extends dm.DataTable {
|
|
2695
|
+
static [DATA_MODEL_NAME] = "ms-menu";
|
|
2748
2696
|
constructor(options = {}) {
|
|
2749
2697
|
super({
|
|
2750
|
-
name:
|
|
2698
|
+
name: MsMenuTable[DATA_MODEL_NAME],
|
|
2751
2699
|
moduleName: MODULE_NAME,
|
|
2752
2700
|
...options
|
|
2753
2701
|
});
|
|
@@ -2759,10 +2707,7 @@ const _MsMenuTable = class _MsMenuTable extends (_v = dm.DataTable, _u = DATA_MO
|
|
|
2759
2707
|
new dm.AddButton(),
|
|
2760
2708
|
new dm.TableHeaderItem({
|
|
2761
2709
|
componentInfo: "MKBatchOpt",
|
|
2762
|
-
predicate: () =>
|
|
2763
|
-
var _a2, _b2, _c2;
|
|
2764
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
2765
|
-
}
|
|
2710
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
2766
2711
|
})
|
|
2767
2712
|
];
|
|
2768
2713
|
this.setColumns([
|
|
@@ -2781,9 +2726,7 @@ const _MsMenuTable = class _MsMenuTable extends (_v = dm.DataTable, _u = DATA_MO
|
|
|
2781
2726
|
routeId: item.routeId
|
|
2782
2727
|
};
|
|
2783
2728
|
}
|
|
2784
|
-
}
|
|
2785
|
-
__publicField(_MsMenuTable, _u, "ms-menu");
|
|
2786
|
-
let MsMenuTable = _MsMenuTable;
|
|
2729
|
+
}
|
|
2787
2730
|
const _hoisted_1$F = { class: "mt-4 text-align-end" };
|
|
2788
2731
|
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
2789
2732
|
...{ name: "RouteNameInput" },
|
|
@@ -2866,99 +2809,96 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
2866
2809
|
_: 1
|
|
2867
2810
|
})
|
|
2868
2811
|
]),
|
|
2869
|
-
default: vue.withCtx(() =>
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
vue.
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
filterable: "",
|
|
2877
|
-
placeholder: "选择数据视图"
|
|
2878
|
-
}, {
|
|
2879
|
-
default: vue.withCtx(() => [
|
|
2880
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(dataModelList), (item) => {
|
|
2881
|
-
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
2882
|
-
key: item.value,
|
|
2883
|
-
label: item.label,
|
|
2884
|
-
value: item.value
|
|
2885
|
-
}, null, 8, ["label", "value"]);
|
|
2886
|
-
}), 128))
|
|
2887
|
-
]),
|
|
2888
|
-
_: 1
|
|
2889
|
-
}, 8, ["modelValue"])
|
|
2890
|
-
]),
|
|
2891
|
-
vue.unref(dataModelValue) ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
2892
|
-
key: 0,
|
|
2893
|
-
class: "mt-2",
|
|
2894
|
-
modelValue: vue.unref(pageTypeValue),
|
|
2895
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(pageTypeValue) ? pageTypeValue.value = $event : null)
|
|
2812
|
+
default: vue.withCtx(() => [
|
|
2813
|
+
vue.createElementVNode("div", null, [
|
|
2814
|
+
vue.createVNode(_component_el_select, {
|
|
2815
|
+
modelValue: vue.unref(dataModelValue),
|
|
2816
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dataModelValue) ? dataModelValue.value = $event : null),
|
|
2817
|
+
filterable: "",
|
|
2818
|
+
placeholder: "选择数据视图"
|
|
2896
2819
|
}, {
|
|
2897
2820
|
default: vue.withCtx(() => [
|
|
2898
|
-
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
2899
|
-
return vue.
|
|
2900
|
-
|
|
2901
|
-
|
|
2821
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(dataModelList), (item) => {
|
|
2822
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
2823
|
+
key: item.value,
|
|
2824
|
+
label: item.label,
|
|
2825
|
+
value: item.value
|
|
2902
2826
|
}, null, 8, ["label", "value"]);
|
|
2903
|
-
}),
|
|
2827
|
+
}), 128))
|
|
2904
2828
|
]),
|
|
2905
2829
|
_: 1
|
|
2906
|
-
}, 8, ["modelValue"])
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2830
|
+
}, 8, ["modelValue"])
|
|
2831
|
+
]),
|
|
2832
|
+
vue.unref(dataModelValue) ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
2833
|
+
key: 0,
|
|
2834
|
+
class: "mt-2",
|
|
2835
|
+
modelValue: vue.unref(pageTypeValue),
|
|
2836
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(pageTypeValue) ? pageTypeValue.value = $event : null)
|
|
2837
|
+
}, {
|
|
2838
|
+
default: vue.withCtx(() => [
|
|
2839
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageDefines, (page, index2) => {
|
|
2840
|
+
return vue.createVNode(_component_el_radio_button, {
|
|
2841
|
+
label: page.desc,
|
|
2842
|
+
value: index2
|
|
2843
|
+
}, null, 8, ["label", "value"]);
|
|
2844
|
+
}), 64))
|
|
2845
|
+
]),
|
|
2846
|
+
_: 1
|
|
2847
|
+
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
2848
|
+
vue.unref(dataModelValue) && pageDefines[vue.unref(pageTypeValue)]?.list ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
2849
|
+
key: 1,
|
|
2850
|
+
class: "mt-2",
|
|
2851
|
+
modelValue: vue.unref(listPageTypeValue),
|
|
2852
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(listPageTypeValue) ? listPageTypeValue.value = $event : null)
|
|
2853
|
+
}, {
|
|
2854
|
+
default: vue.withCtx(() => [
|
|
2855
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageDefines[vue.unref(pageTypeValue)].list, (list2, index2) => {
|
|
2856
|
+
return vue.openBlock(), vue.createBlock(_component_el_radio_button, {
|
|
2857
|
+
label: list2.desc,
|
|
2858
|
+
value: index2
|
|
2859
|
+
}, null, 8, ["label", "value"]);
|
|
2860
|
+
}), 256))
|
|
2861
|
+
]),
|
|
2862
|
+
_: 1
|
|
2863
|
+
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
2864
|
+
vue.unref(dataModelValue) && pageDefines[vue.unref(pageTypeValue)]?.form ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
2865
|
+
key: 2,
|
|
2866
|
+
class: "mt-2",
|
|
2867
|
+
modelValue: vue.unref(formPageTypeValue),
|
|
2868
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(formPageTypeValue) ? formPageTypeValue.value = $event : null)
|
|
2869
|
+
}, {
|
|
2870
|
+
default: vue.withCtx(() => [
|
|
2871
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageDefines[vue.unref(pageTypeValue)].form, (f, index2) => {
|
|
2872
|
+
return vue.openBlock(), vue.createBlock(_component_el_radio_button, {
|
|
2873
|
+
label: f.desc,
|
|
2874
|
+
value: index2
|
|
2875
|
+
}, null, 8, ["label", "value"]);
|
|
2876
|
+
}), 256))
|
|
2877
|
+
]),
|
|
2878
|
+
_: 1
|
|
2879
|
+
}, 8, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
2880
|
+
vue.createElementVNode("div", _hoisted_1$F, [
|
|
2881
|
+
vue.createVNode(_component_el_button, {
|
|
2882
|
+
size: "small",
|
|
2883
|
+
onClick: _cache[5] || (_cache[5] = ($event) => routeCreatePanelVisible.value = false)
|
|
2912
2884
|
}, {
|
|
2913
2885
|
default: vue.withCtx(() => [
|
|
2914
|
-
|
|
2915
|
-
return vue.openBlock(), vue.createBlock(_component_el_radio_button, {
|
|
2916
|
-
label: list2.desc,
|
|
2917
|
-
value: index2
|
|
2918
|
-
}, null, 8, ["label", "value"]);
|
|
2919
|
-
}), 256))
|
|
2886
|
+
vue.createTextVNode("取消")
|
|
2920
2887
|
]),
|
|
2921
2888
|
_: 1
|
|
2922
|
-
}
|
|
2923
|
-
vue.
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(formPageTypeValue) ? formPageTypeValue.value = $event : null)
|
|
2889
|
+
}),
|
|
2890
|
+
vue.createVNode(_component_el_button, {
|
|
2891
|
+
type: "primary",
|
|
2892
|
+
size: "small",
|
|
2893
|
+
onClick: createHandle
|
|
2928
2894
|
}, {
|
|
2929
2895
|
default: vue.withCtx(() => [
|
|
2930
|
-
|
|
2931
|
-
return vue.openBlock(), vue.createBlock(_component_el_radio_button, {
|
|
2932
|
-
label: f.desc,
|
|
2933
|
-
value: index2
|
|
2934
|
-
}, null, 8, ["label", "value"]);
|
|
2935
|
-
}), 256))
|
|
2896
|
+
vue.createTextVNode("生成")
|
|
2936
2897
|
]),
|
|
2937
2898
|
_: 1
|
|
2938
|
-
}
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
size: "small",
|
|
2942
|
-
onClick: _cache[5] || (_cache[5] = ($event) => routeCreatePanelVisible.value = false)
|
|
2943
|
-
}, {
|
|
2944
|
-
default: vue.withCtx(() => [
|
|
2945
|
-
vue.createTextVNode("取消")
|
|
2946
|
-
]),
|
|
2947
|
-
_: 1
|
|
2948
|
-
}),
|
|
2949
|
-
vue.createVNode(_component_el_button, {
|
|
2950
|
-
type: "primary",
|
|
2951
|
-
size: "small",
|
|
2952
|
-
onClick: createHandle
|
|
2953
|
-
}, {
|
|
2954
|
-
default: vue.withCtx(() => [
|
|
2955
|
-
vue.createTextVNode("生成")
|
|
2956
|
-
]),
|
|
2957
|
-
_: 1
|
|
2958
|
-
})
|
|
2959
|
-
])
|
|
2960
|
-
];
|
|
2961
|
-
}),
|
|
2899
|
+
})
|
|
2900
|
+
])
|
|
2901
|
+
]),
|
|
2962
2902
|
_: 1
|
|
2963
2903
|
}, 8, ["visible"])
|
|
2964
2904
|
]),
|
|
@@ -2967,9 +2907,10 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
2967
2907
|
};
|
|
2968
2908
|
}
|
|
2969
2909
|
});
|
|
2970
|
-
|
|
2910
|
+
class MsRouteForm extends dm.DataForm {
|
|
2911
|
+
static [DATA_MODEL_NAME] = "ms-route";
|
|
2971
2912
|
constructor(options = {}) {
|
|
2972
|
-
super({ name:
|
|
2913
|
+
super({ name: MsRouteForm[DATA_MODEL_NAME], ...options, moduleName: MODULE_NAME });
|
|
2973
2914
|
}
|
|
2974
2915
|
async initialize() {
|
|
2975
2916
|
await super.initialize();
|
|
@@ -3019,19 +2960,18 @@ const _MsRouteForm = class _MsRouteForm extends (_x = dm.DataForm, _w = DATA_MOD
|
|
|
3019
2960
|
memo: item.memo || ""
|
|
3020
2961
|
};
|
|
3021
2962
|
}
|
|
3022
|
-
}
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
const _MsRouteTable = class _MsRouteTable extends (_z = dm.DataTable, _y = DATA_MODEL_NAME, _z) {
|
|
2963
|
+
}
|
|
2964
|
+
class MsRouteTable extends dm.DataTable {
|
|
2965
|
+
static [DATA_MODEL_NAME] = "ms-route";
|
|
3026
2966
|
constructor(options = {}) {
|
|
3027
2967
|
super({
|
|
3028
|
-
name:
|
|
2968
|
+
name: MsRouteTable[DATA_MODEL_NAME],
|
|
3029
2969
|
...options,
|
|
3030
2970
|
moduleName: MODULE_NAME
|
|
3031
2971
|
});
|
|
3032
|
-
// 操作列
|
|
3033
|
-
__publicField(this, "actionColumn", new dm.TableActionColumn());
|
|
3034
2972
|
}
|
|
2973
|
+
// 操作列
|
|
2974
|
+
actionColumn = new dm.TableActionColumn();
|
|
3035
2975
|
async initialize() {
|
|
3036
2976
|
await super.initialize();
|
|
3037
2977
|
this.dataFilter.setColumns([new dm.FilterColumn({
|
|
@@ -3096,13 +3036,12 @@ const _MsRouteTable = class _MsRouteTable extends (_z = dm.DataTable, _y = DATA_
|
|
|
3096
3036
|
// <ElButton onClick={()=>props.dataTable.addRecord()}>添加</ElButton>
|
|
3097
3037
|
// </ElCard>;
|
|
3098
3038
|
// }
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
const _MsPermissionPointDefineForm = class _MsPermissionPointDefineForm extends (_B = dm.DataForm, _A = DATA_MODEL_NAME, _B) {
|
|
3039
|
+
}
|
|
3040
|
+
class MsPermissionPointDefineForm extends dm.DataForm {
|
|
3041
|
+
static [DATA_MODEL_NAME] = "ms-permission-point-def";
|
|
3103
3042
|
constructor(options = {}) {
|
|
3104
3043
|
super({
|
|
3105
|
-
name:
|
|
3044
|
+
name: MsPermissionPointDefineForm[DATA_MODEL_NAME],
|
|
3106
3045
|
moduleName: MODULE_NAME,
|
|
3107
3046
|
...options
|
|
3108
3047
|
});
|
|
@@ -3131,13 +3070,12 @@ const _MsPermissionPointDefineForm = class _MsPermissionPointDefineForm extends
|
|
|
3131
3070
|
})
|
|
3132
3071
|
]);
|
|
3133
3072
|
}
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
const _MsPermissionPointDefineTable = class _MsPermissionPointDefineTable extends (_D = dm.DataTable, _C = DATA_MODEL_NAME, _D) {
|
|
3073
|
+
}
|
|
3074
|
+
class MsPermissionPointDefineTable extends dm.DataTable {
|
|
3075
|
+
static [DATA_MODEL_NAME] = "ms-permission-point-def";
|
|
3138
3076
|
constructor(options = {}) {
|
|
3139
3077
|
super({
|
|
3140
|
-
name:
|
|
3078
|
+
name: MsPermissionPointDefineTable[DATA_MODEL_NAME],
|
|
3141
3079
|
moduleName: MODULE_NAME,
|
|
3142
3080
|
...options
|
|
3143
3081
|
});
|
|
@@ -3156,9 +3094,7 @@ const _MsPermissionPointDefineTable = class _MsPermissionPointDefineTable extend
|
|
|
3156
3094
|
]);
|
|
3157
3095
|
this.dataFilter.setReady();
|
|
3158
3096
|
}
|
|
3159
|
-
}
|
|
3160
|
-
__publicField(_MsPermissionPointDefineTable, _C, "ms-permission-point-def");
|
|
3161
|
-
let MsPermissionPointDefineTable = _MsPermissionPointDefineTable;
|
|
3097
|
+
}
|
|
3162
3098
|
const abstractSelectProps = utils.buildProps({
|
|
3163
3099
|
modelValue: {
|
|
3164
3100
|
type: null
|
|
@@ -3216,9 +3152,8 @@ const AbstractSelect = vue.defineComponent({
|
|
|
3216
3152
|
}
|
|
3217
3153
|
});
|
|
3218
3154
|
const selections = vue.computed(() => {
|
|
3219
|
-
var _a2, _b2;
|
|
3220
3155
|
if (props.objectValue) {
|
|
3221
|
-
return props.multiple ?
|
|
3156
|
+
return props.multiple ? modelValue.value?.map((item) => item[primaryKey.value]) ?? [] : modelValue.value?.[primaryKey.value] ?? "";
|
|
3222
3157
|
}
|
|
3223
3158
|
return modelValue.value;
|
|
3224
3159
|
});
|
|
@@ -3226,10 +3161,7 @@ const AbstractSelect = vue.defineComponent({
|
|
|
3226
3161
|
const selectRecords = vue.ref([]);
|
|
3227
3162
|
const dataLoading = vue.ref(true);
|
|
3228
3163
|
const primaryKey = vue.computed(
|
|
3229
|
-
() =>
|
|
3230
|
-
var _a2;
|
|
3231
|
-
return props.primaryFieldName ?? ((_a2 = props.dataTable) == null ? void 0 : _a2.primaryKey) ?? "value";
|
|
3232
|
-
}
|
|
3164
|
+
() => props.primaryFieldName ?? props.dataTable?.primaryKey ?? "value"
|
|
3233
3165
|
);
|
|
3234
3166
|
const formatOptions = vue.computed(() => {
|
|
3235
3167
|
let value;
|
|
@@ -3274,7 +3206,7 @@ const AbstractSelect = vue.defineComponent({
|
|
|
3274
3206
|
async (modelValue2) => {
|
|
3275
3207
|
let values;
|
|
3276
3208
|
if (props.objectValue) {
|
|
3277
|
-
values = props.multiple ?
|
|
3209
|
+
values = props.multiple ? modelValue2?.map((item) => item[vue.unref(primaryKey)]) ?? [] : modelValue2?.[vue.unref(primaryKey)] ?? null;
|
|
3278
3210
|
} else {
|
|
3279
3211
|
values = modelValue2;
|
|
3280
3212
|
}
|
|
@@ -3350,8 +3282,7 @@ const AbstractSelect = vue.defineComponent({
|
|
|
3350
3282
|
};
|
|
3351
3283
|
},
|
|
3352
3284
|
render() {
|
|
3353
|
-
|
|
3354
|
-
return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2, {
|
|
3285
|
+
return this.$slots.default?.({
|
|
3355
3286
|
options: this.options,
|
|
3356
3287
|
selections: this.selections,
|
|
3357
3288
|
selectRecords: this.selectRecords,
|
|
@@ -3554,15 +3485,14 @@ const DataTableSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
3554
3485
|
immediate: true
|
|
3555
3486
|
});
|
|
3556
3487
|
const handleMousedown = async () => {
|
|
3557
|
-
var _a2, _b2;
|
|
3558
3488
|
if (props.disabled) {
|
|
3559
3489
|
return;
|
|
3560
3490
|
}
|
|
3561
|
-
const selections =
|
|
3491
|
+
const selections = vue.unref(abstractSelectInstance)?.selections;
|
|
3562
3492
|
dataTable.value.setSelection(props.multiple ? selections ?? [] : selections ? [selections] : []);
|
|
3563
3493
|
const result = await dm.Dialoger.dataTableSelectDialog(vue.unref(dataTable));
|
|
3564
3494
|
if (result.isConfirm) {
|
|
3565
|
-
|
|
3495
|
+
vue.unref(abstractSelectInstance)?.setSelections(props.multiple ? result.selections : result.selections[0]);
|
|
3566
3496
|
}
|
|
3567
3497
|
};
|
|
3568
3498
|
return () => {
|
|
@@ -3645,10 +3575,7 @@ const DataSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
3645
3575
|
setup(props, {
|
|
3646
3576
|
emit
|
|
3647
3577
|
}) {
|
|
3648
|
-
const loading = vue.computed(() =>
|
|
3649
|
-
var _a2;
|
|
3650
|
-
return ((_a2 = props.dataTable) == null ? void 0 : _a2.loading) ?? false;
|
|
3651
|
-
});
|
|
3578
|
+
const loading = vue.computed(() => props.dataTable?.loading ?? false);
|
|
3652
3579
|
const modelValue = vue.computed({
|
|
3653
3580
|
get: () => vue.unref(props.modelValue),
|
|
3654
3581
|
set: (v) => {
|
|
@@ -3793,7 +3720,7 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
3793
3720
|
default: MKCodeEditor
|
|
3794
3721
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3795
3722
|
const MKJsonEditor = utils.withInstall(
|
|
3796
|
-
vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./Editor-
|
|
3723
|
+
vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./Editor-r0C51uF9.cjs")))
|
|
3797
3724
|
);
|
|
3798
3725
|
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3799
3726
|
__proto__: null,
|
|
@@ -3934,8 +3861,7 @@ const FormIconSelect = /* @__PURE__ */ vue.defineComponent({
|
|
|
3934
3861
|
icons.value = Array.from(new Set(iconList));
|
|
3935
3862
|
});
|
|
3936
3863
|
vue.watch(modelValue, () => {
|
|
3937
|
-
|
|
3938
|
-
(_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change");
|
|
3864
|
+
elFormItem?.validate?.("change");
|
|
3939
3865
|
}, {
|
|
3940
3866
|
flush: "post"
|
|
3941
3867
|
});
|
|
@@ -4034,8 +3960,8 @@ const ImageCropperContent = /* @__PURE__ */ vue.defineComponent({
|
|
|
4034
3960
|
const cropperRef = vue.ref(null);
|
|
4035
3961
|
const outputType = vue.computed(() => {
|
|
4036
3962
|
const base64Match = props.src.match(BASE64_PREFIX);
|
|
4037
|
-
if (base64Match
|
|
4038
|
-
return base64Match
|
|
3963
|
+
if (base64Match?.[1]) {
|
|
3964
|
+
return base64Match?.[1];
|
|
4039
3965
|
}
|
|
4040
3966
|
const url = new URL(props.src, location.origin).toString();
|
|
4041
3967
|
const index2 = url.lastIndexOf(".");
|
|
@@ -4065,9 +3991,8 @@ const ImageCropperContent = /* @__PURE__ */ vue.defineComponent({
|
|
|
4065
3991
|
const maxWidth = vue.ref(props.maxWidth);
|
|
4066
3992
|
const maxHeight = vue.ref(props.maxHeight);
|
|
4067
3993
|
const enlarge = vue.computed(() => {
|
|
4068
|
-
|
|
4069
|
-
const
|
|
4070
|
-
const height = ((_b2 = vue.unref(cropperRef)) == null ? void 0 : _b2.cropH) ?? 1;
|
|
3994
|
+
const width = vue.unref(cropperRef)?.cropW ?? 1;
|
|
3995
|
+
const height = vue.unref(cropperRef)?.cropH ?? 1;
|
|
4071
3996
|
const ratio = vue.unref(maxWidth) / vue.unref(maxHeight);
|
|
4072
3997
|
const cropRatio = width / height;
|
|
4073
3998
|
return cropRatio > ratio ? vue.unref(maxWidth) / width : vue.unref(maxHeight) / height;
|
|
@@ -4078,7 +4003,7 @@ const ImageCropperContent = /* @__PURE__ */ vue.defineComponent({
|
|
|
4078
4003
|
const isFixed = vue.computed(() => vue.unref(currentRatio) !== FREE_RATIO);
|
|
4079
4004
|
const fixedNumber = vue.computed(() => {
|
|
4080
4005
|
const option = vue.unref(ratioOptions).find((option2) => option2.value === vue.unref(currentRatio));
|
|
4081
|
-
return [
|
|
4006
|
+
return [option?.width ?? 1, option?.height ?? 1];
|
|
4082
4007
|
});
|
|
4083
4008
|
vue.watch(vue.computed(() => props.src), (src) => {
|
|
4084
4009
|
const image = new Image();
|
|
@@ -4182,40 +4107,37 @@ const ImageCropperContent = /* @__PURE__ */ vue.defineComponent({
|
|
|
4182
4107
|
}, [vue.createVNode(elementPlus.ElScrollbar, {
|
|
4183
4108
|
"height": "100%"
|
|
4184
4109
|
}, {
|
|
4185
|
-
default: () => {
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4110
|
+
default: () => [vue.createVNode(elementPlus.ElForm, {
|
|
4111
|
+
"label-position": "top"
|
|
4112
|
+
}, {
|
|
4113
|
+
default: () => [vue.createVNode(elementPlus.ElFormItem, {
|
|
4114
|
+
"label": "比例"
|
|
4189
4115
|
}, {
|
|
4190
|
-
default: () => [vue.createVNode(elementPlus.
|
|
4191
|
-
"
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
"onUpdate:modelValue": setCurrentRatio
|
|
4197
|
-
}, _isSlot$7(ratioOptionsVNodes) ? ratioOptionsVNodes : {
|
|
4198
|
-
default: () => [ratioOptionsVNodes]
|
|
4199
|
-
})]
|
|
4200
|
-
}), vue.createVNode(elementPlus.ElFormItem, {
|
|
4201
|
-
"label": "最大输出宽度"
|
|
4202
|
-
}, {
|
|
4203
|
-
default: () => [vue.createVNode(elementPlus.ElInputNumber, {
|
|
4204
|
-
"placeholder": "宽度",
|
|
4205
|
-
"modelValue": maxWidth,
|
|
4206
|
-
"onUpdate:modelValue": (v) => this.maxWidth = v
|
|
4207
|
-
}, null)]
|
|
4208
|
-
}), vue.createVNode(elementPlus.ElFormItem, {
|
|
4209
|
-
"label": "最大输出高度"
|
|
4210
|
-
}, {
|
|
4211
|
-
default: () => [vue.createVNode(elementPlus.ElInputNumber, {
|
|
4212
|
-
"placeholder": "高度",
|
|
4213
|
-
"modelValue": maxHeight,
|
|
4214
|
-
"onUpdate:modelValue": (v) => this.maxHeight = v
|
|
4215
|
-
}, null)]
|
|
4116
|
+
default: () => [vue.createVNode(elementPlus.ElSelect, {
|
|
4117
|
+
"placeholder": "选择比例",
|
|
4118
|
+
"modelValue": currentRatio,
|
|
4119
|
+
"onUpdate:modelValue": setCurrentRatio
|
|
4120
|
+
}, _isSlot$7(ratioOptionsVNodes) ? ratioOptionsVNodes : {
|
|
4121
|
+
default: () => [ratioOptionsVNodes]
|
|
4216
4122
|
})]
|
|
4217
|
-
}), (
|
|
4218
|
-
|
|
4123
|
+
}), vue.createVNode(elementPlus.ElFormItem, {
|
|
4124
|
+
"label": "最大输出宽度"
|
|
4125
|
+
}, {
|
|
4126
|
+
default: () => [vue.createVNode(elementPlus.ElInputNumber, {
|
|
4127
|
+
"placeholder": "宽度",
|
|
4128
|
+
"modelValue": maxWidth,
|
|
4129
|
+
"onUpdate:modelValue": (v) => this.maxWidth = v
|
|
4130
|
+
}, null)]
|
|
4131
|
+
}), vue.createVNode(elementPlus.ElFormItem, {
|
|
4132
|
+
"label": "最大输出高度"
|
|
4133
|
+
}, {
|
|
4134
|
+
default: () => [vue.createVNode(elementPlus.ElInputNumber, {
|
|
4135
|
+
"placeholder": "高度",
|
|
4136
|
+
"modelValue": maxHeight,
|
|
4137
|
+
"onUpdate:modelValue": (v) => this.maxHeight = v
|
|
4138
|
+
}, null)]
|
|
4139
|
+
})]
|
|
4140
|
+
}), $slots.tools?.()]
|
|
4219
4141
|
})])]);
|
|
4220
4142
|
}
|
|
4221
4143
|
});
|
|
@@ -4277,10 +4199,10 @@ async function ImageCropper(options) {
|
|
|
4277
4199
|
}
|
|
4278
4200
|
const MKImageCropper = ImageCropper;
|
|
4279
4201
|
let VisualPageEditor$1 = class VisualPageEditor {
|
|
4202
|
+
_version;
|
|
4203
|
+
_content;
|
|
4204
|
+
_modules;
|
|
4280
4205
|
constructor() {
|
|
4281
|
-
__publicField(this, "_version");
|
|
4282
|
-
__publicField(this, "_content");
|
|
4283
|
-
__publicField(this, "_modules");
|
|
4284
4206
|
this._version = "1.0.0";
|
|
4285
4207
|
this._content = null;
|
|
4286
4208
|
this._modules = [];
|
|
@@ -4348,16 +4270,14 @@ let VisualPageEditor$1 = class VisualPageEditor {
|
|
|
4348
4270
|
* @returns
|
|
4349
4271
|
*/
|
|
4350
4272
|
size() {
|
|
4351
|
-
|
|
4352
|
-
return (_a2 = this._content) == null ? void 0 : _a2.contents.length;
|
|
4273
|
+
return this._content?.contents.length;
|
|
4353
4274
|
}
|
|
4354
4275
|
/**
|
|
4355
4276
|
* 删除
|
|
4356
4277
|
* @param index
|
|
4357
4278
|
*/
|
|
4358
4279
|
remove(index2) {
|
|
4359
|
-
|
|
4360
|
-
(_a2 = this._content) == null ? void 0 : _a2.contents.splice(index2, 1);
|
|
4280
|
+
this._content?.contents.splice(index2, 1);
|
|
4361
4281
|
}
|
|
4362
4282
|
/**
|
|
4363
4283
|
* 交换
|
|
@@ -4365,9 +4285,8 @@ let VisualPageEditor$1 = class VisualPageEditor {
|
|
|
4365
4285
|
* @param exchangeIndex
|
|
4366
4286
|
*/
|
|
4367
4287
|
exchange(index2, exchangeIndex) {
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
(_b2 = this._content) == null ? void 0 : _b2.contents.splice(exchangeIndex, 0, item[0]);
|
|
4288
|
+
const item = this._content?.contents.splice(index2, 1);
|
|
4289
|
+
this._content?.contents.splice(exchangeIndex, 0, item[0]);
|
|
4371
4290
|
}
|
|
4372
4291
|
/**
|
|
4373
4292
|
* 设置内容
|
|
@@ -4381,16 +4300,14 @@ let VisualPageEditor$1 = class VisualPageEditor {
|
|
|
4381
4300
|
* @returns
|
|
4382
4301
|
*/
|
|
4383
4302
|
get(index2) {
|
|
4384
|
-
|
|
4385
|
-
return (_a2 = this._content) == null ? void 0 : _a2.contents[index2];
|
|
4303
|
+
return this._content?.contents[index2];
|
|
4386
4304
|
}
|
|
4387
4305
|
/**
|
|
4388
4306
|
* 获取内容
|
|
4389
4307
|
* @returns
|
|
4390
4308
|
*/
|
|
4391
4309
|
edit(index2, data) {
|
|
4392
|
-
|
|
4393
|
-
if ((_a2 = this._content) == null ? void 0 : _a2.contents[index2]) {
|
|
4310
|
+
if (this._content?.contents[index2]) {
|
|
4394
4311
|
this._content.contents[index2].componentProps = data;
|
|
4395
4312
|
console.log(this._content);
|
|
4396
4313
|
}
|
|
@@ -4425,8 +4342,7 @@ const DynamicFormPanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
4425
4342
|
}) => {
|
|
4426
4343
|
const dataRef = vue.ref(props.data);
|
|
4427
4344
|
return () => {
|
|
4428
|
-
|
|
4429
|
-
const formItems = (_a2 = props.options) == null ? void 0 : _a2.filter((item) => {
|
|
4345
|
+
const formItems = props.options?.filter((item) => {
|
|
4430
4346
|
if (item.condition) {
|
|
4431
4347
|
return item.condition(dataRef.value);
|
|
4432
4348
|
}
|
|
@@ -4672,11 +4588,9 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
4672
4588
|
PageEditor2.edit(index2, result);
|
|
4673
4589
|
};
|
|
4674
4590
|
vue.onMounted(() => {
|
|
4675
|
-
|
|
4676
|
-
(_a2 = editableRef.value) == null ? void 0 : _a2.parentElement.addEventListener("scroll", updateToolsPos, false);
|
|
4591
|
+
editableRef.value?.parentElement.addEventListener("scroll", updateToolsPos, false);
|
|
4677
4592
|
vue.onBeforeUnmount(() => {
|
|
4678
|
-
|
|
4679
|
-
(_a3 = editableRef.value) == null ? void 0 : _a3.parentElement.removeEventListener("scroll", updateToolsPos);
|
|
4593
|
+
editableRef.value?.parentElement.removeEventListener("scroll", updateToolsPos);
|
|
4680
4594
|
});
|
|
4681
4595
|
PageEditor2.setContent({
|
|
4682
4596
|
version: "1.0.0",
|
|
@@ -4876,7 +4790,7 @@ PageEditor.registerBaseModule("base-image", "图片", (data) => {
|
|
|
4876
4790
|
{ name: "src", title: "图片路径 :", component: "MKUploadImage", props: { cutSize: "818*597" }, defaultValue: "" }
|
|
4877
4791
|
]);
|
|
4878
4792
|
const MKVisualPageEditor = utils.withInstall(VisualPageEditor2);
|
|
4879
|
-
window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" viewBox="0 0 1024 1024"><path d="M926.25224691 70.13093706a27.61681602 27.61681602 0 0 0-27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 0 55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 0-27.61681603-27.61681603zM180.59820247 567.23363335a55.23363335 55.23363335 0 0 0-55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363335 55.23363206h552.33632965a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206H180.59820247z m276.16816418-331.40179753a55.23363335 55.23363335 0 0 0-55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363206 55.23363206h276.16816547a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206h-276.16816547z" ></path></symbol><symbol id="icon-doc-flex-h-center" viewBox="0 0 1024 1024"><path d="M953.86906294 512a27.61681602 27.61681602 0 0 1-27.61681603 27.61681602H788.16816418v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206v-110.46726671h-110.4672667V788.16816418a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335v-248.55134816H97.74775309a27.61681602 27.61681602 0 1 1 0-55.23363204H235.83183582V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v248.55134816h110.4672667v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671h138.08408273a27.61681602 27.61681602 0 0 1 27.61681603 27.61681602z" ></path></symbol><symbol id="icon-doc-flex-v-justify" viewBox="0 0 1024 1024"><path d="M263.44865185 70.13093706a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603z m497.1026963 0a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603zM567.23363335 180.59820247a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v552.33632836a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.4672667a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.4672667z" ></path></symbol><symbol id="icon-doc-flex-bottom" viewBox="0 0 1024 1024"><path d="M960.15254694 898.63543088a27.61681602 27.61681602 0 0 0-27.61681733-27.61681731H104.03123579a27.61681602 27.61681602 0 1 0 0 55.23363334h828.50449382a27.61681602 27.61681602 0 0 0 27.61681733-27.61681603z m-497.10269629-745.65404445a55.23363335 55.23363335 0 0 0-55.23363337-55.23363334h-110.4672654a55.23363335 55.23363335 0 0 0-55.23363336 55.23363334v552.33632836a55.23363335 55.23363335 0 0 0 55.23363336 55.23363336h110.4672654a55.23363335 55.23363335 0 0 0 55.23363337-55.23363336v-552.33632836z m331.40179752 276.16816418a55.23363335 55.23363335 0 0 0-55.23363335-55.23363334h-110.46726542a55.23363335 55.23363335 0 0 0-55.23363334 55.23363334v276.16816418a55.23363335 55.23363335 0 0 0 55.23363334 55.23363336h110.46726542a55.23363335 55.23363335 0 0 0 55.23363335-55.23363336v-276.16816418z" ></path></symbol><symbol id="icon-doc-flex-h-justify" viewBox="0 0 1024 1024"><path d="M953.86906294 263.44865185a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603z m0 497.1026963a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 1 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603zM843.40179753 567.23363335a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.4672667a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h552.33632836a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.4672667z" ></path></symbol><symbol id="icon-doc-flex-v-center" viewBox="0 0 1024 1024"><path d="M512 70.13093706a27.61681602 27.61681602 0 0 1 27.61681602 27.61681603V235.83183582h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671v110.4672667H788.16816418a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206h-248.55134816v138.08408273a27.61681602 27.61681602 0 1 1-55.23363204 0V788.16816418H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h248.55134816v-110.4672667h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671V97.74775309A27.61681602 27.61681602 0 0 1 512 70.13093706z" ></path></symbol><symbol id="icon-doc-flex-top" viewBox="0 0 1024 1024"><path d="M953.86906294 152.98138643a27.61681602 27.61681602 0 0 1-27.61681603 27.61681604h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363335h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681731zM456.76636665 898.63543088a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v552.33632964z m331.40179753-276.16816547a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v276.16816417z" ></path></symbol><symbol id="icon-doc-flex-left" viewBox="0 0 1024 1024"><path d="M152.98138643 70.13093706a27.61681602 27.61681602 0 0 1 27.61681604 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363335 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681731-27.61681603zM898.63543088 567.23363335a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h552.33632964z m-276.16816547-331.40179753a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h276.16816417z" ></path></symbol><symbol id="icon-doc-bold" viewBox="0 0 1024 1024"><path d="M226.65787417 129.49114628h338.35346805c62.40969008 0 112.45653965 15.70274924 150.16643951 47.09530231 37.69695447 31.40549847 56.55837709 78.85032613 56.55837709 142.36037373 0 38.53840435-8.62162489 71.54913027-25.83898391 99.00628702-17.23030439 27.4830475-41.77475003 48.70052978-73.6203915 63.69128297v2.13598814c42.90099831 10.00678083 75.40685431 32.29872987 97.50462262 66.90173787 22.0977683 34.61595339 33.15312514 77.9700401 33.15312514 130.04931477 0 29.96856098-4.88040928 57.98236918-14.62828248 84.02847922-9.74787318 26.05905541-25.03637017 48.53223981-45.82665482 67.43249856-20.81617541 18.91320415-47.45777303 33.90395733-79.95068365 44.95931417-32.51880139 11.06830222-71.18665955 16.59598064-116.02946528 16.59598065H226.65787417V129.49114628z m121.88077828 320.03575151h198.9187508c29.25656494 0 53.63272059-9.10060405 73.12846697-27.28886676 19.49574637-18.2012081 29.25656494-44.4156081 29.25656495-78.66909078 0-38.53840435-8.77696948-65.64603575-26.33090845-81.34878499-17.55393897-15.68980385-42.90099831-23.54765117-76.05412347-23.54765116H348.53865245V449.52689779z m0 335.02650469h215.48884069c37.04968533 0 65.81432573-10.52459615 86.29392117-31.57378845 20.47959547-21.03624691 30.71939318-50.83651792 30.71939319-89.37492227 0-37.81346291-10.23979773-66.90173787-30.71939319-87.23893412s-49.24423585-30.49932169-86.29392117-30.49932169H348.53865245V784.55340248z" ></path></symbol><symbol id="icon-doc-italic" viewBox="0 0 1024 1024"><path d="M630.50203339 163.97764584l-125.66083003 691.19281935H395.7504632l125.66083004-691.19281935h109.09074015z" ></path><path d="M768.30563239 255.72157315H350.26038835l17.9681912-98.85094242h418.04524406l-17.96819122 98.85094242zM659.16311072 855.99896969H241.11786667l17.9681912-98.83799704h418.04524405l-17.9681912 98.83799704z" ></path></symbol><symbol id="icon-doc-underline" viewBox="0 0 1024 1024"><path d="M246.47725511 122.37118579h113.59573334V500.40225186c0 21.81296987 1.048576 43.93662894 3.18456414 66.33214103 2.11009739 22.42140286 8.18148187 42.56441837 18.17531733 60.42904653 9.99383547 17.87757353 25.12698785 32.57058291 45.43829333 44.06608275 20.28541472 11.52139061 48.92060128 17.26914053 85.87966894 17.26914056 36.94612227 0 65.56836347-5.74774992 85.87966895-17.26914056 20.28541472-11.49549985 35.44445787-26.20145461 45.43829333-44.06608275 9.99383547-17.86462815 16.03932918-38.00764365 18.17531734-60.42904653 2.11009739-22.40845748 3.18456415-44.53211653 3.18456414-66.33214103V122.37118579h113.59573333v415.28787752c0 41.8006408-6.35618291 78.15127547-19.08149411 109.051904-12.7253112 30.90062853-30.75822933 56.79139397-54.07286362 77.69818706-23.32757965 20.90679309-51.34138785 36.50597925-84.05436997 46.79755852-32.71298213 10.29157925-69.0636168 15.44384158-109.051904 15.44384159-39.9882872 0-76.3259765-5.15226231-109.051904-15.44384159-32.71298213-10.29157925-60.7397357-25.90371082-84.05436997-46.79755852-23.32757965-20.90679309-41.34755239-46.79755852-54.07286361-77.69818706-12.7253112-30.90062853-19.08149413-67.2512632-19.08149413-109.051904v-415.28787752zM205.03908503 840.45156504h608.6271684v61.29638716H205.03908503z" ></path></symbol><symbol id="icon-doc-strikethrough" viewBox="0 0 1024 1024"><path d="M206.33362331 135.49846125v116.88386054h244.64184256v247.6063352h135.31808554V252.38232179H832.00986075V135.49846125zM450.97546587 608.50980031h135.30514016V893.70952692H450.97546587z" ></path><path d="M207.11034627 532.37800454h625.3267121v44.01430125H207.11034627z" ></path></symbol><symbol id="icon-doc-sub" viewBox="0 0 1024 1024"><path d="M670.61977442 693.84576318c9.30773017 0 18.35655269-0.77672297 27.14646755-2.3301689 8.78991486-1.55344592 16.73837985-4.12957709 23.84539497-7.75428424 7.10701511-3.61176178 13.19134498-8.27209955 18.22709887-13.95512256 5.03575387-5.68302302 8.33682647-12.6605843 9.89027238-20.94562925h36.06583626v271.45173017h-48.48045828V728.74651498h-66.69461175v-34.9007518zM94.7444243 135.49846125v116.88386054h244.65478795v247.6063352h135.30514014V252.38232179h245.72925472V135.49846125z" ></path><path d="M339.39921225 483.31500406h135.30514014V893.70952692H339.39921225z" ></path></symbol><symbol id="icon-doc-sup" viewBox="0 0 1024 1024"><path d="M819.12661586 141.34230029c9.92824551 0 19.58032287-0.8285045 28.95623205-2.48551347 9.37590918-1.65700898 17.85427184-4.40488223 25.43508797-8.27123654 7.58081612-3.8525459 14.07076798-8.82357285 19.44223879-14.88546407 5.37147079-6.06189122 8.8926149-13.50462325 10.54962389-22.34200451h38.47022532v289.54851218h-51.71248881V178.56976887h-71.14091921v-37.22746858zM91.53396939 141.42515074v124.67611792h260.96510714v264.11342423h144.32548282V266.10126866h262.11120503v-124.67611792z" ></path><path d="M352.49907653 512.42946308h144.32548282v437.75415773H352.49907653z" ></path></symbol><symbol id="icon-doc-link" viewBox="0 0 1024 1024"><path d="M412.55356997 639.61821237l-12.84181966-12.84181966c-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809483l58.47429374-58.47429372c103.70546094-103.70546094 272.43557925-103.70546094 376.12809481 0 50.22808494 50.24103031 77.90531318 117.02625975 77.90531319 188.0705201 0 71.04426035-27.66428286 137.82948978-77.90531319 188.07052011l-58.47429372 58.47429372-78.3454562-78.34545621 58.47429373-58.47429372c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.7250639s-16.14289225-80.41671743-45.45123872-109.72506389c-60.49377343-60.49377343-158.94340898-60.49377343-219.43718242 0l-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718242l12.84181965 12.82887427-78.3454562 78.35840159z" ></path><path d="M347.98200098 913.6460737c-71.04426035 0-137.82948978-27.66428286-188.07052009-77.90531319-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809481l58.47429372-58.47429374 78.34545621 78.3454562-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718243 29.30834647 29.30834647 68.27394845 45.45123872 109.72506389 45.45123872s80.41671743-16.14289225 109.72506391-45.45123872l58.47429372-58.47429373c60.49377343-60.49377343 60.49377343-158.94340898 0-219.43718242l-12.64763891-12.63469353 78.3454562-78.3454562 12.64763892 12.64763892c103.70546094 103.69251555 103.70546094 272.43557925 0 376.12809481L536.05252109 835.74076051c-50.24103031 50.24103031-117.02625975 77.90531318-188.07052011 77.90531319z" ></path></symbol><symbol id="icon-doc-unlink" viewBox="0 0 1024 1024"><path d="M714.18098725 714.01335467l128.0039443 128.0039443-28.56787057 28.56916512-128.00523885-128.00523884zM657.3701752 775.98937442l46.84934005 174.85457888-39.02385619 10.45728016-46.84934004-174.85587342zM756.63536987 648.12782934l174.85587343 46.84934005-10.45598561 39.02515073-174.85587342-46.84934004zM245.52318041 302.52235789l-128.00523884-128.00394429 28.56916512-28.57045966 128.0039443 128.00653337zM201.64739476 369.81634086L26.79411042 322.96570628l10.45598561-39.02515074 174.8545789 46.84934005zM300.93071297 241.95479577l-46.85063459-174.85587342 39.02515074-10.45598562 46.84934004 174.85457889z" ></path><path d="M712.47219675 651.79784534l-78.34545622-78.3454562 78.06065778-78.06065778c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.72506389s-16.14289225-80.41671743-45.45123872-109.72506391c-29.30834647-29.30834647-68.27394845-45.45123872-109.72506389-45.45123872s-80.41671743 16.14289225-109.7250639 45.45123872l-78.06065777 78.06065778-78.34545622-78.3454562 78.06065778-78.06065778c103.70546094-103.70546094 272.43557925-103.70546094 376.12809483 0 50.22808494 50.22808494 77.90531318 117.02625975 77.90531317 188.07052011s-27.66428286 137.82948978-77.90531317 188.07052009l-78.04771239 78.06065778z" ></path><path d="M354.6359277 897.12579319c-68.11860385 0-136.21131694-25.91665619-188.07052009-77.77585935-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809482l78.06065778-78.06065778 78.34545619 78.34545619-78.06065777 78.06065777c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718244 60.49377343 60.49377343 158.94340898 60.49377343 219.43718241 0l78.06065778-78.06065779 78.34545619 78.34545621-78.06065777 78.06065778c-51.83331239 51.84625778-119.96486163 77.77585936-188.05757472 77.77585935z" ></path></symbol><symbol id="icon-doc-text-left" viewBox="0 0 1024 1024"><path d="M93.96770133 166.81136987h843.06804939v129.69978944H93.96770133zM93.96770133 449.79743605H625.01319111v129.69978943H93.96770133zM93.96770133 732.78350222h843.06804939v129.69978943H93.96770133z" ></path></symbol><symbol id="icon-doc-text-right" viewBox="0 0 1024 1024"><path d="M97.45000928 166.81136987h843.06804939v129.69978944H97.45000928zM409.47256889 449.79743605h531.04548978v129.69978943H409.47256889zM97.45000928 732.78350222h843.06804939v129.69978943H97.45000928z" ></path></symbol><symbol id="icon-doc-text-center" viewBox="0 0 1024 1024"><path d="M93.56639447 129.78757531h843.06804938v129.69978944H93.56639447zM249.57120158 412.77364148H780.61669136v129.69978943H249.57120158zM93.56639447 695.75970765h843.06804938v129.69978944H93.56639447z" ></path></symbol><symbol id="icon-doc-text-justify" viewBox="0 0 1024 1024"><path d="M92.40131003 464.12797472h843.06804938v129.69978943H92.40131003zM92.40131003 181.14190853h843.06804938v129.69978944H92.40131003zM92.40131003 747.11404089h531.04548978v129.69978942H92.40131003z" ></path></symbol><symbol id="icon-doc-h1" viewBox="0 0 1024 1024"><path d="M781.4063597 654.73578983c9.96794469 0 19.66403635-0.8285045 29.08827497-2.49845886 9.41129324-1.65700898 17.92935506-4.42732089 25.55418548-8.31093572 7.61188503-3.87066943 14.12341253-8.86758717 19.53458252-14.95191703 5.39822459-6.08432987 8.93231408-13.56676109 10.58932306-22.43434825h38.64196741V897.38404347h-51.93687545V692.1350005h-71.47145799v-37.39921067zM121.7096565 447.86857403h531.04548977v129.69978944H121.7096565z" ></path><path d="M589.78880475 897.40475607v-769.36998558h129.69978942v769.36998558zM121.71871826 897.40216699v-769.36998557h129.69978944v769.36998557z" ></path></symbol><symbol id="icon-doc-h2" viewBox="0 0 1024 1024"><path d="M942.38219378 897.38404347H743.78707753c0.27185303-24.10430261 6.08432987-45.14054953 17.4503759-63.16052229 11.35310064-18.00702736 26.86166914-33.65799506 46.53865087-46.9529031 9.41129324-6.92577975 19.2497841-13.64443339 29.5025272-20.1559609 10.23979773-6.5115275 19.66403635-13.50203417 28.25977047-20.98446537 8.58278875-7.4824312 15.6509677-15.5862408 21.19159151-24.31142875 5.54062381-8.72518795 8.44038953-18.75785955 8.72518795-30.12390558 0-5.25582539-0.62137837-10.87412148-1.86413512-16.82899753s-3.67648869-11.49549985-7.27530507-16.62187142c-3.59881639-5.12637155-8.58278875-9.41129324-14.95191705-12.88065578-6.3691283-3.45641718-14.680064-5.19109847-24.9328071-5.19109848-9.42423861 0-17.24324978 1.86413511-23.46997887 5.60535071s-11.22364682 8.86758717-14.95191704 15.37911467c-3.74121561 6.5115275-6.5115275 14.20108483-8.3109357 23.05572662-1.79940819 8.86758717-2.84798419 18.42127961-3.11983723 28.67402271h-47.36715536c0-16.06521995 2.14893353-30.95241008 6.44680059-44.66157037 4.28492169-13.7091603 10.73172227-25.55418548 19.31451102-35.52213016 8.58278875-9.96794469 19.04265797-17.79990124 31.36666232-23.46997887 12.32400435-5.67007763 26.65454302-8.51806183 43.00456137-8.51806183 17.72222894 0 32.54469215 2.91271111 44.45444426 8.72518795 11.9097521 5.81247683 21.52817147 13.16545422 28.88114883 22.020096 7.340032 8.86758717 12.53113047 18.48600652 15.5862408 28.88114883 3.04216494 10.38219694 4.5697201 20.2983601 4.56972009 29.70965334 0 11.63789906-1.79940819 22.1624952-5.39822459 31.57378844a101.82838045 101.82838045 0 0 1-14.53766478 25.96843774c-6.09727525 7.89668347-13.02305502 15.15904317-20.77733927 21.81296987-7.75428425 6.65392672-15.79336691 12.88065581-24.10430262 18.69313265-8.3109357 5.81247683-16.62187141 11.36604603-24.9328071 16.6218714-8.3109357 5.26877076-16.00049303 10.52459615-23.05572663 15.79336692-7.06817897 5.26877076-13.23018114 10.73172227-18.48600651 16.41474528-5.26877076 5.68302302-8.86758717 11.70262597-10.79644919 18.07175428H942.43397531v42.38318302zM89.90285117 447.86857403h531.04548977v129.69978944H89.90285117z" ></path><path d="M557.97293763 897.40993422V128.03994864h129.69978944v769.36998558zM89.90285117 897.40605061v-769.36998558h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h3" viewBox="0 0 1024 1024"><path d="M823.67303427 727.0357523c7.75428425 0.27185303 15.5085685-0.27185303 23.26285275-1.65700899 7.75428425-1.38515595 14.680064-3.80594252 20.77733925-7.27530509 6.08432987-3.45641718 11.00357531-8.23326341 14.74479091-14.33053867 3.74121561-6.08432987 5.60535072-13.56676109 5.60535072-22.43434824 0-12.46640355-4.22019476-22.43434825-12.67352968-29.91677946-8.45333491-7.4824312-19.31451102-11.22364682-32.62236444-11.22364682-8.3109357 0-15.52151387 1.65700898-21.60584375 4.98397236-6.09727525 3.32696336-11.1589199 7.83195653-15.15904317 13.50203416-4.01306864 5.68302302-7.00345205 12.05215131-8.93231406 19.1073849-1.94180741 7.06817897-2.7703119 14.33053867-2.49845888 21.81296986H747.21760395c0.55665147-14.12341253 3.18456415-27.21119447 7.89668346-39.26334578 4.71211931-12.05215131 11.14597452-22.49907517 19.31451101-31.36666231 8.1685365-8.86758717 18.07175427-15.79336691 29.70965333-20.77733925 11.63789906-4.98397235 24.7904079-7.4824312 39.4704719-7.48243122 11.35310064 0 22.49907517 1.65700898 33.45086894 4.98397235 10.93884839 3.32696336 20.77733925 8.1685365 29.50252722 14.53766479 8.72518795 6.3691283 15.71569461 14.47293787 20.98446537 24.31142874 5.25582539 9.83849086 7.89668347 21.12686459 7.89668346 33.86512119 0 14.680064-3.32696336 27.49599289-9.96794469 38.43484128-6.65392672 10.95179378-17.03612365 18.90025876-31.1595362 23.89717649v0.8285045c16.62187141 3.32696336 29.56725413 11.57317215 38.84909353 24.72568099 9.28183941 13.16545422 13.91628642 29.15300187 13.91628642 47.98853373 0 13.8515595-2.7703119 26.25323615-8.3109357 37.19208454-5.54062381 10.95179378-13.02305502 20.22068781-22.43434825 27.83257283-9.42423861 7.62483042-20.36308702 13.50203417-32.82949057 17.65750202-12.46640355 4.15546785-25.61891239 6.22672909-39.4704719 6.2267291-16.89372445 0-31.65146075-2.43373195-44.24731811-7.2753051-12.60880276-4.84157314-23.13339891-11.70262597-31.57378845-20.57021312-8.45333491-8.86758717-14.88719013-19.52163714-19.31451102-31.98804069-4.44026627-12.46640355-6.79632592-26.31796306-7.06817895-41.55467853h47.36715535c-0.55665147 17.73517431 3.80594252 32.47996524 13.08778193 44.24731812 9.28183941 11.78029827 23.19812583 17.65750203 41.76180464 17.65750204 15.79336691 0 29.01060267-4.50499318 39.67759802-13.50203419 10.65404997-8.99704098 16.00049303-21.81296987 16.00049304-38.43484128 0-11.35310064-2.22660583-20.36308702-6.65392671-27.00406835-4.42732089-6.65392672-10.25274311-11.70262597-17.45037591-15.15904315-7.21057817-3.45641718-15.31438775-5.60535072-24.31142874-6.44680058-9.00998637-0.8285045-18.21415348-1.10035753-27.62544672-0.8285045v-35.30205867zM91.27506173 447.86857403h531.04548977v129.69978944H91.27506173z" ></path><path d="M559.34126459 897.40605061v-769.36998558h129.69978944v769.36998558zM91.27247265 897.40346153v-769.36998558h129.69978943v769.36998558z" ></path></symbol><symbol id="icon-doc-h4" viewBox="0 0 1024 1024"><path d="M942.30452148 828.41104435h-37.39921066v68.97299912h-44.86869651v-68.97299912h-124.65109016v-46.95290311l124.65109016-174.91801127h44.86869651v184.48464909h37.39921066v37.38626529z m-170.36123654-37.38626529h88.080384v-127.97805353h-0.82850449l-87.25187951 127.97805353zM87.75391763 447.86857403H618.79940741v129.69978944H87.75391763z" ></path><path d="M555.82659318 897.39957792v-769.36998558h129.69978943v769.36998558zM87.75780125 897.39698883V128.02700325h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h5" viewBox="0 0 1024 1024"><path d="M772.55171792 661.63567882h150.41240178v42.38318301h-115.09739773L792.91480494 777.97583328l0.82850449 0.8285045c6.3691283-7.1976328 14.47293787-12.67352969 24.31142874-16.41474528 9.82554548-3.74121561 19.59930943-5.60535072 29.29540108-5.60535072 14.39526558 0 27.27592139 2.43373195 38.64196742 7.27530508 11.35310064 4.85451852 20.90679309 11.63789906 28.67402272 20.36308701 7.75428425 8.72518795 13.64443339 19.04265797 17.65750202 30.95241008 4.01306864 11.9097521 6.01960297 24.7904079 6.01960296 38.64196741 0 11.63789906-1.86413511 23.61237808-5.60535072 35.93638242-3.74121561 12.32400435-9.69609165 23.54765117-17.86462815 33.65799505-8.1685365 10.1103439-18.62840573 18.42127961-31.36666232 24.93280712-12.73825659 6.49858213-27.97497205 9.76081857-45.71014636 9.76081857-14.12341253 0-27.21119447-1.86413511-39.26334579-5.60535071s-22.64147437-9.34656631-31.78091456-16.82899754c-9.13944019-7.4824312-16.41474528-16.68659831-21.81296988-27.62544672-5.39822459-10.93884839-8.37566261-23.7418319-8.93231407-38.43484128h47.36715535c1.38515595 15.79336691 6.78338053 27.91024514 16.20761916 36.35063467 9.41129324 8.45333491 21.8776968 12.67352969 37.39921067 12.67352967 9.96794469 0 18.42127961-1.65700898 25.34705936-4.98397234 6.92577975-3.32696336 12.53113047-7.89668347 16.82899753-13.7091603 4.29786706-5.81247683 7.340032-12.59585739 9.13944021-20.363087 1.79940819-7.75428425 2.70558498-16.06521995 2.70558498-24.93280712 0-8.02613728-1.11330291-15.71569461-3.32696336-23.05572661-2.22660583-7.340032-5.54062381-13.7738872-9.96794469-19.31451102-4.44026627-5.54062381-10.17507082-9.96794469-17.24324978-13.29490805s-15.31438775-4.98397235-24.72568098-4.98397234c-9.96794469 0-19.31451102 1.86413511-28.05264436 5.6053507s-15.02958933 10.73172227-18.90025876 20.98446539H741.39218173l31.15953619-159.1505351zM83.76673975 502.96412286h531.04548978v129.69978944H83.76673975z" ></path><path d="M551.83941531 952.4964213v-769.36998559h129.69978944v769.36998559zM83.77062337 952.49253769V183.1225521h129.69978943v769.36998559z" ></path></symbol><symbol id="icon-doc-h6" viewBox="0 0 1024 1024"><path d="M888.60707397 733.36604445c-1.11330291-11.9097521-5.33349769-21.52817147-12.67352967-28.88114884-7.340032-7.340032-17.24324978-11.01652069-29.70965333-11.0165207-8.59573413 0-16.00049303 1.59228208-22.22722214 4.77684623-6.22672909 3.18456415-11.49549985 7.4177043-15.79336691 12.67352968-4.29786706 5.26877076-7.75428425 11.28837373-10.38219694 18.07175427-2.64085808 6.79632592-4.77684622 13.91628642-6.4338552 21.39871763s-2.84798419 14.88719013-3.53408948 22.22722211c-0.69905067 7.340032-1.32042903 14.20108483-1.86413512 20.57021314l0.82850451 0.8285045c6.3691283-11.63789906 15.15904317-20.28541472 26.38268996-25.96843772 11.22364682-5.67007763 23.32757965-8.51806183 36.35063466-8.51806184 14.39526558 0 27.27592139 2.49845886 38.64196742 7.48243122 11.35310064 4.98397235 20.98446539 11.84502518 28.88114884 20.57021312 7.89668347 8.72518795 13.91628642 19.04265797 18.07175426 30.95241008 4.15546785 11.9097521 6.22672909 24.7904079 6.22672909 38.64196742 0 14.12341253-2.29133275 27.21119447-6.86105283 39.26334577-4.5697201 12.05215131-11.1589199 22.57674747-19.74170864 31.57378845-8.58278875 9.00998637-18.83553185 16.00049303-30.74528395 20.98446538-11.9097521 4.98397235-25.07520631 7.4824312-39.47047191 7.4824312-21.33399072 0-38.84909353-3.94834173-52.55825383-11.84502518s-24.51855486-18.69313264-32.41523831-32.41523832c-7.89668347-13.7091603-13.37258035-29.77438025-16.41474528-48.19565986-3.05511031-18.42127961-4.5697201-38.29244208-4.56972011-59.62643278 0-17.4503759 1.86413511-35.04315102 5.60535072-52.76537994 3.74121561-17.72222894 9.90321778-33.86512118 18.48600652-48.40278599 8.58278875-14.5376648 19.87116247-26.38268997 33.86512118-35.52213017 13.98101333-9.13944019 31.22426311-13.7091603 51.72974934-13.70916029 11.63789906 0 22.57674747 1.94180741 32.82949057 5.81247683 10.23979773 3.88361482 19.31451102 9.28183941 27.21119446 16.20761917s14.33053867 15.23671547 19.31451101 24.93280711c4.98397235 9.69609165 7.75428425 20.50548622 8.31093571 32.41523832h-47.3412646z m-45.69720099 183.65614458c8.58278875 0 16.06521995-1.7217359 22.43434826-5.19109846 6.3691283-3.45641718 11.70262597-7.96141037 16.00049303-13.50203418 4.28492169-5.54062381 7.4824312-11.97447902 9.55369245-19.32745639 2.07126124-7.340032 3.11983724-14.88719013 3.11983723-22.64147437 0-7.75428425-1.03563061-15.22377008-3.11983723-22.43434824-2.07126124-7.1976328-5.26877076-13.50203417-9.55369245-18.90025878-4.29786706-5.39822459-9.63136475-9.76081857-16.00049303-13.08778192-6.3691283-3.32696336-13.8515595-4.98397235-22.43434826-4.98397234-8.58278875 0-16.14289225 1.59228208-22.64147437 4.77684622-6.5115275 3.18456415-11.98742439 7.4824312-16.41474528 12.8806558-4.44026627 5.39822459-7.75428425 11.70262597-9.96794469 18.90025877-2.21366045 7.21057817-3.32696336 14.8224632-3.32696336 22.84860049 0 8.03908267 1.10035753 15.6509677 3.32696336 22.8486005 2.21366045 7.21057817 5.54062381 13.64443339 9.96794469 19.31451101 4.42732089 5.68302302 9.90321778 10.17507082 16.41474528 13.50203417 6.49858213 3.32696336 14.04574025 4.99691773 22.64147437 4.99691772zM86.82185008 501.15176928h531.04548977v129.69978944H86.82185008z" ></path><path d="M554.89064202 950.68277317v-769.36998558h129.69978943v769.36998558zM86.82185008 950.69312948V181.3231439h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-list-bullet" viewBox="0 0 1024 1024"><path d="M354.22167547 181.90568613h531.04548977V311.60547555H354.22167547zM354.22167547 464.8917523h531.04548977V594.59154173H354.22167547zM354.22167547 747.87781847h531.04548977V877.5776079H354.22167547z" ></path><path d="M208.84502755 247.42226805m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 529.7481197m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 805.78251536m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path></symbol><symbol id="icon-doc-list-number" viewBox="0 0 1024 1024"><path d="M154.11194943 180.33929482c7.37886815 0 14.56355555-0.62137837 21.54111684-1.85118973 6.97756128-1.22981136 13.28196267-3.27518183 18.92614954-6.14905679 5.64418686-2.87387497 10.45986924-6.56330903 14.45999249-11.08124761 4.00012325-4.50499318 6.61509057-10.04561698 7.84490192-16.62187141h28.62224119v215.39822302h-38.46073205V208.02946845h-52.92072454V180.33929482zM296.8995208 658.07569857H149.81408237c0.20712613-17.85168276 4.50499318-33.43792355 12.91949194-46.77166775 8.41449876-13.33374419 19.89705324-24.91986173 34.4606088-34.77129799 6.97756128-5.12637155 14.25286637-10.09739852 21.85180603-14.92602626 7.58599427-4.81568237 14.56355555-9.99383547 20.91973847-15.53445926s11.58611753-11.534336 15.68980386-17.99408198 6.25261985-13.89039565 6.45974596-22.30489442c0-3.89656019-0.46603378-8.05202805-1.38515595-12.46640355-0.91912217-4.4143755-2.71853037-8.50511645-5.38527921-12.31105897-2.66674883-3.79299714-6.35618291-6.97756128-11.0812476-9.54074706-4.72506469-2.56318578-10.87412148-3.84477867-18.46011576-3.84477866-6.97756128 0-12.76414736 1.38515595-17.38564899 4.15546785-4.60855625 2.7703119-8.3109357 6.56330903-11.08124761 11.39193679-2.7703119 4.81568237-4.82862775 10.51165076-6.14905678 17.0749598-1.33337442 6.56330903-2.11009739 13.64443339-2.30427812 21.23042765h-35.08198716c0-11.89680672 1.59228208-22.9262728 4.76390084-33.07545284s7.94846498-18.92614953 14.30464789-26.30501767c6.35618291-7.39181353 14.09752178-13.17839961 23.23696199-17.385649 9.12649482-4.20724939 19.74170864-6.30440139 31.84564148-6.30440138 13.12661808 0 24.10430261 2.14893353 32.92010824 6.45974598 8.81580563 4.31081245 15.9487115 9.74787318 21.38577225 16.31118223 5.43706075 6.56330903 9.28183941 13.69621491 11.534336 21.38577223 2.25249659 7.68955733 3.37874489 15.02958933 3.37874489 21.99420524 0 8.62162489-1.33337442 16.41474528-4.00012326 23.39230658a75.61656951 75.61656951 0 0 1-10.77055842 19.2368387 109.10109645 109.10109645 0 0 1-15.37911467 16.15583764c-5.74774992 4.91924543-11.68968059 9.54074706-17.85168276 13.8515595-6.1490568 4.31081245-12.31105897 8.41449876-18.46011575 12.31105897s-11.84502518 7.79312039-17.0749598 11.68968059c-5.22993461 3.89656019-9.79965472 7.94846498-13.69621492 12.15571437-3.89656019 4.20724939-6.56330903 8.67340642-8.00024652 13.38552573h104.92232691v31.35371694zM207.96474153 818.30070045c5.73480453 0.20712613 11.48255447-0.20712613 17.23030439-1.22981136 5.74774992-1.02268524 10.87412148-2.82209343 15.39206005-5.38527922 4.50499318-2.56318578 8.15559111-6.09727525 10.92590301-10.61521382 2.7703119-4.50499318 4.15546785-10.04561698 4.15546785-16.62187141 0-9.23005787-3.13278261-16.62187141-9.38540246-22.14954982-6.26556524-5.54062381-14.3046479-8.3109357-24.15608415-8.31093571-6.1490568 0-11.49549985 1.22981136-16.00049304 3.68943407-4.51793857 2.45962272-8.25915417 5.79953147-11.2365922 9.99383546-2.97743803 4.20724939-5.17815309 8.91936869-6.61509056 14.14930331-1.43693748 5.22993461-2.05831585 10.61521383-1.85118973 16.15583763h-35.08198716c0.41425225-10.45986924 2.35605965-20.15596089 5.85131299-29.07532958 3.48230795-8.91936869 8.25915417-16.66070755 14.3046479-23.23696197 6.04549373-6.56330903 13.38552573-11.68968059 21.99420523-15.37911467 8.62162489-3.68943408 18.35655269-5.54062381 29.23067418-5.54062381 8.41449876 0 16.66070755 1.22981136 24.76451714 3.68943408 8.10380958 2.45962272 15.37911467 6.05843911 21.85180601 10.77055842 6.45974597 4.72506469 11.63789906 10.71877689 15.53445927 17.99408198 3.89656019 7.28825047 5.85131298 15.6509677 5.85131299 25.07520632 0 10.87412148-2.45962272 20.36308702-7.39181354 28.46689659-4.91924543 8.10380958-12.62174815 14.0069041-23.08161739 17.69633817v0.62137837c12.31105897 2.45962272 21.89064217 8.56984336 28.77758579 18.30477116 6.87399822 9.74787318 10.30452464 21.59289837 10.30452465 35.53507555 0 10.2656885-2.05831585 19.44396483-6.1490568 27.53482905-4.10368631 8.10380958-9.64431013 14.97780781-16.62187142 20.62199466-6.97756128 5.64418686-15.08137086 10.00678083-24.31142872 13.07483655s-18.97793106 4.62150163-29.23067418 4.62150163c-12.51818509 0-23.4440881-1.79940819-32.76476366-5.38527922-9.33362094-3.58587102-17.12674133-8.66046103-23.39230656-15.23671545-6.26556524-6.56330903-11.02946608-14.4599925-14.30464791-23.69005038-3.2881272-9.23005787-5.0228085-19.48280098-5.22993461-30.77117472h35.08198716c-0.41425225 13.12661808 2.82209343 24.05252109 9.69609165 32.76476366 6.87399822 8.72518795 17.17852286 13.07483653 30.92651932 13.07483655 11.68968059 0 21.48933531-3.32696336 29.38601876-10.00678083 7.89668347-6.6668721 11.84502518-16.15583763 11.84502519-28.4668966 0-8.41449876-1.64406361-15.08137086-4.91924544-20.00061629-3.2881272-4.91924543-7.58599427-8.66046103-12.91949195-11.23659221-5.33349769-2.56318578-11.34015525-4.15546785-18.00702736-4.76390084-6.6668721-0.62137837-13.4890888-0.81555911-20.46665007-0.62137836v-26.11083694zM358.66194173 186.92849461h531.04548977v129.69978944H358.66194173zM358.66194173 497.61767981h531.04548977v129.69978943H358.66194173zM358.66194173 780.60374597h531.04548977v129.69978944H358.66194173z" ></path></symbol></svg>', function(t) {
|
|
4793
|
+
window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" viewBox="0 0 1024 1024"><path d="M926.25224691 70.13093706a27.61681602 27.61681602 0 0 0-27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 0 55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 0-27.61681603-27.61681603zM180.59820247 567.23363335a55.23363335 55.23363335 0 0 0-55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363335 55.23363206h552.33632965a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206H180.59820247z m276.16816418-331.40179753a55.23363335 55.23363335 0 0 0-55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363206 55.23363206h276.16816547a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206h-276.16816547z" ></path></symbol><symbol id="icon-doc-flex-h-center" viewBox="0 0 1024 1024"><path d="M953.86906294 512a27.61681602 27.61681602 0 0 1-27.61681603 27.61681602H788.16816418v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206v-110.46726671h-110.4672667V788.16816418a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335v-248.55134816H97.74775309a27.61681602 27.61681602 0 1 1 0-55.23363204H235.83183582V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v248.55134816h110.4672667v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671h138.08408273a27.61681602 27.61681602 0 0 1 27.61681603 27.61681602z" ></path></symbol><symbol id="icon-doc-flex-v-justify" viewBox="0 0 1024 1024"><path d="M263.44865185 70.13093706a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603z m497.1026963 0a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603zM567.23363335 180.59820247a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v552.33632836a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.4672667a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.4672667z" ></path></symbol><symbol id="icon-doc-flex-bottom" viewBox="0 0 1024 1024"><path d="M960.15254694 898.63543088a27.61681602 27.61681602 0 0 0-27.61681733-27.61681731H104.03123579a27.61681602 27.61681602 0 1 0 0 55.23363334h828.50449382a27.61681602 27.61681602 0 0 0 27.61681733-27.61681603z m-497.10269629-745.65404445a55.23363335 55.23363335 0 0 0-55.23363337-55.23363334h-110.4672654a55.23363335 55.23363335 0 0 0-55.23363336 55.23363334v552.33632836a55.23363335 55.23363335 0 0 0 55.23363336 55.23363336h110.4672654a55.23363335 55.23363335 0 0 0 55.23363337-55.23363336v-552.33632836z m331.40179752 276.16816418a55.23363335 55.23363335 0 0 0-55.23363335-55.23363334h-110.46726542a55.23363335 55.23363335 0 0 0-55.23363334 55.23363334v276.16816418a55.23363335 55.23363335 0 0 0 55.23363334 55.23363336h110.46726542a55.23363335 55.23363335 0 0 0 55.23363335-55.23363336v-276.16816418z" ></path></symbol><symbol id="icon-doc-flex-h-justify" viewBox="0 0 1024 1024"><path d="M953.86906294 263.44865185a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603z m0 497.1026963a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 1 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603zM843.40179753 567.23363335a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.4672667a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h552.33632836a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.4672667z" ></path></symbol><symbol id="icon-doc-flex-v-center" viewBox="0 0 1024 1024"><path d="M512 70.13093706a27.61681602 27.61681602 0 0 1 27.61681602 27.61681603V235.83183582h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671v110.4672667H788.16816418a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206h-248.55134816v138.08408273a27.61681602 27.61681602 0 1 1-55.23363204 0V788.16816418H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h248.55134816v-110.4672667h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671V97.74775309A27.61681602 27.61681602 0 0 1 512 70.13093706z" ></path></symbol><symbol id="icon-doc-flex-top" viewBox="0 0 1024 1024"><path d="M953.86906294 152.98138643a27.61681602 27.61681602 0 0 1-27.61681603 27.61681604h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363335h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681731zM456.76636665 898.63543088a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v552.33632964z m331.40179753-276.16816547a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v276.16816417z" ></path></symbol><symbol id="icon-doc-flex-left" viewBox="0 0 1024 1024"><path d="M152.98138643 70.13093706a27.61681602 27.61681602 0 0 1 27.61681604 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363335 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681731-27.61681603zM898.63543088 567.23363335a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h552.33632964z m-276.16816547-331.40179753a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h276.16816417z" ></path></symbol><symbol id="icon-doc-bold" viewBox="0 0 1024 1024"><path d="M226.65787417 129.49114628h338.35346805c62.40969008 0 112.45653965 15.70274924 150.16643951 47.09530231 37.69695447 31.40549847 56.55837709 78.85032613 56.55837709 142.36037373 0 38.53840435-8.62162489 71.54913027-25.83898391 99.00628702-17.23030439 27.4830475-41.77475003 48.70052978-73.6203915 63.69128297v2.13598814c42.90099831 10.00678083 75.40685431 32.29872987 97.50462262 66.90173787 22.0977683 34.61595339 33.15312514 77.9700401 33.15312514 130.04931477 0 29.96856098-4.88040928 57.98236918-14.62828248 84.02847922-9.74787318 26.05905541-25.03637017 48.53223981-45.82665482 67.43249856-20.81617541 18.91320415-47.45777303 33.90395733-79.95068365 44.95931417-32.51880139 11.06830222-71.18665955 16.59598064-116.02946528 16.59598065H226.65787417V129.49114628z m121.88077828 320.03575151h198.9187508c29.25656494 0 53.63272059-9.10060405 73.12846697-27.28886676 19.49574637-18.2012081 29.25656494-44.4156081 29.25656495-78.66909078 0-38.53840435-8.77696948-65.64603575-26.33090845-81.34878499-17.55393897-15.68980385-42.90099831-23.54765117-76.05412347-23.54765116H348.53865245V449.52689779z m0 335.02650469h215.48884069c37.04968533 0 65.81432573-10.52459615 86.29392117-31.57378845 20.47959547-21.03624691 30.71939318-50.83651792 30.71939319-89.37492227 0-37.81346291-10.23979773-66.90173787-30.71939319-87.23893412s-49.24423585-30.49932169-86.29392117-30.49932169H348.53865245V784.55340248z" ></path></symbol><symbol id="icon-doc-italic" viewBox="0 0 1024 1024"><path d="M630.50203339 163.97764584l-125.66083003 691.19281935H395.7504632l125.66083004-691.19281935h109.09074015z" ></path><path d="M768.30563239 255.72157315H350.26038835l17.9681912-98.85094242h418.04524406l-17.96819122 98.85094242zM659.16311072 855.99896969H241.11786667l17.9681912-98.83799704h418.04524405l-17.9681912 98.83799704z" ></path></symbol><symbol id="icon-doc-underline" viewBox="0 0 1024 1024"><path d="M246.47725511 122.37118579h113.59573334V500.40225186c0 21.81296987 1.048576 43.93662894 3.18456414 66.33214103 2.11009739 22.42140286 8.18148187 42.56441837 18.17531733 60.42904653 9.99383547 17.87757353 25.12698785 32.57058291 45.43829333 44.06608275 20.28541472 11.52139061 48.92060128 17.26914053 85.87966894 17.26914056 36.94612227 0 65.56836347-5.74774992 85.87966895-17.26914056 20.28541472-11.49549985 35.44445787-26.20145461 45.43829333-44.06608275 9.99383547-17.86462815 16.03932918-38.00764365 18.17531734-60.42904653 2.11009739-22.40845748 3.18456415-44.53211653 3.18456414-66.33214103V122.37118579h113.59573333v415.28787752c0 41.8006408-6.35618291 78.15127547-19.08149411 109.051904-12.7253112 30.90062853-30.75822933 56.79139397-54.07286362 77.69818706-23.32757965 20.90679309-51.34138785 36.50597925-84.05436997 46.79755852-32.71298213 10.29157925-69.0636168 15.44384158-109.051904 15.44384159-39.9882872 0-76.3259765-5.15226231-109.051904-15.44384159-32.71298213-10.29157925-60.7397357-25.90371082-84.05436997-46.79755852-23.32757965-20.90679309-41.34755239-46.79755852-54.07286361-77.69818706-12.7253112-30.90062853-19.08149413-67.2512632-19.08149413-109.051904v-415.28787752zM205.03908503 840.45156504h608.6271684v61.29638716H205.03908503z" ></path></symbol><symbol id="icon-doc-strikethrough" viewBox="0 0 1024 1024"><path d="M206.33362331 135.49846125v116.88386054h244.64184256v247.6063352h135.31808554V252.38232179H832.00986075V135.49846125zM450.97546587 608.50980031h135.30514016V893.70952692H450.97546587z" ></path><path d="M207.11034627 532.37800454h625.3267121v44.01430125H207.11034627z" ></path></symbol><symbol id="icon-doc-sub" viewBox="0 0 1024 1024"><path d="M670.61977442 693.84576318c9.30773017 0 18.35655269-0.77672297 27.14646755-2.3301689 8.78991486-1.55344592 16.73837985-4.12957709 23.84539497-7.75428424 7.10701511-3.61176178 13.19134498-8.27209955 18.22709887-13.95512256 5.03575387-5.68302302 8.33682647-12.6605843 9.89027238-20.94562925h36.06583626v271.45173017h-48.48045828V728.74651498h-66.69461175v-34.9007518zM94.7444243 135.49846125v116.88386054h244.65478795v247.6063352h135.30514014V252.38232179h245.72925472V135.49846125z" ></path><path d="M339.39921225 483.31500406h135.30514014V893.70952692H339.39921225z" ></path></symbol><symbol id="icon-doc-sup" viewBox="0 0 1024 1024"><path d="M819.12661586 141.34230029c9.92824551 0 19.58032287-0.8285045 28.95623205-2.48551347 9.37590918-1.65700898 17.85427184-4.40488223 25.43508797-8.27123654 7.58081612-3.8525459 14.07076798-8.82357285 19.44223879-14.88546407 5.37147079-6.06189122 8.8926149-13.50462325 10.54962389-22.34200451h38.47022532v289.54851218h-51.71248881V178.56976887h-71.14091921v-37.22746858zM91.53396939 141.42515074v124.67611792h260.96510714v264.11342423h144.32548282V266.10126866h262.11120503v-124.67611792z" ></path><path d="M352.49907653 512.42946308h144.32548282v437.75415773H352.49907653z" ></path></symbol><symbol id="icon-doc-link" viewBox="0 0 1024 1024"><path d="M412.55356997 639.61821237l-12.84181966-12.84181966c-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809483l58.47429374-58.47429372c103.70546094-103.70546094 272.43557925-103.70546094 376.12809481 0 50.22808494 50.24103031 77.90531318 117.02625975 77.90531319 188.0705201 0 71.04426035-27.66428286 137.82948978-77.90531319 188.07052011l-58.47429372 58.47429372-78.3454562-78.34545621 58.47429373-58.47429372c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.7250639s-16.14289225-80.41671743-45.45123872-109.72506389c-60.49377343-60.49377343-158.94340898-60.49377343-219.43718242 0l-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718242l12.84181965 12.82887427-78.3454562 78.35840159z" ></path><path d="M347.98200098 913.6460737c-71.04426035 0-137.82948978-27.66428286-188.07052009-77.90531319-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809481l58.47429372-58.47429374 78.34545621 78.3454562-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718243 29.30834647 29.30834647 68.27394845 45.45123872 109.72506389 45.45123872s80.41671743-16.14289225 109.72506391-45.45123872l58.47429372-58.47429373c60.49377343-60.49377343 60.49377343-158.94340898 0-219.43718242l-12.64763891-12.63469353 78.3454562-78.3454562 12.64763892 12.64763892c103.70546094 103.69251555 103.70546094 272.43557925 0 376.12809481L536.05252109 835.74076051c-50.24103031 50.24103031-117.02625975 77.90531318-188.07052011 77.90531319z" ></path></symbol><symbol id="icon-doc-unlink" viewBox="0 0 1024 1024"><path d="M714.18098725 714.01335467l128.0039443 128.0039443-28.56787057 28.56916512-128.00523885-128.00523884zM657.3701752 775.98937442l46.84934005 174.85457888-39.02385619 10.45728016-46.84934004-174.85587342zM756.63536987 648.12782934l174.85587343 46.84934005-10.45598561 39.02515073-174.85587342-46.84934004zM245.52318041 302.52235789l-128.00523884-128.00394429 28.56916512-28.57045966 128.0039443 128.00653337zM201.64739476 369.81634086L26.79411042 322.96570628l10.45598561-39.02515074 174.8545789 46.84934005zM300.93071297 241.95479577l-46.85063459-174.85587342 39.02515074-10.45598562 46.84934004 174.85457889z" ></path><path d="M712.47219675 651.79784534l-78.34545622-78.3454562 78.06065778-78.06065778c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.72506389s-16.14289225-80.41671743-45.45123872-109.72506391c-29.30834647-29.30834647-68.27394845-45.45123872-109.72506389-45.45123872s-80.41671743 16.14289225-109.7250639 45.45123872l-78.06065777 78.06065778-78.34545622-78.3454562 78.06065778-78.06065778c103.70546094-103.70546094 272.43557925-103.70546094 376.12809483 0 50.22808494 50.22808494 77.90531318 117.02625975 77.90531317 188.07052011s-27.66428286 137.82948978-77.90531317 188.07052009l-78.04771239 78.06065778z" ></path><path d="M354.6359277 897.12579319c-68.11860385 0-136.21131694-25.91665619-188.07052009-77.77585935-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809482l78.06065778-78.06065778 78.34545619 78.34545619-78.06065777 78.06065777c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718244 60.49377343 60.49377343 158.94340898 60.49377343 219.43718241 0l78.06065778-78.06065779 78.34545619 78.34545621-78.06065777 78.06065778c-51.83331239 51.84625778-119.96486163 77.77585936-188.05757472 77.77585935z" ></path></symbol><symbol id="icon-doc-text-left" viewBox="0 0 1024 1024"><path d="M93.96770133 166.81136987h843.06804939v129.69978944H93.96770133zM93.96770133 449.79743605H625.01319111v129.69978943H93.96770133zM93.96770133 732.78350222h843.06804939v129.69978943H93.96770133z" ></path></symbol><symbol id="icon-doc-text-right" viewBox="0 0 1024 1024"><path d="M97.45000928 166.81136987h843.06804939v129.69978944H97.45000928zM409.47256889 449.79743605h531.04548978v129.69978943H409.47256889zM97.45000928 732.78350222h843.06804939v129.69978943H97.45000928z" ></path></symbol><symbol id="icon-doc-text-center" viewBox="0 0 1024 1024"><path d="M93.56639447 129.78757531h843.06804938v129.69978944H93.56639447zM249.57120158 412.77364148H780.61669136v129.69978943H249.57120158zM93.56639447 695.75970765h843.06804938v129.69978944H93.56639447z" ></path></symbol><symbol id="icon-doc-text-justify" viewBox="0 0 1024 1024"><path d="M92.40131003 464.12797472h843.06804938v129.69978943H92.40131003zM92.40131003 181.14190853h843.06804938v129.69978944H92.40131003zM92.40131003 747.11404089h531.04548978v129.69978942H92.40131003z" ></path></symbol><symbol id="icon-doc-h1" viewBox="0 0 1024 1024"><path d="M781.4063597 654.73578983c9.96794469 0 19.66403635-0.8285045 29.08827497-2.49845886 9.41129324-1.65700898 17.92935506-4.42732089 25.55418548-8.31093572 7.61188503-3.87066943 14.12341253-8.86758717 19.53458252-14.95191703 5.39822459-6.08432987 8.93231408-13.56676109 10.58932306-22.43434825h38.64196741V897.38404347h-51.93687545V692.1350005h-71.47145799v-37.39921067zM121.7096565 447.86857403h531.04548977v129.69978944H121.7096565z" ></path><path d="M589.78880475 897.40475607v-769.36998558h129.69978942v769.36998558zM121.71871826 897.40216699v-769.36998557h129.69978944v769.36998557z" ></path></symbol><symbol id="icon-doc-h2" viewBox="0 0 1024 1024"><path d="M942.38219378 897.38404347H743.78707753c0.27185303-24.10430261 6.08432987-45.14054953 17.4503759-63.16052229 11.35310064-18.00702736 26.86166914-33.65799506 46.53865087-46.9529031 9.41129324-6.92577975 19.2497841-13.64443339 29.5025272-20.1559609 10.23979773-6.5115275 19.66403635-13.50203417 28.25977047-20.98446537 8.58278875-7.4824312 15.6509677-15.5862408 21.19159151-24.31142875 5.54062381-8.72518795 8.44038953-18.75785955 8.72518795-30.12390558 0-5.25582539-0.62137837-10.87412148-1.86413512-16.82899753s-3.67648869-11.49549985-7.27530507-16.62187142c-3.59881639-5.12637155-8.58278875-9.41129324-14.95191705-12.88065578-6.3691283-3.45641718-14.680064-5.19109847-24.9328071-5.19109848-9.42423861 0-17.24324978 1.86413511-23.46997887 5.60535071s-11.22364682 8.86758717-14.95191704 15.37911467c-3.74121561 6.5115275-6.5115275 14.20108483-8.3109357 23.05572662-1.79940819 8.86758717-2.84798419 18.42127961-3.11983723 28.67402271h-47.36715536c0-16.06521995 2.14893353-30.95241008 6.44680059-44.66157037 4.28492169-13.7091603 10.73172227-25.55418548 19.31451102-35.52213016 8.58278875-9.96794469 19.04265797-17.79990124 31.36666232-23.46997887 12.32400435-5.67007763 26.65454302-8.51806183 43.00456137-8.51806183 17.72222894 0 32.54469215 2.91271111 44.45444426 8.72518795 11.9097521 5.81247683 21.52817147 13.16545422 28.88114883 22.020096 7.340032 8.86758717 12.53113047 18.48600652 15.5862408 28.88114883 3.04216494 10.38219694 4.5697201 20.2983601 4.56972009 29.70965334 0 11.63789906-1.79940819 22.1624952-5.39822459 31.57378844a101.82838045 101.82838045 0 0 1-14.53766478 25.96843774c-6.09727525 7.89668347-13.02305502 15.15904317-20.77733927 21.81296987-7.75428425 6.65392672-15.79336691 12.88065581-24.10430262 18.69313265-8.3109357 5.81247683-16.62187141 11.36604603-24.9328071 16.6218714-8.3109357 5.26877076-16.00049303 10.52459615-23.05572663 15.79336692-7.06817897 5.26877076-13.23018114 10.73172227-18.48600651 16.41474528-5.26877076 5.68302302-8.86758717 11.70262597-10.79644919 18.07175428H942.43397531v42.38318302zM89.90285117 447.86857403h531.04548977v129.69978944H89.90285117z" ></path><path d="M557.97293763 897.40993422V128.03994864h129.69978944v769.36998558zM89.90285117 897.40605061v-769.36998558h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h3" viewBox="0 0 1024 1024"><path d="M823.67303427 727.0357523c7.75428425 0.27185303 15.5085685-0.27185303 23.26285275-1.65700899 7.75428425-1.38515595 14.680064-3.80594252 20.77733925-7.27530509 6.08432987-3.45641718 11.00357531-8.23326341 14.74479091-14.33053867 3.74121561-6.08432987 5.60535072-13.56676109 5.60535072-22.43434824 0-12.46640355-4.22019476-22.43434825-12.67352968-29.91677946-8.45333491-7.4824312-19.31451102-11.22364682-32.62236444-11.22364682-8.3109357 0-15.52151387 1.65700898-21.60584375 4.98397236-6.09727525 3.32696336-11.1589199 7.83195653-15.15904317 13.50203416-4.01306864 5.68302302-7.00345205 12.05215131-8.93231406 19.1073849-1.94180741 7.06817897-2.7703119 14.33053867-2.49845888 21.81296986H747.21760395c0.55665147-14.12341253 3.18456415-27.21119447 7.89668346-39.26334578 4.71211931-12.05215131 11.14597452-22.49907517 19.31451101-31.36666231 8.1685365-8.86758717 18.07175427-15.79336691 29.70965333-20.77733925 11.63789906-4.98397235 24.7904079-7.4824312 39.4704719-7.48243122 11.35310064 0 22.49907517 1.65700898 33.45086894 4.98397235 10.93884839 3.32696336 20.77733925 8.1685365 29.50252722 14.53766479 8.72518795 6.3691283 15.71569461 14.47293787 20.98446537 24.31142874 5.25582539 9.83849086 7.89668347 21.12686459 7.89668346 33.86512119 0 14.680064-3.32696336 27.49599289-9.96794469 38.43484128-6.65392672 10.95179378-17.03612365 18.90025876-31.1595362 23.89717649v0.8285045c16.62187141 3.32696336 29.56725413 11.57317215 38.84909353 24.72568099 9.28183941 13.16545422 13.91628642 29.15300187 13.91628642 47.98853373 0 13.8515595-2.7703119 26.25323615-8.3109357 37.19208454-5.54062381 10.95179378-13.02305502 20.22068781-22.43434825 27.83257283-9.42423861 7.62483042-20.36308702 13.50203417-32.82949057 17.65750202-12.46640355 4.15546785-25.61891239 6.22672909-39.4704719 6.2267291-16.89372445 0-31.65146075-2.43373195-44.24731811-7.2753051-12.60880276-4.84157314-23.13339891-11.70262597-31.57378845-20.57021312-8.45333491-8.86758717-14.88719013-19.52163714-19.31451102-31.98804069-4.44026627-12.46640355-6.79632592-26.31796306-7.06817895-41.55467853h47.36715535c-0.55665147 17.73517431 3.80594252 32.47996524 13.08778193 44.24731812 9.28183941 11.78029827 23.19812583 17.65750203 41.76180464 17.65750204 15.79336691 0 29.01060267-4.50499318 39.67759802-13.50203419 10.65404997-8.99704098 16.00049303-21.81296987 16.00049304-38.43484128 0-11.35310064-2.22660583-20.36308702-6.65392671-27.00406835-4.42732089-6.65392672-10.25274311-11.70262597-17.45037591-15.15904315-7.21057817-3.45641718-15.31438775-5.60535072-24.31142874-6.44680058-9.00998637-0.8285045-18.21415348-1.10035753-27.62544672-0.8285045v-35.30205867zM91.27506173 447.86857403h531.04548977v129.69978944H91.27506173z" ></path><path d="M559.34126459 897.40605061v-769.36998558h129.69978944v769.36998558zM91.27247265 897.40346153v-769.36998558h129.69978943v769.36998558z" ></path></symbol><symbol id="icon-doc-h4" viewBox="0 0 1024 1024"><path d="M942.30452148 828.41104435h-37.39921066v68.97299912h-44.86869651v-68.97299912h-124.65109016v-46.95290311l124.65109016-174.91801127h44.86869651v184.48464909h37.39921066v37.38626529z m-170.36123654-37.38626529h88.080384v-127.97805353h-0.82850449l-87.25187951 127.97805353zM87.75391763 447.86857403H618.79940741v129.69978944H87.75391763z" ></path><path d="M555.82659318 897.39957792v-769.36998558h129.69978943v769.36998558zM87.75780125 897.39698883V128.02700325h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h5" viewBox="0 0 1024 1024"><path d="M772.55171792 661.63567882h150.41240178v42.38318301h-115.09739773L792.91480494 777.97583328l0.82850449 0.8285045c6.3691283-7.1976328 14.47293787-12.67352969 24.31142874-16.41474528 9.82554548-3.74121561 19.59930943-5.60535072 29.29540108-5.60535072 14.39526558 0 27.27592139 2.43373195 38.64196742 7.27530508 11.35310064 4.85451852 20.90679309 11.63789906 28.67402272 20.36308701 7.75428425 8.72518795 13.64443339 19.04265797 17.65750202 30.95241008 4.01306864 11.9097521 6.01960297 24.7904079 6.01960296 38.64196741 0 11.63789906-1.86413511 23.61237808-5.60535072 35.93638242-3.74121561 12.32400435-9.69609165 23.54765117-17.86462815 33.65799505-8.1685365 10.1103439-18.62840573 18.42127961-31.36666232 24.93280712-12.73825659 6.49858213-27.97497205 9.76081857-45.71014636 9.76081857-14.12341253 0-27.21119447-1.86413511-39.26334579-5.60535071s-22.64147437-9.34656631-31.78091456-16.82899754c-9.13944019-7.4824312-16.41474528-16.68659831-21.81296988-27.62544672-5.39822459-10.93884839-8.37566261-23.7418319-8.93231407-38.43484128h47.36715535c1.38515595 15.79336691 6.78338053 27.91024514 16.20761916 36.35063467 9.41129324 8.45333491 21.8776968 12.67352969 37.39921067 12.67352967 9.96794469 0 18.42127961-1.65700898 25.34705936-4.98397234 6.92577975-3.32696336 12.53113047-7.89668347 16.82899753-13.7091603 4.29786706-5.81247683 7.340032-12.59585739 9.13944021-20.363087 1.79940819-7.75428425 2.70558498-16.06521995 2.70558498-24.93280712 0-8.02613728-1.11330291-15.71569461-3.32696336-23.05572661-2.22660583-7.340032-5.54062381-13.7738872-9.96794469-19.31451102-4.44026627-5.54062381-10.17507082-9.96794469-17.24324978-13.29490805s-15.31438775-4.98397235-24.72568098-4.98397234c-9.96794469 0-19.31451102 1.86413511-28.05264436 5.6053507s-15.02958933 10.73172227-18.90025876 20.98446539H741.39218173l31.15953619-159.1505351zM83.76673975 502.96412286h531.04548978v129.69978944H83.76673975z" ></path><path d="M551.83941531 952.4964213v-769.36998559h129.69978944v769.36998559zM83.77062337 952.49253769V183.1225521h129.69978943v769.36998559z" ></path></symbol><symbol id="icon-doc-h6" viewBox="0 0 1024 1024"><path d="M888.60707397 733.36604445c-1.11330291-11.9097521-5.33349769-21.52817147-12.67352967-28.88114884-7.340032-7.340032-17.24324978-11.01652069-29.70965333-11.0165207-8.59573413 0-16.00049303 1.59228208-22.22722214 4.77684623-6.22672909 3.18456415-11.49549985 7.4177043-15.79336691 12.67352968-4.29786706 5.26877076-7.75428425 11.28837373-10.38219694 18.07175427-2.64085808 6.79632592-4.77684622 13.91628642-6.4338552 21.39871763s-2.84798419 14.88719013-3.53408948 22.22722211c-0.69905067 7.340032-1.32042903 14.20108483-1.86413512 20.57021314l0.82850451 0.8285045c6.3691283-11.63789906 15.15904317-20.28541472 26.38268996-25.96843772 11.22364682-5.67007763 23.32757965-8.51806183 36.35063466-8.51806184 14.39526558 0 27.27592139 2.49845886 38.64196742 7.48243122 11.35310064 4.98397235 20.98446539 11.84502518 28.88114884 20.57021312 7.89668347 8.72518795 13.91628642 19.04265797 18.07175426 30.95241008 4.15546785 11.9097521 6.22672909 24.7904079 6.22672909 38.64196742 0 14.12341253-2.29133275 27.21119447-6.86105283 39.26334577-4.5697201 12.05215131-11.1589199 22.57674747-19.74170864 31.57378845-8.58278875 9.00998637-18.83553185 16.00049303-30.74528395 20.98446538-11.9097521 4.98397235-25.07520631 7.4824312-39.47047191 7.4824312-21.33399072 0-38.84909353-3.94834173-52.55825383-11.84502518s-24.51855486-18.69313264-32.41523831-32.41523832c-7.89668347-13.7091603-13.37258035-29.77438025-16.41474528-48.19565986-3.05511031-18.42127961-4.5697201-38.29244208-4.56972011-59.62643278 0-17.4503759 1.86413511-35.04315102 5.60535072-52.76537994 3.74121561-17.72222894 9.90321778-33.86512118 18.48600652-48.40278599 8.58278875-14.5376648 19.87116247-26.38268997 33.86512118-35.52213017 13.98101333-9.13944019 31.22426311-13.7091603 51.72974934-13.70916029 11.63789906 0 22.57674747 1.94180741 32.82949057 5.81247683 10.23979773 3.88361482 19.31451102 9.28183941 27.21119446 16.20761917s14.33053867 15.23671547 19.31451101 24.93280711c4.98397235 9.69609165 7.75428425 20.50548622 8.31093571 32.41523832h-47.3412646z m-45.69720099 183.65614458c8.58278875 0 16.06521995-1.7217359 22.43434826-5.19109846 6.3691283-3.45641718 11.70262597-7.96141037 16.00049303-13.50203418 4.28492169-5.54062381 7.4824312-11.97447902 9.55369245-19.32745639 2.07126124-7.340032 3.11983724-14.88719013 3.11983723-22.64147437 0-7.75428425-1.03563061-15.22377008-3.11983723-22.43434824-2.07126124-7.1976328-5.26877076-13.50203417-9.55369245-18.90025878-4.29786706-5.39822459-9.63136475-9.76081857-16.00049303-13.08778192-6.3691283-3.32696336-13.8515595-4.98397235-22.43434826-4.98397234-8.58278875 0-16.14289225 1.59228208-22.64147437 4.77684622-6.5115275 3.18456415-11.98742439 7.4824312-16.41474528 12.8806558-4.44026627 5.39822459-7.75428425 11.70262597-9.96794469 18.90025877-2.21366045 7.21057817-3.32696336 14.8224632-3.32696336 22.84860049 0 8.03908267 1.10035753 15.6509677 3.32696336 22.8486005 2.21366045 7.21057817 5.54062381 13.64443339 9.96794469 19.31451101 4.42732089 5.68302302 9.90321778 10.17507082 16.41474528 13.50203417 6.49858213 3.32696336 14.04574025 4.99691773 22.64147437 4.99691772zM86.82185008 501.15176928h531.04548977v129.69978944H86.82185008z" ></path><path d="M554.89064202 950.68277317v-769.36998558h129.69978943v769.36998558zM86.82185008 950.69312948V181.3231439h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-list-bullet" viewBox="0 0 1024 1024"><path d="M354.22167547 181.90568613h531.04548977V311.60547555H354.22167547zM354.22167547 464.8917523h531.04548977V594.59154173H354.22167547zM354.22167547 747.87781847h531.04548977V877.5776079H354.22167547z" ></path><path d="M208.84502755 247.42226805m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 529.7481197m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 805.78251536m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path></symbol><symbol id="icon-doc-list-number" viewBox="0 0 1024 1024"><path d="M154.11194943 180.33929482c7.37886815 0 14.56355555-0.62137837 21.54111684-1.85118973 6.97756128-1.22981136 13.28196267-3.27518183 18.92614954-6.14905679 5.64418686-2.87387497 10.45986924-6.56330903 14.45999249-11.08124761 4.00012325-4.50499318 6.61509057-10.04561698 7.84490192-16.62187141h28.62224119v215.39822302h-38.46073205V208.02946845h-52.92072454V180.33929482zM296.8995208 658.07569857H149.81408237c0.20712613-17.85168276 4.50499318-33.43792355 12.91949194-46.77166775 8.41449876-13.33374419 19.89705324-24.91986173 34.4606088-34.77129799 6.97756128-5.12637155 14.25286637-10.09739852 21.85180603-14.92602626 7.58599427-4.81568237 14.56355555-9.99383547 20.91973847-15.53445926s11.58611753-11.534336 15.68980386-17.99408198 6.25261985-13.89039565 6.45974596-22.30489442c0-3.89656019-0.46603378-8.05202805-1.38515595-12.46640355-0.91912217-4.4143755-2.71853037-8.50511645-5.38527921-12.31105897-2.66674883-3.79299714-6.35618291-6.97756128-11.0812476-9.54074706-4.72506469-2.56318578-10.87412148-3.84477867-18.46011576-3.84477866-6.97756128 0-12.76414736 1.38515595-17.38564899 4.15546785-4.60855625 2.7703119-8.3109357 6.56330903-11.08124761 11.39193679-2.7703119 4.81568237-4.82862775 10.51165076-6.14905678 17.0749598-1.33337442 6.56330903-2.11009739 13.64443339-2.30427812 21.23042765h-35.08198716c0-11.89680672 1.59228208-22.9262728 4.76390084-33.07545284s7.94846498-18.92614953 14.30464789-26.30501767c6.35618291-7.39181353 14.09752178-13.17839961 23.23696199-17.385649 9.12649482-4.20724939 19.74170864-6.30440139 31.84564148-6.30440138 13.12661808 0 24.10430261 2.14893353 32.92010824 6.45974598 8.81580563 4.31081245 15.9487115 9.74787318 21.38577225 16.31118223 5.43706075 6.56330903 9.28183941 13.69621491 11.534336 21.38577223 2.25249659 7.68955733 3.37874489 15.02958933 3.37874489 21.99420524 0 8.62162489-1.33337442 16.41474528-4.00012326 23.39230658a75.61656951 75.61656951 0 0 1-10.77055842 19.2368387 109.10109645 109.10109645 0 0 1-15.37911467 16.15583764c-5.74774992 4.91924543-11.68968059 9.54074706-17.85168276 13.8515595-6.1490568 4.31081245-12.31105897 8.41449876-18.46011575 12.31105897s-11.84502518 7.79312039-17.0749598 11.68968059c-5.22993461 3.89656019-9.79965472 7.94846498-13.69621492 12.15571437-3.89656019 4.20724939-6.56330903 8.67340642-8.00024652 13.38552573h104.92232691v31.35371694zM207.96474153 818.30070045c5.73480453 0.20712613 11.48255447-0.20712613 17.23030439-1.22981136 5.74774992-1.02268524 10.87412148-2.82209343 15.39206005-5.38527922 4.50499318-2.56318578 8.15559111-6.09727525 10.92590301-10.61521382 2.7703119-4.50499318 4.15546785-10.04561698 4.15546785-16.62187141 0-9.23005787-3.13278261-16.62187141-9.38540246-22.14954982-6.26556524-5.54062381-14.3046479-8.3109357-24.15608415-8.31093571-6.1490568 0-11.49549985 1.22981136-16.00049304 3.68943407-4.51793857 2.45962272-8.25915417 5.79953147-11.2365922 9.99383546-2.97743803 4.20724939-5.17815309 8.91936869-6.61509056 14.14930331-1.43693748 5.22993461-2.05831585 10.61521383-1.85118973 16.15583763h-35.08198716c0.41425225-10.45986924 2.35605965-20.15596089 5.85131299-29.07532958 3.48230795-8.91936869 8.25915417-16.66070755 14.3046479-23.23696197 6.04549373-6.56330903 13.38552573-11.68968059 21.99420523-15.37911467 8.62162489-3.68943408 18.35655269-5.54062381 29.23067418-5.54062381 8.41449876 0 16.66070755 1.22981136 24.76451714 3.68943408 8.10380958 2.45962272 15.37911467 6.05843911 21.85180601 10.77055842 6.45974597 4.72506469 11.63789906 10.71877689 15.53445927 17.99408198 3.89656019 7.28825047 5.85131298 15.6509677 5.85131299 25.07520632 0 10.87412148-2.45962272 20.36308702-7.39181354 28.46689659-4.91924543 8.10380958-12.62174815 14.0069041-23.08161739 17.69633817v0.62137837c12.31105897 2.45962272 21.89064217 8.56984336 28.77758579 18.30477116 6.87399822 9.74787318 10.30452464 21.59289837 10.30452465 35.53507555 0 10.2656885-2.05831585 19.44396483-6.1490568 27.53482905-4.10368631 8.10380958-9.64431013 14.97780781-16.62187142 20.62199466-6.97756128 5.64418686-15.08137086 10.00678083-24.31142872 13.07483655s-18.97793106 4.62150163-29.23067418 4.62150163c-12.51818509 0-23.4440881-1.79940819-32.76476366-5.38527922-9.33362094-3.58587102-17.12674133-8.66046103-23.39230656-15.23671545-6.26556524-6.56330903-11.02946608-14.4599925-14.30464791-23.69005038-3.2881272-9.23005787-5.0228085-19.48280098-5.22993461-30.77117472h35.08198716c-0.41425225 13.12661808 2.82209343 24.05252109 9.69609165 32.76476366 6.87399822 8.72518795 17.17852286 13.07483653 30.92651932 13.07483655 11.68968059 0 21.48933531-3.32696336 29.38601876-10.00678083 7.89668347-6.6668721 11.84502518-16.15583763 11.84502519-28.4668966 0-8.41449876-1.64406361-15.08137086-4.91924544-20.00061629-3.2881272-4.91924543-7.58599427-8.66046103-12.91949195-11.23659221-5.33349769-2.56318578-11.34015525-4.15546785-18.00702736-4.76390084-6.6668721-0.62137837-13.4890888-0.81555911-20.46665007-0.62137836v-26.11083694zM358.66194173 186.92849461h531.04548977v129.69978944H358.66194173zM358.66194173 497.61767981h531.04548977v129.69978943H358.66194173zM358.66194173 780.60374597h531.04548977v129.69978944H358.66194173z" ></path></symbol></svg>', (function(t) {
|
|
4880
4794
|
var h = (h = document.getElementsByTagName("script"))[h.length - 1], l = h.getAttribute("data-injectcss"), h = h.getAttribute("data-disable-injectsvg");
|
|
4881
4795
|
if (!h) {
|
|
4882
4796
|
var a, o, i, c, e, v = function(h2, l2) {
|
|
@@ -4910,11 +4824,11 @@ window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" vie
|
|
|
4910
4824
|
}
|
|
4911
4825
|
d();
|
|
4912
4826
|
}
|
|
4913
|
-
}(window);
|
|
4827
|
+
})(window);
|
|
4914
4828
|
function useEffect(cb, options) {
|
|
4915
4829
|
vue.watchEffect((onInvalidate) => {
|
|
4916
4830
|
const unregister = cb();
|
|
4917
|
-
onInvalidate(() => unregister
|
|
4831
|
+
onInvalidate(() => unregister?.());
|
|
4918
4832
|
}, {
|
|
4919
4833
|
flush: "post",
|
|
4920
4834
|
...options
|
|
@@ -4926,7 +4840,7 @@ function useMounted(cb) {
|
|
|
4926
4840
|
unregister = cb();
|
|
4927
4841
|
});
|
|
4928
4842
|
vue.onUnmounted(() => {
|
|
4929
|
-
unregister
|
|
4843
|
+
unregister?.();
|
|
4930
4844
|
});
|
|
4931
4845
|
}
|
|
4932
4846
|
function useCharacterLimit(editor, maxCharacters, optional = Object.freeze({})) {
|
|
@@ -5115,7 +5029,7 @@ function registerClickAndPointerListeners(register, unregister) {
|
|
|
5115
5029
|
}
|
|
5116
5030
|
return () => {
|
|
5117
5031
|
if (--handleClickAndPointerDownListenersCount === 0) {
|
|
5118
|
-
handleClickAndPointerDownListenersUnregister
|
|
5032
|
+
handleClickAndPointerDownListenersUnregister?.();
|
|
5119
5033
|
handleClickAndPointerDownListenersUnregister = void 0;
|
|
5120
5034
|
}
|
|
5121
5035
|
};
|
|
@@ -5165,20 +5079,8 @@ function useLexicalIsTextContentEmpty(editor, trim) {
|
|
|
5165
5079
|
return vue.readonly(isEmpty);
|
|
5166
5080
|
}
|
|
5167
5081
|
class HtmlElementNode extends lexical.ElementNode {
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
* @param tagName
|
|
5171
|
-
* @param className
|
|
5172
|
-
* @param style
|
|
5173
|
-
* @param key
|
|
5174
|
-
*/
|
|
5175
|
-
constructor(tagName, className, style, key) {
|
|
5176
|
-
super(key);
|
|
5177
|
-
__publicField(this, "__tagName");
|
|
5178
|
-
__publicField(this, "__class");
|
|
5179
|
-
this.__tagName = tagName, this.__class = className;
|
|
5180
|
-
this.__style = style || "";
|
|
5181
|
-
}
|
|
5082
|
+
__tagName;
|
|
5083
|
+
__class;
|
|
5182
5084
|
static getType() {
|
|
5183
5085
|
return "html-element";
|
|
5184
5086
|
}
|
|
@@ -5196,6 +5098,18 @@ class HtmlElementNode extends lexical.ElementNode {
|
|
|
5196
5098
|
header: $covertHtmlElementDOM
|
|
5197
5099
|
};
|
|
5198
5100
|
}
|
|
5101
|
+
/**
|
|
5102
|
+
*
|
|
5103
|
+
* @param tagName
|
|
5104
|
+
* @param className
|
|
5105
|
+
* @param style
|
|
5106
|
+
* @param key
|
|
5107
|
+
*/
|
|
5108
|
+
constructor(tagName, className, style, key) {
|
|
5109
|
+
super(key);
|
|
5110
|
+
this.__tagName = tagName, this.__class = className;
|
|
5111
|
+
this.__style = style || "";
|
|
5112
|
+
}
|
|
5199
5113
|
/**
|
|
5200
5114
|
* 名称
|
|
5201
5115
|
* @returns
|
|
@@ -5208,8 +5122,7 @@ class HtmlElementNode extends lexical.ElementNode {
|
|
|
5208
5122
|
* @returns
|
|
5209
5123
|
*/
|
|
5210
5124
|
getDesc() {
|
|
5211
|
-
|
|
5212
|
-
return (_a2 = this.__class) == null ? void 0 : _a2.split(/[\s]/g).join(".");
|
|
5125
|
+
return this.__class?.split(/[\s]/g).join(".");
|
|
5213
5126
|
}
|
|
5214
5127
|
/**
|
|
5215
5128
|
* 添加样式
|
|
@@ -5302,21 +5215,9 @@ const $covertHtmlElementDOM = (domNode) => {
|
|
|
5302
5215
|
};
|
|
5303
5216
|
};
|
|
5304
5217
|
class HtmlElementDecoratorNode extends lexical.DecoratorNode {
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
* @param className
|
|
5309
|
-
* @param style
|
|
5310
|
-
* @param key
|
|
5311
|
-
*/
|
|
5312
|
-
constructor(tagName, className, style, key) {
|
|
5313
|
-
super(key);
|
|
5314
|
-
__publicField(this, "__tagName");
|
|
5315
|
-
__publicField(this, "__class");
|
|
5316
|
-
__publicField(this, "__style");
|
|
5317
|
-
this.__tagName = tagName, this.__class = className;
|
|
5318
|
-
this.__style = style || "";
|
|
5319
|
-
}
|
|
5218
|
+
__tagName;
|
|
5219
|
+
__class;
|
|
5220
|
+
__style;
|
|
5320
5221
|
static getType() {
|
|
5321
5222
|
return "html-decorator-element";
|
|
5322
5223
|
}
|
|
@@ -5332,6 +5233,18 @@ class HtmlElementDecoratorNode extends lexical.DecoratorNode {
|
|
|
5332
5233
|
section: $covertHtmlElementDecoratorNode
|
|
5333
5234
|
};
|
|
5334
5235
|
}
|
|
5236
|
+
/**
|
|
5237
|
+
*
|
|
5238
|
+
* @param tagName
|
|
5239
|
+
* @param className
|
|
5240
|
+
* @param style
|
|
5241
|
+
* @param key
|
|
5242
|
+
*/
|
|
5243
|
+
constructor(tagName, className, style, key) {
|
|
5244
|
+
super(key);
|
|
5245
|
+
this.__tagName = tagName, this.__class = className;
|
|
5246
|
+
this.__style = style || "";
|
|
5247
|
+
}
|
|
5335
5248
|
/**
|
|
5336
5249
|
* 名称
|
|
5337
5250
|
* @returns
|
|
@@ -5344,8 +5257,7 @@ class HtmlElementDecoratorNode extends lexical.DecoratorNode {
|
|
|
5344
5257
|
* @returns
|
|
5345
5258
|
*/
|
|
5346
5259
|
getDesc() {
|
|
5347
|
-
|
|
5348
|
-
return (_a2 = this.__class) == null ? void 0 : _a2.split(/[\s]/g).join(".");
|
|
5260
|
+
return this.__class?.split(/[\s]/g).join(".");
|
|
5349
5261
|
}
|
|
5350
5262
|
/**
|
|
5351
5263
|
* 导出JSON
|
|
@@ -5468,21 +5380,8 @@ const $covertHtmlElementDecoratorNode = (domNode) => {
|
|
|
5468
5380
|
const INSERT_MODULE_COMMAND = lexical.createCommand("INSERT_MODULE_COMMAND");
|
|
5469
5381
|
const AttrMarkName = "module-name";
|
|
5470
5382
|
class ModuleDecoratorNode extends HtmlElementDecoratorNode {
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
* @param name
|
|
5474
|
-
* @param data
|
|
5475
|
-
* @param className
|
|
5476
|
-
* @param style
|
|
5477
|
-
* @param key
|
|
5478
|
-
*/
|
|
5479
|
-
constructor(name, html, className, style, key) {
|
|
5480
|
-
super("div", className, style, key);
|
|
5481
|
-
__publicField(this, "__moduleName");
|
|
5482
|
-
__publicField(this, "__moduleHtml");
|
|
5483
|
-
this.__moduleName = name;
|
|
5484
|
-
this.__moduleHtml = html;
|
|
5485
|
-
}
|
|
5383
|
+
__moduleName;
|
|
5384
|
+
__moduleHtml;
|
|
5486
5385
|
static getType() {
|
|
5487
5386
|
return "module";
|
|
5488
5387
|
}
|
|
@@ -5500,6 +5399,19 @@ class ModuleDecoratorNode extends HtmlElementDecoratorNode {
|
|
|
5500
5399
|
header: $covertModuleDecoratorNode
|
|
5501
5400
|
};
|
|
5502
5401
|
}
|
|
5402
|
+
/**
|
|
5403
|
+
*
|
|
5404
|
+
* @param name
|
|
5405
|
+
* @param data
|
|
5406
|
+
* @param className
|
|
5407
|
+
* @param style
|
|
5408
|
+
* @param key
|
|
5409
|
+
*/
|
|
5410
|
+
constructor(name, html, className, style, key) {
|
|
5411
|
+
super("div", className, style, key);
|
|
5412
|
+
this.__moduleName = name;
|
|
5413
|
+
this.__moduleHtml = html;
|
|
5414
|
+
}
|
|
5503
5415
|
/**
|
|
5504
5416
|
* 导出JSON
|
|
5505
5417
|
* @returns
|
|
@@ -5718,13 +5630,8 @@ function $isModuleDecoratorWarpNode(node) {
|
|
|
5718
5630
|
const INSERT_IMAGE_COMMAND = lexical.createCommand("INSERT_IMAGE_COMMAND");
|
|
5719
5631
|
const ImageDefaultSrc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAADkBJREFUeJzt3W/wHVdZwPHvL01S05AmbUhDm2L/0EJDaqVNbUmR2uIwBQtMbRxRJICow9BKFUZHxQr6ovIGZrDgqCNFgbajI6C2RR1NrRUKmYBpRQrTlmL8g9UpNKRtIk2bxhcnV5qQ5HfvPc/us3v3+5l5XiW/c59z555nd8/u2QOSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJGk+cy19xiXA5cCLgTOB44BFLXy21BdPAjuA+4EtwG3APwL7MpOqcRTwc8CDlE4YhjFZPAC8GVhAQ5o6AzgLuBFY31D70pB8Hng95ewgVBMF4DLg48CzGmhbGqrHgCuBzZGNRheAl1OuXRYHtysJ9gA/Atwe1WBkATgD2AYsC2xT0oF2AucBX4toLGpyYY5yze/gl5q1HPgYQQfvqAKwCbgwqC1JR3YR8JMRDUVdAnwZWBvUlqT53QucXdtIxBnARTj4pbatAy6obSSiALw6oA1Jk6seexEFYENAG5Imd1FtAxEF4PkBbUia3AtqG4iYBHwCH/yRMnwbWFLTQEQB2BfQhqTpVI3hxlYZSRqGyOWPmykLHk6gnXcVSG2YA04EXgt8htgxky6iE08CP9N24lKSa4C9WAD+P97SetZSrl/GAsA+ymuPpKGZA75IcgHowiTg9dkJSAn2ATdkJxGhtoId137KUidciGcA7MhOQEqyMzuBLhQASUksANKAWQCkPOm38SwA0oBZAKQBswBIebwEkJTHAiANmAVAypN+CbAwOwEpwMnApZTXZK8DTgVWAcfs//fdwMPAdsr79LcCfw98veU8Z1LvlzOql1YC7wD+iel/e1/Y38bKlnMfOXOMHDs/fnrfAfXKGuB3KUf12t/eKHYDH9zfdpssAAn5qp8WA79B7MA/OHYB1wKLWurTGQE5p+t9B9R564B/prmBf3DcQzvb3VkAEvJVv2wEHqe9wT+KxykvqG2SBSAhX/XH1cDTtD/4R7EXuKrB/j0vIMd0ve+AOulq8gb+wdFUEbAAJOSr7ttI7pH/4NhLM5cDFoCEfNVt68i55p8vHiN+YvD0gLzS9b4D6ozFtDvbP2ncTewtwvQC4FoAdcmvAOdkJ3EEL6Js6KFn8AxAEdbQ7EM+UfE4ZZ+/CKcF5FPFMwB1xTup3Ou+JUspuWo/zwBUayX9OPqPYjcxC4g8A5CAN9KPo//IEmBTdhIRLADqgp/KTmAKETmnnwFbAJTtZOC87CSmcD5wUnYStSwAynZpdgIV+pw7YAFQvguyE6hwYeXfewmgwVuXnUCFPucOWACU79TsBCqckp1ALQuAsq3KTqBCbe5eAmjwjpn/v3TW0uwEalkApAGzACjb7uwEKuyq/HsvATR4D2cnUKHPuQMWAOXbnp1Ahe3ZCdSyACjbvdkJVOhz7oAFQPm2ZidQoTZ35wA0eHdkJzClfZQdhnvNAqBs/0nZ4bdvvgA8lJ1ELQuAuuDm7ASmcFNAG+mXABF8JZhq9e2VYLuA4wP6vSYglyqeAagLvgl8ODuJCdwAPJKdRFd4BqAIayhH1uyj+3wR+VrwkwLyqeIZgLri68B7spMYw3XMwORfJM8AFGURcA/5R/nDxTZitwZLPwOI0PsOqFPW0t3NQc8K7uuJAXml630HOmop5QgRsQFF31xJ2ZI7e9CPYi9wRQP9tAAk5NtlLwP+CPg3vvvocztwDbAiLbt2XUX+wB/FWxvqowUgId8uWg9sYbzv61HKLrpHpWTarqvIPRPYS3ODHywA3ehAsmuAJ5n8e7uTmIdRuu5KyhlQ24P/MZo57X+m5wTkma73HUj0a9R9d3cDy1vPun1rKX1ta/DfTfyE36FYABLy7YrXEvNjvZN+baw5rUWUbbmbvEPwOKUoR97qOxILQEK+XbCe2GffbwEWttqDPCcCHyD2+9sFXE/cE37jWh2Qe7red6BlJ1KWwEYfvT4KzLXYj2wrgV8EPs/039lW4BfIu9WaXgAifjC1SQzpR/s9lFP2pvbD+x3KoBiakygbdV5I2a7rFMqmHaP39u+ivMBzO+U1XlspL/PIfqR3NfDflW2kjx/PAMZ3M/FH/oPj2tZ6o1onMAPjp/cdaMmv0/zgH0WT964VxwKQkG+GK4Cnaa8A7AV+opWeqYYFICHftn0/OYtb9gCXtdA/TW8VMzB+et+BBp3Adz/X32bsAjY03ktNywKQkG9bFgN3kTf4R/EIcHbDfdV0LAAJ+bblj8kf/KP4L+C0RnuraVgAEvJtwy+RP+gPjq9S7jurO57NDIyf3ncg2OV062UWz4x7GMbiob6wACTk26R1lPX62QP9SPFphrF4qA8sAAn5NmUl8CD5A3ycuI3hLB7qspXMwPjpfQcCLKJscpk9sCeJG+nAc+QDZwFIyLcJf0D+gJ4mrm/iy9DYLAAJ+UZ7G/kDuSbeHf+VaEzHMwPjp/cdqPBy4CnyB3Ft/Hz0F6OxWAAS8o3yfGAH+YM3Ip4GXhf79VRbTXmM+SWU9f6zyAKQkG+EFcB95A/cyNgDvDLyS5rCAmATh34B6Jcpl1uL07KLdxwzMH5634EJLQT+lvwB20TsphxxM5wBfG6MHL9EeUvwLLAAJORb6wPkD9QmYwdwTti3NZ5XATsnyPERyjLrvrMAJORb4y3kD9A24iHg9KDvbD7vYLpHpx+inDX0mQUgId9pXUK5Ts4enG3FgzT7muyFwO9X5viv9HuCcAUzMH5634ExnA58g/xB2XZ8kWY2I10B/F1Qjl+iv1ukWQAS8p3UsZRXSWcPxqy4Czim+lv8jucBXwnOcQvwrMAc22IBSMh3EguAT5E/CLPjr4jZLuulNHcmtRk4OiDHNi1nBsZP7ztwBO8lf/B1JW6mFMRpvQF4ouEcP0m/tk23ACTkO643kT/ouhY3Mfky4jnguhZz/DD9WeVoAUjIdxwvofmjVV/jLylbnI1jBfDxhBzfO2Z+2Y5lBsZP7ztwkFOA/yF/oHU5tgHnzvM9bqSZTVDHjXfOk18XpBcANwc90FLgs7T/JFwf7aPcyvsLyu3CHZQHW36Acr0/X4Fow1spzxp01bGUJyBrpI+f1AoWaA74c/KPrkZcdH2LtGXU9zFd7zuwX5sTVUZ70YVVjodjAUjI91BeR/4P1WgudgM/SPekFwDnAOAC4E7Gn9lWP+2krOe4JzmPZ1pGeY18jarxU/NgxyxYQ5nEcvDPvuXA39CtFYTVR/BaQy4ASyj3tJtc8aZuWU25c7EmO5GuGGoBmKNs3rk+OQ+171TKG51WJufRCUMtAO8Cfjw7CaV5IfDX5K8gTL8EiJA6izmFH6O8BTd7ZtrIj9vJXUG49DB5TRJVhnYGcC7wEfLvPKgbXgb8Cf1aQRhqSAXgOZRJv8iXW6j/rgA+RM5BofoIXmsoBeBoymO+z81ORJ30JuB92UlkGEoB+BDw4uwk1GlvB67NTqKPUicxxvCrATkaw4mraM+SgHzTdbkDr2G6d84bw40290lMLwCzvBbg+yhr+7Pv9ap/nqJMDn6q4c9ZQlmoVMO1AIewCrgFB7+msxD4M8pbjGfaLBaAxcAnKI98StNaAtxKs282qj6FrzWLBeD3GEDlVitGKwjPzE6kKbNWAN4OvDk7Cc2UEygrCE/OTqQJszQJ+ArgNgb8WKca9RXgYsrORlGOBr5d2YaTgMBa4E9x8Ks5aykrCJdlJxJpFgrA8ZQZ/2OzE9HMO5/yW5uZN0j1vQCMbtd06TVPmm2XUM42J90i7VC8C1DpesqSTqlNrwFuwGXlQN6jjFcHfLZh1MT7qbM4IId0GR34YeDJgM82jNp4F9NbFPD5Vfp4G/AMYCtlHzqpC94GfHCKv1tE2bmoRtUY7lsBWA5sAc6q/Ewp0j5gE3DThH+XXgD6NAl4FGX21cGvrhm9Zv5VyXlMrE8F4H3AZdlJSIcxuiX9QxP8TfU1fK2+XAL8LPCHlZ8jteFR4FJg2xj/dyFlMrvGzM8BXAxsplwvSX3wMGVF6n3z/D8LwDw5nEaZ8X925WdIbft3ypbk/3GE/3MU5e1DNWZ2EnAZ5blrB7/66Hspy4hXZSdyJF0tAAsot1TOzk5EqvACygtFOrtQrasF4D3Aq7OTkAKcx+FXEHoX4BA5bAI+Wtmm1DW3Aldy4DX/Aspr62vM1CTgBuAOcndslZpyI/AGvjNm0gtAly4BnkvZv8/Br1n1eg5cQZh+CdCVArCUcp20OjsRqWHXAL+ZncRIFwrAHPAR4EXZiUgteTelEKSLeK1Rrd8CNmYnIbXs/cC3spPowiSgNFRPUX8Q7v1dAEnTm5m7AJJaZgGQBswCIA2YBUAaMAuANGAWAGnALADSgFkApAGzAEgDZgGQBswCIA2YBUAaMAuANGAWAGnALADSgFkApAGzAEgDZgGQBswCIA2YBUAaMAuANGAWAGnALADSgFkApAGLKAB7AtqQNLn/rW0gogB8I6ANSZP7Zm0DEQXg/oA2JE3uvtoGIgrAZwPakDS5u2obiCgAtwS0IWlyt9Y2ELE7MMC9wAuD2pI0v38BzqltJOo24G8HtSNpPNdFNBJ1BjAHfAa4KKg9SYf3aeDiiIaiCgDA6cA2YHlgm5IO9C3gXGB7RGORTwJ+DdiIDwZJTXkC+FGCBj/EPwp8O3A58Ghwu9LQ7QReCfxDZKNNrAXYDJwPbG2gbWmItgDrgTuiG25qMdADwAbgp4GvNvQZ0qy7H3gjZXL9wSY+IHIS8Eif8VLKpcEG4EzgeGBxC58t9cUeyrP9DwCfA26jPOm3LzMpSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIE/wdtJeQPxMSAJQAAAABJRU5ErkJggg==";
|
|
5720
5632
|
class ImageNode extends HtmlElementDecoratorNode {
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
__publicField(this, "__src");
|
|
5724
|
-
__publicField(this, "__alt");
|
|
5725
|
-
this.__src = src;
|
|
5726
|
-
this.__alt = alt;
|
|
5727
|
-
}
|
|
5633
|
+
__src;
|
|
5634
|
+
__alt;
|
|
5728
5635
|
static getType() {
|
|
5729
5636
|
return "image";
|
|
5730
5637
|
}
|
|
@@ -5750,6 +5657,11 @@ class ImageNode extends HtmlElementDecoratorNode {
|
|
|
5750
5657
|
}
|
|
5751
5658
|
};
|
|
5752
5659
|
}
|
|
5660
|
+
constructor(src, alt, className, style, key) {
|
|
5661
|
+
super("img", className, style, key);
|
|
5662
|
+
this.__src = src;
|
|
5663
|
+
this.__alt = alt;
|
|
5664
|
+
}
|
|
5753
5665
|
/**
|
|
5754
5666
|
* 隔离渲染函数
|
|
5755
5667
|
* @param editor
|
|
@@ -6322,7 +6234,7 @@ const DataFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
6322
6234
|
setup(props) {
|
|
6323
6235
|
const slots = vue.useSlots();
|
|
6324
6236
|
const dataFormContext = vue.inject(DATA_FORM_CONTEXT_KEY);
|
|
6325
|
-
const dataForm = vue.computed(() =>
|
|
6237
|
+
const dataForm = vue.computed(() => dataFormContext?.dataForm ?? null);
|
|
6326
6238
|
let _formColumn = null;
|
|
6327
6239
|
const existFormColumn = vue.ref(vue.unref(dataForm).getColumn(props.name));
|
|
6328
6240
|
const formColumn = vue.computed(() => {
|
|
@@ -6358,10 +6270,7 @@ const DataFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
6358
6270
|
} = useFormColumnComponent(formColumn, dataForm);
|
|
6359
6271
|
const disabled = elementPlus.useFormDisabled(vue.computed(() => props.disabled === null ? vue.unref(formColumn).disabled : props.disabled));
|
|
6360
6272
|
const value = vue.computed({
|
|
6361
|
-
get: () =>
|
|
6362
|
-
var _a2;
|
|
6363
|
-
return (_a2 = vue.unref(formColumn)) == null ? void 0 : _a2.getValue();
|
|
6364
|
-
},
|
|
6273
|
+
get: () => vue.unref(formColumn)?.getValue(),
|
|
6365
6274
|
set: (v) => {
|
|
6366
6275
|
vue.unref(formColumn).setValue(v);
|
|
6367
6276
|
}
|
|
@@ -6377,14 +6286,13 @@ const DataFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
6377
6286
|
column: formColumn
|
|
6378
6287
|
}));
|
|
6379
6288
|
return () => {
|
|
6380
|
-
var _a2;
|
|
6381
6289
|
let _formColumn2 = vue.unref(formColumn);
|
|
6382
6290
|
let _component = vue.unref(component);
|
|
6383
|
-
let children =
|
|
6291
|
+
let children = slots.default?.({
|
|
6384
6292
|
data: vue.unref(dataForm).data,
|
|
6385
6293
|
column: _formColumn2,
|
|
6386
6294
|
dataForm: vue.unref(dataForm)
|
|
6387
|
-
})
|
|
6295
|
+
}) || null;
|
|
6388
6296
|
if (!children && _component) {
|
|
6389
6297
|
const FormColumnComponent = vue.toRaw(_component);
|
|
6390
6298
|
children = vue.createVNode(FormColumnComponent, vue.mergeProps(vue.unref(componentProps), {
|
|
@@ -6424,7 +6332,6 @@ const Form = /* @__PURE__ */ vue.defineComponent({
|
|
|
6424
6332
|
const data = vue.computed(() => vue.unref(dataForm).data);
|
|
6425
6333
|
const columns = vue.computed(() => vue.unref(dataForm).getColumns().filter((column) => column.visible));
|
|
6426
6334
|
const rules = vue.computed(() => {
|
|
6427
|
-
var _a2;
|
|
6428
6335
|
const rules2 = {};
|
|
6429
6336
|
for (const column of vue.unref(columns)) {
|
|
6430
6337
|
if (column.required && !column.rules.find((rule) => rule.required)) {
|
|
@@ -6433,7 +6340,7 @@ const Form = /* @__PURE__ */ vue.defineComponent({
|
|
|
6433
6340
|
message: `请录入${column.label}.`
|
|
6434
6341
|
}];
|
|
6435
6342
|
}
|
|
6436
|
-
let componentRules =
|
|
6343
|
+
let componentRules = props.rules?.[column.name] || [];
|
|
6437
6344
|
if (!Array.isArray(componentRules)) {
|
|
6438
6345
|
componentRules = [componentRules];
|
|
6439
6346
|
}
|
|
@@ -6455,16 +6362,13 @@ const Form = /* @__PURE__ */ vue.defineComponent({
|
|
|
6455
6362
|
vue.unref(dataForm2).formModels.push({
|
|
6456
6363
|
id: formUID,
|
|
6457
6364
|
validate: async () => {
|
|
6458
|
-
|
|
6459
|
-
return ((_a2 = vue.unref(formEl)) == null ? void 0 : _a2.validateField()) ?? false;
|
|
6365
|
+
return vue.unref(formEl)?.validateField() ?? false;
|
|
6460
6366
|
},
|
|
6461
6367
|
reset: () => {
|
|
6462
|
-
|
|
6463
|
-
(_a2 = vue.unref(formEl)) == null ? void 0 : _a2.resetFields();
|
|
6368
|
+
vue.unref(formEl)?.resetFields();
|
|
6464
6369
|
},
|
|
6465
6370
|
clearValidate: () => {
|
|
6466
|
-
|
|
6467
|
-
(_a2 = vue.unref(formEl)) == null ? void 0 : _a2.clearValidate();
|
|
6371
|
+
vue.unref(formEl)?.clearValidate();
|
|
6468
6372
|
}
|
|
6469
6373
|
});
|
|
6470
6374
|
const disposable = dataForm2.dataFormTypeChangeEvent.on(async ({
|
|
@@ -6489,18 +6393,16 @@ const Form = /* @__PURE__ */ vue.defineComponent({
|
|
|
6489
6393
|
});
|
|
6490
6394
|
});
|
|
6491
6395
|
return () => {
|
|
6492
|
-
var _a2;
|
|
6493
6396
|
if (!vue.unref(dataForm).initd) {
|
|
6494
6397
|
return null;
|
|
6495
6398
|
}
|
|
6496
|
-
let children =
|
|
6399
|
+
let children = slots.default?.();
|
|
6497
6400
|
if (!children) {
|
|
6498
6401
|
children = vue.unref(columns).map((column) => {
|
|
6499
|
-
var _a3;
|
|
6500
6402
|
if (!column.name) {
|
|
6501
6403
|
return null;
|
|
6502
6404
|
}
|
|
6503
|
-
return
|
|
6405
|
+
return slots[`col-${column.name}`]?.() || (column.componentInfo === "MKFormDetail" ? vue.createVNode(MKDataFormItem, {
|
|
6504
6406
|
"label": column.label,
|
|
6505
6407
|
"labelWidth": "0px",
|
|
6506
6408
|
"labelPosition": "top",
|
|
@@ -6628,8 +6530,7 @@ const FormView = /* @__PURE__ */ vue.defineComponent({
|
|
|
6628
6530
|
});
|
|
6629
6531
|
const route = vueRouter.useRoute();
|
|
6630
6532
|
const handleSave = async () => {
|
|
6631
|
-
|
|
6632
|
-
await ((_a2 = vue.unref(dataForm)) == null ? void 0 : _a2.simpleSubmit());
|
|
6533
|
+
await vue.unref(dataForm)?.simpleSubmit();
|
|
6633
6534
|
};
|
|
6634
6535
|
const handleCancel = () => {
|
|
6635
6536
|
vue.unref(dataForm).cancel();
|
|
@@ -6684,8 +6585,7 @@ const FormView = /* @__PURE__ */ vue.defineComponent({
|
|
|
6684
6585
|
}, [route.meta.title])]);
|
|
6685
6586
|
},
|
|
6686
6587
|
extra: () => {
|
|
6687
|
-
|
|
6688
|
-
return vue.createVNode(vue.Fragment, null, [(_a2 = slots["footer-button"]) == null ? void 0 : _a2.call(slots), saveBtn]);
|
|
6588
|
+
return vue.createVNode(vue.Fragment, null, [slots["footer-button"]?.(), saveBtn]);
|
|
6689
6589
|
}
|
|
6690
6590
|
});
|
|
6691
6591
|
}
|
|
@@ -6693,25 +6593,22 @@ const FormView = /* @__PURE__ */ vue.defineComponent({
|
|
|
6693
6593
|
"class": "mk-form-view",
|
|
6694
6594
|
"shadow": "never"
|
|
6695
6595
|
}, {
|
|
6696
|
-
default: () => {
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
default: () => [_slot]
|
|
6713
|
-
})])];
|
|
6714
|
-
}
|
|
6596
|
+
default: () => [vue.createVNode("div", {
|
|
6597
|
+
"class": "mk-form-view__main"
|
|
6598
|
+
}, [vue.createVNode(elementPlus.ElScrollbar, null, {
|
|
6599
|
+
default: () => [vue.createVNode(MKForm, {
|
|
6600
|
+
"labelPosition": props.labelPosition,
|
|
6601
|
+
"rules": props.rules,
|
|
6602
|
+
"labelWidth": props.labelWidth,
|
|
6603
|
+
"dataForm": props.dataForm
|
|
6604
|
+
}, slots)]
|
|
6605
|
+
})]), vue.createVNode("div", {
|
|
6606
|
+
"class": "mk-form-view__footer"
|
|
6607
|
+
}, [slots["footer-button"]?.(), saveBtn, vue.createVNode(elementPlus.ElButton, {
|
|
6608
|
+
"onClick": handleCancel
|
|
6609
|
+
}, _isSlot$4(_slot = locale.I18n.instance.translate("mk.dataForm.cancelButton")) ? _slot : {
|
|
6610
|
+
default: () => [_slot]
|
|
6611
|
+
})])]
|
|
6715
6612
|
});
|
|
6716
6613
|
};
|
|
6717
6614
|
}
|
|
@@ -6806,10 +6703,7 @@ const columnProps$1 = utils.buildProps({
|
|
|
6806
6703
|
});
|
|
6807
6704
|
function useFormItem() {
|
|
6808
6705
|
const dataFormItemContext = vue.inject(DATA_FORM_ITEM_CONTEXT_KEY);
|
|
6809
|
-
const column = vue.computed(() =>
|
|
6810
|
-
var _a2;
|
|
6811
|
-
return ((_a2 = vue.unref(dataFormItemContext)) == null ? void 0 : _a2.column) ?? null;
|
|
6812
|
-
});
|
|
6706
|
+
const column = vue.computed(() => vue.unref(dataFormItemContext)?.column ?? null);
|
|
6813
6707
|
const value = vue.computed({
|
|
6814
6708
|
get: () => {
|
|
6815
6709
|
const _column = vue.unref(column);
|
|
@@ -6826,10 +6720,7 @@ function useFormItem() {
|
|
|
6826
6720
|
_column.setValue(v);
|
|
6827
6721
|
}
|
|
6828
6722
|
});
|
|
6829
|
-
const disabled = vue.computed(() =>
|
|
6830
|
-
var _a2;
|
|
6831
|
-
return ((_a2 = vue.unref(column)) == null ? void 0 : _a2.disabled) ?? false;
|
|
6832
|
-
});
|
|
6723
|
+
const disabled = vue.computed(() => vue.unref(column)?.disabled ?? false);
|
|
6833
6724
|
return { column, value, disabled };
|
|
6834
6725
|
}
|
|
6835
6726
|
const MKDataForm = utils.withInstall(DataForm, {
|
|
@@ -6882,7 +6773,7 @@ const useQueryParams = (dataTable) => {
|
|
|
6882
6773
|
);
|
|
6883
6774
|
event.on(
|
|
6884
6775
|
lodashEs.debounce(([paginationEvent]) => {
|
|
6885
|
-
const pagination =
|
|
6776
|
+
const pagination = paginationEvent?.pagination ?? null;
|
|
6886
6777
|
const params = dataTable2.dataFilter.getParams();
|
|
6887
6778
|
const query2 = {};
|
|
6888
6779
|
if (pagination) {
|
|
@@ -6962,7 +6853,7 @@ const DataTableColumnComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
6962
6853
|
props: dataTableColumnProps,
|
|
6963
6854
|
setup(props) {
|
|
6964
6855
|
const dataTableContext = vue.inject(DATA_TABLE_CONTEXT_KEY);
|
|
6965
|
-
const dataTable = vue.computed(() =>
|
|
6856
|
+
const dataTable = vue.computed(() => dataTableContext?.dataTable ?? null);
|
|
6966
6857
|
const tableColumn = vue.computed(() => props.column);
|
|
6967
6858
|
const {
|
|
6968
6859
|
component,
|
|
@@ -7020,7 +6911,7 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
7020
6911
|
return props.treeProps;
|
|
7021
6912
|
});
|
|
7022
6913
|
const dataTableContext = vue.inject(DATA_TABLE_CONTEXT_KEY);
|
|
7023
|
-
const dataTableEl = vue.computed(() =>
|
|
6914
|
+
const dataTableEl = vue.computed(() => dataTableContext?.el ?? null);
|
|
7024
6915
|
const tableEl = vue.ref(null);
|
|
7025
6916
|
const dataTable = vue.computed(() => props.dataTable ?? dataTableContext.dataTable);
|
|
7026
6917
|
const rowKey = vue.computed(() => props.rowKey || vue.unref(dataTable).primaryKey);
|
|
@@ -7094,7 +6985,6 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
7094
6985
|
});
|
|
7095
6986
|
return () => {
|
|
7096
6987
|
const columns = vue.unref(dataTable).getColumns().filter((column) => column.visible && column.name).map((column) => {
|
|
7097
|
-
var _a2;
|
|
7098
6988
|
const columnProps2 = {
|
|
7099
6989
|
prop: column.name,
|
|
7100
6990
|
label: column.label,
|
|
@@ -7109,10 +6999,9 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
7109
6999
|
if (!column.visible) {
|
|
7110
7000
|
return null;
|
|
7111
7001
|
}
|
|
7112
|
-
return
|
|
7002
|
+
return slots[`col-${column.name}`]?.() ?? vue.createVNode(elementPlus.ElTableColumn, columnProps2, {
|
|
7113
7003
|
default: (scope) => {
|
|
7114
|
-
|
|
7115
|
-
let children = (_a3 = slots[`col-${column.name}-content`]) == null ? void 0 : _a3.call(slots, {
|
|
7004
|
+
let children = slots[`col-${column.name}-content`]?.({
|
|
7116
7005
|
$index: scope.$index,
|
|
7117
7006
|
row: scope.row,
|
|
7118
7007
|
column,
|
|
@@ -7147,10 +7036,7 @@ const Table = /* @__PURE__ */ vue.defineComponent({
|
|
|
7147
7036
|
"width": vue.unref(selectionColumn).width,
|
|
7148
7037
|
"fixed": vue.unref(selectionColumn).fixed
|
|
7149
7038
|
}, null) : null, columns],
|
|
7150
|
-
empty: () =>
|
|
7151
|
-
var _a2;
|
|
7152
|
-
return ((_a2 = slots.empty) == null ? void 0 : _a2.call(slots)) || vue.createVNode(elementPlus.ElEmpty, null, null);
|
|
7153
|
-
}
|
|
7039
|
+
empty: () => slots.empty?.() || vue.createVNode(elementPlus.ElEmpty, null, null)
|
|
7154
7040
|
});
|
|
7155
7041
|
};
|
|
7156
7042
|
}
|
|
@@ -7194,8 +7080,7 @@ const TableHeaderItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
7194
7080
|
slots
|
|
7195
7081
|
}) {
|
|
7196
7082
|
return () => {
|
|
7197
|
-
|
|
7198
|
-
let children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
|
|
7083
|
+
let children = slots.default?.();
|
|
7199
7084
|
if (!children && props.tableHeaderItem) {
|
|
7200
7085
|
return vue.createVNode(InnerTableHeaderItem, {
|
|
7201
7086
|
"tableHeaderItem": props.tableHeaderItem
|
|
@@ -7222,23 +7107,17 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
7222
7107
|
}) {
|
|
7223
7108
|
const dataTableContext = vue.inject(DATA_TABLE_CONTEXT_KEY);
|
|
7224
7109
|
const dataTable = vue.computed(() => dataTableContext.dataTable);
|
|
7225
|
-
const tableHeader = vue.computed(() =>
|
|
7226
|
-
var _a2;
|
|
7227
|
-
return (_a2 = vue.unref(dataTable)) == null ? void 0 : _a2.header;
|
|
7228
|
-
});
|
|
7110
|
+
const tableHeader = vue.computed(() => vue.unref(dataTable)?.header);
|
|
7229
7111
|
const leftArea = vue.computed(() => {
|
|
7230
|
-
var
|
|
7231
|
-
var items = ((_a2 = vue.unref(tableHeader)) == null ? void 0 : _a2.leftArea) ?? [];
|
|
7112
|
+
var items = vue.unref(tableHeader)?.leftArea ?? [];
|
|
7232
7113
|
return items.filter((item) => item.predicate());
|
|
7233
7114
|
});
|
|
7234
7115
|
const rightArea = vue.computed(() => {
|
|
7235
|
-
var
|
|
7236
|
-
var items = ((_a2 = vue.unref(tableHeader)) == null ? void 0 : _a2.rightArea) ?? [];
|
|
7116
|
+
var items = vue.unref(tableHeader)?.rightArea ?? [];
|
|
7237
7117
|
return items.filter((item) => item.predicate());
|
|
7238
7118
|
});
|
|
7239
7119
|
const route = vueRouter.useRoute();
|
|
7240
7120
|
return () => {
|
|
7241
|
-
var _a2, _b2, _c2;
|
|
7242
7121
|
const leftItems = vue.unref(leftArea).filter((item) => item.componentInfo !== "MKClassifySearch").map((item) => vue.createVNode(TableHeaderItem, {
|
|
7243
7122
|
"tableHeaderItem": item
|
|
7244
7123
|
}, null));
|
|
@@ -7254,8 +7133,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
7254
7133
|
"icon": null
|
|
7255
7134
|
}, {
|
|
7256
7135
|
title: () => {
|
|
7257
|
-
|
|
7258
|
-
return ((_a3 = slots["header-title"]) == null ? void 0 : _a3.call(slots)) ?? vue.createVNode("h3", {
|
|
7136
|
+
return slots["header-title"]?.() ?? vue.createVNode("h3", {
|
|
7259
7137
|
"style": "color: var(--el-text-color-regular);",
|
|
7260
7138
|
"class": "m-l-2 flex items-center"
|
|
7261
7139
|
}, [route.meta.icon ? vue.createVNode(MKSvgIcon, {
|
|
@@ -7264,8 +7142,7 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
7264
7142
|
}, null) : null, vue.createVNode("span", null, [route.meta.title])]);
|
|
7265
7143
|
},
|
|
7266
7144
|
extra: () => {
|
|
7267
|
-
|
|
7268
|
-
return vue.createVNode(vue.Fragment, null, [rightItems, (_a3 = slots["header-tools"]) == null ? void 0 : _a3.call(slots)]);
|
|
7145
|
+
return vue.createVNode(vue.Fragment, null, [rightItems, slots["header-tools"]?.()]);
|
|
7269
7146
|
},
|
|
7270
7147
|
content: () => {
|
|
7271
7148
|
return vue.createVNode("div", {
|
|
@@ -7277,9 +7154,9 @@ const TableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
7277
7154
|
"class": "mk-table-view__header"
|
|
7278
7155
|
}, [vue.createVNode("div", {
|
|
7279
7156
|
"class": "mk-table-view__header-main"
|
|
7280
|
-
}, [
|
|
7157
|
+
}, [slots["header-title"]?.(), leftItems, classifySearchItems, slots["header-main"]?.()]), vue.createVNode("div", {
|
|
7281
7158
|
"class": "mk-table-view__header-tools"
|
|
7282
|
-
}, [rightItems,
|
|
7159
|
+
}, [rightItems, slots["header-tools"]?.()])]);
|
|
7283
7160
|
};
|
|
7284
7161
|
}
|
|
7285
7162
|
});
|
|
@@ -7296,10 +7173,9 @@ const TableView = /* @__PURE__ */ vue.defineComponent({
|
|
|
7296
7173
|
const pageSizes = vue.computed(() => vue.unref(dataTable).pageSizes);
|
|
7297
7174
|
const isTree = vue.computed(() => vue.unref(dataTable) instanceof dm.DataTree);
|
|
7298
7175
|
return () => {
|
|
7299
|
-
|
|
7300
|
-
const pagination = ((_a2 = slots.pagination) == null ? void 0 : _a2.call(slots, {
|
|
7176
|
+
const pagination = slots.pagination?.({
|
|
7301
7177
|
dataTable: vue.unref(dataTable)
|
|
7302
|
-
})
|
|
7178
|
+
}) || (vue.unref(pageSizes).length && !vue.unref(isTree) ? vue.createVNode(MKDataTablePagination, {
|
|
7303
7179
|
"dataTable": vue.unref(dataTable)
|
|
7304
7180
|
}, null) : null);
|
|
7305
7181
|
const renderSlots = {};
|
|
@@ -7309,30 +7185,24 @@ const TableView = /* @__PURE__ */ vue.defineComponent({
|
|
|
7309
7185
|
}, slots);
|
|
7310
7186
|
}
|
|
7311
7187
|
return props.mode === "page" ? vue.createVNode(MKPagePanel, null, {
|
|
7312
|
-
default: () => {
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
"dataTable": vue.unref(dataTable)
|
|
7321
|
-
}, null), pagination])];
|
|
7322
|
-
},
|
|
7188
|
+
default: () => [vue.createVNode("div", {
|
|
7189
|
+
"class": "p-4 flex flex-col w-full h-full"
|
|
7190
|
+
}, [slots.default?.({
|
|
7191
|
+
dataTable: vue.unref(dataTable)
|
|
7192
|
+
}) || vue.createVNode(MKTable, {
|
|
7193
|
+
"class": "flex-1",
|
|
7194
|
+
"dataTable": vue.unref(dataTable)
|
|
7195
|
+
}, null), pagination])],
|
|
7323
7196
|
...renderSlots
|
|
7324
7197
|
}) : vue.createVNode(elementPlus.ElCard, {
|
|
7325
7198
|
"class": "mk-table-view",
|
|
7326
7199
|
"shadow": "never"
|
|
7327
7200
|
}, {
|
|
7328
|
-
default: () => {
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
"dataTable": vue.unref(dataTable)
|
|
7334
|
-
}, null), pagination];
|
|
7335
|
-
},
|
|
7201
|
+
default: () => [slots.default?.({
|
|
7202
|
+
dataTable: vue.unref(dataTable)
|
|
7203
|
+
}) || vue.createVNode(MKTable, {
|
|
7204
|
+
"dataTable": vue.unref(dataTable)
|
|
7205
|
+
}, null), pagination],
|
|
7336
7206
|
...renderSlots
|
|
7337
7207
|
});
|
|
7338
7208
|
};
|
|
@@ -7389,7 +7259,7 @@ const TableClassifySearchItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
7389
7259
|
modelValue.value = _modelValue;
|
|
7390
7260
|
return;
|
|
7391
7261
|
}
|
|
7392
|
-
modelValue.value =
|
|
7262
|
+
modelValue.value = item?.value ?? null;
|
|
7393
7263
|
};
|
|
7394
7264
|
const options = vue.computed(() => {
|
|
7395
7265
|
if (Array.isArray(props.options)) {
|
|
@@ -7435,12 +7305,10 @@ const TableClassifySearch = /* @__PURE__ */ vue.defineComponent({
|
|
|
7435
7305
|
setup(props, {
|
|
7436
7306
|
slots
|
|
7437
7307
|
}) {
|
|
7438
|
-
|
|
7439
|
-
const
|
|
7440
|
-
const classifySearch = vue.computed(() => (dataTable == null ? void 0 : dataTable.classifySearch) ?? null);
|
|
7308
|
+
const dataTable = vue.inject(DATA_TABLE_CONTEXT_KEY)?.dataTable;
|
|
7309
|
+
const classifySearch = vue.computed(() => dataTable?.classifySearch ?? null);
|
|
7441
7310
|
return () => {
|
|
7442
|
-
|
|
7443
|
-
let children = (_a3 = slots.default) == null ? void 0 : _a3.call(slots);
|
|
7311
|
+
let children = slots.default?.();
|
|
7444
7312
|
const _classifySearch = vue.unref(classifySearch);
|
|
7445
7313
|
if (!children && _classifySearch) {
|
|
7446
7314
|
if (!_classifySearch.getClassifySearchItems().length) {
|
|
@@ -7644,16 +7512,14 @@ const Tree = /* @__PURE__ */ vue.defineComponent({
|
|
|
7644
7512
|
const currentNodeKey = vue.computed(() => (props.currentNodeKey || vue.unref(dataTree).getSelection()[0]) ?? "");
|
|
7645
7513
|
vue.onMounted(() => {
|
|
7646
7514
|
vue.watch(currentNodeKey, (currentNodeKey2) => {
|
|
7647
|
-
|
|
7648
|
-
(_a2 = vue.unref(treeRef)) == null ? void 0 : _a2.setCurrentKey(currentNodeKey2 || null);
|
|
7515
|
+
vue.unref(treeRef)?.setCurrentKey(currentNodeKey2 || null);
|
|
7649
7516
|
}, {
|
|
7650
7517
|
immediate: true
|
|
7651
7518
|
});
|
|
7652
7519
|
});
|
|
7653
7520
|
vue.unref(dataTree).afterLoadEvent.on(async () => {
|
|
7654
|
-
var _a2;
|
|
7655
7521
|
await vue.nextTick();
|
|
7656
|
-
|
|
7522
|
+
vue.unref(treeRef)?.setCurrentKey(vue.unref(currentNodeKey) || null);
|
|
7657
7523
|
});
|
|
7658
7524
|
const handleAdd = (dataTreeNode) => {
|
|
7659
7525
|
vue.unref(dataTree).addRecord(dataTreeNode ? {
|
|
@@ -7679,18 +7545,16 @@ const Tree = /* @__PURE__ */ vue.defineComponent({
|
|
|
7679
7545
|
resolve(dataTreeNode.children);
|
|
7680
7546
|
};
|
|
7681
7547
|
const filter = (value) => {
|
|
7682
|
-
|
|
7683
|
-
(_a2 = vue.unref(treeRef)) == null ? void 0 : _a2.filter(value);
|
|
7548
|
+
vue.unref(treeRef)?.filter(value);
|
|
7684
7549
|
};
|
|
7685
7550
|
const handleCurrentChange = (dataTreeNode, node) => {
|
|
7686
|
-
var _a2;
|
|
7687
7551
|
if (!dataTreeNode) {
|
|
7688
7552
|
return;
|
|
7689
7553
|
}
|
|
7690
7554
|
const _dataTree = vue.unref(dataTree);
|
|
7691
7555
|
if (!props.allowSelectContainer && !dataTreeNode.isLeaf) {
|
|
7692
7556
|
const current = _dataTree.getSelection()[0] ?? null;
|
|
7693
|
-
|
|
7557
|
+
vue.unref(treeRef)?.setCurrentKey(current);
|
|
7694
7558
|
return;
|
|
7695
7559
|
}
|
|
7696
7560
|
_dataTree.setSelection([dataTreeNode.data[_dataTree.primaryKey]]);
|
|
@@ -7753,8 +7617,7 @@ const Tree = /* @__PURE__ */ vue.defineComponent({
|
|
|
7753
7617
|
"onNode-click": handleNodeClick
|
|
7754
7618
|
}, {
|
|
7755
7619
|
default: (scope) => {
|
|
7756
|
-
|
|
7757
|
-
let children = (_a2 = $slots.default) == null ? void 0 : _a2.call($slots, scope);
|
|
7620
|
+
let children = $slots.default?.(scope);
|
|
7758
7621
|
if (children) {
|
|
7759
7622
|
return children;
|
|
7760
7623
|
}
|
|
@@ -7762,8 +7625,8 @@ const Tree = /* @__PURE__ */ vue.defineComponent({
|
|
|
7762
7625
|
data
|
|
7763
7626
|
} = scope;
|
|
7764
7627
|
const label = data.data[innerDataTree.props.label];
|
|
7765
|
-
const main =
|
|
7766
|
-
const tools =
|
|
7628
|
+
const main = $slots["node-main"]?.(scope) || label;
|
|
7629
|
+
const tools = $slots["node-tools"]?.(scope) || vue.createVNode(vue.Fragment, null, [$slots["node-tools-prefix"]?.(scope), vue.createVNode(elementPlus.ElButton, {
|
|
7767
7630
|
"type": "primary",
|
|
7768
7631
|
"link": true,
|
|
7769
7632
|
"onClick": () => handleAdd(data)
|
|
@@ -7781,7 +7644,7 @@ const Tree = /* @__PURE__ */ vue.defineComponent({
|
|
|
7781
7644
|
"onClick": () => handleDelete(data)
|
|
7782
7645
|
}, {
|
|
7783
7646
|
default: () => [vue.createTextVNode("删除")]
|
|
7784
|
-
}),
|
|
7647
|
+
}), $slots["node-tools-suffix"]?.(scope)]);
|
|
7785
7648
|
return vue.createVNode("div", {
|
|
7786
7649
|
"class": "flex w-full py-2 justify-between"
|
|
7787
7650
|
}, [vue.createVNode("div", null, [main]), vue.createVNode("div", {
|
|
@@ -7815,8 +7678,7 @@ const TreeView = /* @__PURE__ */ vue.defineComponent({
|
|
|
7815
7678
|
const treeRef = vue.ref();
|
|
7816
7679
|
const searchInputValue = vue.ref("");
|
|
7817
7680
|
vue.watch(searchInputValue, (value) => {
|
|
7818
|
-
|
|
7819
|
-
(_a2 = vue.unref(treeRef)) == null ? void 0 : _a2.filter(value);
|
|
7681
|
+
vue.unref(treeRef)?.filter(value);
|
|
7820
7682
|
});
|
|
7821
7683
|
const filterNodeMethod = (value, data) => {
|
|
7822
7684
|
if (typeof props.filterNodeMethod === "function") {
|
|
@@ -7829,10 +7691,9 @@ const TreeView = /* @__PURE__ */ vue.defineComponent({
|
|
|
7829
7691
|
vue.unref(dataTree).addRecord();
|
|
7830
7692
|
};
|
|
7831
7693
|
return () => {
|
|
7832
|
-
|
|
7833
|
-
const content = ((_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
|
|
7694
|
+
const content = slots.default?.({
|
|
7834
7695
|
dataTree: props.dataTree
|
|
7835
|
-
})
|
|
7696
|
+
}) || vue.createVNode(MKTree, {
|
|
7836
7697
|
"ref": (component) => treeRef.value = component,
|
|
7837
7698
|
"dataTree": vue.unref(dataTree),
|
|
7838
7699
|
"filterNodeMethod": filterNodeMethod
|
|
@@ -7901,7 +7762,6 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7901
7762
|
selectNodeId.value = props.curSelectId;
|
|
7902
7763
|
});
|
|
7903
7764
|
const setDefaultSelectNode = (callback) => {
|
|
7904
|
-
var _a2;
|
|
7905
7765
|
const list2 = props.dataTree.getList();
|
|
7906
7766
|
if (list2.length > 0) {
|
|
7907
7767
|
if (!selectNodeId.value) {
|
|
@@ -7913,7 +7773,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7913
7773
|
callback && callback(item);
|
|
7914
7774
|
break;
|
|
7915
7775
|
}
|
|
7916
|
-
|
|
7776
|
+
item.children?.forEach((child) => list2.push(child));
|
|
7917
7777
|
}
|
|
7918
7778
|
}
|
|
7919
7779
|
};
|
|
@@ -8174,10 +8034,7 @@ const MaterialGroupFormPopover = /* @__PURE__ */ vue.defineComponent({
|
|
|
8174
8034
|
}, {
|
|
8175
8035
|
default: () => [vue.createTextVNode("保存")]
|
|
8176
8036
|
})])])],
|
|
8177
|
-
reference: () =>
|
|
8178
|
-
var _a2;
|
|
8179
|
-
return (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
|
|
8180
|
-
}
|
|
8037
|
+
reference: () => slots.default?.()
|
|
8181
8038
|
});
|
|
8182
8039
|
};
|
|
8183
8040
|
}
|
|
@@ -8202,7 +8059,7 @@ const MaterialGroup = /* @__PURE__ */ vue.defineComponent({
|
|
|
8202
8059
|
await vue.nextTick();
|
|
8203
8060
|
materialGroupForm.setData({
|
|
8204
8061
|
...materialGroupForm.data,
|
|
8205
|
-
parentGroupId:
|
|
8062
|
+
parentGroupId: parent?.id || null
|
|
8206
8063
|
});
|
|
8207
8064
|
};
|
|
8208
8065
|
const handleEditClick = (item) => {
|
|
@@ -8334,10 +8191,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
8334
8191
|
() => props.materialTable.getSelection().includes(props.material.id)
|
|
8335
8192
|
);
|
|
8336
8193
|
const currentMaterialTypeValue = vue.computed(
|
|
8337
|
-
() =>
|
|
8338
|
-
var _a2;
|
|
8339
|
-
return ((_a2 = props.materialTable.currentMaterialType) == null ? void 0 : _a2.value) ?? null;
|
|
8340
|
-
}
|
|
8194
|
+
() => props.materialTable.currentMaterialType?.value ?? null
|
|
8341
8195
|
);
|
|
8342
8196
|
const MaterialComponent = vue.computed(() => {
|
|
8343
8197
|
const component = props.materialTable.resolveMaterialComponent(
|
|
@@ -8504,10 +8358,7 @@ const MaterialList = /* @__PURE__ */ vue.defineComponent({
|
|
|
8504
8358
|
const loading = vue.computed(() => vue.unref(materialTable).loading);
|
|
8505
8359
|
const materialTypes = vue.computed(() => vue.unref(materialTable).getMaterialTypes());
|
|
8506
8360
|
const currentMaterialType = vue.computed(() => vue.unref(materialTable).currentMaterialType);
|
|
8507
|
-
const currentMaterialTypeId = vue.computed(() =>
|
|
8508
|
-
var _a2;
|
|
8509
|
-
return ((_a2 = vue.unref(currentMaterialType)) == null ? void 0 : _a2.value) ?? "";
|
|
8510
|
-
});
|
|
8361
|
+
const currentMaterialTypeId = vue.computed(() => vue.unref(currentMaterialType)?.value ?? "");
|
|
8511
8362
|
const materialList = vue.computed(() => vue.unref(materialTable).getList());
|
|
8512
8363
|
vue.onBeforeUnmount(() => {
|
|
8513
8364
|
defaultMaterialTable.dispose();
|
|
@@ -8655,9 +8506,8 @@ const MaterialList = /* @__PURE__ */ vue.defineComponent({
|
|
|
8655
8506
|
const handleDownload = () => {
|
|
8656
8507
|
};
|
|
8657
8508
|
const handleSelectFile = async () => {
|
|
8658
|
-
var _a2;
|
|
8659
8509
|
const file = await utils.fileSelect({
|
|
8660
|
-
accept:
|
|
8510
|
+
accept: vue.unref(currentMaterialType)?.accept
|
|
8661
8511
|
});
|
|
8662
8512
|
if (file) {
|
|
8663
8513
|
vue.unref(materialTable).upload.upload(file);
|
|
@@ -8846,8 +8696,7 @@ const ImageEditPanelComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
8846
8696
|
immediate: true
|
|
8847
8697
|
});
|
|
8848
8698
|
const handleMaterialSelect = async (data) => {
|
|
8849
|
-
|
|
8850
|
-
attrs.src = ((_a2 = data[0]) == null ? void 0 : _a2.path) ?? "";
|
|
8699
|
+
attrs.src = data[0]?.path ?? "";
|
|
8851
8700
|
};
|
|
8852
8701
|
const selectImage = async () => {
|
|
8853
8702
|
const file = await utils.fileSelect({
|
|
@@ -9040,18 +8889,14 @@ const showImageEditDialog = async (attrs) => {
|
|
|
9040
8889
|
return new Promise((resolve, reject) => {
|
|
9041
8890
|
selectState.value = attrs.src ? "attrs" : "select";
|
|
9042
8891
|
const imageEditPanelRef = vue.ref(null);
|
|
9043
|
-
const editResult = vue.computed(() =>
|
|
9044
|
-
var _a2;
|
|
9045
|
-
return (_a2 = imageEditPanelRef.value) == null ? void 0 : _a2.getResult();
|
|
9046
|
-
});
|
|
8892
|
+
const editResult = vue.computed(() => imageEditPanelRef.value?.getResult());
|
|
9047
8893
|
const toCropImageHandle = async () => {
|
|
9048
|
-
var _a2;
|
|
9049
8894
|
if (editResult.value.src) {
|
|
9050
8895
|
var result = await ImageCropper({
|
|
9051
8896
|
src: editResult.value.src
|
|
9052
8897
|
});
|
|
9053
8898
|
if (result.data) {
|
|
9054
|
-
|
|
8899
|
+
imageEditPanelRef.value?.setSrc(result.data);
|
|
9055
8900
|
}
|
|
9056
8901
|
}
|
|
9057
8902
|
};
|
|
@@ -9145,9 +8990,8 @@ const showModuleSelectDialog = async (namespace) => {
|
|
|
9145
8990
|
return true;
|
|
9146
8991
|
}
|
|
9147
8992
|
}).map((item) => {
|
|
9148
|
-
var _a2;
|
|
9149
8993
|
return vue.createVNode("div", {
|
|
9150
|
-
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${
|
|
8994
|
+
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${selectOption.value?.name == item.name ? "active" : ""}`,
|
|
9151
8995
|
"onClick": () => clickHandle(item)
|
|
9152
8996
|
}, [item.cover ? vue.createVNode("img", {
|
|
9153
8997
|
"src": item.cover
|
|
@@ -9193,9 +9037,8 @@ const showTemplateSelectDialog = function(namespace) {
|
|
|
9193
9037
|
dialogInstance.destroy();
|
|
9194
9038
|
};
|
|
9195
9039
|
const handleConfirmClick = () => {
|
|
9196
|
-
var _a2;
|
|
9197
9040
|
dialogInstance.destroy();
|
|
9198
|
-
resolve(
|
|
9041
|
+
resolve(selectOption.value?.name);
|
|
9199
9042
|
};
|
|
9200
9043
|
const clickHandle = (item) => {
|
|
9201
9044
|
selectOption.value = item;
|
|
@@ -9215,9 +9058,8 @@ const showTemplateSelectDialog = function(namespace) {
|
|
|
9215
9058
|
return true;
|
|
9216
9059
|
}
|
|
9217
9060
|
}).map((item) => {
|
|
9218
|
-
var _a2;
|
|
9219
9061
|
return vue.createVNode("div", {
|
|
9220
|
-
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${
|
|
9062
|
+
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${selectOption.value?.name == item.name ? "active" : ""}`,
|
|
9221
9063
|
"onClick": () => clickHandle(item)
|
|
9222
9064
|
}, [item.cover ? vue.createVNode("img", {
|
|
9223
9065
|
"src": item.cover
|
|
@@ -9346,7 +9188,6 @@ const useLexicalEditor = function(options, errHandle) {
|
|
|
9346
9188
|
// 补空
|
|
9347
9189
|
editor.registerUpdateListener(({ editorState }) => {
|
|
9348
9190
|
editor.update(() => {
|
|
9349
|
-
var _a2;
|
|
9350
9191
|
const rootNode = lexical.$getRoot();
|
|
9351
9192
|
if (rootNode.isEmpty()) {
|
|
9352
9193
|
const p = lexical.$createParagraphNode();
|
|
@@ -9364,7 +9205,7 @@ const useLexicalEditor = function(options, errHandle) {
|
|
|
9364
9205
|
}
|
|
9365
9206
|
list2.push(...node.getChildren());
|
|
9366
9207
|
} else if (el && lexical.$isTextNode(node)) {
|
|
9367
|
-
if (
|
|
9208
|
+
if (el?.nextElementSibling?.tagName.toLowerCase() == "br") {
|
|
9368
9209
|
el.classList.add("mk-doc__br-brfore-mark");
|
|
9369
9210
|
} else {
|
|
9370
9211
|
el.classList.remove("mk-doc__br-brfore-mark");
|
|
@@ -9469,15 +9310,14 @@ const addFontSizeToOptions = function(options, size, rootSize = 14) {
|
|
|
9469
9310
|
options.push({ value: `${Math.round(size / rootSize * 100) / 100}rem`, label: size + "px" });
|
|
9470
9311
|
};
|
|
9471
9312
|
const useLexicalEditorState = function(editor, options) {
|
|
9472
|
-
var _a2, _b2;
|
|
9473
9313
|
if (!editor) {
|
|
9474
9314
|
editor = useLexicalEditorContext().editor;
|
|
9475
9315
|
}
|
|
9476
9316
|
if (!options) {
|
|
9477
9317
|
options = { rootFontSize: 14, fontFamilyOptions: [], fontSizeOptions: [] };
|
|
9478
9318
|
}
|
|
9479
|
-
options.rootFontSize
|
|
9480
|
-
if (!
|
|
9319
|
+
options.rootFontSize ??= 14;
|
|
9320
|
+
if (!options?.fontSizeOptions?.length) {
|
|
9481
9321
|
options.fontSizeOptions = [];
|
|
9482
9322
|
for (let i = 0; i < 80; i += 2) {
|
|
9483
9323
|
addFontSizeToOptions(options.fontSizeOptions, 10 + i, options.rootFontSize);
|
|
@@ -9488,7 +9328,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9488
9328
|
}
|
|
9489
9329
|
}
|
|
9490
9330
|
}
|
|
9491
|
-
if (!
|
|
9331
|
+
if (!options?.fontFamilyOptions?.length) {
|
|
9492
9332
|
options.fontFamilyOptions = [{ value: "", label: "默认字体" }].concat(FONT_FAMILY.map((fv) => {
|
|
9493
9333
|
let fvl = fv.split("="), label = fvl[0], value = fvl[1] || `'${label}'`;
|
|
9494
9334
|
return { value, label };
|
|
@@ -9581,7 +9421,6 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9581
9421
|
// 其他状态
|
|
9582
9422
|
editor.registerUpdateListener(({ editorState }) => {
|
|
9583
9423
|
editorState.read(() => {
|
|
9584
|
-
var _a3, _b3, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
9585
9424
|
const selection$1 = lexical.$getSelection();
|
|
9586
9425
|
if (lexical.$isRangeSelection(selection$1)) {
|
|
9587
9426
|
const anchorNode = selection$1.anchor.getNode();
|
|
@@ -9593,7 +9432,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9593
9432
|
parentNode = anchorNode.getTopLevelElementOrThrow();
|
|
9594
9433
|
}
|
|
9595
9434
|
let parentDOM = editor.getElementByKey(parentNode.getKey());
|
|
9596
|
-
alignValue.value =
|
|
9435
|
+
alignValue.value = parentDOM?.style.textAlign || "left";
|
|
9597
9436
|
if (alignValue.value == "start") {
|
|
9598
9437
|
alignValue.value = "left";
|
|
9599
9438
|
} else if (alignValue.value == "end") {
|
|
@@ -9606,28 +9445,28 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9606
9445
|
canSubscript.value = selection$1.hasFormat("subscript");
|
|
9607
9446
|
canSuperscript.value = selection$1.hasFormat("superscript");
|
|
9608
9447
|
if (canSubscript.value) {
|
|
9609
|
-
curContentTypeDesc.value =
|
|
9448
|
+
curContentTypeDesc.value = contentTypeList.find((item) => item.value == "subscript")?.label ?? "正文";
|
|
9610
9449
|
} else if (canSuperscript.value) {
|
|
9611
|
-
curContentTypeDesc.value =
|
|
9450
|
+
curContentTypeDesc.value = contentTypeList.find((item) => item.value == "superscript")?.label ?? "正文";
|
|
9612
9451
|
} else if (parentDOM !== null) {
|
|
9613
9452
|
const type = richText.$isHeadingNode(parentNode) ? parentNode.getTag() : parentNode.getType();
|
|
9614
|
-
curContentTypeDesc.value =
|
|
9453
|
+
curContentTypeDesc.value = contentTypeList.find((item) => item.value == type)?.label ?? "正文";
|
|
9615
9454
|
}
|
|
9616
9455
|
var ff = selection.$getSelectionStyleValueForProperty(selection$1, "font-family", "");
|
|
9617
9456
|
let fs = selection.$getSelectionStyleValueForProperty(selection$1, "font-size", "");
|
|
9618
9457
|
if (fs) {
|
|
9619
9458
|
fontSize.value = Math.round(parseFloat(fs) * options.rootFontSize) + "px";
|
|
9620
9459
|
} else if (parentDOM) {
|
|
9621
|
-
fontSize.value =
|
|
9460
|
+
fontSize.value = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontSize ?? Math.round(options.rootFontSize) + "px";
|
|
9622
9461
|
} else {
|
|
9623
9462
|
fontSize.value = Math.round(options.rootFontSize) + "px";
|
|
9624
9463
|
}
|
|
9625
9464
|
if (!ff && parentDOM) {
|
|
9626
|
-
ff =
|
|
9465
|
+
ff = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontFamily ?? "";
|
|
9627
9466
|
}
|
|
9628
9467
|
fontColor.value = selection.$getSelectionStyleValueForProperty(selection$1, "color", "#000");
|
|
9629
9468
|
bgColor.value = selection.$getSelectionStyleValueForProperty(selection$1, "background-color", "");
|
|
9630
|
-
fontFamily.value =
|
|
9469
|
+
fontFamily.value = options.fontFamilyOptions?.find((item) => item.value == ff) || options.fontFamilyOptions[0];
|
|
9631
9470
|
canTextStyleDisabled.value = false;
|
|
9632
9471
|
const parent = anchorNode.getParent();
|
|
9633
9472
|
if (canLink.value = link.$isLinkNode(parent) || link.$isLinkNode(anchorNode)) {
|
|
@@ -10058,10 +9897,9 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10058
9897
|
vue.ref();
|
|
10059
9898
|
const updateToolsPos = () => {
|
|
10060
9899
|
vue.nextTick(() => {
|
|
10061
|
-
var _a2;
|
|
10062
9900
|
if (selectPayload.value != null) {
|
|
10063
9901
|
const stageIframe = document.body.querySelector("#" + stageId);
|
|
10064
|
-
const editBodyRect =
|
|
9902
|
+
const editBodyRect = editor.getRootElement()?.getBoundingClientRect();
|
|
10065
9903
|
const selectElement = editor.getElementByKey(selectPayload.value.nodeKey);
|
|
10066
9904
|
const selectRect = selectElement.getBoundingClientRect();
|
|
10067
9905
|
const selectElComputedStyle = window.getComputedStyle(selectElement);
|
|
@@ -10069,7 +9907,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10069
9907
|
const selectElMarginLeft = parseInt(selectElComputedStyle.marginLeft);
|
|
10070
9908
|
const selectElMarginBottom = parseInt(selectElComputedStyle.marginBottom);
|
|
10071
9909
|
const selectElMarginRight = parseInt(selectElComputedStyle.marginRight);
|
|
10072
|
-
let baseY = (
|
|
9910
|
+
let baseY = (stageIframe?.offsetTop ?? 0) - (editBodyRect?.y ?? 0), baseX = (stageIframe?.offsetLeft ?? 0) - (editBodyRect?.x ?? 0);
|
|
10073
9911
|
if (toolbarRef.value != null) {
|
|
10074
9912
|
const toolsRect = toolbarRef.value.getBoundingClientRect();
|
|
10075
9913
|
toolsPos.top = Math.max(selectRect.y - toolsRect.height - 5 + baseY, 5 + baseY) + "px";
|
|
@@ -10107,7 +9945,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10107
9945
|
const copyInsert = (action) => {
|
|
10108
9946
|
editor.update(() => {
|
|
10109
9947
|
const selection2 = lexical.$getSelection();
|
|
10110
|
-
const node = lexical.$isNodeSelection(selection2) ? selection2
|
|
9948
|
+
const node = lexical.$isNodeSelection(selection2) ? selection2?.getNodes()[0] : lexical.$isRangeSelection(selection2) ? selection2.anchor.getNode() : null;
|
|
10111
9949
|
if (node) {
|
|
10112
9950
|
const oldNode = deepCloneNode(node);
|
|
10113
9951
|
if (action == -1) {
|
|
@@ -10130,7 +9968,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10130
9968
|
// 点击选中
|
|
10131
9969
|
editor.registerCommand(lexical.CLICK_COMMAND, (event) => {
|
|
10132
9970
|
const el = event.target;
|
|
10133
|
-
const nodeKey = el
|
|
9971
|
+
const nodeKey = el?.getAttribute("node-key");
|
|
10134
9972
|
if (nodeKey != null) {
|
|
10135
9973
|
event.preventDefault();
|
|
10136
9974
|
setElementBlockSelection(editor, nodeKey);
|
|
@@ -10166,7 +10004,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10166
10004
|
// 删除模块
|
|
10167
10005
|
editor.registerCommand(REMOVE_ELEMENTBLOCK_COMMAND, () => {
|
|
10168
10006
|
const selection2 = lexical.$getSelection();
|
|
10169
|
-
const node = lexical.$isNodeSelection(selection2) ? selection2
|
|
10007
|
+
const node = lexical.$isNodeSelection(selection2) ? selection2?.getNodes()[0] : lexical.$isRangeSelection(selection2) ? selection2.anchor.getNode() : null;
|
|
10170
10008
|
if (node) {
|
|
10171
10009
|
node.remove();
|
|
10172
10010
|
editor.dispatchCommand(SELECTED_ELEMENTBLOCK_COMMAND, null);
|
|
@@ -10177,7 +10015,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10177
10015
|
// 选中的话
|
|
10178
10016
|
editor.registerCommand(lexical.SELECTION_CHANGE_COMMAND, () => {
|
|
10179
10017
|
const selection2 = lexical.$getSelection();
|
|
10180
|
-
const node = lexical.$isNodeSelection(selection2) ? selection2
|
|
10018
|
+
const node = lexical.$isNodeSelection(selection2) ? selection2?.getNodes()[0] : lexical.$isRangeSelection(selection2) ? selection2.anchor.getNode() : null;
|
|
10181
10019
|
if (node) {
|
|
10182
10020
|
nodeTitle.value = node.getTitle ? node.getTitle() : "";
|
|
10183
10021
|
if ($isModuleDecoratorNode(node)) {
|
|
@@ -10188,15 +10026,15 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
10188
10026
|
}
|
|
10189
10027
|
showTools.value = !lexical.$isRootNode(node);
|
|
10190
10028
|
showMask.value = $isHtmlElementDecoratorNode(node);
|
|
10191
|
-
if (node
|
|
10029
|
+
if (node?.__next) {
|
|
10192
10030
|
const nextNode = lexical.$getNodeByKey(node.__next);
|
|
10193
|
-
canSelectedNextNode.value =
|
|
10031
|
+
canSelectedNextNode.value = node?.__next ? lexical.$isElementNode(nextNode) && !lexical.$isParagraphNode(nextNode) : false;
|
|
10194
10032
|
} else {
|
|
10195
10033
|
canSelectedNextNode.value = false;
|
|
10196
10034
|
}
|
|
10197
|
-
if (node
|
|
10035
|
+
if (node?.__prev) {
|
|
10198
10036
|
const prevNode = lexical.$getNodeByKey(node.__prev);
|
|
10199
|
-
canSelectedPrevNode.value =
|
|
10037
|
+
canSelectedPrevNode.value = node?.__prev ? lexical.$isElementNode(prevNode) && !lexical.$isParagraphNode(prevNode) : false;
|
|
10200
10038
|
} else {
|
|
10201
10039
|
canSelectedPrevNode.value = false;
|
|
10202
10040
|
}
|
|
@@ -10894,7 +10732,7 @@ const insertNodeHandle = (node, selectNode) => {
|
|
|
10894
10732
|
};
|
|
10895
10733
|
const insertNodesHandle = (...nodes) => {
|
|
10896
10734
|
const selection2 = lexical.$getSelection();
|
|
10897
|
-
let selectNode = lexical.$isNodeSelection(selection2) ? selection2
|
|
10735
|
+
let selectNode = lexical.$isNodeSelection(selection2) ? selection2?.getNodes()[0] : lexical.$isRangeSelection(selection2) ? selection2.anchor.getNode() : lexical.$getRoot();
|
|
10898
10736
|
nodes.forEach((node) => insertNodeHandle(node, selectNode));
|
|
10899
10737
|
return false;
|
|
10900
10738
|
};
|
|
@@ -11274,7 +11112,7 @@ const insertListNode = (listType) => {
|
|
|
11274
11112
|
const selection2 = lexical.$getSelection();
|
|
11275
11113
|
const list$1 = list.$createListNode(listType);
|
|
11276
11114
|
const listItem = list.$createListItemNode();
|
|
11277
|
-
let elementNode = lexical.$isNodeSelection(selection2) ? selection2
|
|
11115
|
+
let elementNode = lexical.$isNodeSelection(selection2) ? selection2?.getNodes()[0] : lexical.$isRangeSelection(selection2) ? selection2.anchor.getNode() : null;
|
|
11278
11116
|
if (lexical.$isTextNode(elementNode)) {
|
|
11279
11117
|
elementNode = elementNode.getParent();
|
|
11280
11118
|
}
|
|
@@ -11778,7 +11616,6 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
11778
11616
|
theme,
|
|
11779
11617
|
editable: props.editable,
|
|
11780
11618
|
namespace: props.namespace,
|
|
11781
|
-
editorState: null,
|
|
11782
11619
|
importCss: props.importCss,
|
|
11783
11620
|
importScripts: props.importScripts,
|
|
11784
11621
|
modules: props.modules,
|
|
@@ -11951,10 +11788,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
11951
11788
|
const contentIsEmpty = vue.ref(true);
|
|
11952
11789
|
const showAddNewline = vue.ref(false);
|
|
11953
11790
|
const iframeContentRef = vue.ref(null);
|
|
11954
|
-
const iframeBody = vue.computed(() =>
|
|
11955
|
-
var _a2, _b2, _c2;
|
|
11956
|
-
return (_c2 = (_b2 = (_a2 = iframeContentRef.value) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.document) == null ? void 0 : _c2.body;
|
|
11957
|
-
});
|
|
11791
|
+
const iframeBody = vue.computed(() => iframeContentRef.value?.contentWindow?.document?.body);
|
|
11958
11792
|
let updateTimeoutKey = 0;
|
|
11959
11793
|
const updateStageHeight = () => {
|
|
11960
11794
|
const stageEl = editor.getRootElement();
|
|
@@ -11972,8 +11806,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
11972
11806
|
editor.update(() => lexical.$getRoot().append(lexical.$createParagraphNode()));
|
|
11973
11807
|
};
|
|
11974
11808
|
useMounted(() => {
|
|
11975
|
-
|
|
11976
|
-
const doc = (_b2 = (_a2 = iframeContentRef.value) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.document;
|
|
11809
|
+
const doc = iframeContentRef.value?.contentWindow?.document;
|
|
11977
11810
|
importScript.split(",").filter((item) => !!item).forEach((path2) => {
|
|
11978
11811
|
const script = document.createElement("script");
|
|
11979
11812
|
script.src = path2;
|
|
@@ -12052,7 +11885,7 @@ const markdownEditorProps = utils.buildProps({
|
|
|
12052
11885
|
const markdownEditorEmits = {
|
|
12053
11886
|
"update:model-value": (modelValue) => true
|
|
12054
11887
|
};
|
|
12055
|
-
const _MarkdownEditor = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./Editor-
|
|
11888
|
+
const _MarkdownEditor = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./Editor-Dm6iVXqg.cjs")));
|
|
12056
11889
|
const MKMarkdownEditor = utils.withInstall(_MarkdownEditor);
|
|
12057
11890
|
const _hoisted_1$s = { class: "mk-rich-text-toolbar" };
|
|
12058
11891
|
const _hoisted_2$n = { class: "mk-rich-text-editor__stage_warp" };
|
|
@@ -12116,7 +11949,7 @@ const Dialogs = /* @__PURE__ */ vue.defineComponent({
|
|
|
12116
11949
|
setup(props) {
|
|
12117
11950
|
const dialogInstances = vue.ref([]);
|
|
12118
11951
|
const dialogImplInstance = dm.Dialoger.implInstance;
|
|
12119
|
-
if (
|
|
11952
|
+
if (dialogImplInstance?.dialogInstanceCreateEvent && lodashEs.isFunction(dialogImplInstance.dialogInstanceCreateEvent.on)) {
|
|
12120
11953
|
dialogImplInstance.dialogInstanceCreateEvent.on((dialogInstance) => {
|
|
12121
11954
|
dialogInstance.destroyEvent.once(() => {
|
|
12122
11955
|
const index2 = dialogInstances.value.findIndex((instance) => dialogInstance.id === instance.id);
|
|
@@ -12149,32 +11982,26 @@ const Dialogs = /* @__PURE__ */ vue.defineComponent({
|
|
|
12149
11982
|
return () => {
|
|
12150
11983
|
const dialogs = vue.unref(dialogInstances).map((dialogInstance) => {
|
|
12151
11984
|
return vue.createVNode(MKConfigProvider, null, {
|
|
12152
|
-
default: () => {
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
11985
|
+
default: () => [vue.createVNode(elementPlus.ElDialog, {
|
|
11986
|
+
"class": dialogInstance.class,
|
|
11987
|
+
"width": dialogInstance.width,
|
|
11988
|
+
"modelValue": dialogInstance.visible,
|
|
11989
|
+
"onUpdate:model-value": (visible) => dialogInstance.visible = visible,
|
|
11990
|
+
"onClose": () => handleClose(dialogInstance),
|
|
11991
|
+
"title": lodashEs.isFunction(dialogInstance.header) ? dialogInstance.header?.() : dialogInstance.title || ""
|
|
11992
|
+
}, {
|
|
11993
|
+
default: () => dialogInstance.body(),
|
|
11994
|
+
footer: () => lodashEs.isFunction(dialogInstance.footer) ? dialogInstance.footer?.() : vue.createVNode(vue.Fragment, null, [vue.createVNode(elementPlus.ElButton, {
|
|
11995
|
+
"onClick": () => handleCancel(dialogInstance)
|
|
12161
11996
|
}, {
|
|
12162
|
-
default: () => dialogInstance.
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
"type": "primary",
|
|
12171
|
-
"onClick": () => handleConfirm(dialogInstance)
|
|
12172
|
-
}, {
|
|
12173
|
-
default: () => [dialogInstance.confirmButtonText ?? "确认"]
|
|
12174
|
-
})]);
|
|
12175
|
-
}
|
|
12176
|
-
})];
|
|
12177
|
-
}
|
|
11997
|
+
default: () => [dialogInstance.cancelButtonText ?? "取消"]
|
|
11998
|
+
}), vue.createVNode(elementPlus.ElButton, {
|
|
11999
|
+
"type": "primary",
|
|
12000
|
+
"onClick": () => handleConfirm(dialogInstance)
|
|
12001
|
+
}, {
|
|
12002
|
+
default: () => [dialogInstance.confirmButtonText ?? "确认"]
|
|
12003
|
+
})])
|
|
12004
|
+
})]
|
|
12178
12005
|
});
|
|
12179
12006
|
});
|
|
12180
12007
|
return vue.createVNode(vue.Fragment, null, [dialogs]);
|
|
@@ -12195,8 +12022,7 @@ const Text$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
12195
12022
|
}) {
|
|
12196
12023
|
const copyContainer = vue.ref();
|
|
12197
12024
|
const copyHandle = () => {
|
|
12198
|
-
|
|
12199
|
-
const copyText = props.copyContent || ((_a2 = copyContainer.value) == null ? void 0 : _a2.innerText) || "";
|
|
12025
|
+
const copyText = props.copyContent || copyContainer.value?.innerText || "";
|
|
12200
12026
|
if (navigator.clipboard === void 0) {
|
|
12201
12027
|
const input = document.createElement("input");
|
|
12202
12028
|
input.value = copyText;
|
|
@@ -12406,27 +12232,27 @@ async function OpenVerifyCode(options) {
|
|
|
12406
12232
|
}
|
|
12407
12233
|
const MKOpenVerifyCode = OpenVerifyCode;
|
|
12408
12234
|
let ResourceManager$1 = class ResourceManager extends utils.Disposable {
|
|
12235
|
+
directories;
|
|
12236
|
+
resourceInfoList;
|
|
12237
|
+
loadingManager;
|
|
12238
|
+
isShowEditDialog = false;
|
|
12239
|
+
currentEditText = "";
|
|
12240
|
+
filterExtensions = [];
|
|
12241
|
+
baseURL = "";
|
|
12242
|
+
get selectResourceList() {
|
|
12243
|
+
return this.resourceInfoList.filter((item) => item.isSelected);
|
|
12244
|
+
}
|
|
12245
|
+
get loading() {
|
|
12246
|
+
return this.loadingManager.loading;
|
|
12247
|
+
}
|
|
12409
12248
|
constructor(options) {
|
|
12410
12249
|
super();
|
|
12411
|
-
__publicField(this, "directories");
|
|
12412
|
-
__publicField(this, "resourceInfoList");
|
|
12413
|
-
__publicField(this, "loadingManager");
|
|
12414
|
-
__publicField(this, "isShowEditDialog", false);
|
|
12415
|
-
__publicField(this, "currentEditText", "");
|
|
12416
|
-
__publicField(this, "filterExtensions", []);
|
|
12417
|
-
__publicField(this, "baseURL", "");
|
|
12418
12250
|
this.directories = [];
|
|
12419
12251
|
this.resourceInfoList = [];
|
|
12420
12252
|
this.loadingManager = new dm.LoadingManager();
|
|
12421
12253
|
this.filterExtensions = options.extensions ?? [];
|
|
12422
12254
|
this.baseURL = options.baseURL;
|
|
12423
12255
|
}
|
|
12424
|
-
get selectResourceList() {
|
|
12425
|
-
return this.resourceInfoList.filter((item) => item.isSelected);
|
|
12426
|
-
}
|
|
12427
|
-
get loading() {
|
|
12428
|
-
return this.loadingManager.loading;
|
|
12429
|
-
}
|
|
12430
12256
|
async loadResourceInfoList(toPath = this.directories.length ? `/${this.directories.join("/")}` : "") {
|
|
12431
12257
|
const httpRequest = MSAppClient.instance.httpRequest;
|
|
12432
12258
|
try {
|
|
@@ -12901,9 +12727,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
12901
12727
|
vue.unref(resourceManager).downloadSelectResource();
|
|
12902
12728
|
};
|
|
12903
12729
|
const handleDrop = async (event) => {
|
|
12904
|
-
var _a2, _b2;
|
|
12905
12730
|
waitUploadFiles = [];
|
|
12906
|
-
var _items =
|
|
12731
|
+
var _items = event.dataTransfer?.items;
|
|
12907
12732
|
var fileSystemEntry = _items[0].webkitGetAsEntry();
|
|
12908
12733
|
const internalProcess = async (item, path2 = "") => {
|
|
12909
12734
|
if (item.isFile) {
|
|
@@ -12941,7 +12766,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
12941
12766
|
elementPlus.ElMessage.error({ message: checkResponse.data.msg });
|
|
12942
12767
|
return;
|
|
12943
12768
|
}
|
|
12944
|
-
if (
|
|
12769
|
+
if (checkResponse.data.data?.length === 0) {
|
|
12945
12770
|
await vue.unref(resourceManager).uploadResourceList(files);
|
|
12946
12771
|
waitUploadFiles = [];
|
|
12947
12772
|
return;
|
|
@@ -13172,7 +12997,7 @@ const getFileNameByPath = (path2) => {
|
|
|
13172
12997
|
return path2.substring(path2.lastIndexOf("/") + 1, 0);
|
|
13173
12998
|
};
|
|
13174
12999
|
const useUploadService = (webFileUpload) => {
|
|
13175
|
-
webFileUpload
|
|
13000
|
+
webFileUpload ??= new request.WebFileUpload();
|
|
13176
13001
|
return {
|
|
13177
13002
|
/**
|
|
13178
13003
|
* 文件选择
|
|
@@ -13201,8 +13026,7 @@ const useUploadService = (webFileUpload) => {
|
|
|
13201
13026
|
uploadItemInfo.progress = Math.round((ev.progress ?? 0) * 100);
|
|
13202
13027
|
});
|
|
13203
13028
|
uploadItem.completeEvent.once(() => {
|
|
13204
|
-
|
|
13205
|
-
if (((_a2 = uploadItem.response) == null ? void 0 : _a2.data.code) === 200) {
|
|
13029
|
+
if (uploadItem.response?.data.code === 200) {
|
|
13206
13030
|
uploadItemInfo.path = uploadItem.response.data.data.path;
|
|
13207
13031
|
if (uploadItemInfo.path) {
|
|
13208
13032
|
uploadItemInfo.name = getFileNameByPath(uploadItemInfo.path);
|
|
@@ -14954,8 +14778,7 @@ const MKFileSelect = async function(options) {
|
|
|
14954
14778
|
}
|
|
14955
14779
|
};
|
|
14956
14780
|
const handleMaterialSelect = async (data) => {
|
|
14957
|
-
|
|
14958
|
-
filePath.value = (_a2 = data[0]) == null ? void 0 : _a2.path;
|
|
14781
|
+
filePath.value = data[0]?.path;
|
|
14959
14782
|
file = null;
|
|
14960
14783
|
};
|
|
14961
14784
|
const handleConfirmClick = async () => {
|
|
@@ -15400,10 +15223,11 @@ async function ResourceSelect(options) {
|
|
|
15400
15223
|
});
|
|
15401
15224
|
}
|
|
15402
15225
|
const MKResourceSelect = ResourceSelect;
|
|
15403
|
-
|
|
15226
|
+
class MsMenuTree extends dm.DataTree {
|
|
15227
|
+
static [DATA_MODEL_NAME] = "ms-menu";
|
|
15404
15228
|
constructor(options = {}) {
|
|
15405
15229
|
super({
|
|
15406
|
-
name:
|
|
15230
|
+
name: MsMenuTree[DATA_MODEL_NAME],
|
|
15407
15231
|
moduleName: MODULE_NAME,
|
|
15408
15232
|
sortFieldName: "sort",
|
|
15409
15233
|
...options
|
|
@@ -15536,10 +15360,10 @@ const _MsMenuTree = class _MsMenuTree extends (_F = dm.DataTree, _E = DATA_MODEL
|
|
|
15536
15360
|
*/
|
|
15537
15361
|
getRoutePath(item) {
|
|
15538
15362
|
const route = item.routes.find((route2) => route2.id === item.routeId);
|
|
15539
|
-
let path2 =
|
|
15363
|
+
let path2 = route?.route || "";
|
|
15540
15364
|
if (!path2 && route) {
|
|
15541
15365
|
const pageRoute = MSAppClient.instance.pageManager.extendsPages.find((item2) => item2.name === route.name);
|
|
15542
|
-
path2 =
|
|
15366
|
+
path2 = pageRoute?.path ?? "";
|
|
15543
15367
|
}
|
|
15544
15368
|
if (!path2 && route) {
|
|
15545
15369
|
const match = route.name.match(/^dv\/([^/]+)\/(edit|.+)$/i);
|
|
@@ -15560,28 +15384,26 @@ const _MsMenuTree = class _MsMenuTree extends (_F = dm.DataTree, _E = DATA_MODEL
|
|
|
15560
15384
|
return item;
|
|
15561
15385
|
}
|
|
15562
15386
|
nodeHasChildren(node) {
|
|
15563
|
-
|
|
15564
|
-
return [MenuType.Container, MenuType.SystemSettings].includes((_a2 = node.data) == null ? void 0 : _a2.type);
|
|
15387
|
+
return [MenuType.Container, MenuType.SystemSettings].includes(node.data?.type);
|
|
15565
15388
|
}
|
|
15566
15389
|
async load(params) {
|
|
15567
15390
|
return super.loadAll(params);
|
|
15568
15391
|
}
|
|
15569
|
-
}
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
const _MsMenuForm = class _MsMenuForm extends (_H = dm.DataForm, _G = DATA_MODEL_NAME, _H) {
|
|
15392
|
+
}
|
|
15393
|
+
class MsMenuForm extends dm.DataForm {
|
|
15394
|
+
static [DATA_MODEL_NAME] = "ms-menu";
|
|
15573
15395
|
// 构造
|
|
15574
15396
|
constructor(options = {}) {
|
|
15575
15397
|
super({
|
|
15576
|
-
name:
|
|
15398
|
+
name: MsMenuForm[DATA_MODEL_NAME],
|
|
15577
15399
|
moduleName: MODULE_NAME,
|
|
15578
15400
|
...options
|
|
15579
15401
|
});
|
|
15580
|
-
// 父菜单数据表
|
|
15581
|
-
__publicField(this, "parentMenuTable", this.register(new MsMenuTree({ pageSize: 10 })));
|
|
15582
|
-
// 路由定义
|
|
15583
|
-
__publicField(this, "routeDefineTable", this.register(new MsRouteTable({ pageSize: 10 })));
|
|
15584
15402
|
}
|
|
15403
|
+
// 父菜单数据表
|
|
15404
|
+
parentMenuTable = this.register(new MsMenuTree({ pageSize: 10 }));
|
|
15405
|
+
// 路由定义
|
|
15406
|
+
routeDefineTable = this.register(new MsRouteTable({ pageSize: 10 }));
|
|
15585
15407
|
async initialize() {
|
|
15586
15408
|
await super.initialize();
|
|
15587
15409
|
await Promise.all([
|
|
@@ -15684,9 +15506,8 @@ const _MsMenuForm = class _MsMenuForm extends (_H = dm.DataForm, _G = DATA_MODEL
|
|
|
15684
15506
|
this.getColumn("urlType").disabled = dataFormType !== dm.DataFormType.ADD;
|
|
15685
15507
|
});
|
|
15686
15508
|
this.formItemValueChangeEvent.on(({ formItem }) => {
|
|
15687
|
-
var _a2;
|
|
15688
15509
|
if (formItem.name === "type" || formItem.name === "urlType") {
|
|
15689
|
-
const visible =
|
|
15510
|
+
const visible = this.data?.type === MenuType.Menu && this.data.urlType === MenuUrlType.Inner;
|
|
15690
15511
|
this.getColumn("routes").visible = visible;
|
|
15691
15512
|
this.getColumn("permissionPoints").visible = visible;
|
|
15692
15513
|
}
|
|
@@ -15732,20 +15553,18 @@ const _MsMenuForm = class _MsMenuForm extends (_H = dm.DataForm, _G = DATA_MODEL
|
|
|
15732
15553
|
memo: item.memo || ""
|
|
15733
15554
|
};
|
|
15734
15555
|
}
|
|
15735
|
-
}
|
|
15736
|
-
__publicField(_MsMenuForm, _G, "ms-menu");
|
|
15737
|
-
let MsMenuForm = _MsMenuForm;
|
|
15556
|
+
}
|
|
15738
15557
|
class RolePermissionConfigTable extends MsMenuTable {
|
|
15558
|
+
roleRouteTable;
|
|
15559
|
+
rolePermissionPointTable;
|
|
15560
|
+
permissionPointDefineTable;
|
|
15561
|
+
routeDefineTable;
|
|
15562
|
+
rootRoleMenuNodes = [];
|
|
15563
|
+
currentRole = null;
|
|
15564
|
+
currentRoleId = "";
|
|
15565
|
+
currentRoleDesc = "";
|
|
15739
15566
|
constructor(options = {}) {
|
|
15740
15567
|
super({ ...options });
|
|
15741
|
-
__publicField(this, "roleRouteTable");
|
|
15742
|
-
__publicField(this, "rolePermissionPointTable");
|
|
15743
|
-
__publicField(this, "permissionPointDefineTable");
|
|
15744
|
-
__publicField(this, "routeDefineTable");
|
|
15745
|
-
__publicField(this, "rootRoleMenuNodes", []);
|
|
15746
|
-
__publicField(this, "currentRole", null);
|
|
15747
|
-
__publicField(this, "currentRoleId", "");
|
|
15748
|
-
__publicField(this, "currentRoleDesc", "");
|
|
15749
15568
|
this.roleRouteTable = new MsRoleRouteTable();
|
|
15750
15569
|
this.rolePermissionPointTable = new MsRolePermissionPointTable();
|
|
15751
15570
|
this.permissionPointDefineTable = new class extends MsPermissionPointDefineTable {
|
|
@@ -15877,8 +15696,8 @@ class RolePermissionConfigTable extends MsMenuTable {
|
|
|
15877
15696
|
*/
|
|
15878
15697
|
async selectRolePermission(role) {
|
|
15879
15698
|
this.currentRole = role;
|
|
15880
|
-
this.currentRoleId =
|
|
15881
|
-
this.currentRoleDesc =
|
|
15699
|
+
this.currentRoleId = role?.id || "";
|
|
15700
|
+
this.currentRoleDesc = role?.desc || "";
|
|
15882
15701
|
const [
|
|
15883
15702
|
roleRouteTableResult,
|
|
15884
15703
|
rolePermissionPointTableResult
|
|
@@ -16072,10 +15891,11 @@ class RolePermissionConfigTable extends MsMenuTable {
|
|
|
16072
15891
|
return !!(removePermissionPointDefines.length || removeRoutes.length || addPermissionPointDefine.length || addRoutes.length);
|
|
16073
15892
|
}
|
|
16074
15893
|
}
|
|
16075
|
-
|
|
15894
|
+
class MsMemberForm extends dm.DataForm {
|
|
15895
|
+
static [DATA_MODEL_NAME] = "ms-member";
|
|
16076
15896
|
constructor(options = {}) {
|
|
16077
15897
|
super({
|
|
16078
|
-
name:
|
|
15898
|
+
name: MsMemberForm[DATA_MODEL_NAME],
|
|
16079
15899
|
moduleName: MODULE_NAME,
|
|
16080
15900
|
...options
|
|
16081
15901
|
});
|
|
@@ -16154,9 +15974,7 @@ const _MsMemberForm = class _MsMemberForm extends (_J = dm.DataForm, _I = DATA_M
|
|
|
16154
15974
|
// memo: item.memo || "",
|
|
16155
15975
|
// } as F;
|
|
16156
15976
|
// }
|
|
16157
|
-
}
|
|
16158
|
-
__publicField(_MsMemberForm, _I, "ms-member");
|
|
16159
|
-
let MsMemberForm = _MsMemberForm;
|
|
15977
|
+
}
|
|
16160
15978
|
const MemberNickNameColumn = /* @__PURE__ */ vue.defineComponent({
|
|
16161
15979
|
props: dataTableColumnProps,
|
|
16162
15980
|
setup(props) {
|
|
@@ -16211,14 +16029,15 @@ const MemberRolesColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
16211
16029
|
};
|
|
16212
16030
|
}
|
|
16213
16031
|
});
|
|
16214
|
-
|
|
16032
|
+
class MsMemberTable extends dm.DataTable {
|
|
16033
|
+
static [DATA_MODEL_NAME] = "ms-member";
|
|
16034
|
+
activeDialog = null;
|
|
16215
16035
|
constructor(options = {}) {
|
|
16216
16036
|
super({
|
|
16217
|
-
name:
|
|
16037
|
+
name: MsMemberTable[DATA_MODEL_NAME],
|
|
16218
16038
|
moduleName: MODULE_NAME,
|
|
16219
16039
|
...options
|
|
16220
16040
|
});
|
|
16221
|
-
__publicField(this, "activeDialog", null);
|
|
16222
16041
|
this.activeMemberForm = this.register(new class extends MsMemberForm {
|
|
16223
16042
|
formatSubmitData(data) {
|
|
16224
16043
|
data = super.formatSubmitData(data);
|
|
@@ -16234,10 +16053,9 @@ const _MsMemberTable = class _MsMemberTable extends (_L = dm.DataTable, _K = DAT
|
|
|
16234
16053
|
* @protected
|
|
16235
16054
|
*/
|
|
16236
16055
|
async initialize() {
|
|
16237
|
-
var _a2, _b2, _c2;
|
|
16238
16056
|
await super.initialize();
|
|
16239
16057
|
await this.initActiveMemberForm();
|
|
16240
|
-
const isSuperAdmin =
|
|
16058
|
+
const isSuperAdmin = MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false;
|
|
16241
16059
|
this.header.rightArea = [new dm.RefreshButton(), new dm.AddButton(), new dm.ImportButton(), new dm.TableHeaderItem({
|
|
16242
16060
|
componentInfo: "MKBatchOpt",
|
|
16243
16061
|
predicate: () => isSuperAdmin
|
|
@@ -16470,7 +16288,6 @@ const _MsMemberTable = class _MsMemberTable extends (_L = dm.DataTable, _K = DAT
|
|
|
16470
16288
|
* 申请成员
|
|
16471
16289
|
*/
|
|
16472
16290
|
async approveMember() {
|
|
16473
|
-
var _a2;
|
|
16474
16291
|
try {
|
|
16475
16292
|
if (this.activeMemberForm.loading) {
|
|
16476
16293
|
return;
|
|
@@ -16492,14 +16309,14 @@ const _MsMemberTable = class _MsMemberTable extends (_L = dm.DataTable, _K = DAT
|
|
|
16492
16309
|
approveResult: _data.valid.toString()
|
|
16493
16310
|
}
|
|
16494
16311
|
});
|
|
16495
|
-
if (
|
|
16312
|
+
if (response?.data.code != 200) {
|
|
16496
16313
|
dm.Messager.error({
|
|
16497
|
-
message:
|
|
16314
|
+
message: response?.data.msg || "请求失败"
|
|
16498
16315
|
});
|
|
16499
16316
|
return;
|
|
16500
16317
|
}
|
|
16501
|
-
|
|
16502
|
-
if (response
|
|
16318
|
+
this.activeDialog?.destroy();
|
|
16319
|
+
if (response?.data.data) {
|
|
16503
16320
|
dm.Dialoger.customRender({
|
|
16504
16321
|
title: "重置密码成功",
|
|
16505
16322
|
width: "475px",
|
|
@@ -16534,34 +16351,31 @@ const _MsMemberTable = class _MsMemberTable extends (_L = dm.DataTable, _K = DAT
|
|
|
16534
16351
|
}
|
|
16535
16352
|
}
|
|
16536
16353
|
formatItem(item) {
|
|
16537
|
-
var _a2;
|
|
16538
16354
|
return {
|
|
16539
16355
|
...item,
|
|
16540
|
-
roles:
|
|
16356
|
+
roles: item.roles?.map((role) => ({
|
|
16541
16357
|
id: role.id,
|
|
16542
16358
|
name: role.name || "",
|
|
16543
16359
|
desc: role.desc || ""
|
|
16544
|
-
}))
|
|
16360
|
+
})) ?? [],
|
|
16545
16361
|
type: item.valid === 0 ? 1 : 3
|
|
16546
16362
|
};
|
|
16547
16363
|
}
|
|
16548
|
-
}
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16364
|
+
}
|
|
16365
|
+
class MsMemberRoleTable extends dm.DataTable {
|
|
16366
|
+
static [DATA_MODEL_NAME] = "ms-member-role";
|
|
16367
|
+
currentRole = null;
|
|
16552
16368
|
constructor(options = {}) {
|
|
16553
16369
|
super({
|
|
16554
|
-
name:
|
|
16370
|
+
name: MsMemberRoleTable[DATA_MODEL_NAME],
|
|
16555
16371
|
moduleName: MODULE_NAME,
|
|
16556
16372
|
...options
|
|
16557
16373
|
});
|
|
16558
|
-
__publicField(this, "currentRole", null);
|
|
16559
16374
|
const memberRoleTable = this;
|
|
16560
16375
|
this.memberTable = this.register(new class extends MsMemberTable {
|
|
16561
16376
|
async loadRequest(params) {
|
|
16562
|
-
var _a2, _b2;
|
|
16563
16377
|
return super.loadRequest(Object.assign({
|
|
16564
|
-
excludeRoleIds:
|
|
16378
|
+
excludeRoleIds: memberRoleTable.currentRole?.id ? [memberRoleTable.currentRole?.id] : []
|
|
16565
16379
|
}, params));
|
|
16566
16380
|
}
|
|
16567
16381
|
}());
|
|
@@ -16617,13 +16431,12 @@ const _MsMemberRoleTable = class _MsMemberRoleTable extends (_N = dm.DataTable,
|
|
|
16617
16431
|
buttons: [new dm.DeleteButton()]
|
|
16618
16432
|
})]);
|
|
16619
16433
|
}
|
|
16620
|
-
}
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
const _MsMemberRoleForm = class _MsMemberRoleForm extends (_P = dm.DataForm, _O = DATA_MODEL_NAME, _P) {
|
|
16434
|
+
}
|
|
16435
|
+
class MsMemberRoleForm extends dm.DataForm {
|
|
16436
|
+
static [DATA_MODEL_NAME] = "ms-member-role";
|
|
16624
16437
|
constructor(options = {}) {
|
|
16625
16438
|
super({
|
|
16626
|
-
name:
|
|
16439
|
+
name: MsMemberRoleForm[DATA_MODEL_NAME],
|
|
16627
16440
|
moduleName: MODULE_NAME,
|
|
16628
16441
|
...options
|
|
16629
16442
|
});
|
|
@@ -16637,13 +16450,12 @@ const _MsMemberRoleForm = class _MsMemberRoleForm extends (_P = dm.DataForm, _O
|
|
|
16637
16450
|
// roleId: this.currentRole?.id!,
|
|
16638
16451
|
// };
|
|
16639
16452
|
// }
|
|
16640
|
-
}
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
const _MsIPWhitelistForm = class _MsIPWhitelistForm extends (_R = dm.DataForm, _Q = DATA_MODEL_NAME, _R) {
|
|
16453
|
+
}
|
|
16454
|
+
class MsIPWhitelistForm extends dm.DataForm {
|
|
16455
|
+
static [DATA_MODEL_NAME] = "ms-access-ip-whitelist";
|
|
16644
16456
|
constructor(options = {}) {
|
|
16645
16457
|
super({
|
|
16646
|
-
name:
|
|
16458
|
+
name: MsIPWhitelistForm[DATA_MODEL_NAME],
|
|
16647
16459
|
moduleName: MODULE_NAME,
|
|
16648
16460
|
...options
|
|
16649
16461
|
});
|
|
@@ -16668,13 +16480,12 @@ const _MsIPWhitelistForm = class _MsIPWhitelistForm extends (_R = dm.DataForm, _
|
|
|
16668
16480
|
})
|
|
16669
16481
|
]);
|
|
16670
16482
|
}
|
|
16671
|
-
}
|
|
16672
|
-
|
|
16673
|
-
|
|
16674
|
-
const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = dm.DataTable, _S = DATA_MODEL_NAME, _T) {
|
|
16483
|
+
}
|
|
16484
|
+
class MsIPWhitelistTable extends dm.DataTable {
|
|
16485
|
+
static [DATA_MODEL_NAME] = "ms-access-ip-whitelist";
|
|
16675
16486
|
constructor(options = {}) {
|
|
16676
16487
|
super({
|
|
16677
|
-
name:
|
|
16488
|
+
name: MsIPWhitelistTable[DATA_MODEL_NAME],
|
|
16678
16489
|
moduleName: MODULE_NAME,
|
|
16679
16490
|
...options
|
|
16680
16491
|
});
|
|
@@ -16686,10 +16497,7 @@ const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = dm.DataTable
|
|
|
16686
16497
|
new dm.AddButton(),
|
|
16687
16498
|
new dm.TableHeaderItem({
|
|
16688
16499
|
componentInfo: "MKBatchOpt",
|
|
16689
|
-
predicate: () =>
|
|
16690
|
-
var _a2, _b2, _c2;
|
|
16691
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
16692
|
-
}
|
|
16500
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
16693
16501
|
})
|
|
16694
16502
|
];
|
|
16695
16503
|
this.setColumns([
|
|
@@ -16744,13 +16552,12 @@ const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = dm.DataTable
|
|
|
16744
16552
|
})
|
|
16745
16553
|
]);
|
|
16746
16554
|
}
|
|
16747
|
-
}
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
const _MsDenyIPAccessListForm = class _MsDenyIPAccessListForm extends (_V = dm.DataForm, _U = DATA_MODEL_NAME, _V) {
|
|
16555
|
+
}
|
|
16556
|
+
class MsDenyIPAccessListForm extends dm.DataForm {
|
|
16557
|
+
static [DATA_MODEL_NAME] = "ms-deny-access-ip-list";
|
|
16751
16558
|
constructor(options = {}) {
|
|
16752
16559
|
super({
|
|
16753
|
-
name:
|
|
16560
|
+
name: MsDenyIPAccessListForm[DATA_MODEL_NAME],
|
|
16754
16561
|
moduleName: MODULE_NAME,
|
|
16755
16562
|
...options
|
|
16756
16563
|
});
|
|
@@ -16767,13 +16574,12 @@ const _MsDenyIPAccessListForm = class _MsDenyIPAccessListForm extends (_V = dm.D
|
|
|
16767
16574
|
})
|
|
16768
16575
|
]);
|
|
16769
16576
|
}
|
|
16770
|
-
}
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = dm.DataTable, _W = DATA_MODEL_NAME, _X) {
|
|
16577
|
+
}
|
|
16578
|
+
class MsDenyIPAccessListTable extends dm.DataTable {
|
|
16579
|
+
static [DATA_MODEL_NAME] = "ms-deny-access-ip-list";
|
|
16774
16580
|
constructor(options = {}) {
|
|
16775
16581
|
super({
|
|
16776
|
-
name:
|
|
16582
|
+
name: MsDenyIPAccessListTable[DATA_MODEL_NAME],
|
|
16777
16583
|
moduleName: MODULE_NAME,
|
|
16778
16584
|
...options
|
|
16779
16585
|
});
|
|
@@ -16785,10 +16591,7 @@ const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = dm
|
|
|
16785
16591
|
new dm.AddButton(),
|
|
16786
16592
|
new dm.TableHeaderItem({
|
|
16787
16593
|
componentInfo: "MKBatchOpt",
|
|
16788
|
-
predicate: () =>
|
|
16789
|
-
var _a2, _b2, _c2;
|
|
16790
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
16791
|
-
}
|
|
16594
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
16792
16595
|
})
|
|
16793
16596
|
];
|
|
16794
16597
|
this.setColumns([
|
|
@@ -16843,13 +16646,12 @@ const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = dm
|
|
|
16843
16646
|
})
|
|
16844
16647
|
]);
|
|
16845
16648
|
}
|
|
16846
|
-
}
|
|
16847
|
-
|
|
16848
|
-
|
|
16849
|
-
const _MsRegionForm = class _MsRegionForm extends (_Z = dm.DataForm, _Y = DATA_MODEL_NAME, _Z) {
|
|
16649
|
+
}
|
|
16650
|
+
class MsRegionForm extends dm.DataForm {
|
|
16651
|
+
static [DATA_MODEL_NAME] = "ms-region";
|
|
16850
16652
|
constructor(options = {}) {
|
|
16851
16653
|
super({
|
|
16852
|
-
name:
|
|
16654
|
+
name: MsRegionForm[DATA_MODEL_NAME],
|
|
16853
16655
|
moduleName: MODULE_NAME,
|
|
16854
16656
|
...options
|
|
16855
16657
|
});
|
|
@@ -16882,13 +16684,12 @@ const _MsRegionForm = class _MsRegionForm extends (_Z = dm.DataForm, _Y = DATA_M
|
|
|
16882
16684
|
new dm.FormColumn({ name: "pinyin", label: "拼音" })
|
|
16883
16685
|
]);
|
|
16884
16686
|
}
|
|
16885
|
-
}
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
const _MsRegionTable = class _MsRegionTable extends (_$ = dm.DataTable, __ = DATA_MODEL_NAME, _$) {
|
|
16687
|
+
}
|
|
16688
|
+
class MsRegionTable extends dm.DataTable {
|
|
16689
|
+
static [DATA_MODEL_NAME] = "ms-region";
|
|
16889
16690
|
constructor(options = {}) {
|
|
16890
16691
|
super({
|
|
16891
|
-
name:
|
|
16692
|
+
name: MsRegionTable[DATA_MODEL_NAME],
|
|
16892
16693
|
moduleName: MODULE_NAME,
|
|
16893
16694
|
...options
|
|
16894
16695
|
});
|
|
@@ -16934,9 +16735,7 @@ const _MsRegionTable = class _MsRegionTable extends (_$ = dm.DataTable, __ = DAT
|
|
|
16934
16735
|
new dm.TableActionColumn()
|
|
16935
16736
|
]);
|
|
16936
16737
|
}
|
|
16937
|
-
}
|
|
16938
|
-
__publicField(_MsRegionTable, __, "ms-region");
|
|
16939
|
-
let MsRegionTable = _MsRegionTable;
|
|
16738
|
+
}
|
|
16940
16739
|
class DepartmentForm extends dm.DataForm {
|
|
16941
16740
|
constructor(options = {}) {
|
|
16942
16741
|
super({ name: "ms-dept", ...options });
|
|
@@ -17169,10 +16968,11 @@ class LocalLogTree extends dm.DataTree {
|
|
|
17169
16968
|
return { ...item, children: [] };
|
|
17170
16969
|
}
|
|
17171
16970
|
}
|
|
17172
|
-
|
|
16971
|
+
class MsMessageForm extends dm.DataForm {
|
|
16972
|
+
static [DATA_MODEL_NAME] = "message";
|
|
17173
16973
|
constructor(options = {}) {
|
|
17174
16974
|
super({
|
|
17175
|
-
name:
|
|
16975
|
+
name: MsMessageForm[DATA_MODEL_NAME],
|
|
17176
16976
|
moduleName: MODULE_NAME,
|
|
17177
16977
|
...options
|
|
17178
16978
|
});
|
|
@@ -17204,13 +17004,12 @@ const _MsMessageForm = class _MsMessageForm extends (_ba = dm.DataForm, _aa = DA
|
|
|
17204
17004
|
})
|
|
17205
17005
|
]);
|
|
17206
17006
|
}
|
|
17207
|
-
}
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
const _SendForm = class _SendForm extends (_da = dm.DataForm, _ca = DATA_MODEL_NAME, _da) {
|
|
17007
|
+
}
|
|
17008
|
+
class SendForm extends dm.DataForm {
|
|
17009
|
+
static [DATA_MODEL_NAME] = "message";
|
|
17211
17010
|
constructor(options = {}) {
|
|
17212
17011
|
super({
|
|
17213
|
-
name:
|
|
17012
|
+
name: SendForm[DATA_MODEL_NAME],
|
|
17214
17013
|
moduleName: MODULE_NAME,
|
|
17215
17014
|
...options
|
|
17216
17015
|
});
|
|
@@ -17271,17 +17070,16 @@ const _SendForm = class _SendForm extends (_da = dm.DataForm, _ca = DATA_MODEL_N
|
|
|
17271
17070
|
async addRequest(params) {
|
|
17272
17071
|
return await this.httpRequest.post("/ms/dv/message/send", this.data);
|
|
17273
17072
|
}
|
|
17274
|
-
}
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
|
|
17073
|
+
}
|
|
17074
|
+
class MsMessageTable extends dm.DataTable {
|
|
17075
|
+
static [DATA_MODEL_NAME] = "message";
|
|
17076
|
+
sendForm;
|
|
17278
17077
|
constructor(options = {}) {
|
|
17279
17078
|
super({
|
|
17280
|
-
name:
|
|
17079
|
+
name: MsMessageTable[DATA_MODEL_NAME],
|
|
17281
17080
|
moduleName: MODULE_NAME,
|
|
17282
17081
|
...options
|
|
17283
17082
|
});
|
|
17284
|
-
__publicField(this, "sendForm");
|
|
17285
17083
|
this.httpRequest = MSAppClient.instance.httpRequest;
|
|
17286
17084
|
this.sendForm = this.register(new SendForm());
|
|
17287
17085
|
}
|
|
@@ -17324,13 +17122,13 @@ const _MsMessageTable = class _MsMessageTable extends (_fa = dm.DataTable, _ea =
|
|
|
17324
17122
|
// new TableActionColumn(),
|
|
17325
17123
|
]);
|
|
17326
17124
|
}
|
|
17327
|
-
}
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17125
|
+
}
|
|
17126
|
+
class MsMessageNotifyTable extends dm.DataTable {
|
|
17127
|
+
static components = new dm.Components();
|
|
17128
|
+
static [DATA_MODEL_NAME] = "message-notify";
|
|
17331
17129
|
constructor(options = {}) {
|
|
17332
17130
|
super({
|
|
17333
|
-
name:
|
|
17131
|
+
name: MsMessageNotifyTable[DATA_MODEL_NAME],
|
|
17334
17132
|
moduleName: "ms",
|
|
17335
17133
|
...options
|
|
17336
17134
|
});
|
|
@@ -17360,7 +17158,7 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = dm.Data
|
|
|
17360
17158
|
return response;
|
|
17361
17159
|
}
|
|
17362
17160
|
handleNotification(notification) {
|
|
17363
|
-
const NotificationComponent =
|
|
17161
|
+
const NotificationComponent = MsMessageNotifyTable.components.resolveComponent(notification.type.toString());
|
|
17364
17162
|
if (NotificationComponent) {
|
|
17365
17163
|
dm.Notificationer.info({
|
|
17366
17164
|
dangerouslyUseHTMLString: notification.dangerouslyUseHTMLString ?? false,
|
|
@@ -17398,9 +17196,9 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = dm.Data
|
|
|
17398
17196
|
try {
|
|
17399
17197
|
this.loadingManager.startLoading();
|
|
17400
17198
|
const result = await this.httpRequest.post("/message/readAll");
|
|
17401
|
-
if (
|
|
17199
|
+
if (result?.data.code !== 200) {
|
|
17402
17200
|
dm.Messager.error({
|
|
17403
|
-
message:
|
|
17201
|
+
message: result?.data.msg || "操作失败"
|
|
17404
17202
|
});
|
|
17405
17203
|
return;
|
|
17406
17204
|
}
|
|
@@ -17413,14 +17211,12 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = dm.Data
|
|
|
17413
17211
|
this.loadingManager.completeLoading();
|
|
17414
17212
|
}
|
|
17415
17213
|
}
|
|
17416
|
-
}
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
let MsMessageNotifyTable = _MsMessageNotifyTable;
|
|
17420
|
-
const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = dm.DataTable, _ia = DATA_MODEL_NAME, _ja) {
|
|
17214
|
+
}
|
|
17215
|
+
class MsRequestLogTable extends dm.DataTable {
|
|
17216
|
+
static [DATA_MODEL_NAME] = "request-log";
|
|
17421
17217
|
constructor(options = {}) {
|
|
17422
17218
|
super({
|
|
17423
|
-
name:
|
|
17219
|
+
name: MsRequestLogTable[DATA_MODEL_NAME],
|
|
17424
17220
|
moduleName: MODULE_NAME,
|
|
17425
17221
|
...options
|
|
17426
17222
|
});
|
|
@@ -17492,7 +17288,6 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = dm.DataTable,
|
|
|
17492
17288
|
buttons: [new dm.ActionButton({
|
|
17493
17289
|
label: "查看内容",
|
|
17494
17290
|
handler: async (row) => {
|
|
17495
|
-
var _a2;
|
|
17496
17291
|
try {
|
|
17497
17292
|
this.loadingManager.startLoading();
|
|
17498
17293
|
const response = await this.dataViewRequest.load(row.id, {
|
|
@@ -17504,7 +17299,7 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = dm.DataTable,
|
|
|
17504
17299
|
});
|
|
17505
17300
|
return;
|
|
17506
17301
|
}
|
|
17507
|
-
const content =
|
|
17302
|
+
const content = response.data.data?.content;
|
|
17508
17303
|
if (!content) {
|
|
17509
17304
|
dm.Messager.warning({
|
|
17510
17305
|
message: "没有获取到内容"
|
|
@@ -17541,33 +17336,39 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = dm.DataTable,
|
|
|
17541
17336
|
timeOperationElapsedMilliseconds: `${item.timeOperationElapsedMilliseconds / 1e3}s`
|
|
17542
17337
|
};
|
|
17543
17338
|
}
|
|
17544
|
-
}
|
|
17545
|
-
__publicField(_MsRequestLogTable, _ia, "request-log");
|
|
17546
|
-
let MsRequestLogTable = _MsRequestLogTable;
|
|
17339
|
+
}
|
|
17547
17340
|
class MSAppClient {
|
|
17341
|
+
static instance = null;
|
|
17342
|
+
origin = "";
|
|
17343
|
+
_options;
|
|
17344
|
+
app;
|
|
17345
|
+
projectName;
|
|
17346
|
+
logo;
|
|
17347
|
+
appID;
|
|
17348
|
+
userSession = null;
|
|
17349
|
+
httpRequest;
|
|
17350
|
+
ready = false;
|
|
17351
|
+
initd = false;
|
|
17352
|
+
pageManager;
|
|
17353
|
+
modules = [];
|
|
17354
|
+
settings;
|
|
17355
|
+
/**
|
|
17356
|
+
* @deprecated
|
|
17357
|
+
* @description 使用 MSAppClient.instance.userSession.userInfo
|
|
17358
|
+
*/
|
|
17359
|
+
get userInfo() {
|
|
17360
|
+
return this.userSession?.userInfo ?? null;
|
|
17361
|
+
}
|
|
17362
|
+
dataTableComponents;
|
|
17363
|
+
dataTableHeaderComponents;
|
|
17364
|
+
dataFormComponents;
|
|
17365
|
+
dataFilterComponents;
|
|
17366
|
+
whereFilterComponents;
|
|
17367
|
+
i18n;
|
|
17368
|
+
vueRouter;
|
|
17369
|
+
beforeInitUserSessionEvent = new utils.Event();
|
|
17370
|
+
userSessionChangeEvent = new utils.Event();
|
|
17548
17371
|
constructor(options) {
|
|
17549
|
-
__publicField(this, "origin", "");
|
|
17550
|
-
__publicField(this, "_options");
|
|
17551
|
-
__publicField(this, "app");
|
|
17552
|
-
__publicField(this, "projectName");
|
|
17553
|
-
__publicField(this, "logo");
|
|
17554
|
-
__publicField(this, "appID");
|
|
17555
|
-
__publicField(this, "userSession", null);
|
|
17556
|
-
__publicField(this, "httpRequest");
|
|
17557
|
-
__publicField(this, "ready", false);
|
|
17558
|
-
__publicField(this, "initd", false);
|
|
17559
|
-
__publicField(this, "pageManager");
|
|
17560
|
-
__publicField(this, "modules", []);
|
|
17561
|
-
__publicField(this, "settings");
|
|
17562
|
-
__publicField(this, "dataTableComponents");
|
|
17563
|
-
__publicField(this, "dataTableHeaderComponents");
|
|
17564
|
-
__publicField(this, "dataFormComponents");
|
|
17565
|
-
__publicField(this, "dataFilterComponents");
|
|
17566
|
-
__publicField(this, "whereFilterComponents");
|
|
17567
|
-
__publicField(this, "i18n");
|
|
17568
|
-
__publicField(this, "vueRouter");
|
|
17569
|
-
__publicField(this, "beforeInitUserSessionEvent", new utils.Event());
|
|
17570
|
-
__publicField(this, "userSessionChangeEvent", new utils.Event());
|
|
17571
17372
|
this._options = this._normalizeOptions(options);
|
|
17572
17373
|
this.app = options.app;
|
|
17573
17374
|
this.appID = this._options.appID;
|
|
@@ -17592,14 +17393,6 @@ class MSAppClient {
|
|
|
17592
17393
|
request.HttpRequest.setDefaultHttpRequest(this.httpRequest);
|
|
17593
17394
|
request.DVQueryable.setHttpRequest(this.httpRequest);
|
|
17594
17395
|
}
|
|
17595
|
-
/**
|
|
17596
|
-
* @deprecated
|
|
17597
|
-
* @description 使用 MSAppClient.instance.userSession.userInfo
|
|
17598
|
-
*/
|
|
17599
|
-
get userInfo() {
|
|
17600
|
-
var _a2;
|
|
17601
|
-
return ((_a2 = this.userSession) == null ? void 0 : _a2.userInfo) ?? null;
|
|
17602
|
-
}
|
|
17603
17396
|
setUserSession(userSession) {
|
|
17604
17397
|
if (this.userSession) {
|
|
17605
17398
|
this.userSession.dispose();
|
|
@@ -17643,7 +17436,7 @@ class MSAppClient {
|
|
|
17643
17436
|
this.userSession = null;
|
|
17644
17437
|
this.beforeInitUserSessionEvent.emit({ userSession });
|
|
17645
17438
|
const userSessionInitResult = await userSession.init();
|
|
17646
|
-
if (
|
|
17439
|
+
if (userSessionInitResult?.data.code !== 200) {
|
|
17647
17440
|
userSession.dispose();
|
|
17648
17441
|
return userSessionInitResult;
|
|
17649
17442
|
}
|
|
@@ -17738,41 +17531,41 @@ class MSAppClient {
|
|
|
17738
17531
|
this.pageManager.addExtendsPage({
|
|
17739
17532
|
name: "dv/ms-material/list",
|
|
17740
17533
|
path: "/sys/materials",
|
|
17741
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
17534
|
+
component: () => Promise.resolve().then(() => require("./index-DZUlc_v7.cjs")),
|
|
17742
17535
|
meta: { name: "ms-material" }
|
|
17743
17536
|
});
|
|
17744
17537
|
this.pageManager.addExtendsPage({
|
|
17745
17538
|
name: "dv/ms-role/single/list/dialog",
|
|
17746
17539
|
path: "/sys/roles",
|
|
17747
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
17540
|
+
component: () => Promise.resolve().then(() => require("./index-DXasMfCq.cjs")),
|
|
17748
17541
|
meta: { name: "ms-role" }
|
|
17749
17542
|
});
|
|
17750
17543
|
this.pageManager.addExtendsPage({
|
|
17751
17544
|
name: "dv/ms-role/permission",
|
|
17752
17545
|
path: "/sys/roles/:id/permission",
|
|
17753
|
-
component: () => Promise.resolve().then(() => require("./PermissionManage-
|
|
17546
|
+
component: () => Promise.resolve().then(() => require("./PermissionManage-C7Xg-wii.cjs"))
|
|
17754
17547
|
});
|
|
17755
17548
|
this.pageManager.addExtendsPage({
|
|
17756
17549
|
name: "dv/local-log/single/tree/dialog",
|
|
17757
17550
|
path: "/log/local",
|
|
17758
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
17551
|
+
component: () => Promise.resolve().then(() => require("./index-B9rw_5us.cjs")),
|
|
17759
17552
|
meta: { name: "local-log" }
|
|
17760
17553
|
});
|
|
17761
17554
|
this.pageManager.addExtendsPage({
|
|
17762
17555
|
name: "dv/ms-menu/list",
|
|
17763
17556
|
path: "/sys/menus",
|
|
17764
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
17557
|
+
component: () => Promise.resolve().then(() => require("./index-WOD9EhUR.cjs")),
|
|
17765
17558
|
meta: { name: "ms-menu" }
|
|
17766
17559
|
});
|
|
17767
17560
|
this.pageManager.addExtendsPage({
|
|
17768
17561
|
name: "icons/list",
|
|
17769
17562
|
path: "/sys/icons",
|
|
17770
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
17563
|
+
component: () => Promise.resolve().then(() => require("./index-BAbHrjt0.cjs"))
|
|
17771
17564
|
});
|
|
17772
17565
|
this.pageManager.addExtendsPage({
|
|
17773
17566
|
name: "dv/ms-todo/single/list/dialog",
|
|
17774
17567
|
path: "/dv/todo",
|
|
17775
|
-
component: () => Promise.resolve().then(() => require("./index-
|
|
17568
|
+
component: () => Promise.resolve().then(() => require("./index-DhYT_qm1.cjs"))
|
|
17776
17569
|
});
|
|
17777
17570
|
for (let internalModule of internalModules) {
|
|
17778
17571
|
for (let item of internalModule.normalPages) {
|
|
@@ -17783,9 +17576,8 @@ class MSAppClient {
|
|
|
17783
17576
|
}
|
|
17784
17577
|
}
|
|
17785
17578
|
this.httpRequest.getInterceptors().response.use((config) => {
|
|
17786
|
-
var _a2;
|
|
17787
17579
|
if (config.data.code === 401) {
|
|
17788
|
-
|
|
17580
|
+
this.userSession?.dispose();
|
|
17789
17581
|
this.vueRouter.push({ name: "login" });
|
|
17790
17582
|
}
|
|
17791
17583
|
return config;
|
|
@@ -17844,7 +17636,6 @@ class MSAppClient {
|
|
|
17844
17636
|
this.modules.push(module2);
|
|
17845
17637
|
}
|
|
17846
17638
|
}
|
|
17847
|
-
__publicField(MSAppClient, "instance", null);
|
|
17848
17639
|
class MessagerImpl extends dm.SkeletonMessageSender {
|
|
17849
17640
|
info(message) {
|
|
17850
17641
|
elementPlus.ElMessage.info(message);
|
|
@@ -17875,10 +17666,7 @@ class NotificationerImpl extends dm.SkeletonMessageSender {
|
|
|
17875
17666
|
}
|
|
17876
17667
|
let uid = 0;
|
|
17877
17668
|
class DialogerImpl extends dm.SkeletonDialoger {
|
|
17878
|
-
|
|
17879
|
-
super(...arguments);
|
|
17880
|
-
__publicField(this, "dialogInstanceCreateEvent", new utils.Event());
|
|
17881
|
-
}
|
|
17669
|
+
dialogInstanceCreateEvent = new utils.Event();
|
|
17882
17670
|
async prompt(options) {
|
|
17883
17671
|
const promptResult = await elementPlus.ElMessageBox.prompt(options.message, options.title, options);
|
|
17884
17672
|
return promptResult.value;
|
|
@@ -18431,16 +18219,13 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
18431
18219
|
}
|
|
18432
18220
|
});
|
|
18433
18221
|
const readAllHandle = async () => {
|
|
18434
|
-
|
|
18435
|
-
(_a2 = props.messageNotifyTable) == null ? void 0 : _a2.readAll();
|
|
18222
|
+
props.messageNotifyTable?.readAll();
|
|
18436
18223
|
};
|
|
18437
18224
|
vue.watch(selectValue, (selectValue2) => {
|
|
18438
|
-
|
|
18439
|
-
(_a2 = props.messageNotifyTable) == null ? void 0 : _a2.setMessageType(selectValue2);
|
|
18225
|
+
props.messageNotifyTable?.setMessageType(selectValue2);
|
|
18440
18226
|
});
|
|
18441
18227
|
vue.watch(buttonName, async (buttonName2) => {
|
|
18442
|
-
|
|
18443
|
-
(_a2 = props.messageNotifyTable) == null ? void 0 : _a2.setReadType(buttonName2);
|
|
18228
|
+
props.messageNotifyTable?.setReadType(buttonName2);
|
|
18444
18229
|
});
|
|
18445
18230
|
return (_ctx, _cache) => {
|
|
18446
18231
|
const _component_ElOption = vue.resolveComponent("ElOption");
|
|
@@ -18524,21 +18309,15 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
18524
18309
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
18525
18310
|
class: vue.normalizeClass(["mk-message__body-item", { "is-read": item.isRead }]),
|
|
18526
18311
|
key: item.id,
|
|
18527
|
-
onClick: ($event) =>
|
|
18528
|
-
var _a2;
|
|
18529
|
-
return (_a2 = messageType.value.find((a) => a.type == item.type)) == null ? void 0 : _a2.actions(item);
|
|
18530
|
-
}
|
|
18312
|
+
onClick: ($event) => messageType.value.find((a) => a.type == item.type)?.actions(item)
|
|
18531
18313
|
}, [
|
|
18532
18314
|
vue.createElementVNode("div", _hoisted_3$a, vue.toDisplayString(item.title), 1),
|
|
18533
18315
|
vue.createElementVNode("div", _hoisted_4$9, vue.toDisplayString(item.content), 1),
|
|
18534
18316
|
vue.createElementVNode("div", _hoisted_5$8, [
|
|
18535
18317
|
vue.createVNode(vue.unref(elementPlus.ElTag), null, {
|
|
18536
|
-
default: vue.withCtx(() =>
|
|
18537
|
-
|
|
18538
|
-
|
|
18539
|
-
vue.createTextVNode(vue.toDisplayString((_a2 = messageType.value.find((a) => a.type == item.type)) == null ? void 0 : _a2.name), 1)
|
|
18540
|
-
];
|
|
18541
|
-
}),
|
|
18318
|
+
default: vue.withCtx(() => [
|
|
18319
|
+
vue.createTextVNode(vue.toDisplayString(messageType.value.find((a) => a.type == item.type)?.name), 1)
|
|
18320
|
+
]),
|
|
18542
18321
|
_: 2
|
|
18543
18322
|
}, 1024),
|
|
18544
18323
|
vue.createTextVNode(" " + vue.toDisplayString(item.createdAt), 1)
|
|
@@ -18695,7 +18474,6 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
18695
18474
|
router.push({ name: "login" });
|
|
18696
18475
|
};
|
|
18697
18476
|
return (_ctx, _cache) => {
|
|
18698
|
-
var _a2;
|
|
18699
18477
|
const _component_el_avatar = vue.resolveComponent("el-avatar");
|
|
18700
18478
|
const _component_el_tag = vue.resolveComponent("el-tag");
|
|
18701
18479
|
const _component_el_divider = vue.resolveComponent("el-divider");
|
|
@@ -18703,7 +18481,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
18703
18481
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
|
|
18704
18482
|
vue.unref(settingsStore).settings.toolbar.navSearch ? (vue.openBlock(), vue.createBlock(_sfc_main$m, { key: 0 })) : vue.createCommentVNode("", true),
|
|
18705
18483
|
vue.unref(settingsStore).settings.toolbar.fullscreen ? (vue.openBlock(), vue.createBlock(_sfc_main$l, { key: 1 })) : vue.createCommentVNode("", true),
|
|
18706
|
-
|
|
18484
|
+
vue.unref(settingsStore).settings.toolbar?.message ? (vue.openBlock(), vue.createBlock(vue.unref(MKMessage), { key: 2 })) : vue.createCommentVNode("", true),
|
|
18707
18485
|
vue.unref(userInfo) ? (vue.openBlock(), vue.createBlock(_component_el_popover, {
|
|
18708
18486
|
key: 3,
|
|
18709
18487
|
class: "h-full py-2",
|
|
@@ -18778,36 +18556,34 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
18778
18556
|
vue.createVNode(_component_el_divider, { style: { "margin": "10px 0" } }),
|
|
18779
18557
|
vue.createElementVNode("div", null, [
|
|
18780
18558
|
vue.unref(settingsStore).mode === "pc" && vue.unref(settingsStore).settings.menu.mode === "head" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(vue.unref(settingsStore).settings.toolbar.shortcutMenus, (item, index2) => {
|
|
18781
|
-
var _a3, _b2, _c2, _d2;
|
|
18782
18559
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
18783
|
-
|
|
18560
|
+
item.meta?.type == "3" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
18784
18561
|
key: 0,
|
|
18785
18562
|
class: "w-full el-button user-action-item el-button--primary is-text gap-2",
|
|
18786
18563
|
style: { "justify-content": "start" },
|
|
18787
18564
|
onClick: item.handler
|
|
18788
18565
|
}, [
|
|
18789
|
-
|
|
18566
|
+
item?.icon ? (vue.openBlock(), vue.createBlock(vue.unref(MKSvgIcon), {
|
|
18790
18567
|
key: 0,
|
|
18791
|
-
name: item
|
|
18568
|
+
name: item?.icon
|
|
18792
18569
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
18793
|
-
vue.createTextVNode(" " + vue.toDisplayString(typeof
|
|
18570
|
+
vue.createTextVNode(" " + vue.toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18794
18571
|
], 8, _hoisted_13$2)) : vue.createCommentVNode("", true)
|
|
18795
18572
|
], 64);
|
|
18796
18573
|
}), 128)) : vue.createCommentVNode("", true),
|
|
18797
18574
|
vue.unref(settingsStore).mode === "pc" && vue.unref(settingsStore).settings.menu.mode === "head" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(menuStore).allMenus, (item, index2) => {
|
|
18798
|
-
var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
18799
18575
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
18800
|
-
|
|
18576
|
+
item.meta?.type == "3" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
18801
18577
|
key: 0,
|
|
18802
18578
|
class: "w-full el-button user-action-item el-button--primary is-text gap-2",
|
|
18803
18579
|
style: { "justify-content": "start" },
|
|
18804
18580
|
onClick: ($event) => vue.unref(switchTo)(index2)
|
|
18805
18581
|
}, [
|
|
18806
|
-
|
|
18582
|
+
item.meta?.icon ? (vue.openBlock(), vue.createBlock(vue.unref(MKSvgIcon), {
|
|
18807
18583
|
key: 0,
|
|
18808
|
-
name:
|
|
18584
|
+
name: item.meta?.icon
|
|
18809
18585
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
18810
|
-
vue.createTextVNode(" " + vue.toDisplayString(typeof
|
|
18586
|
+
vue.createTextVNode(" " + vue.toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18811
18587
|
], 8, _hoisted_14$2)) : vue.createCommentVNode("", true)
|
|
18812
18588
|
], 64);
|
|
18813
18589
|
}), 128)) : vue.createCommentVNode("", true),
|
|
@@ -18867,9 +18643,8 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
18867
18643
|
}, [
|
|
18868
18644
|
vue.createElementVNode("div", _hoisted_3$8, [
|
|
18869
18645
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(menuStore).allMenus, (item, index2) => {
|
|
18870
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
18871
18646
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
18872
|
-
|
|
18647
|
+
item.meta?.type != "3" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
18873
18648
|
key: 0,
|
|
18874
18649
|
class: vue.normalizeClass(["menu-item relative mx-1 py-3 transition-all", {
|
|
18875
18650
|
active: index2 === vue.unref(menuStore).actived
|
|
@@ -18880,15 +18655,15 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
18880
18655
|
class: vue.normalizeClass(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-3 text-[var(--g-header-menu-color)] transition-all hover-bg-[var(--g-header-menu-hover-bg)] hover-text-[var(--g-header-menu-hover-color)]", {
|
|
18881
18656
|
"text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": index2 === vue.unref(menuStore).actived
|
|
18882
18657
|
}]),
|
|
18883
|
-
title: typeof
|
|
18658
|
+
title: typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title,
|
|
18884
18659
|
onClick: ($event) => vue.unref(switchTo)(index2)
|
|
18885
18660
|
}, [
|
|
18886
18661
|
vue.createElementVNode("div", _hoisted_5$6, [
|
|
18887
|
-
|
|
18662
|
+
item.meta?.icon ? (vue.openBlock(), vue.createBlock(_component_MKSvgIcon, {
|
|
18888
18663
|
key: 0,
|
|
18889
|
-
name:
|
|
18664
|
+
name: item.meta?.icon
|
|
18890
18665
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
18891
|
-
vue.createElementVNode("span", _hoisted_6$5, vue.toDisplayString(typeof
|
|
18666
|
+
vue.createElementVNode("span", _hoisted_6$5, vue.toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18892
18667
|
])
|
|
18893
18668
|
], 10, _hoisted_4$7)) : vue.createCommentVNode("", true)
|
|
18894
18669
|
], 2)) : vue.createCommentVNode("", true)
|
|
@@ -18940,12 +18715,11 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
18940
18715
|
vue.createElementVNode("div", _hoisted_2$8, [
|
|
18941
18716
|
vue.createElementVNode("div", _hoisted_3$7, [
|
|
18942
18717
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(menuStore).allMenus, (item, index2) => {
|
|
18943
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
18944
18718
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
18945
18719
|
key: index2,
|
|
18946
18720
|
class: vue.normalizeClass(["menu-item relative px-2 py-1 transition-all", {
|
|
18947
18721
|
active: index2 === vue.unref(menuStore).actived,
|
|
18948
|
-
system:
|
|
18722
|
+
system: item.meta?.type == "3"
|
|
18949
18723
|
}])
|
|
18950
18724
|
}, [
|
|
18951
18725
|
item.children && item.children.length !== 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -18953,16 +18727,16 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
18953
18727
|
class: vue.normalizeClass(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 py-4 text-[var(--g-main-sidebar-menu-color)] transition-all hover-bg-[var(--g-main-sidebar-menu-hover-bg)] hover-text-[var(--g-main-sidebar-menu-hover-color)] px-2!", {
|
|
18954
18728
|
"text-[var(--g-main-sidebar-menu-active-color)]! bg-[var(--g-main-sidebar-menu-active-bg)]!": index2 === vue.unref(menuStore).actived
|
|
18955
18729
|
}]),
|
|
18956
|
-
title: typeof
|
|
18730
|
+
title: typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title,
|
|
18957
18731
|
onClick: ($event) => vue.unref(switchTo)(index2)
|
|
18958
18732
|
}, [
|
|
18959
18733
|
vue.createElementVNode("div", _hoisted_5$5, [
|
|
18960
|
-
|
|
18734
|
+
item.meta?.icon ? (vue.openBlock(), vue.createBlock(_component_MKSvgIcon, {
|
|
18961
18735
|
key: 0,
|
|
18962
|
-
name:
|
|
18736
|
+
name: item.meta?.icon,
|
|
18963
18737
|
class: "menu-item-container-icon transition-transform"
|
|
18964
18738
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
18965
|
-
vue.createElementVNode("span", _hoisted_6$4, vue.toDisplayString(typeof
|
|
18739
|
+
vue.createElementVNode("span", _hoisted_6$4, vue.toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18966
18740
|
])
|
|
18967
18741
|
], 10, _hoisted_4$6)) : vue.createCommentVNode("", true)
|
|
18968
18742
|
], 2);
|
|
@@ -19022,65 +18796,59 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
19022
18796
|
custom: "",
|
|
19023
18797
|
to: _ctx.item.path || (_ctx.uniqueKey.at(-1) && _ctx.item.meta && !_ctx.item.group ? { name: _ctx.uniqueKey.at(-1) } : "")
|
|
19024
18798
|
}, {
|
|
19025
|
-
default: vue.withCtx(({ href, navigate }) =>
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
vue.
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
]
|
|
19070
|
-
|
|
19071
|
-
|
|
19072
|
-
|
|
19073
|
-
|
|
19074
|
-
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19078
|
-
];
|
|
19079
|
-
}),
|
|
19080
|
-
_: 2
|
|
19081
|
-
}, 1040, ["class", "title"]))
|
|
19082
|
-
];
|
|
19083
|
-
}),
|
|
18799
|
+
default: vue.withCtx(({ href, navigate }) => [
|
|
18800
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.subMenu ? "div" : "a"), vue.mergeProps({
|
|
18801
|
+
...!_ctx.subMenu && {
|
|
18802
|
+
href: _ctx.item.meta?.link ? _ctx.item.meta.link : href,
|
|
18803
|
+
target: _ctx.item.meta?.link ? "_blank" : "_self",
|
|
18804
|
+
class: "no-underline"
|
|
18805
|
+
}
|
|
18806
|
+
}, {
|
|
18807
|
+
class: ["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-4 py-3 text-[var(--g-sub-sidebar-menu-color)] transition-all hover-bg-[var(--g-sub-sidebar-menu-hover-bg)] hover-text-[var(--g-sub-sidebar-menu-hover-color)]", {
|
|
18808
|
+
"text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!": vue.unref(isItemActive),
|
|
18809
|
+
"px-3!": vue.unref(rootMenu).isMenuPopup && _ctx.level === 0
|
|
18810
|
+
}],
|
|
18811
|
+
title: typeof _ctx.item.meta?.title === "function" ? _ctx.item.meta?.title() : _ctx.item.meta?.title
|
|
18812
|
+
}, vue.toHandlers({
|
|
18813
|
+
...!_ctx.subMenu && {
|
|
18814
|
+
click: navigate
|
|
18815
|
+
}
|
|
18816
|
+
})), {
|
|
18817
|
+
default: vue.withCtx(() => [
|
|
18818
|
+
vue.createElementVNode("div", {
|
|
18819
|
+
class: vue.normalizeClass(["inline-flex flex-1 items-center justify-center gap-[12px]", {
|
|
18820
|
+
"flex-col": vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && vue.unref(rootMenu).props.mode === "vertical",
|
|
18821
|
+
"gap-1!": vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && vue.unref(rootMenu).props.showCollapseName,
|
|
18822
|
+
"w-full": vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && vue.unref(rootMenu).props.showCollapseName && vue.unref(rootMenu).props.mode === "vertical"
|
|
18823
|
+
}]),
|
|
18824
|
+
style: vue.normalizeStyle(vue.unref(indentStyle))
|
|
18825
|
+
}, [
|
|
18826
|
+
props.item.meta?.icon ? (vue.openBlock(), vue.createBlock(_component_MKSvgIcon, {
|
|
18827
|
+
key: 0,
|
|
18828
|
+
name: props.item.meta.icon,
|
|
18829
|
+
size: 18,
|
|
18830
|
+
class: "menu-item-container-icon transition-transform"
|
|
18831
|
+
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
18832
|
+
!(vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && !vue.unref(rootMenu).props.showCollapseName) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
18833
|
+
key: 1,
|
|
18834
|
+
class: vue.normalizeClass(["w-0 flex-1 truncate text-sm transition-height transition-opacity transition-width", {
|
|
18835
|
+
"opacity-0 w-0 h-0": vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && !vue.unref(rootMenu).props.showCollapseName,
|
|
18836
|
+
"w-full text-center": vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && vue.unref(rootMenu).props.showCollapseName
|
|
18837
|
+
}])
|
|
18838
|
+
}, vue.toDisplayString(typeof _ctx.item.meta?.title === "function" ? _ctx.item.meta?.title() : _ctx.item.meta?.title), 3)) : vue.createCommentVNode("", true)
|
|
18839
|
+
], 6),
|
|
18840
|
+
_ctx.subMenu && !(vue.unref(rootMenu).isMenuPopup && _ctx.level === 0) ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
18841
|
+
key: 0,
|
|
18842
|
+
class: vue.normalizeClass(["relative ml-1 w-[10px] after:absolute after:h-[1.5px] after:w-[6px] after:bg-current after:transition-transform-200 after:content-empty after:-translate-y-[1px] before:absolute before:h-[1.5px] before:w-[6px] before:bg-current before:transition-transform-200 before:content-empty before:-translate-y-[1px]", [
|
|
18843
|
+
_ctx.expand ? "before:-rotate-45 before:-translate-x-[2px] after:rotate-45 after:translate-x-[2px]" : "before:rotate-45 before:-translate-x-[2px] after:-rotate-45 after:translate-x-[2px]",
|
|
18844
|
+
vue.unref(rootMenu).isMenuPopup && _ctx.level === 0 && "opacity-0",
|
|
18845
|
+
vue.unref(rootMenu).isMenuPopup && _ctx.level !== 0 && "-rotate-90 -top-[1.5px]"
|
|
18846
|
+
]])
|
|
18847
|
+
}, null, 2)) : vue.createCommentVNode("", true)
|
|
18848
|
+
]),
|
|
18849
|
+
_: 2
|
|
18850
|
+
}, 1040, ["class", "title"]))
|
|
18851
|
+
]),
|
|
19084
18852
|
_: 1
|
|
19085
18853
|
}, 8, ["to"])
|
|
19086
18854
|
], 2);
|
|
@@ -19172,10 +18940,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19172
18940
|
const hasChildren = vue.computed(() => {
|
|
19173
18941
|
let flag = true;
|
|
19174
18942
|
if (props.menu.children) {
|
|
19175
|
-
if (props.menu.children.every((item) => {
|
|
19176
|
-
var _a2;
|
|
19177
|
-
return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
|
|
19178
|
-
})) {
|
|
18943
|
+
if (props.menu.children.every((item) => item.meta?.menu === false)) {
|
|
19179
18944
|
flag = false;
|
|
19180
18945
|
}
|
|
19181
18946
|
} else {
|
|
@@ -19199,7 +18964,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19199
18964
|
return;
|
|
19200
18965
|
}
|
|
19201
18966
|
rootMenu.mouseInMenu = props.uniqueKey;
|
|
19202
|
-
timeout
|
|
18967
|
+
timeout?.();
|
|
19203
18968
|
({ stop: timeout } = core.useTimeoutFn(() => {
|
|
19204
18969
|
if (hasChildren.value) {
|
|
19205
18970
|
rootMenu.openMenu(index2, props.uniqueKey);
|
|
@@ -19237,7 +19002,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19237
19002
|
return;
|
|
19238
19003
|
}
|
|
19239
19004
|
rootMenu.mouseInMenu = [];
|
|
19240
|
-
timeout
|
|
19005
|
+
timeout?.();
|
|
19241
19006
|
({ stop: timeout } = core.useTimeoutFn(() => {
|
|
19242
19007
|
if (rootMenu.mouseInMenu.length === 0) {
|
|
19243
19008
|
rootMenu.closeMenu(props.uniqueKey);
|
|
@@ -19285,11 +19050,10 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19285
19050
|
}, {
|
|
19286
19051
|
default: vue.withCtx(() => [
|
|
19287
19052
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menu.children, (item) => {
|
|
19288
|
-
var _a2;
|
|
19289
19053
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
19290
19054
|
key: item.name
|
|
19291
19055
|
}, [
|
|
19292
|
-
|
|
19056
|
+
item.meta?.menu !== false ? (vue.openBlock(), vue.createBlock(_component_SubMenu, {
|
|
19293
19057
|
key: 0,
|
|
19294
19058
|
"unique-key": [..._ctx.uniqueKey, item.name],
|
|
19295
19059
|
menu: item,
|
|
@@ -19377,11 +19141,10 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
19377
19141
|
});
|
|
19378
19142
|
};
|
|
19379
19143
|
function setSubMenusActive(index2) {
|
|
19380
|
-
|
|
19381
|
-
(_a2 = subMenus.value[index2]) == null ? void 0 : _a2.indexPath.forEach((idx) => {
|
|
19144
|
+
subMenus.value[index2]?.indexPath.forEach((idx) => {
|
|
19382
19145
|
subMenus.value[idx].active = true;
|
|
19383
19146
|
});
|
|
19384
|
-
|
|
19147
|
+
items.value[index2]?.indexPath.forEach((idx) => {
|
|
19385
19148
|
subMenus.value[idx].active = true;
|
|
19386
19149
|
});
|
|
19387
19150
|
}
|
|
@@ -19399,7 +19162,6 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
19399
19162
|
}
|
|
19400
19163
|
};
|
|
19401
19164
|
function initMenu() {
|
|
19402
|
-
var _a2;
|
|
19403
19165
|
const menuList = [...props.menu];
|
|
19404
19166
|
for (const menuItem of menuList) {
|
|
19405
19167
|
if (menuItem.routes.includes(activeIndex.value)) {
|
|
@@ -19411,7 +19173,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
19411
19173
|
}
|
|
19412
19174
|
openedMenus.value = [props.value];
|
|
19413
19175
|
for (const menuItem of menuList) {
|
|
19414
|
-
if (
|
|
19176
|
+
if (menuItem.children?.find((sub) => openedMenus.value.includes(sub.name))) {
|
|
19415
19177
|
openedMenus.value.push(menuItem.name);
|
|
19416
19178
|
}
|
|
19417
19179
|
}
|
|
@@ -19483,12 +19245,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
19483
19245
|
}])
|
|
19484
19246
|
}, [
|
|
19485
19247
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menu, (item) => {
|
|
19486
|
-
var _a2, _b2;
|
|
19487
19248
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
19488
19249
|
key: item.name
|
|
19489
19250
|
}, [
|
|
19490
|
-
|
|
19491
|
-
|
|
19251
|
+
item.meta?.menu !== false ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19252
|
+
item.children?.length ? (vue.openBlock(), vue.createBlock(_sfc_main$f, {
|
|
19492
19253
|
key: 0,
|
|
19493
19254
|
menu: item,
|
|
19494
19255
|
"unique-key": [item.name]
|
|
@@ -19527,10 +19288,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
19527
19288
|
showShadowBottom.value = Math.ceil(scrollTop + clientHeight) < scrollHeight;
|
|
19528
19289
|
}
|
|
19529
19290
|
const enableSidebar = vue.computed(() => {
|
|
19530
|
-
return settingsStore.mode === "mobile" || menuStore.sidebarMenus.length !== 0 && !menuStore.sidebarMenus.every((item) =>
|
|
19531
|
-
var _a2;
|
|
19532
|
-
return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
|
|
19533
|
-
});
|
|
19291
|
+
return settingsStore.mode === "mobile" || menuStore.sidebarMenus.length !== 0 && !menuStore.sidebarMenus.every((item) => item.meta?.menu === false);
|
|
19534
19292
|
});
|
|
19535
19293
|
vue.watch(enableSidebar, (val) => {
|
|
19536
19294
|
if (val) {
|
|
@@ -19666,15 +19424,13 @@ const useTabbarStore = pinia$1.defineStore(
|
|
|
19666
19424
|
const list2 = vue.ref([]);
|
|
19667
19425
|
const leaveIndex = vue.ref(-1);
|
|
19668
19426
|
async function add(route) {
|
|
19669
|
-
var _a2, _b2, _c2;
|
|
19670
19427
|
const names = [];
|
|
19671
19428
|
route.matched.forEach((v, i) => {
|
|
19672
|
-
var _a3;
|
|
19673
19429
|
if (i > 0) {
|
|
19674
|
-
|
|
19430
|
+
v.components?.default.name && names.push(v.components.default.name);
|
|
19675
19431
|
}
|
|
19676
19432
|
});
|
|
19677
|
-
const meta =
|
|
19433
|
+
const meta = route.matched.at(-1)?.meta;
|
|
19678
19434
|
const tabId = route.fullPath;
|
|
19679
19435
|
if (route.name !== "reload") {
|
|
19680
19436
|
const findTab = list2.value.find((item) => {
|
|
@@ -19689,8 +19445,8 @@ const useTabbarStore = pinia$1.defineStore(
|
|
|
19689
19445
|
tabId,
|
|
19690
19446
|
fullPath: route.fullPath,
|
|
19691
19447
|
routeName: route.name,
|
|
19692
|
-
title: typeof
|
|
19693
|
-
icon:
|
|
19448
|
+
title: typeof meta?.title === "function" ? meta.title() : meta?.title,
|
|
19449
|
+
icon: meta?.icon ?? meta?.breadcrumbNeste?.findLast((item) => item.icon)?.icon,
|
|
19694
19450
|
name: names
|
|
19695
19451
|
};
|
|
19696
19452
|
if (leaveIndex.value >= 0) {
|
|
@@ -19889,9 +19645,8 @@ function useTabbar() {
|
|
|
19889
19645
|
});
|
|
19890
19646
|
}
|
|
19891
19647
|
function checkCloseLeftSide(tabId = getId()) {
|
|
19892
|
-
var _a2;
|
|
19893
19648
|
let flag = true;
|
|
19894
|
-
if (tabId ===
|
|
19649
|
+
if (tabId === tabbarStore.list[0]?.tabId) {
|
|
19895
19650
|
flag = false;
|
|
19896
19651
|
} else {
|
|
19897
19652
|
const index2 = tabbarStore.list.findIndex((item) => item.tabId === tabId);
|
|
@@ -19902,9 +19657,8 @@ function useTabbar() {
|
|
|
19902
19657
|
return flag;
|
|
19903
19658
|
}
|
|
19904
19659
|
function checkCloseRightSide(tabId = getId()) {
|
|
19905
|
-
var _a2;
|
|
19906
19660
|
let flag = true;
|
|
19907
|
-
if (tabId ===
|
|
19661
|
+
if (tabId === tabbarStore.list.at(-1)?.tabId) {
|
|
19908
19662
|
flag = false;
|
|
19909
19663
|
} else {
|
|
19910
19664
|
const index2 = tabbarStore.list.findIndex((item) => item.tabId === tabId);
|
|
@@ -20048,10 +19802,10 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
20048
19802
|
hotkeys(
|
|
20049
19803
|
"alt+left,alt+right,alt+w,alt+1,alt+2,alt+3,alt+4,alt+5,alt+6,alt+7,alt+8,alt+9,alt+0",
|
|
20050
19804
|
(e, handle) => {
|
|
20051
|
-
var _a2, _b2;
|
|
20052
19805
|
if (settingsStore.settings.tabbar.enable && settingsStore.settings.tabbar.enableHotkeys) {
|
|
20053
19806
|
e.preventDefault();
|
|
20054
19807
|
switch (handle.key) {
|
|
19808
|
+
// 切换到当前标签页紧邻的上一个标签页
|
|
20055
19809
|
case "alt+left":
|
|
20056
19810
|
if (tabbarStore.list[0].tabId !== activedTabId.value) {
|
|
20057
19811
|
const index2 = tabbarStore.list.findIndex(
|
|
@@ -20060,17 +19814,20 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
20060
19814
|
router.push(tabbarStore.list[index2 - 1].fullPath);
|
|
20061
19815
|
}
|
|
20062
19816
|
break;
|
|
19817
|
+
// 切换到当前标签页紧邻的下一个标签页
|
|
20063
19818
|
case "alt+right":
|
|
20064
|
-
if (
|
|
19819
|
+
if (tabbarStore.list.at(-1)?.tabId !== activedTabId.value) {
|
|
20065
19820
|
const index2 = tabbarStore.list.findIndex(
|
|
20066
19821
|
(item) => item.tabId === activedTabId.value
|
|
20067
19822
|
);
|
|
20068
19823
|
router.push(tabbarStore.list[index2 + 1].fullPath);
|
|
20069
19824
|
}
|
|
20070
19825
|
break;
|
|
19826
|
+
// 关闭当前标签页
|
|
20071
19827
|
case "alt+w":
|
|
20072
19828
|
tabbar.closeById(activedTabId.value);
|
|
20073
19829
|
break;
|
|
19830
|
+
// 切换到第 n 个标签页
|
|
20074
19831
|
case "alt+1":
|
|
20075
19832
|
case "alt+2":
|
|
20076
19833
|
case "alt+3":
|
|
@@ -20081,9 +19838,10 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
20081
19838
|
case "alt+8":
|
|
20082
19839
|
case "alt+9": {
|
|
20083
19840
|
const number = Number(handle.key.split("+")[1]);
|
|
20084
|
-
|
|
19841
|
+
tabbarStore.list[number - 1]?.fullPath && router.push(tabbarStore.list[number - 1].fullPath);
|
|
20085
19842
|
break;
|
|
20086
19843
|
}
|
|
19844
|
+
// 切换到最后一个标签页
|
|
20087
19845
|
case "alt+0":
|
|
20088
19846
|
router.push(tabbarStore.list[tabbarStore.list.length - 1].fullPath);
|
|
20089
19847
|
break;
|
|
@@ -20124,7 +19882,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
20124
19882
|
class: vue.normalizeClass(["tab", {
|
|
20125
19883
|
actived: element.tabId === vue.unref(activedTabId)
|
|
20126
19884
|
}]),
|
|
20127
|
-
title: typeof
|
|
19885
|
+
title: typeof element?.title === "function" ? element.title() : element.title,
|
|
20128
19886
|
onClick: ($event) => vue.unref(router).push(element.fullPath),
|
|
20129
19887
|
onContextmenu: ($event) => onTabbarContextmenu($event, element)
|
|
20130
19888
|
}, [
|
|
@@ -20140,7 +19898,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
20140
19898
|
name: element.icon,
|
|
20141
19899
|
class: "icon"
|
|
20142
19900
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
20143
|
-
vue.createTextVNode(" " + vue.toDisplayString(typeof
|
|
19901
|
+
vue.createTextVNode(" " + vue.toDisplayString(typeof element?.title === "function" ? element.title() : element.title), 1)
|
|
20144
19902
|
])),
|
|
20145
19903
|
vue.unref(tabbarStore).list.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
20146
19904
|
key: 0,
|
|
@@ -20468,13 +20226,12 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20468
20226
|
flag = true;
|
|
20469
20227
|
}
|
|
20470
20228
|
if (item.breadcrumb.some((b) => {
|
|
20471
|
-
var _a2;
|
|
20472
20229
|
if (typeof b.title === "function") {
|
|
20473
20230
|
if (b.title().includes(searchInput.value)) {
|
|
20474
20231
|
return true;
|
|
20475
20232
|
}
|
|
20476
20233
|
} else {
|
|
20477
|
-
if (
|
|
20234
|
+
if (b.title?.includes(searchInput.value)) {
|
|
20478
20235
|
return true;
|
|
20479
20236
|
}
|
|
20480
20237
|
}
|
|
@@ -20538,40 +20295,35 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20538
20295
|
});
|
|
20539
20296
|
}
|
|
20540
20297
|
function hasChildren(item) {
|
|
20541
|
-
var _a2;
|
|
20542
20298
|
let flag = true;
|
|
20543
|
-
if (
|
|
20544
|
-
var _a3;
|
|
20545
|
-
return ((_a3 = i.meta) == null ? void 0 : _a3.menu) === false;
|
|
20546
|
-
})) {
|
|
20299
|
+
if (item.children?.every((i) => i.meta?.menu === false)) {
|
|
20547
20300
|
flag = false;
|
|
20548
20301
|
}
|
|
20549
20302
|
return flag;
|
|
20550
20303
|
}
|
|
20551
20304
|
function getSourceListByMenus(arr, basePath, icon, breadcrumb) {
|
|
20552
20305
|
arr.forEach((item) => {
|
|
20553
|
-
|
|
20554
|
-
if (((_a2 = item.meta) == null ? void 0 : _a2.menu) !== false) {
|
|
20306
|
+
if (item.meta?.menu !== false) {
|
|
20555
20307
|
const breadcrumbTemp = lodashEs.cloneDeep(breadcrumb) || [];
|
|
20556
20308
|
if (item.children && hasChildren(item)) {
|
|
20557
20309
|
breadcrumbTemp.push({
|
|
20558
|
-
title:
|
|
20310
|
+
title: item.meta?.title
|
|
20559
20311
|
});
|
|
20560
20312
|
getSourceListByMenus(
|
|
20561
20313
|
item.children,
|
|
20562
20314
|
resolveRoutePath(basePath, item.path),
|
|
20563
|
-
|
|
20315
|
+
item.meta?.icon ?? icon,
|
|
20564
20316
|
breadcrumbTemp
|
|
20565
20317
|
);
|
|
20566
20318
|
} else {
|
|
20567
20319
|
breadcrumbTemp.push({
|
|
20568
|
-
title:
|
|
20320
|
+
title: item.meta?.title
|
|
20569
20321
|
});
|
|
20570
20322
|
sourceList.value.push({
|
|
20571
20323
|
path: resolveRoutePath(basePath, item.path),
|
|
20572
|
-
icon:
|
|
20573
|
-
title:
|
|
20574
|
-
link:
|
|
20324
|
+
icon: item.meta?.icon ?? icon,
|
|
20325
|
+
title: item.meta?.title,
|
|
20326
|
+
link: item.meta?.link,
|
|
20575
20327
|
breadcrumb: breadcrumbTemp
|
|
20576
20328
|
});
|
|
20577
20329
|
}
|
|
@@ -20597,24 +20349,22 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20597
20349
|
}
|
|
20598
20350
|
}
|
|
20599
20351
|
function keyEnter() {
|
|
20600
|
-
var _a2;
|
|
20601
20352
|
if (actived.value !== -1) {
|
|
20602
|
-
|
|
20353
|
+
searchResultItemRef.value.find((item) => Number.parseInt(item.dataset.index) === actived.value)?.click();
|
|
20603
20354
|
}
|
|
20604
20355
|
}
|
|
20605
20356
|
function handleScroll() {
|
|
20606
|
-
var _a2, _b2;
|
|
20607
20357
|
if (searchResultRef.value) {
|
|
20608
20358
|
const contentDom = searchResultRef.value.osInstance().elements().content;
|
|
20609
20359
|
let scrollTo = 0;
|
|
20610
20360
|
if (actived.value !== -1) {
|
|
20611
20361
|
scrollTo = contentDom.scrollTop;
|
|
20612
|
-
const activedOffsetTop =
|
|
20362
|
+
const activedOffsetTop = searchResultItemRef.value.find(
|
|
20613
20363
|
(item) => Number.parseInt(item.dataset.index) === actived.value
|
|
20614
|
-
)
|
|
20615
|
-
const activedClientHeight =
|
|
20364
|
+
)?.offsetTop ?? 0;
|
|
20365
|
+
const activedClientHeight = searchResultItemRef.value.find(
|
|
20616
20366
|
(item) => Number.parseInt(item.dataset.index) === actived.value
|
|
20617
|
-
)
|
|
20367
|
+
)?.clientHeight ?? 0;
|
|
20618
20368
|
const searchScrollTop = contentDom.scrollTop;
|
|
20619
20369
|
const searchClientHeight = contentDom.clientHeight;
|
|
20620
20370
|
if (activedOffsetTop + activedClientHeight > searchScrollTop + searchClientHeight) {
|
|
@@ -21185,7 +20935,6 @@ const SystemProvider = /* @__PURE__ */ vue.defineComponent({
|
|
|
21185
20935
|
vue.computed(() => msAppClient.ready);
|
|
21186
20936
|
const slots = vue.useSlots();
|
|
21187
20937
|
vue.watch(vue.computed(() => vue.unref(vueRouter$1.currentRoute)), (route) => {
|
|
21188
|
-
var _a2, _b2, _c2, _d2;
|
|
21189
20938
|
const userSession = msAppClient.userSession;
|
|
21190
20939
|
if (!userSession) {
|
|
21191
20940
|
return;
|
|
@@ -21209,7 +20958,7 @@ const SystemProvider = /* @__PURE__ */ vue.defineComponent({
|
|
|
21209
20958
|
const tab = tabs.findTabByID(route.fullPath) ?? tabs.createTab({
|
|
21210
20959
|
id: route.fullPath,
|
|
21211
20960
|
title: routeInfo.title,
|
|
21212
|
-
affix: !!
|
|
20961
|
+
affix: !!route.matched?.[route.matched?.length - 1]?.meta?.affix,
|
|
21213
20962
|
realRoute: route,
|
|
21214
20963
|
route: routeInfo
|
|
21215
20964
|
});
|
|
@@ -21307,10 +21056,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21307
21056
|
if (settingsStore.settings.menu.subMenuCollapse && settingsStore.mode !== "mobile") {
|
|
21308
21057
|
actualWidth = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--g-sub-sidebar-collapse-width"));
|
|
21309
21058
|
}
|
|
21310
|
-
if (menuStore.sidebarMenus.every((item) => {
|
|
21311
|
-
var _a2;
|
|
21312
|
-
return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
|
|
21313
|
-
})) {
|
|
21059
|
+
if (menuStore.sidebarMenus.every((item) => item.meta?.menu === false)) {
|
|
21314
21060
|
actualWidth = 0;
|
|
21315
21061
|
}
|
|
21316
21062
|
return `${actualWidth}px`;
|
|
@@ -21400,7 +21146,6 @@ const Layout = /* @__PURE__ */ vue.defineComponent({
|
|
|
21400
21146
|
});
|
|
21401
21147
|
const MKLayout = utils.withInstall(Layout);
|
|
21402
21148
|
function generateRoutesFromFiles(files) {
|
|
21403
|
-
var _a2;
|
|
21404
21149
|
const routes = [];
|
|
21405
21150
|
for (const file of files) {
|
|
21406
21151
|
const segments = file.path.split("/");
|
|
@@ -21430,7 +21175,7 @@ function generateRoutesFromFiles(files) {
|
|
|
21430
21175
|
route.path += getRoutePath(tokens);
|
|
21431
21176
|
}
|
|
21432
21177
|
}
|
|
21433
|
-
route.path =
|
|
21178
|
+
route.path = file.module.mkRoute?.path || route.path;
|
|
21434
21179
|
parent.push(route);
|
|
21435
21180
|
}
|
|
21436
21181
|
return prepareRoutes(routes);
|
|
@@ -21517,13 +21262,12 @@ function findRouteByKey(key, routes) {
|
|
|
21517
21262
|
return findRouteByKey(key, routes);
|
|
21518
21263
|
}
|
|
21519
21264
|
function prepareRoutes(routes, parent, keys = /* @__PURE__ */ new Set()) {
|
|
21520
|
-
var _a2;
|
|
21521
21265
|
for (const route of routes) {
|
|
21522
21266
|
if (route.key) {
|
|
21523
21267
|
route.key = route.key.replace(/\/index$/, "").replace(/\//g, "-");
|
|
21524
21268
|
if (keys.has(route.key)) {
|
|
21525
21269
|
const existingRoute = findRouteByKey(route.key, routes);
|
|
21526
|
-
const extra =
|
|
21270
|
+
const extra = existingRoute?.name ? `is the same as \`${existingRoute.file}\`` : "is a duplicate";
|
|
21527
21271
|
console.warn(
|
|
21528
21272
|
`Route name generated for \`${route.file}\` ${extra}. You may wish to set a custom name using \`definePageMeta\` within the page file.`
|
|
21529
21273
|
);
|
|
@@ -21533,7 +21277,7 @@ function prepareRoutes(routes, parent, keys = /* @__PURE__ */ new Set()) {
|
|
|
21533
21277
|
if (parent && route.path.startsWith("/")) {
|
|
21534
21278
|
route.path = route.path.slice(1);
|
|
21535
21279
|
}
|
|
21536
|
-
if (
|
|
21280
|
+
if (route.children?.length) {
|
|
21537
21281
|
route.children = prepareRoutes(route.children, route, keys);
|
|
21538
21282
|
}
|
|
21539
21283
|
if (route.key) {
|
|
@@ -21577,10 +21321,9 @@ const initApplication = async (options) => {
|
|
|
21577
21321
|
window.msAppClient = msAppClient;
|
|
21578
21322
|
const routes = generateRoutesFromFiles(
|
|
21579
21323
|
Object.keys(options.routes).map((key) => {
|
|
21580
|
-
var _a2;
|
|
21581
21324
|
return {
|
|
21582
21325
|
path: key.replace(/^\.\/pages\/(.+)\.vue$/, (_2, g) => g),
|
|
21583
|
-
module:
|
|
21326
|
+
module: options.routes[key]?.default || options.routes[key]
|
|
21584
21327
|
};
|
|
21585
21328
|
})
|
|
21586
21329
|
);
|
|
@@ -21838,4 +21581,4 @@ exports.useUploadComposable = useUploadComposable;
|
|
|
21838
21581
|
exports.useUploadService = useUploadService;
|
|
21839
21582
|
exports.useUserInfo = useUserInfo;
|
|
21840
21583
|
exports.version = version;
|
|
21841
|
-
//# sourceMappingURL=index-
|
|
21584
|
+
//# sourceMappingURL=index-BUCV8-xD.cjs.map
|