@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,32 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
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;
|
|
5
|
-
import { defineAsyncComponent, reactive, ref, getCurrentInstance, inject, computed, unref, provide, defineComponent, createVNode, renderSlot, isVNode, watch, isRef, onBeforeUnmount, resolveComponent, openBlock, createBlock, withCtx, createTextVNode, createElementVNode, createElementBlock, Fragment, renderList, createCommentVNode, normalizeClass, normalizeStyle, withDirectives, resolveDirective, onMounted, h, shallowReactive, withModifiers, watchEffect, onUnmounted, readonly, useSlots, toRaw, mergeProps, nextTick, createSlots, toDisplayString, Suspense, resolveDynamicComponent, shallowRef, Teleport, pushScopeId, popScopeId, Transition, render, toHandlers, TransitionGroup, vShow, onBeforeUpdate, withKeys, vModelText, normalizeProps, guardReactiveProps, onErrorCaptured, KeepAlive } from "vue";
|
|
6
|
-
import { Components, Operator, DataTable as DataTable$1, DataForm as DataForm$1, ComponentsCombine, isWhereFilter, Dialoger, Messager, FormColumn, DataTree, RefreshButton, AddButton, TableHeaderItem as TableHeaderItem$1, FilterColumn, TableColumn, TableActionColumn, DataFormType, ActionButton, EditButton, DeleteButton, TableSelectCacheColumn, LoadingManager, FormDetailColumn, ImportButton, TableHeaderButton, Notificationer, SkeletonMessageSender, SkeletonDialoger } from "@maketribe/dm";
|
|
1
|
+
import { defineAsyncComponent, reactive, ref, getCurrentInstance, unref, computed, provide, inject, defineComponent, createVNode, renderSlot, isVNode, watch, isRef, onBeforeUnmount, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode, normalizeStyle, normalizeClass, withDirectives, resolveDirective, onMounted, h, shallowReactive, withModifiers, onUnmounted, watchEffect, readonly, useSlots, toRaw, mergeProps, nextTick, createSlots, toDisplayString, Suspense, resolveDynamicComponent, shallowRef, Teleport, pushScopeId, popScopeId, Transition, render, toHandlers, TransitionGroup, vShow, onBeforeUpdate, withKeys, vModelText, normalizeProps, guardReactiveProps, onErrorCaptured, KeepAlive } from "vue";
|
|
2
|
+
import { Components, Operator, DataTable as DataTable$1, DataForm as DataForm$1, ComponentsCombine, isWhereFilter, Messager, Dialoger, FormColumn, DataTree, RefreshButton, AddButton, TableHeaderItem as TableHeaderItem$1, FilterColumn, TableColumn, TableActionColumn, DataFormType, ActionButton, EditButton, DeleteButton, TableSelectCacheColumn, LoadingManager, FormDetailColumn, ImportButton, TableHeaderButton, Notificationer, SkeletonMessageSender, SkeletonDialoger } from "@maketribe/dm";
|
|
7
3
|
import { ElInput, ElInputNumber, ElConfigProvider, ElButton, ElSelect, ElOption, ElPagination, ElDatePicker, useFormItem as useFormItem$1, ElPopover, ElScrollbar, ElTooltip, ElForm, ElFormItem, ElCollapse, ElCollapseItem, useFormDisabled, ElCard, ElTableColumn, ElTable, ElEmpty, ElTag, ElTree, ElMessageBox, ElIcon, ElMessage, ElImage, ElTabs, ElTabPane, ElRow, ElCol, ElLoading, ElDialog, ElAlert, ElProgress, ElCheckbox, ElNotification, ElUpload, ElDrawer, ElButtonGroup, ElBadge } from "element-plus";
|
|
8
4
|
import { Disposable, Event, createDisposable, md5, buildProps, withInstall, aesEncrypt, aesDecrypt, fileSelect, base64ToBlob, postTraverse, makeInstaller } from "@maketribe/utils";
|
|
9
5
|
import { useRoute, useRouter, createRouter, createWebHashHistory } from "vue-router";
|
|
10
|
-
import { ACCESS_TOKEN_HEADER, X_ACCESS_TOKEN_HEADER,
|
|
6
|
+
import { ACCESS_TOKEN_HEADER, X_ACCESS_TOKEN_HEADER, AUTHORIZATION_PREFIX, AUTHORIZATION, X_AUTHORIZATION, Where, WebFileUpload, UploadError, DvOpt, OrderType, Group, CancelToken, HttpRequest, DVQueryable, WebHttpRequest } from "@maketribe/request";
|
|
11
7
|
import { I18n } from "@maketribe/locale";
|
|
12
8
|
import { defaultsDeep, isEqual, debounce, get, isEmpty, isFunction, cloneDeep } from "lodash-es";
|
|
13
9
|
import { defineStore, createPinia } from "pinia";
|
|
14
|
-
import merge from "lodash-es/merge";
|
|
15
10
|
import path from "path-browserify";
|
|
16
11
|
import { Icon } from "@iconify/vue";
|
|
17
|
-
import { Grid, Search, Edit, Delete, Plus,
|
|
12
|
+
import { Grid, Search, MoreFilled, Edit, Delete, Plus, Picture, UploadFilled, Share, ArrowRightBold } from "@element-plus/icons-vue";
|
|
18
13
|
import { VueCropper } from "vue-cropper";
|
|
19
14
|
import { OverflowNode, $isOverflowNode, $createOverflowNode } from "@lexical/overflow";
|
|
20
15
|
import { $rootTextContent, $isRootTextContentEmptyCurry, registerLexicalTextEntity, $canShowPlaceholderCurry } from "@lexical/text";
|
|
21
16
|
import { mergeRegister, $dfs, isBlockDomNode, $findMatchingParent, $getNextRightPreorderNode, mediaFileReader, isMimeType, $insertNodeToNearestRoot, $insertFirst } from "@lexical/utils";
|
|
22
|
-
import { $getSelection, $isRangeSelection, $isTextNode, $isLeafNode, $setSelection, COMMAND_PRIORITY_HIGH, ElementNode, DecoratorNode, createCommand, $createParagraphNode, $copyNode, $isElementNode, $getRoot,
|
|
17
|
+
import { $getSelection, $isRangeSelection, $isTextNode, $isLeafNode, $setSelection, COMMAND_PRIORITY_HIGH, ElementNode, DecoratorNode, createCommand, $createParagraphNode, $copyNode, $isElementNode, $getRoot, $cloneWithProperties, isHTMLElement, $isRootOrShadowRoot, $isBlockElementNode, $createLineBreakNode, ArtificialNode__DO_NOT_USE, isInlineDomNode, createEditor, CAN_UNDO_COMMAND, CAN_REDO_COMMAND, $isNodeSelection, FORMAT_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, REDO_COMMAND, UNDO_COMMAND, $createNodeSelection, $getNodeByKey, TextNode, KEY_TAB_COMMAND, OUTDENT_CONTENT_COMMAND, INDENT_CONTENT_COMMAND, COMMAND_PRIORITY_EDITOR, $isParagraphNode, CLICK_COMMAND, SELECTION_CHANGE_COMMAND, $isRootNode, COMMAND_PRIORITY_LOW, INSERT_PARAGRAPH_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_UP_COMMAND, KEY_ESCAPE_COMMAND, KEY_SPACE_COMMAND, $getNearestNodeFromDOMNode, KEY_ARROW_LEFT_COMMAND, $nodesOfType } from "lexical";
|
|
23
18
|
import { $sliceSelectedTextNodeContent, $getSelectionStyleValueForProperty, $patchStyleText, $setBlocksType } from "@lexical/selection";
|
|
24
19
|
import { $isLinkNode, TOGGLE_LINK_COMMAND, AutoLinkNode, LinkNode, $toggleLink } from "@lexical/link";
|
|
25
20
|
import { $isHeadingNode, $createHeadingNode, HeadingNode, QuoteNode, DRAG_DROP_PASTE, registerRichText } from "@lexical/rich-text";
|
|
26
21
|
import { createEmptyHistoryState, registerHistory } from "@lexical/history";
|
|
27
22
|
import { CodeHighlightNode, CodeNode } from "@lexical/code";
|
|
28
23
|
import { HashtagNode, $createHashtagNode } from "@lexical/hashtag";
|
|
29
|
-
import { ListNode, ListItemNode,
|
|
24
|
+
import { ListNode, ListItemNode, INSERT_ORDERED_LIST_COMMAND, INSERT_UNORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND, removeList, $handleListInsertParagraph, $createListNode, $createListItemNode, $isListItemNode, INSERT_CHECK_LIST_COMMAND, insertList, $isListNode } from "@lexical/list";
|
|
30
25
|
import { TableCellNode, TableNode, TableRowNode, $getNodeTriplet, $computeTableMap, $isTableRowNode, $isTableCellNode, $createTableCellNode, $isTableNode, INSERT_TABLE_COMMAND, $createTableNodeWithDimensions, applyTableHandlers } from "@lexical/table";
|
|
31
26
|
import { registerDragonSupport } from "@lexical/dragon";
|
|
32
27
|
import { registerPlainText } from "@lexical/plain-text";
|
|
@@ -153,84 +148,84 @@ class DataTableComponents extends Components {
|
|
|
153
148
|
name: "MKColumnAction",
|
|
154
149
|
title: "操作",
|
|
155
150
|
component: defineAsyncComponent(
|
|
156
|
-
async () => import("./index-
|
|
151
|
+
async () => import("./index-BesRQOOQ.js")
|
|
157
152
|
)
|
|
158
153
|
});
|
|
159
154
|
this.registerComponent({
|
|
160
155
|
name: "MKColumnText",
|
|
161
156
|
title: "文本",
|
|
162
157
|
component: defineAsyncComponent(
|
|
163
|
-
async () => import("./index-
|
|
158
|
+
async () => import("./index-CrIWIc_t.js")
|
|
164
159
|
)
|
|
165
160
|
});
|
|
166
161
|
this.registerComponent({
|
|
167
162
|
name: "MKColumnObjectMappingText",
|
|
168
163
|
title: "对象映射文本",
|
|
169
164
|
component: defineAsyncComponent(
|
|
170
|
-
async () => import("./index-
|
|
165
|
+
async () => import("./index-BGATqI6o.js")
|
|
171
166
|
)
|
|
172
167
|
});
|
|
173
168
|
this.registerComponent({
|
|
174
169
|
name: "MKColumnImage",
|
|
175
170
|
title: "图片",
|
|
176
171
|
component: defineAsyncComponent(
|
|
177
|
-
async () => import("./index-
|
|
172
|
+
async () => import("./index-BsWs1zP5.js")
|
|
178
173
|
)
|
|
179
174
|
});
|
|
180
175
|
this.registerComponent({
|
|
181
176
|
name: "MKColumnSelect",
|
|
182
177
|
title: "行选择",
|
|
183
178
|
component: defineAsyncComponent(
|
|
184
|
-
async () => import("./index-
|
|
179
|
+
async () => import("./index-X4uZVo2B.js")
|
|
185
180
|
)
|
|
186
181
|
});
|
|
187
182
|
this.registerComponent({
|
|
188
183
|
name: "MKColumnJson",
|
|
189
184
|
title: "JSON",
|
|
190
185
|
component: defineAsyncComponent(
|
|
191
|
-
async () => import("./index-
|
|
186
|
+
async () => import("./index-BM4RT6bs.js")
|
|
192
187
|
)
|
|
193
188
|
});
|
|
194
189
|
this.registerComponent({
|
|
195
190
|
name: "MKColumnDate",
|
|
196
191
|
title: "日期时间",
|
|
197
192
|
component: defineAsyncComponent(
|
|
198
|
-
async () => import("./index-
|
|
193
|
+
async () => import("./index-Df_PDwBj.js")
|
|
199
194
|
)
|
|
200
195
|
});
|
|
201
196
|
this.registerComponent({
|
|
202
197
|
name: "MKColumnSwitch",
|
|
203
198
|
title: "开关",
|
|
204
199
|
component: defineAsyncComponent(
|
|
205
|
-
async () => import("./index-
|
|
200
|
+
async () => import("./index-ByFdp6oy.js")
|
|
206
201
|
)
|
|
207
202
|
});
|
|
208
203
|
this.registerComponent({
|
|
209
204
|
name: "MKColumnTag",
|
|
210
205
|
title: "标签",
|
|
211
206
|
component: defineAsyncComponent(
|
|
212
|
-
async () => import("./index-
|
|
207
|
+
async () => import("./index-DjB2Bpvo.js")
|
|
213
208
|
)
|
|
214
209
|
});
|
|
215
210
|
this.registerComponent({
|
|
216
211
|
name: "MKColumnLink",
|
|
217
212
|
title: "链接",
|
|
218
213
|
component: defineAsyncComponent(
|
|
219
|
-
async () => import("./index-
|
|
214
|
+
async () => import("./index-BXfKq4TE.js")
|
|
220
215
|
)
|
|
221
216
|
});
|
|
222
217
|
this.registerComponent({
|
|
223
218
|
name: "MKColumnSort",
|
|
224
219
|
title: "拖拽排序",
|
|
225
220
|
component: defineAsyncComponent(
|
|
226
|
-
async () => import("./index-
|
|
221
|
+
async () => import("./index-MQ8OZGCg.js")
|
|
227
222
|
)
|
|
228
223
|
});
|
|
229
224
|
this.registerComponent({
|
|
230
225
|
name: "MKColumnIcon",
|
|
231
226
|
title: "图标",
|
|
232
227
|
component: defineAsyncComponent(
|
|
233
|
-
async () => import("./index-
|
|
228
|
+
async () => import("./index-8_tegZTS.js")
|
|
234
229
|
)
|
|
235
230
|
});
|
|
236
231
|
}
|
|
@@ -256,14 +251,14 @@ class DataTableHeaderComponents extends Components {
|
|
|
256
251
|
name: "MKBatchOpt",
|
|
257
252
|
title: "批量操作",
|
|
258
253
|
component: defineAsyncComponent(
|
|
259
|
-
async () => import("./index-
|
|
254
|
+
async () => import("./index-nAOtrNQ-.js")
|
|
260
255
|
)
|
|
261
256
|
});
|
|
262
257
|
this.registerComponent({
|
|
263
258
|
name: "MKTableFilter",
|
|
264
259
|
title: "筛选",
|
|
265
260
|
component: defineAsyncComponent(
|
|
266
|
-
async () => import("./index-
|
|
261
|
+
async () => import("./index-CG4NeJSD.js")
|
|
267
262
|
)
|
|
268
263
|
});
|
|
269
264
|
}
|
|
@@ -306,7 +301,7 @@ class DataFormComponents extends Components {
|
|
|
306
301
|
name: "MKFormRadioBox",
|
|
307
302
|
title: "单选框",
|
|
308
303
|
component: defineAsyncComponent(
|
|
309
|
-
() => import("./index-
|
|
304
|
+
() => import("./index-DIjf8saG.js")
|
|
310
305
|
)
|
|
311
306
|
});
|
|
312
307
|
this.registerComponent({
|
|
@@ -341,7 +336,7 @@ class DataFormComponents extends Components {
|
|
|
341
336
|
name: "MKFormDetail",
|
|
342
337
|
title: "明细",
|
|
343
338
|
component: defineAsyncComponent(
|
|
344
|
-
() => import("./index
|
|
339
|
+
() => import("./index-BHRnbCp4.js")
|
|
345
340
|
)
|
|
346
341
|
});
|
|
347
342
|
this.registerComponent({
|
|
@@ -362,14 +357,14 @@ class DataFormComponents extends Components {
|
|
|
362
357
|
name: "MKDataTreeSelect",
|
|
363
358
|
title: "树选择器",
|
|
364
359
|
component: defineAsyncComponent(
|
|
365
|
-
() => import("./index-
|
|
360
|
+
() => import("./index-DNLqF2ga.js")
|
|
366
361
|
)
|
|
367
362
|
});
|
|
368
363
|
this.registerComponent({
|
|
369
364
|
name: "MKResourceSelectInput",
|
|
370
365
|
title: "资源选择输入框",
|
|
371
366
|
component: defineAsyncComponent(
|
|
372
|
-
() => import("./ResourceSelectInput-
|
|
367
|
+
() => import("./ResourceSelectInput-Dh1liggt.js")
|
|
373
368
|
)
|
|
374
369
|
});
|
|
375
370
|
this.registerComponent({
|
|
@@ -405,7 +400,7 @@ class DataFilterComponents extends Components {
|
|
|
405
400
|
title: "下拉框",
|
|
406
401
|
defaultOperator: Operator.IN,
|
|
407
402
|
component: defineAsyncComponent(
|
|
408
|
-
() => import("./index-
|
|
403
|
+
() => import("./index-DwmNH96j.js")
|
|
409
404
|
)
|
|
410
405
|
});
|
|
411
406
|
this.registerComponent({
|
|
@@ -413,7 +408,7 @@ class DataFilterComponents extends Components {
|
|
|
413
408
|
title: "树形下拉框",
|
|
414
409
|
defaultOperator: Operator.IN,
|
|
415
410
|
component: defineAsyncComponent(
|
|
416
|
-
() => import("./index-
|
|
411
|
+
() => import("./index-DNLqF2ga.js")
|
|
417
412
|
)
|
|
418
413
|
});
|
|
419
414
|
this.registerComponent({
|
|
@@ -452,18 +447,18 @@ class ConfigComponents extends Components {
|
|
|
452
447
|
}
|
|
453
448
|
}
|
|
454
449
|
class MenuNode {
|
|
450
|
+
id;
|
|
451
|
+
iconName;
|
|
452
|
+
title;
|
|
453
|
+
permissionPoints;
|
|
454
|
+
route;
|
|
455
|
+
routes;
|
|
456
|
+
type;
|
|
457
|
+
path;
|
|
458
|
+
urlType;
|
|
459
|
+
children;
|
|
460
|
+
parent;
|
|
455
461
|
constructor(options) {
|
|
456
|
-
__publicField(this, "id");
|
|
457
|
-
__publicField(this, "iconName");
|
|
458
|
-
__publicField(this, "title");
|
|
459
|
-
__publicField(this, "permissionPoints");
|
|
460
|
-
__publicField(this, "route");
|
|
461
|
-
__publicField(this, "routes");
|
|
462
|
-
__publicField(this, "type");
|
|
463
|
-
__publicField(this, "path");
|
|
464
|
-
__publicField(this, "urlType");
|
|
465
|
-
__publicField(this, "children");
|
|
466
|
-
__publicField(this, "parent");
|
|
467
462
|
const { id, children, route, routes, iconName, title, path: path2, permissionPoints, urlType, type } = options;
|
|
468
463
|
this.id = id;
|
|
469
464
|
this.route = route ?? null;
|
|
@@ -488,15 +483,15 @@ class MenuNode {
|
|
|
488
483
|
}
|
|
489
484
|
}
|
|
490
485
|
class Menu extends Disposable {
|
|
486
|
+
rootMenus = [];
|
|
487
|
+
_currentMenu = null;
|
|
488
|
+
isCollapsed = false;
|
|
489
|
+
isVisible = true;
|
|
490
|
+
permissionPointManager;
|
|
491
|
+
router;
|
|
492
|
+
currentMenuChangeEvent = this.register(new Event());
|
|
491
493
|
constructor(permissionPointManager, router) {
|
|
492
494
|
super();
|
|
493
|
-
__publicField(this, "rootMenus", []);
|
|
494
|
-
__publicField(this, "_currentMenu", null);
|
|
495
|
-
__publicField(this, "isCollapsed", false);
|
|
496
|
-
__publicField(this, "isVisible", true);
|
|
497
|
-
__publicField(this, "permissionPointManager");
|
|
498
|
-
__publicField(this, "router");
|
|
499
|
-
__publicField(this, "currentMenuChangeEvent", this.register(new Event()));
|
|
500
495
|
this.permissionPointManager = permissionPointManager;
|
|
501
496
|
this.router = router;
|
|
502
497
|
}
|
|
@@ -588,17 +583,17 @@ class Menu extends Disposable {
|
|
|
588
583
|
}
|
|
589
584
|
}
|
|
590
585
|
class Tab extends Disposable {
|
|
586
|
+
id;
|
|
587
|
+
title;
|
|
588
|
+
affix;
|
|
589
|
+
realRoute;
|
|
590
|
+
route;
|
|
591
|
+
beforeCloseEvent = this.register(new Event());
|
|
592
|
+
refreshEvent = this.register(new Event());
|
|
593
|
+
beforeSwitchEvent = this.register(new Event());
|
|
594
|
+
tabs;
|
|
591
595
|
constructor(options) {
|
|
592
596
|
super();
|
|
593
|
-
__publicField(this, "id");
|
|
594
|
-
__publicField(this, "title");
|
|
595
|
-
__publicField(this, "affix");
|
|
596
|
-
__publicField(this, "realRoute");
|
|
597
|
-
__publicField(this, "route");
|
|
598
|
-
__publicField(this, "beforeCloseEvent", this.register(new Event()));
|
|
599
|
-
__publicField(this, "refreshEvent", this.register(new Event()));
|
|
600
|
-
__publicField(this, "beforeSwitchEvent", this.register(new Event()));
|
|
601
|
-
__publicField(this, "tabs");
|
|
602
597
|
this.id = options.id;
|
|
603
598
|
this.title = options.title;
|
|
604
599
|
this.affix = options.affix ?? false;
|
|
@@ -617,25 +612,24 @@ class Tab extends Disposable {
|
|
|
617
612
|
}
|
|
618
613
|
}
|
|
619
614
|
class Tabs extends Disposable {
|
|
615
|
+
userSession;
|
|
616
|
+
_tabs = [];
|
|
617
|
+
_currentTab = null;
|
|
618
|
+
currentTabChangeEvent = this.register(
|
|
619
|
+
new Event()
|
|
620
|
+
);
|
|
621
|
+
tabsChangeEvent = this.register(new Event());
|
|
620
622
|
constructor(userSession) {
|
|
621
623
|
super();
|
|
622
|
-
__publicField(this, "userSession");
|
|
623
|
-
__publicField(this, "_tabs", []);
|
|
624
|
-
__publicField(this, "_currentTab", null);
|
|
625
|
-
__publicField(this, "currentTabChangeEvent", this.register(
|
|
626
|
-
new Event()
|
|
627
|
-
));
|
|
628
|
-
__publicField(this, "tabsChangeEvent", this.register(new Event()));
|
|
629
624
|
this.userSession = userSession;
|
|
630
625
|
}
|
|
631
626
|
init() {
|
|
632
627
|
const getAffixRoutes = () => {
|
|
633
|
-
var _a2;
|
|
634
628
|
let routes = this.userSession.vueRouter.getRoutes().slice();
|
|
635
629
|
const affixRoutes = [];
|
|
636
630
|
for (let i = 0; i < routes.length; i++) {
|
|
637
631
|
const route = routes[i];
|
|
638
|
-
if (
|
|
632
|
+
if (route.meta?.affix === true) {
|
|
639
633
|
affixRoutes.push(route);
|
|
640
634
|
}
|
|
641
635
|
}
|
|
@@ -691,12 +685,11 @@ class Tabs extends Disposable {
|
|
|
691
685
|
return this.getTabs().find((tab) => tab.id === id) ?? null;
|
|
692
686
|
}
|
|
693
687
|
async closeTab(tab) {
|
|
694
|
-
var _a2;
|
|
695
688
|
if (await tab.beforeCloseEvent.emitAsync() === false) {
|
|
696
689
|
return;
|
|
697
690
|
}
|
|
698
691
|
const tabItemList = this.getTabs().slice();
|
|
699
|
-
if (
|
|
692
|
+
if (this.getCurrentTab()?.getID() !== tab.getID()) {
|
|
700
693
|
this.setTabs(tabItemList.filter((item) => item.getID() !== tab.getID()));
|
|
701
694
|
return;
|
|
702
695
|
}
|
|
@@ -737,11 +730,12 @@ class Tabs extends Disposable {
|
|
|
737
730
|
this.setTabs([currentTab]);
|
|
738
731
|
}
|
|
739
732
|
}
|
|
740
|
-
|
|
733
|
+
class DataModelDefines {
|
|
734
|
+
static instance = new DataModelDefines();
|
|
735
|
+
_dataTableDefines;
|
|
736
|
+
_dataFormDefines;
|
|
737
|
+
_dataTreeDefines;
|
|
741
738
|
constructor() {
|
|
742
|
-
__publicField(this, "_dataTableDefines");
|
|
743
|
-
__publicField(this, "_dataFormDefines");
|
|
744
|
-
__publicField(this, "_dataTreeDefines");
|
|
745
739
|
this._dataTableDefines = /* @__PURE__ */ new Map();
|
|
746
740
|
this._dataFormDefines = /* @__PURE__ */ new Map();
|
|
747
741
|
this._dataTreeDefines = /* @__PURE__ */ new Map();
|
|
@@ -773,21 +767,19 @@ const _DataModelDefines = class _DataModelDefines {
|
|
|
773
767
|
registerDataTreeDefine(name, dataTreeDefine) {
|
|
774
768
|
this._dataTreeDefines.set(name, dataTreeDefine);
|
|
775
769
|
}
|
|
776
|
-
}
|
|
777
|
-
__publicField(_DataModelDefines, "instance", new _DataModelDefines());
|
|
778
|
-
let DataModelDefines = _DataModelDefines;
|
|
770
|
+
}
|
|
779
771
|
class UserInfo {
|
|
772
|
+
id;
|
|
773
|
+
account;
|
|
774
|
+
email;
|
|
775
|
+
nickName;
|
|
776
|
+
avatar;
|
|
777
|
+
isLocked;
|
|
778
|
+
isSuper;
|
|
779
|
+
payload;
|
|
780
|
+
roles;
|
|
781
|
+
permissionPoints;
|
|
780
782
|
constructor(msAppClient, payload, roles, permissionPoints) {
|
|
781
|
-
__publicField(this, "id");
|
|
782
|
-
__publicField(this, "account");
|
|
783
|
-
__publicField(this, "email");
|
|
784
|
-
__publicField(this, "nickName");
|
|
785
|
-
__publicField(this, "avatar");
|
|
786
|
-
__publicField(this, "isLocked");
|
|
787
|
-
__publicField(this, "isSuper");
|
|
788
|
-
__publicField(this, "payload");
|
|
789
|
-
__publicField(this, "roles");
|
|
790
|
-
__publicField(this, "permissionPoints");
|
|
791
783
|
this.id = payload.id;
|
|
792
784
|
this.avatar = payload.avatar;
|
|
793
785
|
this.account = payload.account;
|
|
@@ -815,10 +807,10 @@ class UserInfo {
|
|
|
815
807
|
}
|
|
816
808
|
const NORMALIZE_ROUTE_NAME_REG = /^dv\/([^/]+)\/([^/]+)(\/.+)?$/;
|
|
817
809
|
class Router extends Disposable {
|
|
810
|
+
userSession;
|
|
811
|
+
routes = [];
|
|
818
812
|
constructor(userSession) {
|
|
819
813
|
super();
|
|
820
|
-
__publicField(this, "userSession");
|
|
821
|
-
__publicField(this, "routes", []);
|
|
822
814
|
this.userSession = userSession;
|
|
823
815
|
}
|
|
824
816
|
setRoutes(routes) {
|
|
@@ -846,7 +838,7 @@ class Router extends Disposable {
|
|
|
846
838
|
vueRouter.addRoute("mk-ms-layout", {
|
|
847
839
|
name: defaultPageRoute.name,
|
|
848
840
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
849
|
-
component: () => import("./normal-
|
|
841
|
+
component: () => import("./normal-By6pxQ8V.js"),
|
|
850
842
|
meta
|
|
851
843
|
});
|
|
852
844
|
break;
|
|
@@ -854,7 +846,7 @@ class Router extends Disposable {
|
|
|
854
846
|
vueRouter.addRoute("mk-ms-layout", {
|
|
855
847
|
name: defaultPageRoute.name,
|
|
856
848
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
857
|
-
component: () => import("./dialog-
|
|
849
|
+
component: () => import("./dialog-Dx1_PByu.js"),
|
|
858
850
|
meta
|
|
859
851
|
});
|
|
860
852
|
break;
|
|
@@ -866,7 +858,7 @@ class Router extends Disposable {
|
|
|
866
858
|
vueRouter.addRoute("mk-ms-layout", {
|
|
867
859
|
name: defaultPageRoute.name,
|
|
868
860
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
869
|
-
component: () => import("./dialog-
|
|
861
|
+
component: () => import("./dialog-Dfw2Hyma.js"),
|
|
870
862
|
meta
|
|
871
863
|
});
|
|
872
864
|
break;
|
|
@@ -878,7 +870,7 @@ class Router extends Disposable {
|
|
|
878
870
|
vueRouter.addRoute("mk-ms-layout", {
|
|
879
871
|
name: defaultPageRoute.name,
|
|
880
872
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
881
|
-
component: () => import("./dialog-
|
|
873
|
+
component: () => import("./dialog-BCUjKmRJ.js"),
|
|
882
874
|
meta
|
|
883
875
|
});
|
|
884
876
|
break;
|
|
@@ -886,7 +878,7 @@ class Router extends Disposable {
|
|
|
886
878
|
vueRouter.addRoute("mk-ms-layout", {
|
|
887
879
|
name: defaultPageRoute.name,
|
|
888
880
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
889
|
-
component: () => import("./normal-
|
|
881
|
+
component: () => import("./normal-IcqK9eiC.js"),
|
|
890
882
|
meta
|
|
891
883
|
});
|
|
892
884
|
}
|
|
@@ -896,7 +888,7 @@ class Router extends Disposable {
|
|
|
896
888
|
vueRouter.addRoute("mk-ms-layout", {
|
|
897
889
|
name: defaultPageRoute.name,
|
|
898
890
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
899
|
-
component: () => import("./table-
|
|
891
|
+
component: () => import("./table-CDFkhcnd.js"),
|
|
900
892
|
meta
|
|
901
893
|
});
|
|
902
894
|
break;
|
|
@@ -904,7 +896,7 @@ class Router extends Disposable {
|
|
|
904
896
|
vueRouter.addRoute("mk-ms-layout", {
|
|
905
897
|
name: defaultPageRoute.name,
|
|
906
898
|
path: defaultPageRoute.route || `/dv/${name}/edit/:id?`,
|
|
907
|
-
component: () => import("./edit-
|
|
899
|
+
component: () => import("./edit-CL9ew0K5.js"),
|
|
908
900
|
meta
|
|
909
901
|
});
|
|
910
902
|
break;
|
|
@@ -930,8 +922,8 @@ class Router extends Disposable {
|
|
|
930
922
|
}
|
|
931
923
|
}
|
|
932
924
|
class PermissionPointManager {
|
|
925
|
+
permissionPoints;
|
|
933
926
|
constructor() {
|
|
934
|
-
__publicField(this, "permissionPoints");
|
|
935
927
|
this.permissionPoints = [];
|
|
936
928
|
}
|
|
937
929
|
setPermissionPoints(permissionPoints) {
|
|
@@ -947,21 +939,21 @@ class PermissionPointManager {
|
|
|
947
939
|
}
|
|
948
940
|
let uid$2 = 0;
|
|
949
941
|
class UserSession extends Disposable {
|
|
942
|
+
id = uid$2++;
|
|
943
|
+
msAppClient;
|
|
944
|
+
vueRouter;
|
|
945
|
+
userInfo;
|
|
946
|
+
menu;
|
|
947
|
+
tabs;
|
|
948
|
+
router;
|
|
949
|
+
permissionPointManager;
|
|
950
|
+
accessToken;
|
|
951
|
+
xAccessToken;
|
|
952
|
+
beforeInitRouterEvent = this.register(new Event());
|
|
953
|
+
locking = false;
|
|
954
|
+
lockingChangeEvent = this.register(new Event());
|
|
950
955
|
constructor(options) {
|
|
951
956
|
super();
|
|
952
|
-
__publicField(this, "id", uid$2++);
|
|
953
|
-
__publicField(this, "msAppClient");
|
|
954
|
-
__publicField(this, "vueRouter");
|
|
955
|
-
__publicField(this, "userInfo");
|
|
956
|
-
__publicField(this, "menu");
|
|
957
|
-
__publicField(this, "tabs");
|
|
958
|
-
__publicField(this, "router");
|
|
959
|
-
__publicField(this, "permissionPointManager");
|
|
960
|
-
__publicField(this, "accessToken");
|
|
961
|
-
__publicField(this, "xAccessToken");
|
|
962
|
-
__publicField(this, "beforeInitRouterEvent", this.register(new Event()));
|
|
963
|
-
__publicField(this, "locking", false);
|
|
964
|
-
__publicField(this, "lockingChangeEvent", this.register(new Event()));
|
|
965
957
|
this.msAppClient = options.msAppClient;
|
|
966
958
|
this.vueRouter = this.msAppClient.vueRouter;
|
|
967
959
|
this.userInfo = null;
|
|
@@ -1075,30 +1067,40 @@ const globalConfig = ref();
|
|
|
1075
1067
|
function useGlobalConfig(key, defaultValue = void 0) {
|
|
1076
1068
|
const config = getCurrentInstance() ? inject(CONFIG_PROVIDER_CONTEXT_KEY, globalConfig) : globalConfig;
|
|
1077
1069
|
if (key) {
|
|
1078
|
-
return computed(() =>
|
|
1079
|
-
var _a2;
|
|
1080
|
-
return ((_a2 = unref(config)) == null ? void 0 : _a2[key]) ?? defaultValue;
|
|
1081
|
-
});
|
|
1070
|
+
return computed(() => unref(config)?.[key] ?? defaultValue);
|
|
1082
1071
|
}
|
|
1083
1072
|
return config;
|
|
1084
1073
|
}
|
|
1074
|
+
function mergeConfig(cfg, oldCfg) {
|
|
1075
|
+
const newCfg = {};
|
|
1076
|
+
Object.keys(oldCfg).forEach((k) => {
|
|
1077
|
+
if (cfg[k] !== void 0) {
|
|
1078
|
+
newCfg[k] = cfg[k];
|
|
1079
|
+
} else if (oldCfg[k] !== void 0) {
|
|
1080
|
+
newCfg[k] = oldCfg[k];
|
|
1081
|
+
}
|
|
1082
|
+
});
|
|
1083
|
+
Object.keys(cfg).forEach((k) => {
|
|
1084
|
+
if (newCfg[k] === void 0 && cfg[k] !== void 0) {
|
|
1085
|
+
newCfg[k] = cfg[k];
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
return newCfg;
|
|
1089
|
+
}
|
|
1085
1090
|
function provideGlobalConfig(config, app, global = false) {
|
|
1086
1091
|
const inSetup = !!getCurrentInstance();
|
|
1087
1092
|
const oldConfig = inSetup ? useGlobalConfig() : globalConfig;
|
|
1088
|
-
const provideFn =
|
|
1093
|
+
const provideFn = app?.provide ?? (inSetup ? provide : void 0);
|
|
1089
1094
|
if (!provideFn) {
|
|
1090
1095
|
throw new Error("");
|
|
1091
1096
|
}
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1097
|
+
const cfg = unref(config);
|
|
1098
|
+
const context = computed(() => !oldConfig?.value ? cfg : mergeConfig(cfg, oldConfig.value));
|
|
1099
|
+
if (Object.keys(context.value).filter((key) => context.value[key] !== void 0).length > 0) {
|
|
1100
|
+
provide(CONFIG_PROVIDER_CONTEXT_KEY, context);
|
|
1101
|
+
if (global || !globalConfig.value) {
|
|
1102
|
+
globalConfig.value = context.value;
|
|
1096
1103
|
}
|
|
1097
|
-
return merge(oldConfig.value, cfg);
|
|
1098
|
-
});
|
|
1099
|
-
provide(CONFIG_PROVIDER_CONTEXT_KEY, context);
|
|
1100
|
-
if (global || !globalConfig.value) {
|
|
1101
|
-
globalConfig.value = context.value;
|
|
1102
1104
|
}
|
|
1103
1105
|
return context;
|
|
1104
1106
|
}
|
|
@@ -1133,10 +1135,7 @@ const ConfigProvider = /* @__PURE__ */ defineComponent({
|
|
|
1133
1135
|
slots
|
|
1134
1136
|
}) {
|
|
1135
1137
|
provideGlobalConfig(props);
|
|
1136
|
-
const currentLocale = computed(() =>
|
|
1137
|
-
var _a2;
|
|
1138
|
-
return (_a2 = props.i18n) == null ? void 0 : _a2.currentLanguage;
|
|
1139
|
-
});
|
|
1138
|
+
const currentLocale = computed(() => props.i18n?.currentLanguage);
|
|
1140
1139
|
return () => {
|
|
1141
1140
|
let _slot;
|
|
1142
1141
|
return createVNode(ElConfigProvider, {
|
|
@@ -1152,13 +1151,9 @@ const useComponent = (componentName, components2) => {
|
|
|
1152
1151
|
const componentInfo = computed(
|
|
1153
1152
|
() => unref(components2).resolveComponent(unref(componentName))
|
|
1154
1153
|
);
|
|
1155
|
-
const component = computed(() =>
|
|
1156
|
-
var _a2;
|
|
1157
|
-
return ((_a2 = unref(componentInfo)) == null ? void 0 : _a2.component) ?? null;
|
|
1158
|
-
});
|
|
1154
|
+
const component = computed(() => unref(componentInfo)?.component ?? null);
|
|
1159
1155
|
const componentProps = computed(() => {
|
|
1160
|
-
|
|
1161
|
-
const componentProps2 = ((_a2 = unref(componentInfo)) == null ? void 0 : _a2.defaultProps) ?? null;
|
|
1156
|
+
const componentProps2 = unref(componentInfo)?.defaultProps ?? null;
|
|
1162
1157
|
return componentProps2 ? { ...componentProps2 } : null;
|
|
1163
1158
|
});
|
|
1164
1159
|
return { componentInfo, component, componentProps };
|
|
@@ -1181,10 +1176,7 @@ const useComponentWithDefault = (componentInfo, defaultComponentInfo) => {
|
|
|
1181
1176
|
};
|
|
1182
1177
|
const useRenderInfoComponent = (column, components2) => {
|
|
1183
1178
|
const columnComponentInfo = computed(
|
|
1184
|
-
() =>
|
|
1185
|
-
var _a2;
|
|
1186
|
-
return ((_a2 = unref(column)) == null ? void 0 : _a2.componentInfo) || "";
|
|
1187
|
-
}
|
|
1179
|
+
() => unref(column)?.componentInfo || ""
|
|
1188
1180
|
);
|
|
1189
1181
|
const componentInfo = ref(null);
|
|
1190
1182
|
watch(
|
|
@@ -1202,19 +1194,15 @@ const useRenderInfoComponent = (column, components2) => {
|
|
|
1202
1194
|
},
|
|
1203
1195
|
{ immediate: true }
|
|
1204
1196
|
);
|
|
1205
|
-
const component = computed(() =>
|
|
1206
|
-
var _a2;
|
|
1207
|
-
return ((_a2 = unref(componentInfo)) == null ? void 0 : _a2.component) ?? null;
|
|
1208
|
-
});
|
|
1197
|
+
const component = computed(() => unref(componentInfo)?.component ?? null);
|
|
1209
1198
|
const componentProps = computed(() => {
|
|
1210
|
-
var _a2;
|
|
1211
1199
|
const _componentInfo = unref(componentInfo);
|
|
1212
1200
|
if (!_componentInfo) {
|
|
1213
1201
|
return null;
|
|
1214
1202
|
}
|
|
1215
1203
|
return {
|
|
1216
1204
|
..._componentInfo.defaultProps,
|
|
1217
|
-
...
|
|
1205
|
+
...unref(column)?.componentProps
|
|
1218
1206
|
};
|
|
1219
1207
|
});
|
|
1220
1208
|
return {
|
|
@@ -1270,36 +1258,27 @@ const useI18n = () => {
|
|
|
1270
1258
|
return unref(useGlobalConfig("i18n")) ?? null;
|
|
1271
1259
|
};
|
|
1272
1260
|
const onTabBeforeClose = (callback) => {
|
|
1273
|
-
|
|
1274
|
-
(_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeCloseEvent.once(
|
|
1261
|
+
MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeCloseEvent.once(
|
|
1275
1262
|
callback
|
|
1276
1263
|
);
|
|
1277
1264
|
};
|
|
1278
1265
|
const onTabRefresh = (callback) => {
|
|
1279
|
-
|
|
1280
|
-
(_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeSwitchEvent.on(
|
|
1266
|
+
MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeSwitchEvent.on(
|
|
1281
1267
|
callback
|
|
1282
1268
|
);
|
|
1283
1269
|
};
|
|
1284
1270
|
const onTabBeforeSwitch = (callback) => {
|
|
1285
|
-
|
|
1286
|
-
(_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeCloseEvent.on(
|
|
1271
|
+
MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeCloseEvent.on(
|
|
1287
1272
|
callback
|
|
1288
1273
|
);
|
|
1289
1274
|
};
|
|
1290
1275
|
const useCurrentTab = () => MSAppClient.instance.userSession.tabs.getCurrentTab() ?? null;
|
|
1291
|
-
const useHttpRequest = () =>
|
|
1292
|
-
var _a2;
|
|
1293
|
-
return ((_a2 = MSAppClient.instance) == null ? void 0 : _a2.httpRequest) ?? null;
|
|
1294
|
-
};
|
|
1276
|
+
const useHttpRequest = () => MSAppClient.instance?.httpRequest ?? null;
|
|
1295
1277
|
const useMSAppClient = () => {
|
|
1296
1278
|
const msAppClientContext = inject(MSAPPCLIENT_CONTEXT_KEY);
|
|
1297
|
-
return
|
|
1298
|
-
};
|
|
1299
|
-
const useUserInfo = () => {
|
|
1300
|
-
var _a2, _b2;
|
|
1301
|
-
return ((_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) ?? null;
|
|
1279
|
+
return msAppClientContext?.msAppClient ?? MSAppClient.instance;
|
|
1302
1280
|
};
|
|
1281
|
+
const useUserInfo = () => MSAppClient.instance?.userSession?.userInfo ?? null;
|
|
1303
1282
|
const useSingleView = (options) => {
|
|
1304
1283
|
const isShowDataForm = ref(false);
|
|
1305
1284
|
const handleDataTable = (dataTable) => {
|
|
@@ -1337,9 +1316,8 @@ const useSingleView = (options) => {
|
|
|
1337
1316
|
const handleDataForm = (dataForm) => {
|
|
1338
1317
|
if (dataForm) {
|
|
1339
1318
|
dataForm.submittedEvent.on(() => {
|
|
1340
|
-
var _a2;
|
|
1341
1319
|
isShowDataForm.value = false;
|
|
1342
|
-
|
|
1320
|
+
unref(options.dataTable)?.load();
|
|
1343
1321
|
});
|
|
1344
1322
|
dataForm.cancelEvent.on(() => {
|
|
1345
1323
|
isShowDataForm.value = false;
|
|
@@ -1353,8 +1331,8 @@ const useSingleView = (options) => {
|
|
|
1353
1331
|
isShowDataForm.value = false;
|
|
1354
1332
|
handleDataTable(dataTable);
|
|
1355
1333
|
onCleanup(() => {
|
|
1356
|
-
dataTable
|
|
1357
|
-
dataTable
|
|
1334
|
+
dataTable?.clearSelection();
|
|
1335
|
+
dataTable?.dispose();
|
|
1358
1336
|
});
|
|
1359
1337
|
},
|
|
1360
1338
|
{ immediate: true }
|
|
@@ -1374,7 +1352,7 @@ const useSingleView = (options) => {
|
|
|
1374
1352
|
isShowDataForm.value = false;
|
|
1375
1353
|
handleDataForm(dataForm);
|
|
1376
1354
|
onCleanup(() => {
|
|
1377
|
-
dataForm
|
|
1355
|
+
dataForm?.dispose();
|
|
1378
1356
|
});
|
|
1379
1357
|
},
|
|
1380
1358
|
{ immediate: true }
|
|
@@ -1649,7 +1627,6 @@ const useMenuStore = defineStore(
|
|
|
1649
1627
|
const filesystemMenusRaw = ref([]);
|
|
1650
1628
|
const actived = ref(0);
|
|
1651
1629
|
function convertMenu(menuNodes) {
|
|
1652
|
-
var _a2;
|
|
1653
1630
|
const returnMenus = [];
|
|
1654
1631
|
for (const menuNode of menuNodes) {
|
|
1655
1632
|
const menuItem = {
|
|
@@ -1659,7 +1636,7 @@ const useMenuStore = defineStore(
|
|
|
1659
1636
|
auth: "",
|
|
1660
1637
|
type: menuNode.type
|
|
1661
1638
|
},
|
|
1662
|
-
name:
|
|
1639
|
+
name: menuNode.route?.name ?? menuNode.id,
|
|
1663
1640
|
children: []
|
|
1664
1641
|
};
|
|
1665
1642
|
menuItem.children = convertMenuRecursive(menuNode.children);
|
|
@@ -1668,14 +1645,13 @@ const useMenuStore = defineStore(
|
|
|
1668
1645
|
return returnMenus;
|
|
1669
1646
|
}
|
|
1670
1647
|
function convertMenuRecursive(menuNodes, basePath = "") {
|
|
1671
|
-
var _a2, _b2, _c2;
|
|
1672
1648
|
const returnMenus = [];
|
|
1673
1649
|
for (const menuNode of menuNodes) {
|
|
1674
1650
|
const menuItem = {
|
|
1675
1651
|
path: menuNode.urlType == 1 ? resolveRoutePath(basePath, menuNode.path) : "",
|
|
1676
|
-
name:
|
|
1677
|
-
group: !
|
|
1678
|
-
routes:
|
|
1652
|
+
name: menuNode.route?.name ?? menuNode.id,
|
|
1653
|
+
group: !menuNode.route?.name,
|
|
1654
|
+
routes: menuNode.routes?.map((item) => item.name) ?? [],
|
|
1679
1655
|
meta: {
|
|
1680
1656
|
title: menuNode.title,
|
|
1681
1657
|
icon: menuNode.iconName,
|
|
@@ -1710,10 +1686,7 @@ const useMenuStore = defineStore(
|
|
|
1710
1686
|
function getDeepestPath(menu2, rootPath = "") {
|
|
1711
1687
|
let path2 = "";
|
|
1712
1688
|
if (menu2.children) {
|
|
1713
|
-
const item = menu2.children.find((item2) =>
|
|
1714
|
-
var _a2;
|
|
1715
|
-
return ((_a2 = item2.meta) == null ? void 0 : _a2.menu) !== false;
|
|
1716
|
-
});
|
|
1689
|
+
const item = menu2.children.find((item2) => item2.meta?.menu !== false);
|
|
1717
1690
|
if (item) {
|
|
1718
1691
|
path2 = getDeepestPath(item, resolveRoutePath(rootPath, menu2.path));
|
|
1719
1692
|
} else {
|
|
@@ -1736,8 +1709,7 @@ const useMenuStore = defineStore(
|
|
|
1736
1709
|
function getDefaultOpenedPaths(menus) {
|
|
1737
1710
|
const defaultOpenedPaths2 = [];
|
|
1738
1711
|
menus.forEach((item) => {
|
|
1739
|
-
|
|
1740
|
-
if (((_a2 = item.meta) == null ? void 0 : _a2.defaultOpened) && item.children) {
|
|
1712
|
+
if (item.meta?.defaultOpened && item.children) {
|
|
1741
1713
|
defaultOpenedPaths2.push(item.name);
|
|
1742
1714
|
const childrenDefaultOpenedPaths = getDefaultOpenedPaths(item.children);
|
|
1743
1715
|
if (childrenDefaultOpenedPaths.length > 0) {
|
|
@@ -1756,12 +1728,11 @@ const useMenuStore = defineStore(
|
|
|
1756
1728
|
actived.value = data;
|
|
1757
1729
|
} else {
|
|
1758
1730
|
const getIndex = () => {
|
|
1759
|
-
var _a2;
|
|
1760
1731
|
for (let index2 = 0, len = allMenus.value.length; index2 < len; index2++) {
|
|
1761
1732
|
let children = [allMenus.value[index2]];
|
|
1762
1733
|
for (let i = 0; i < children.length; i++) {
|
|
1763
1734
|
const item = children[i];
|
|
1764
|
-
if (item.name === data ||
|
|
1735
|
+
if (item.name === data || item.routes?.includes(data)) {
|
|
1765
1736
|
return index2;
|
|
1766
1737
|
}
|
|
1767
1738
|
if (Array.isArray(item.children)) {
|
|
@@ -1810,17 +1781,14 @@ const authBeforeEach = async (msAppClient, to, from) => {
|
|
|
1810
1781
|
}
|
|
1811
1782
|
};
|
|
1812
1783
|
class PageManager {
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
__publicField(this, "msAppClientDisposable", null);
|
|
1820
|
-
}
|
|
1784
|
+
normalPages = [];
|
|
1785
|
+
extendsPages = [];
|
|
1786
|
+
msAppClient = null;
|
|
1787
|
+
msAppClientChangeEvent = new Event();
|
|
1788
|
+
afterInitdEvent = new Event();
|
|
1789
|
+
msAppClientDisposable = null;
|
|
1821
1790
|
setMSAppClient(msAppClient) {
|
|
1822
|
-
|
|
1823
|
-
(_a2 = this.msAppClientDisposable) == null ? void 0 : _a2.dispose();
|
|
1791
|
+
this.msAppClientDisposable?.dispose();
|
|
1824
1792
|
this.msAppClientDisposable = new Disposable();
|
|
1825
1793
|
this.msAppClient = msAppClient;
|
|
1826
1794
|
this.msAppClientChangeEvent.emit({ msAppClient });
|
|
@@ -1847,7 +1815,7 @@ class PageManager {
|
|
|
1847
1815
|
this.addNormalPage({
|
|
1848
1816
|
name: "mk-ms-layout",
|
|
1849
1817
|
path: "/",
|
|
1850
|
-
component: () => import("./index-
|
|
1818
|
+
component: () => import("./index-DRMoT6dv.js")
|
|
1851
1819
|
});
|
|
1852
1820
|
this.addNormalPage({
|
|
1853
1821
|
name: "login",
|
|
@@ -1855,7 +1823,7 @@ class PageManager {
|
|
|
1855
1823
|
meta: {
|
|
1856
1824
|
isAuthorization: false
|
|
1857
1825
|
},
|
|
1858
|
-
component: () => import("./index-
|
|
1826
|
+
component: () => import("./index-RIqErp5L.js")
|
|
1859
1827
|
});
|
|
1860
1828
|
this.addNormalPage({
|
|
1861
1829
|
name: "signup",
|
|
@@ -1863,11 +1831,10 @@ class PageManager {
|
|
|
1863
1831
|
meta: {
|
|
1864
1832
|
isAuthorization: false
|
|
1865
1833
|
},
|
|
1866
|
-
component: () => import("./index-
|
|
1834
|
+
component: () => import("./index-D4UQG5qr.js")
|
|
1867
1835
|
});
|
|
1868
1836
|
this.afterInitdEvent.emit();
|
|
1869
1837
|
this.msAppClientChangeEvent.on(({ msAppClient }) => {
|
|
1870
|
-
var _a2, _b2;
|
|
1871
1838
|
if (!msAppClient) {
|
|
1872
1839
|
return;
|
|
1873
1840
|
}
|
|
@@ -1881,14 +1848,14 @@ class PageManager {
|
|
|
1881
1848
|
vueRouter.addRoute(normalPage);
|
|
1882
1849
|
}
|
|
1883
1850
|
}
|
|
1884
|
-
|
|
1851
|
+
this.msAppClientDisposable?.register(
|
|
1885
1852
|
createDisposable(() => {
|
|
1886
1853
|
for (const addedNormalPageName of addedNormalPageNames) {
|
|
1887
1854
|
vueRouter.removeRoute(addedNormalPageName);
|
|
1888
1855
|
}
|
|
1889
1856
|
})
|
|
1890
1857
|
);
|
|
1891
|
-
|
|
1858
|
+
this.msAppClientDisposable?.register(
|
|
1892
1859
|
msAppClient.beforeInitUserSessionEvent.on(({ userSession }) => {
|
|
1893
1860
|
if (!userSession) {
|
|
1894
1861
|
return;
|
|
@@ -1915,7 +1882,7 @@ class PageManager {
|
|
|
1915
1882
|
this.addExtendsPage({
|
|
1916
1883
|
name: "notFound",
|
|
1917
1884
|
path: "/:pathMatch(.*)*",
|
|
1918
|
-
component: () => import("./404-
|
|
1885
|
+
component: () => import("./404-D-X3EKEl.js")
|
|
1919
1886
|
});
|
|
1920
1887
|
}
|
|
1921
1888
|
userSession.register(
|
|
@@ -1932,17 +1899,17 @@ class PageManager {
|
|
|
1932
1899
|
}
|
|
1933
1900
|
}
|
|
1934
1901
|
class InternalMkModule {
|
|
1902
|
+
app;
|
|
1903
|
+
dataTableComponents = new Components();
|
|
1904
|
+
dataFormComponents = new Components();
|
|
1905
|
+
dataFilterComponents = new Components();
|
|
1906
|
+
whereFilterComponents = new Components();
|
|
1907
|
+
dataTableClasses = [];
|
|
1908
|
+
dataFormClasses = [];
|
|
1909
|
+
dataTreeClasses = [];
|
|
1910
|
+
normalPages = [];
|
|
1911
|
+
extendsPages = [];
|
|
1935
1912
|
constructor(app) {
|
|
1936
|
-
__publicField(this, "app");
|
|
1937
|
-
__publicField(this, "dataTableComponents", new Components());
|
|
1938
|
-
__publicField(this, "dataFormComponents", new Components());
|
|
1939
|
-
__publicField(this, "dataFilterComponents", new Components());
|
|
1940
|
-
__publicField(this, "whereFilterComponents", new Components());
|
|
1941
|
-
__publicField(this, "dataTableClasses", []);
|
|
1942
|
-
__publicField(this, "dataFormClasses", []);
|
|
1943
|
-
__publicField(this, "dataTreeClasses", []);
|
|
1944
|
-
__publicField(this, "normalPages", []);
|
|
1945
|
-
__publicField(this, "extendsPages", []);
|
|
1946
1913
|
this.app = app;
|
|
1947
1914
|
}
|
|
1948
1915
|
/**
|
|
@@ -1994,10 +1961,11 @@ class InternalMkModule {
|
|
|
1994
1961
|
this.extendsPages.push(route);
|
|
1995
1962
|
}
|
|
1996
1963
|
}
|
|
1997
|
-
|
|
1964
|
+
class MsMaterialGroupForm extends DataForm$1 {
|
|
1965
|
+
static [DATA_MODEL_NAME] = "mk-material-group";
|
|
1998
1966
|
constructor(options = {}) {
|
|
1999
1967
|
super({
|
|
2000
|
-
name:
|
|
1968
|
+
name: MsMaterialGroupForm[DATA_MODEL_NAME],
|
|
2001
1969
|
moduleName: MODULE_NAME,
|
|
2002
1970
|
...options
|
|
2003
1971
|
});
|
|
@@ -2018,18 +1986,17 @@ const _MsMaterialGroupForm = class _MsMaterialGroupForm extends (_b = DataForm$1
|
|
|
2018
1986
|
const { children, ...submitData } = data;
|
|
2019
1987
|
return submitData;
|
|
2020
1988
|
}
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
1989
|
+
}
|
|
1990
|
+
class MsMaterialGroupTree extends DataTree {
|
|
1991
|
+
static [DATA_MODEL_NAME] = "mk-material-group";
|
|
1992
|
+
currentDataTreeNode;
|
|
2025
1993
|
constructor(options = {}) {
|
|
2026
1994
|
super({
|
|
2027
|
-
name:
|
|
1995
|
+
name: MsMaterialGroupTree[DATA_MODEL_NAME],
|
|
2028
1996
|
moduleName: MODULE_NAME,
|
|
2029
1997
|
props: { label: "desc", parent: "parentGroupId" },
|
|
2030
1998
|
...options
|
|
2031
1999
|
});
|
|
2032
|
-
__publicField(this, "currentDataTreeNode");
|
|
2033
2000
|
this.currentDataTreeNode = null;
|
|
2034
2001
|
}
|
|
2035
2002
|
formatItem(item) {
|
|
@@ -2061,13 +2028,12 @@ const _MsMaterialGroupTree = class _MsMaterialGroupTree extends (_d = DataTree,
|
|
|
2061
2028
|
setCurrentNode(node) {
|
|
2062
2029
|
this.currentDataTreeNode = node;
|
|
2063
2030
|
}
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
const _MsMaterialForm = class _MsMaterialForm extends (_f = DataForm$1, _e = DATA_MODEL_NAME, _f) {
|
|
2031
|
+
}
|
|
2032
|
+
class MsMaterialForm extends DataForm$1 {
|
|
2033
|
+
static [DATA_MODEL_NAME] = "mk-material";
|
|
2068
2034
|
constructor(options = {}) {
|
|
2069
2035
|
super({
|
|
2070
|
-
name:
|
|
2036
|
+
name: MsMaterialForm[DATA_MODEL_NAME],
|
|
2071
2037
|
moduleName: MODULE_NAME,
|
|
2072
2038
|
...options
|
|
2073
2039
|
});
|
|
@@ -2099,17 +2065,16 @@ const _MsMaterialForm = class _MsMaterialForm extends (_f = DataForm$1, _e = DAT
|
|
|
2099
2065
|
path: data.path
|
|
2100
2066
|
};
|
|
2101
2067
|
}
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2068
|
+
}
|
|
2069
|
+
class MsConfigForm extends DataForm$1 {
|
|
2070
|
+
static [DATA_MODEL_NAME] = "mk-sys-config";
|
|
2071
|
+
configComponent;
|
|
2106
2072
|
constructor(options = {}) {
|
|
2107
2073
|
super({
|
|
2108
|
-
name:
|
|
2074
|
+
name: MsConfigForm[DATA_MODEL_NAME],
|
|
2109
2075
|
moduleName: MODULE_NAME,
|
|
2110
2076
|
...options
|
|
2111
2077
|
});
|
|
2112
|
-
__publicField(this, "configComponent");
|
|
2113
2078
|
this.configComponent = options.configComponent ?? new ConfigComponents();
|
|
2114
2079
|
}
|
|
2115
2080
|
async initialize() {
|
|
@@ -2141,8 +2106,7 @@ const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MO
|
|
|
2141
2106
|
rules: [
|
|
2142
2107
|
{
|
|
2143
2108
|
validator: (rule, value, callback) => {
|
|
2144
|
-
|
|
2145
|
-
if (((_a2 = this.data) == null ? void 0 : _a2.type) === "json") {
|
|
2109
|
+
if (this.data?.type === "json") {
|
|
2146
2110
|
try {
|
|
2147
2111
|
JSON.parse(value);
|
|
2148
2112
|
} catch (e) {
|
|
@@ -2165,7 +2129,7 @@ const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MO
|
|
|
2165
2129
|
]);
|
|
2166
2130
|
let disposable = null;
|
|
2167
2131
|
this.dataChangeEvent.on(({ data }) => {
|
|
2168
|
-
disposable
|
|
2132
|
+
disposable?.dispose();
|
|
2169
2133
|
if (!data) {
|
|
2170
2134
|
return null;
|
|
2171
2135
|
}
|
|
@@ -2217,22 +2181,22 @@ const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MO
|
|
|
2217
2181
|
resolveItemType(config) {
|
|
2218
2182
|
return this.resolveType(config.type);
|
|
2219
2183
|
}
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2184
|
+
}
|
|
2185
|
+
class MsConfigTable extends DataTable$1 {
|
|
2186
|
+
static [DATA_MODEL_NAME] = "mk-sys-config";
|
|
2187
|
+
static _instance = null;
|
|
2224
2188
|
static get instance() {
|
|
2225
|
-
if (!
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2189
|
+
if (!MsConfigTable._instance) {
|
|
2190
|
+
MsConfigTable._instance = new MsConfigTable();
|
|
2191
|
+
MsConfigTable._instance.init().then(() => {
|
|
2192
|
+
MsConfigTable._instance.dataFilter.setReady();
|
|
2229
2193
|
});
|
|
2230
2194
|
}
|
|
2231
|
-
return
|
|
2195
|
+
return MsConfigTable._instance;
|
|
2232
2196
|
}
|
|
2233
2197
|
constructor(options = {}) {
|
|
2234
2198
|
super({
|
|
2235
|
-
name:
|
|
2199
|
+
name: MsConfigTable[DATA_MODEL_NAME],
|
|
2236
2200
|
moduleName: MODULE_NAME,
|
|
2237
2201
|
// sortFieldName: "sortNo",
|
|
2238
2202
|
...options
|
|
@@ -2245,10 +2209,7 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
|
|
|
2245
2209
|
new AddButton(),
|
|
2246
2210
|
new TableHeaderItem$1({
|
|
2247
2211
|
componentInfo: "MKBatchOpt",
|
|
2248
|
-
predicate: () =>
|
|
2249
|
-
var _a2, _b2, _c2;
|
|
2250
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
2251
|
-
}
|
|
2212
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
2252
2213
|
})
|
|
2253
2214
|
];
|
|
2254
2215
|
this.dataFilter.setColumns([
|
|
@@ -2277,10 +2238,9 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
|
|
|
2277
2238
|
return { ...item, value };
|
|
2278
2239
|
}
|
|
2279
2240
|
static async loadConfig(key) {
|
|
2280
|
-
var _a2;
|
|
2281
2241
|
const where = new Where();
|
|
2282
2242
|
where.addCondition("key", "=", key);
|
|
2283
|
-
const dataViewRequest =
|
|
2243
|
+
const dataViewRequest = MsConfigTable.instance.dataViewRequest;
|
|
2284
2244
|
const response = await dataViewRequest.allList({
|
|
2285
2245
|
data: { condition: where }
|
|
2286
2246
|
});
|
|
@@ -2288,15 +2248,14 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
|
|
|
2288
2248
|
...response,
|
|
2289
2249
|
data: {
|
|
2290
2250
|
...response.data,
|
|
2291
|
-
data:
|
|
2251
|
+
data: response.data.data?.[0] ?? null
|
|
2292
2252
|
}
|
|
2293
2253
|
};
|
|
2294
2254
|
}
|
|
2295
2255
|
static async getConfigValue(key) {
|
|
2296
|
-
var _a2;
|
|
2297
2256
|
const where = new Where();
|
|
2298
2257
|
where.addCondition("key", "=", key);
|
|
2299
|
-
const dataViewRequest =
|
|
2258
|
+
const dataViewRequest = MsConfigTable.instance.dataViewRequest;
|
|
2300
2259
|
const response = await dataViewRequest.query({
|
|
2301
2260
|
data: { condition: where, pc: 1, pn: 1 }
|
|
2302
2261
|
});
|
|
@@ -2304,13 +2263,13 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
|
|
|
2304
2263
|
throw new Error(response.data.msg);
|
|
2305
2264
|
}
|
|
2306
2265
|
try {
|
|
2307
|
-
return JSON.parse(
|
|
2266
|
+
return JSON.parse(response.data.data[0]?.value);
|
|
2308
2267
|
} catch {
|
|
2309
2268
|
return null;
|
|
2310
2269
|
}
|
|
2311
2270
|
}
|
|
2312
2271
|
static async setConfigValue(key, value) {
|
|
2313
|
-
const dataViewRequest =
|
|
2272
|
+
const dataViewRequest = MsConfigTable.instance.dataViewRequest;
|
|
2314
2273
|
const where = new Where();
|
|
2315
2274
|
where.addCondition("key", "=", key);
|
|
2316
2275
|
const listResponse = await dataViewRequest.query({
|
|
@@ -2325,10 +2284,7 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
|
|
|
2325
2284
|
});
|
|
2326
2285
|
return response.data;
|
|
2327
2286
|
}
|
|
2328
|
-
}
|
|
2329
|
-
__publicField(_MsConfigTable, _i, "mk-sys-config");
|
|
2330
|
-
__publicField(_MsConfigTable, "_instance", null);
|
|
2331
|
-
let MsConfigTable = _MsConfigTable;
|
|
2287
|
+
}
|
|
2332
2288
|
class MsMaterialComponents extends Components {
|
|
2333
2289
|
constructor() {
|
|
2334
2290
|
super();
|
|
@@ -2361,24 +2317,25 @@ function getDefaultSelectMaterialGroup(nodes) {
|
|
|
2361
2317
|
}
|
|
2362
2318
|
return getDefaultSelectMaterialGroup(nodes[0].children) ?? nodes[0];
|
|
2363
2319
|
}
|
|
2364
|
-
|
|
2320
|
+
class MsMaterialTable extends DataTable$1 {
|
|
2321
|
+
static [DATA_MODEL_NAME] = "mk-material";
|
|
2322
|
+
materialTypes = [];
|
|
2323
|
+
allowMaterialTypeValues = [];
|
|
2324
|
+
materialComponents;
|
|
2325
|
+
currentMaterialGroupId = null;
|
|
2326
|
+
currentMaterialType = null;
|
|
2327
|
+
// 素材上传
|
|
2328
|
+
upload;
|
|
2329
|
+
// 素材组
|
|
2330
|
+
materialGroupTree = this.register(new MsMaterialGroupTree());
|
|
2331
|
+
// 素材表单
|
|
2332
|
+
materialForm;
|
|
2365
2333
|
constructor(options = {}) {
|
|
2366
2334
|
super({
|
|
2367
|
-
name:
|
|
2335
|
+
name: MsMaterialTable[DATA_MODEL_NAME],
|
|
2368
2336
|
moduleName: MODULE_NAME,
|
|
2369
2337
|
...options
|
|
2370
2338
|
});
|
|
2371
|
-
__publicField(this, "materialTypes", []);
|
|
2372
|
-
__publicField(this, "allowMaterialTypeValues", []);
|
|
2373
|
-
__publicField(this, "materialComponents");
|
|
2374
|
-
__publicField(this, "currentMaterialGroupId", null);
|
|
2375
|
-
__publicField(this, "currentMaterialType", null);
|
|
2376
|
-
// 素材上传
|
|
2377
|
-
__publicField(this, "upload");
|
|
2378
|
-
// 素材组
|
|
2379
|
-
__publicField(this, "materialGroupTree", this.register(new MsMaterialGroupTree()));
|
|
2380
|
-
// 素材表单
|
|
2381
|
-
__publicField(this, "materialForm");
|
|
2382
2339
|
this.materialComponents = options.materialComponents ?? new MsMaterialComponents();
|
|
2383
2340
|
this.upload = new WebFileUpload({
|
|
2384
2341
|
filters: [
|
|
@@ -2393,9 +2350,9 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
|
|
|
2393
2350
|
]
|
|
2394
2351
|
});
|
|
2395
2352
|
this.materialForm = this.register(new class extends MsMaterialForm {
|
|
2353
|
+
formGroupTree;
|
|
2396
2354
|
constructor(groupTree) {
|
|
2397
2355
|
super();
|
|
2398
|
-
__publicField(this, "formGroupTree");
|
|
2399
2356
|
this.formGroupTree = groupTree;
|
|
2400
2357
|
}
|
|
2401
2358
|
async initialize() {
|
|
@@ -2417,7 +2374,7 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
|
|
|
2417
2374
|
async initialize() {
|
|
2418
2375
|
await super.initialize();
|
|
2419
2376
|
const dvOpt = DvOpt.createInstance({
|
|
2420
|
-
name:
|
|
2377
|
+
name: MsMaterialTable[DATA_MODEL_NAME]
|
|
2421
2378
|
});
|
|
2422
2379
|
this.upload.uploadEvent.on(({ uploadItem }) => {
|
|
2423
2380
|
this.loadingManager.startLoading();
|
|
@@ -2537,8 +2494,7 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
|
|
|
2537
2494
|
this.attachMaterialTableCondition();
|
|
2538
2495
|
}
|
|
2539
2496
|
setCurrentMaterialType(materialType) {
|
|
2540
|
-
|
|
2541
|
-
if ((materialType == null ? void 0 : materialType.value) === ((_a2 = this.currentMaterialType) == null ? void 0 : _a2.value)) {
|
|
2497
|
+
if (materialType?.value === this.currentMaterialType?.value) {
|
|
2542
2498
|
return;
|
|
2543
2499
|
}
|
|
2544
2500
|
this.currentMaterialType = materialType;
|
|
@@ -2576,13 +2532,12 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
|
|
|
2576
2532
|
this.materialForm.dispose();
|
|
2577
2533
|
this.materialGroupTree.dispose();
|
|
2578
2534
|
}
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
const _MsRoleForm = class _MsRoleForm extends (_n = DataForm$1, _m = DATA_MODEL_NAME, _n) {
|
|
2535
|
+
}
|
|
2536
|
+
class MsRoleForm extends DataForm$1 {
|
|
2537
|
+
static [DATA_MODEL_NAME] = "ms-role";
|
|
2583
2538
|
constructor(options = {}) {
|
|
2584
2539
|
super({
|
|
2585
|
-
name:
|
|
2540
|
+
name: MsRoleForm[DATA_MODEL_NAME],
|
|
2586
2541
|
moduleName: MODULE_NAME,
|
|
2587
2542
|
...options
|
|
2588
2543
|
});
|
|
@@ -2613,19 +2568,18 @@ const _MsRoleForm = class _MsRoleForm extends (_n = DataForm$1, _m = DATA_MODEL_
|
|
|
2613
2568
|
memo: item.memo || ""
|
|
2614
2569
|
};
|
|
2615
2570
|
}
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2571
|
+
}
|
|
2572
|
+
class MsRoleTable extends DataTable$1 {
|
|
2573
|
+
static [DATA_MODEL_NAME] = "ms-role";
|
|
2574
|
+
configRolePermissionEvent = this.register(
|
|
2575
|
+
new Event()
|
|
2576
|
+
);
|
|
2620
2577
|
constructor(options = {}) {
|
|
2621
2578
|
super({
|
|
2622
|
-
name:
|
|
2579
|
+
name: MsRoleTable[DATA_MODEL_NAME],
|
|
2623
2580
|
moduleName: MODULE_NAME,
|
|
2624
2581
|
...options
|
|
2625
2582
|
});
|
|
2626
|
-
__publicField(this, "configRolePermissionEvent", this.register(
|
|
2627
|
-
new Event()
|
|
2628
|
-
));
|
|
2629
2583
|
}
|
|
2630
2584
|
async initialize() {
|
|
2631
2585
|
await super.initialize();
|
|
@@ -2634,10 +2588,7 @@ const _MsRoleTable = class _MsRoleTable extends (_p = DataTable$1, _o = DATA_MOD
|
|
|
2634
2588
|
new AddButton(),
|
|
2635
2589
|
new TableHeaderItem$1({
|
|
2636
2590
|
componentInfo: "MKBatchOpt",
|
|
2637
|
-
predicate: () =>
|
|
2638
|
-
var _a2, _b2, _c2;
|
|
2639
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
2640
|
-
}
|
|
2591
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
2641
2592
|
})
|
|
2642
2593
|
];
|
|
2643
2594
|
this.dataFilter.setColumns([
|
|
@@ -2678,13 +2629,12 @@ const _MsRoleTable = class _MsRoleTable extends (_p = DataTable$1, _o = DATA_MOD
|
|
|
2678
2629
|
desc: item.desc || ""
|
|
2679
2630
|
};
|
|
2680
2631
|
}
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
const _MsRolePermissionPointTable = class _MsRolePermissionPointTable extends (_r = DataTable$1, _q = DATA_MODEL_NAME, _r) {
|
|
2632
|
+
}
|
|
2633
|
+
class MsRolePermissionPointTable extends DataTable$1 {
|
|
2634
|
+
static [DATA_MODEL_NAME] = "ms-role-permission-point";
|
|
2685
2635
|
constructor(options = {}) {
|
|
2686
2636
|
super({
|
|
2687
|
-
name:
|
|
2637
|
+
name: MsRolePermissionPointTable[DATA_MODEL_NAME],
|
|
2688
2638
|
moduleName: MODULE_NAME,
|
|
2689
2639
|
...options
|
|
2690
2640
|
});
|
|
@@ -2701,13 +2651,12 @@ const _MsRolePermissionPointTable = class _MsRolePermissionPointTable extends (_
|
|
|
2701
2651
|
]);
|
|
2702
2652
|
this.dataFilter.setReady();
|
|
2703
2653
|
}
|
|
2704
|
-
}
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
const _MsRoleRouteTable = class _MsRoleRouteTable extends (_t = DataTable$1, _s = DATA_MODEL_NAME, _t) {
|
|
2654
|
+
}
|
|
2655
|
+
class MsRoleRouteTable extends DataTable$1 {
|
|
2656
|
+
static [DATA_MODEL_NAME] = "ms-role-route";
|
|
2708
2657
|
constructor(options = {}) {
|
|
2709
2658
|
super({
|
|
2710
|
-
name:
|
|
2659
|
+
name: MsRoleRouteTable[DATA_MODEL_NAME],
|
|
2711
2660
|
moduleName: MODULE_NAME,
|
|
2712
2661
|
...options
|
|
2713
2662
|
});
|
|
@@ -2724,13 +2673,12 @@ const _MsRoleRouteTable = class _MsRoleRouteTable extends (_t = DataTable$1, _s
|
|
|
2724
2673
|
]);
|
|
2725
2674
|
this.dataFilter.setReady();
|
|
2726
2675
|
}
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
const _MsMenuTable = class _MsMenuTable extends (_v = DataTable$1, _u = DATA_MODEL_NAME, _v) {
|
|
2676
|
+
}
|
|
2677
|
+
class MsMenuTable extends DataTable$1 {
|
|
2678
|
+
static [DATA_MODEL_NAME] = "ms-menu";
|
|
2731
2679
|
constructor(options = {}) {
|
|
2732
2680
|
super({
|
|
2733
|
-
name:
|
|
2681
|
+
name: MsMenuTable[DATA_MODEL_NAME],
|
|
2734
2682
|
moduleName: MODULE_NAME,
|
|
2735
2683
|
...options
|
|
2736
2684
|
});
|
|
@@ -2742,10 +2690,7 @@ const _MsMenuTable = class _MsMenuTable extends (_v = DataTable$1, _u = DATA_MOD
|
|
|
2742
2690
|
new AddButton(),
|
|
2743
2691
|
new TableHeaderItem$1({
|
|
2744
2692
|
componentInfo: "MKBatchOpt",
|
|
2745
|
-
predicate: () =>
|
|
2746
|
-
var _a2, _b2, _c2;
|
|
2747
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
2748
|
-
}
|
|
2693
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
2749
2694
|
})
|
|
2750
2695
|
];
|
|
2751
2696
|
this.setColumns([
|
|
@@ -2764,9 +2709,7 @@ const _MsMenuTable = class _MsMenuTable extends (_v = DataTable$1, _u = DATA_MOD
|
|
|
2764
2709
|
routeId: item.routeId
|
|
2765
2710
|
};
|
|
2766
2711
|
}
|
|
2767
|
-
}
|
|
2768
|
-
__publicField(_MsMenuTable, _u, "ms-menu");
|
|
2769
|
-
let MsMenuTable = _MsMenuTable;
|
|
2712
|
+
}
|
|
2770
2713
|
const _hoisted_1$F = { class: "mt-4 text-align-end" };
|
|
2771
2714
|
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
2772
2715
|
...{ name: "RouteNameInput" },
|
|
@@ -2849,99 +2792,96 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2849
2792
|
_: 1
|
|
2850
2793
|
})
|
|
2851
2794
|
]),
|
|
2852
|
-
default: withCtx(() =>
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
filterable: "",
|
|
2860
|
-
placeholder: "选择数据视图"
|
|
2861
|
-
}, {
|
|
2862
|
-
default: withCtx(() => [
|
|
2863
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataModelList), (item) => {
|
|
2864
|
-
return openBlock(), createBlock(_component_el_option, {
|
|
2865
|
-
key: item.value,
|
|
2866
|
-
label: item.label,
|
|
2867
|
-
value: item.value
|
|
2868
|
-
}, null, 8, ["label", "value"]);
|
|
2869
|
-
}), 128))
|
|
2870
|
-
]),
|
|
2871
|
-
_: 1
|
|
2872
|
-
}, 8, ["modelValue"])
|
|
2873
|
-
]),
|
|
2874
|
-
unref(dataModelValue) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
2875
|
-
key: 0,
|
|
2876
|
-
class: "mt-2",
|
|
2877
|
-
modelValue: unref(pageTypeValue),
|
|
2878
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(pageTypeValue) ? pageTypeValue.value = $event : null)
|
|
2795
|
+
default: withCtx(() => [
|
|
2796
|
+
createElementVNode("div", null, [
|
|
2797
|
+
createVNode(_component_el_select, {
|
|
2798
|
+
modelValue: unref(dataModelValue),
|
|
2799
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dataModelValue) ? dataModelValue.value = $event : null),
|
|
2800
|
+
filterable: "",
|
|
2801
|
+
placeholder: "选择数据视图"
|
|
2879
2802
|
}, {
|
|
2880
2803
|
default: withCtx(() => [
|
|
2881
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
2882
|
-
return
|
|
2883
|
-
|
|
2884
|
-
|
|
2804
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataModelList), (item) => {
|
|
2805
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
2806
|
+
key: item.value,
|
|
2807
|
+
label: item.label,
|
|
2808
|
+
value: item.value
|
|
2885
2809
|
}, null, 8, ["label", "value"]);
|
|
2886
|
-
}),
|
|
2810
|
+
}), 128))
|
|
2887
2811
|
]),
|
|
2888
2812
|
_: 1
|
|
2889
|
-
}, 8, ["modelValue"])
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2813
|
+
}, 8, ["modelValue"])
|
|
2814
|
+
]),
|
|
2815
|
+
unref(dataModelValue) ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
2816
|
+
key: 0,
|
|
2817
|
+
class: "mt-2",
|
|
2818
|
+
modelValue: unref(pageTypeValue),
|
|
2819
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(pageTypeValue) ? pageTypeValue.value = $event : null)
|
|
2820
|
+
}, {
|
|
2821
|
+
default: withCtx(() => [
|
|
2822
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(pageDefines, (page, index2) => {
|
|
2823
|
+
return createVNode(_component_el_radio_button, {
|
|
2824
|
+
label: page.desc,
|
|
2825
|
+
value: index2
|
|
2826
|
+
}, null, 8, ["label", "value"]);
|
|
2827
|
+
}), 64))
|
|
2828
|
+
]),
|
|
2829
|
+
_: 1
|
|
2830
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
2831
|
+
unref(dataModelValue) && pageDefines[unref(pageTypeValue)]?.list ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
2832
|
+
key: 1,
|
|
2833
|
+
class: "mt-2",
|
|
2834
|
+
modelValue: unref(listPageTypeValue),
|
|
2835
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(listPageTypeValue) ? listPageTypeValue.value = $event : null)
|
|
2836
|
+
}, {
|
|
2837
|
+
default: withCtx(() => [
|
|
2838
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pageDefines[unref(pageTypeValue)].list, (list, index2) => {
|
|
2839
|
+
return openBlock(), createBlock(_component_el_radio_button, {
|
|
2840
|
+
label: list.desc,
|
|
2841
|
+
value: index2
|
|
2842
|
+
}, null, 8, ["label", "value"]);
|
|
2843
|
+
}), 256))
|
|
2844
|
+
]),
|
|
2845
|
+
_: 1
|
|
2846
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
2847
|
+
unref(dataModelValue) && pageDefines[unref(pageTypeValue)]?.form ? (openBlock(), createBlock(_component_el_radio_group, {
|
|
2848
|
+
key: 2,
|
|
2849
|
+
class: "mt-2",
|
|
2850
|
+
modelValue: unref(formPageTypeValue),
|
|
2851
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(formPageTypeValue) ? formPageTypeValue.value = $event : null)
|
|
2852
|
+
}, {
|
|
2853
|
+
default: withCtx(() => [
|
|
2854
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pageDefines[unref(pageTypeValue)].form, (f, index2) => {
|
|
2855
|
+
return openBlock(), createBlock(_component_el_radio_button, {
|
|
2856
|
+
label: f.desc,
|
|
2857
|
+
value: index2
|
|
2858
|
+
}, null, 8, ["label", "value"]);
|
|
2859
|
+
}), 256))
|
|
2860
|
+
]),
|
|
2861
|
+
_: 1
|
|
2862
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
2863
|
+
createElementVNode("div", _hoisted_1$F, [
|
|
2864
|
+
createVNode(_component_el_button, {
|
|
2865
|
+
size: "small",
|
|
2866
|
+
onClick: _cache[5] || (_cache[5] = ($event) => routeCreatePanelVisible.value = false)
|
|
2895
2867
|
}, {
|
|
2896
2868
|
default: withCtx(() => [
|
|
2897
|
-
(
|
|
2898
|
-
return openBlock(), createBlock(_component_el_radio_button, {
|
|
2899
|
-
label: list.desc,
|
|
2900
|
-
value: index2
|
|
2901
|
-
}, null, 8, ["label", "value"]);
|
|
2902
|
-
}), 256))
|
|
2869
|
+
createTextVNode("取消")
|
|
2903
2870
|
]),
|
|
2904
2871
|
_: 1
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(formPageTypeValue) ? formPageTypeValue.value = $event : null)
|
|
2872
|
+
}),
|
|
2873
|
+
createVNode(_component_el_button, {
|
|
2874
|
+
type: "primary",
|
|
2875
|
+
size: "small",
|
|
2876
|
+
onClick: createHandle
|
|
2911
2877
|
}, {
|
|
2912
2878
|
default: withCtx(() => [
|
|
2913
|
-
(
|
|
2914
|
-
return openBlock(), createBlock(_component_el_radio_button, {
|
|
2915
|
-
label: f.desc,
|
|
2916
|
-
value: index2
|
|
2917
|
-
}, null, 8, ["label", "value"]);
|
|
2918
|
-
}), 256))
|
|
2879
|
+
createTextVNode("生成")
|
|
2919
2880
|
]),
|
|
2920
2881
|
_: 1
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
size: "small",
|
|
2925
|
-
onClick: _cache[5] || (_cache[5] = ($event) => routeCreatePanelVisible.value = false)
|
|
2926
|
-
}, {
|
|
2927
|
-
default: withCtx(() => [
|
|
2928
|
-
createTextVNode("取消")
|
|
2929
|
-
]),
|
|
2930
|
-
_: 1
|
|
2931
|
-
}),
|
|
2932
|
-
createVNode(_component_el_button, {
|
|
2933
|
-
type: "primary",
|
|
2934
|
-
size: "small",
|
|
2935
|
-
onClick: createHandle
|
|
2936
|
-
}, {
|
|
2937
|
-
default: withCtx(() => [
|
|
2938
|
-
createTextVNode("生成")
|
|
2939
|
-
]),
|
|
2940
|
-
_: 1
|
|
2941
|
-
})
|
|
2942
|
-
])
|
|
2943
|
-
];
|
|
2944
|
-
}),
|
|
2882
|
+
})
|
|
2883
|
+
])
|
|
2884
|
+
]),
|
|
2945
2885
|
_: 1
|
|
2946
2886
|
}, 8, ["visible"])
|
|
2947
2887
|
]),
|
|
@@ -2950,9 +2890,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2950
2890
|
};
|
|
2951
2891
|
}
|
|
2952
2892
|
});
|
|
2953
|
-
|
|
2893
|
+
class MsRouteForm extends DataForm$1 {
|
|
2894
|
+
static [DATA_MODEL_NAME] = "ms-route";
|
|
2954
2895
|
constructor(options = {}) {
|
|
2955
|
-
super({ name:
|
|
2896
|
+
super({ name: MsRouteForm[DATA_MODEL_NAME], ...options, moduleName: MODULE_NAME });
|
|
2956
2897
|
}
|
|
2957
2898
|
async initialize() {
|
|
2958
2899
|
await super.initialize();
|
|
@@ -3002,19 +2943,18 @@ const _MsRouteForm = class _MsRouteForm extends (_x = DataForm$1, _w = DATA_MODE
|
|
|
3002
2943
|
memo: item.memo || ""
|
|
3003
2944
|
};
|
|
3004
2945
|
}
|
|
3005
|
-
}
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
const _MsRouteTable = class _MsRouteTable extends (_z = DataTable$1, _y = DATA_MODEL_NAME, _z) {
|
|
2946
|
+
}
|
|
2947
|
+
class MsRouteTable extends DataTable$1 {
|
|
2948
|
+
static [DATA_MODEL_NAME] = "ms-route";
|
|
3009
2949
|
constructor(options = {}) {
|
|
3010
2950
|
super({
|
|
3011
|
-
name:
|
|
2951
|
+
name: MsRouteTable[DATA_MODEL_NAME],
|
|
3012
2952
|
...options,
|
|
3013
2953
|
moduleName: MODULE_NAME
|
|
3014
2954
|
});
|
|
3015
|
-
// 操作列
|
|
3016
|
-
__publicField(this, "actionColumn", new TableActionColumn());
|
|
3017
2955
|
}
|
|
2956
|
+
// 操作列
|
|
2957
|
+
actionColumn = new TableActionColumn();
|
|
3018
2958
|
async initialize() {
|
|
3019
2959
|
await super.initialize();
|
|
3020
2960
|
this.dataFilter.setColumns([new FilterColumn({
|
|
@@ -3079,13 +3019,12 @@ const _MsRouteTable = class _MsRouteTable extends (_z = DataTable$1, _y = DATA_M
|
|
|
3079
3019
|
// <ElButton onClick={()=>props.dataTable.addRecord()}>添加</ElButton>
|
|
3080
3020
|
// </ElCard>;
|
|
3081
3021
|
// }
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
const _MsPermissionPointDefineForm = class _MsPermissionPointDefineForm extends (_B = DataForm$1, _A = DATA_MODEL_NAME, _B) {
|
|
3022
|
+
}
|
|
3023
|
+
class MsPermissionPointDefineForm extends DataForm$1 {
|
|
3024
|
+
static [DATA_MODEL_NAME] = "ms-permission-point-def";
|
|
3086
3025
|
constructor(options = {}) {
|
|
3087
3026
|
super({
|
|
3088
|
-
name:
|
|
3027
|
+
name: MsPermissionPointDefineForm[DATA_MODEL_NAME],
|
|
3089
3028
|
moduleName: MODULE_NAME,
|
|
3090
3029
|
...options
|
|
3091
3030
|
});
|
|
@@ -3114,13 +3053,12 @@ const _MsPermissionPointDefineForm = class _MsPermissionPointDefineForm extends
|
|
|
3114
3053
|
})
|
|
3115
3054
|
]);
|
|
3116
3055
|
}
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
const _MsPermissionPointDefineTable = class _MsPermissionPointDefineTable extends (_D = DataTable$1, _C = DATA_MODEL_NAME, _D) {
|
|
3056
|
+
}
|
|
3057
|
+
class MsPermissionPointDefineTable extends DataTable$1 {
|
|
3058
|
+
static [DATA_MODEL_NAME] = "ms-permission-point-def";
|
|
3121
3059
|
constructor(options = {}) {
|
|
3122
3060
|
super({
|
|
3123
|
-
name:
|
|
3061
|
+
name: MsPermissionPointDefineTable[DATA_MODEL_NAME],
|
|
3124
3062
|
moduleName: MODULE_NAME,
|
|
3125
3063
|
...options
|
|
3126
3064
|
});
|
|
@@ -3139,9 +3077,7 @@ const _MsPermissionPointDefineTable = class _MsPermissionPointDefineTable extend
|
|
|
3139
3077
|
]);
|
|
3140
3078
|
this.dataFilter.setReady();
|
|
3141
3079
|
}
|
|
3142
|
-
}
|
|
3143
|
-
__publicField(_MsPermissionPointDefineTable, _C, "ms-permission-point-def");
|
|
3144
|
-
let MsPermissionPointDefineTable = _MsPermissionPointDefineTable;
|
|
3080
|
+
}
|
|
3145
3081
|
const abstractSelectProps = buildProps({
|
|
3146
3082
|
modelValue: {
|
|
3147
3083
|
type: null
|
|
@@ -3199,9 +3135,8 @@ const AbstractSelect = defineComponent({
|
|
|
3199
3135
|
}
|
|
3200
3136
|
});
|
|
3201
3137
|
const selections = computed(() => {
|
|
3202
|
-
var _a2, _b2;
|
|
3203
3138
|
if (props.objectValue) {
|
|
3204
|
-
return props.multiple ?
|
|
3139
|
+
return props.multiple ? modelValue.value?.map((item) => item[primaryKey.value]) ?? [] : modelValue.value?.[primaryKey.value] ?? "";
|
|
3205
3140
|
}
|
|
3206
3141
|
return modelValue.value;
|
|
3207
3142
|
});
|
|
@@ -3209,10 +3144,7 @@ const AbstractSelect = defineComponent({
|
|
|
3209
3144
|
const selectRecords = ref([]);
|
|
3210
3145
|
const dataLoading = ref(true);
|
|
3211
3146
|
const primaryKey = computed(
|
|
3212
|
-
() =>
|
|
3213
|
-
var _a2;
|
|
3214
|
-
return props.primaryFieldName ?? ((_a2 = props.dataTable) == null ? void 0 : _a2.primaryKey) ?? "value";
|
|
3215
|
-
}
|
|
3147
|
+
() => props.primaryFieldName ?? props.dataTable?.primaryKey ?? "value"
|
|
3216
3148
|
);
|
|
3217
3149
|
const formatOptions = computed(() => {
|
|
3218
3150
|
let value;
|
|
@@ -3257,7 +3189,7 @@ const AbstractSelect = defineComponent({
|
|
|
3257
3189
|
async (modelValue2) => {
|
|
3258
3190
|
let values;
|
|
3259
3191
|
if (props.objectValue) {
|
|
3260
|
-
values = props.multiple ?
|
|
3192
|
+
values = props.multiple ? modelValue2?.map((item) => item[unref(primaryKey)]) ?? [] : modelValue2?.[unref(primaryKey)] ?? null;
|
|
3261
3193
|
} else {
|
|
3262
3194
|
values = modelValue2;
|
|
3263
3195
|
}
|
|
@@ -3333,8 +3265,7 @@ const AbstractSelect = defineComponent({
|
|
|
3333
3265
|
};
|
|
3334
3266
|
},
|
|
3335
3267
|
render() {
|
|
3336
|
-
|
|
3337
|
-
return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2, {
|
|
3268
|
+
return this.$slots.default?.({
|
|
3338
3269
|
options: this.options,
|
|
3339
3270
|
selections: this.selections,
|
|
3340
3271
|
selectRecords: this.selectRecords,
|
|
@@ -3537,15 +3468,14 @@ const DataTableSelect = /* @__PURE__ */ defineComponent({
|
|
|
3537
3468
|
immediate: true
|
|
3538
3469
|
});
|
|
3539
3470
|
const handleMousedown = async () => {
|
|
3540
|
-
var _a2, _b2;
|
|
3541
3471
|
if (props.disabled) {
|
|
3542
3472
|
return;
|
|
3543
3473
|
}
|
|
3544
|
-
const selections =
|
|
3474
|
+
const selections = unref(abstractSelectInstance)?.selections;
|
|
3545
3475
|
dataTable.value.setSelection(props.multiple ? selections ?? [] : selections ? [selections] : []);
|
|
3546
3476
|
const result = await Dialoger.dataTableSelectDialog(unref(dataTable));
|
|
3547
3477
|
if (result.isConfirm) {
|
|
3548
|
-
|
|
3478
|
+
unref(abstractSelectInstance)?.setSelections(props.multiple ? result.selections : result.selections[0]);
|
|
3549
3479
|
}
|
|
3550
3480
|
};
|
|
3551
3481
|
return () => {
|
|
@@ -3628,10 +3558,7 @@ const DataSelect = /* @__PURE__ */ defineComponent({
|
|
|
3628
3558
|
setup(props, {
|
|
3629
3559
|
emit
|
|
3630
3560
|
}) {
|
|
3631
|
-
const loading = computed(() =>
|
|
3632
|
-
var _a2;
|
|
3633
|
-
return ((_a2 = props.dataTable) == null ? void 0 : _a2.loading) ?? false;
|
|
3634
|
-
});
|
|
3561
|
+
const loading = computed(() => props.dataTable?.loading ?? false);
|
|
3635
3562
|
const modelValue = computed({
|
|
3636
3563
|
get: () => unref(props.modelValue),
|
|
3637
3564
|
set: (v) => {
|
|
@@ -3776,7 +3703,7 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
3776
3703
|
default: MKCodeEditor
|
|
3777
3704
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3778
3705
|
const MKJsonEditor = withInstall(
|
|
3779
|
-
defineAsyncComponent(() => import("./Editor-
|
|
3706
|
+
defineAsyncComponent(() => import("./Editor-CPeJtlen.js"))
|
|
3780
3707
|
);
|
|
3781
3708
|
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3782
3709
|
__proto__: null,
|
|
@@ -3917,8 +3844,7 @@ const FormIconSelect = /* @__PURE__ */ defineComponent({
|
|
|
3917
3844
|
icons.value = Array.from(new Set(iconList));
|
|
3918
3845
|
});
|
|
3919
3846
|
watch(modelValue, () => {
|
|
3920
|
-
|
|
3921
|
-
(_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change");
|
|
3847
|
+
elFormItem?.validate?.("change");
|
|
3922
3848
|
}, {
|
|
3923
3849
|
flush: "post"
|
|
3924
3850
|
});
|
|
@@ -4017,8 +3943,8 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
|
|
|
4017
3943
|
const cropperRef = ref(null);
|
|
4018
3944
|
const outputType = computed(() => {
|
|
4019
3945
|
const base64Match = props.src.match(BASE64_PREFIX);
|
|
4020
|
-
if (base64Match
|
|
4021
|
-
return base64Match
|
|
3946
|
+
if (base64Match?.[1]) {
|
|
3947
|
+
return base64Match?.[1];
|
|
4022
3948
|
}
|
|
4023
3949
|
const url = new URL(props.src, location.origin).toString();
|
|
4024
3950
|
const index2 = url.lastIndexOf(".");
|
|
@@ -4048,9 +3974,8 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
|
|
|
4048
3974
|
const maxWidth = ref(props.maxWidth);
|
|
4049
3975
|
const maxHeight = ref(props.maxHeight);
|
|
4050
3976
|
const enlarge = computed(() => {
|
|
4051
|
-
|
|
4052
|
-
const
|
|
4053
|
-
const height = ((_b2 = unref(cropperRef)) == null ? void 0 : _b2.cropH) ?? 1;
|
|
3977
|
+
const width = unref(cropperRef)?.cropW ?? 1;
|
|
3978
|
+
const height = unref(cropperRef)?.cropH ?? 1;
|
|
4054
3979
|
const ratio = unref(maxWidth) / unref(maxHeight);
|
|
4055
3980
|
const cropRatio = width / height;
|
|
4056
3981
|
return cropRatio > ratio ? unref(maxWidth) / width : unref(maxHeight) / height;
|
|
@@ -4061,7 +3986,7 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
|
|
|
4061
3986
|
const isFixed = computed(() => unref(currentRatio) !== FREE_RATIO);
|
|
4062
3987
|
const fixedNumber = computed(() => {
|
|
4063
3988
|
const option = unref(ratioOptions).find((option2) => option2.value === unref(currentRatio));
|
|
4064
|
-
return [
|
|
3989
|
+
return [option?.width ?? 1, option?.height ?? 1];
|
|
4065
3990
|
});
|
|
4066
3991
|
watch(computed(() => props.src), (src) => {
|
|
4067
3992
|
const image = new Image();
|
|
@@ -4165,40 +4090,37 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
|
|
|
4165
4090
|
}, [createVNode(ElScrollbar, {
|
|
4166
4091
|
"height": "100%"
|
|
4167
4092
|
}, {
|
|
4168
|
-
default: () => {
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4093
|
+
default: () => [createVNode(ElForm, {
|
|
4094
|
+
"label-position": "top"
|
|
4095
|
+
}, {
|
|
4096
|
+
default: () => [createVNode(ElFormItem, {
|
|
4097
|
+
"label": "比例"
|
|
4172
4098
|
}, {
|
|
4173
|
-
default: () => [createVNode(
|
|
4174
|
-
"
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
"onUpdate:modelValue": setCurrentRatio
|
|
4180
|
-
}, _isSlot$7(ratioOptionsVNodes) ? ratioOptionsVNodes : {
|
|
4181
|
-
default: () => [ratioOptionsVNodes]
|
|
4182
|
-
})]
|
|
4183
|
-
}), createVNode(ElFormItem, {
|
|
4184
|
-
"label": "最大输出宽度"
|
|
4185
|
-
}, {
|
|
4186
|
-
default: () => [createVNode(ElInputNumber, {
|
|
4187
|
-
"placeholder": "宽度",
|
|
4188
|
-
"modelValue": maxWidth,
|
|
4189
|
-
"onUpdate:modelValue": (v) => this.maxWidth = v
|
|
4190
|
-
}, null)]
|
|
4191
|
-
}), createVNode(ElFormItem, {
|
|
4192
|
-
"label": "最大输出高度"
|
|
4193
|
-
}, {
|
|
4194
|
-
default: () => [createVNode(ElInputNumber, {
|
|
4195
|
-
"placeholder": "高度",
|
|
4196
|
-
"modelValue": maxHeight,
|
|
4197
|
-
"onUpdate:modelValue": (v) => this.maxHeight = v
|
|
4198
|
-
}, null)]
|
|
4099
|
+
default: () => [createVNode(ElSelect, {
|
|
4100
|
+
"placeholder": "选择比例",
|
|
4101
|
+
"modelValue": currentRatio,
|
|
4102
|
+
"onUpdate:modelValue": setCurrentRatio
|
|
4103
|
+
}, _isSlot$7(ratioOptionsVNodes) ? ratioOptionsVNodes : {
|
|
4104
|
+
default: () => [ratioOptionsVNodes]
|
|
4199
4105
|
})]
|
|
4200
|
-
}), (
|
|
4201
|
-
|
|
4106
|
+
}), createVNode(ElFormItem, {
|
|
4107
|
+
"label": "最大输出宽度"
|
|
4108
|
+
}, {
|
|
4109
|
+
default: () => [createVNode(ElInputNumber, {
|
|
4110
|
+
"placeholder": "宽度",
|
|
4111
|
+
"modelValue": maxWidth,
|
|
4112
|
+
"onUpdate:modelValue": (v) => this.maxWidth = v
|
|
4113
|
+
}, null)]
|
|
4114
|
+
}), createVNode(ElFormItem, {
|
|
4115
|
+
"label": "最大输出高度"
|
|
4116
|
+
}, {
|
|
4117
|
+
default: () => [createVNode(ElInputNumber, {
|
|
4118
|
+
"placeholder": "高度",
|
|
4119
|
+
"modelValue": maxHeight,
|
|
4120
|
+
"onUpdate:modelValue": (v) => this.maxHeight = v
|
|
4121
|
+
}, null)]
|
|
4122
|
+
})]
|
|
4123
|
+
}), $slots.tools?.()]
|
|
4202
4124
|
})])]);
|
|
4203
4125
|
}
|
|
4204
4126
|
});
|
|
@@ -4260,10 +4182,10 @@ async function ImageCropper(options) {
|
|
|
4260
4182
|
}
|
|
4261
4183
|
const MKImageCropper = ImageCropper;
|
|
4262
4184
|
let VisualPageEditor$1 = class VisualPageEditor {
|
|
4185
|
+
_version;
|
|
4186
|
+
_content;
|
|
4187
|
+
_modules;
|
|
4263
4188
|
constructor() {
|
|
4264
|
-
__publicField(this, "_version");
|
|
4265
|
-
__publicField(this, "_content");
|
|
4266
|
-
__publicField(this, "_modules");
|
|
4267
4189
|
this._version = "1.0.0";
|
|
4268
4190
|
this._content = null;
|
|
4269
4191
|
this._modules = [];
|
|
@@ -4331,16 +4253,14 @@ let VisualPageEditor$1 = class VisualPageEditor {
|
|
|
4331
4253
|
* @returns
|
|
4332
4254
|
*/
|
|
4333
4255
|
size() {
|
|
4334
|
-
|
|
4335
|
-
return (_a2 = this._content) == null ? void 0 : _a2.contents.length;
|
|
4256
|
+
return this._content?.contents.length;
|
|
4336
4257
|
}
|
|
4337
4258
|
/**
|
|
4338
4259
|
* 删除
|
|
4339
4260
|
* @param index
|
|
4340
4261
|
*/
|
|
4341
4262
|
remove(index2) {
|
|
4342
|
-
|
|
4343
|
-
(_a2 = this._content) == null ? void 0 : _a2.contents.splice(index2, 1);
|
|
4263
|
+
this._content?.contents.splice(index2, 1);
|
|
4344
4264
|
}
|
|
4345
4265
|
/**
|
|
4346
4266
|
* 交换
|
|
@@ -4348,9 +4268,8 @@ let VisualPageEditor$1 = class VisualPageEditor {
|
|
|
4348
4268
|
* @param exchangeIndex
|
|
4349
4269
|
*/
|
|
4350
4270
|
exchange(index2, exchangeIndex) {
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
(_b2 = this._content) == null ? void 0 : _b2.contents.splice(exchangeIndex, 0, item[0]);
|
|
4271
|
+
const item = this._content?.contents.splice(index2, 1);
|
|
4272
|
+
this._content?.contents.splice(exchangeIndex, 0, item[0]);
|
|
4354
4273
|
}
|
|
4355
4274
|
/**
|
|
4356
4275
|
* 设置内容
|
|
@@ -4364,16 +4283,14 @@ let VisualPageEditor$1 = class VisualPageEditor {
|
|
|
4364
4283
|
* @returns
|
|
4365
4284
|
*/
|
|
4366
4285
|
get(index2) {
|
|
4367
|
-
|
|
4368
|
-
return (_a2 = this._content) == null ? void 0 : _a2.contents[index2];
|
|
4286
|
+
return this._content?.contents[index2];
|
|
4369
4287
|
}
|
|
4370
4288
|
/**
|
|
4371
4289
|
* 获取内容
|
|
4372
4290
|
* @returns
|
|
4373
4291
|
*/
|
|
4374
4292
|
edit(index2, data) {
|
|
4375
|
-
|
|
4376
|
-
if ((_a2 = this._content) == null ? void 0 : _a2.contents[index2]) {
|
|
4293
|
+
if (this._content?.contents[index2]) {
|
|
4377
4294
|
this._content.contents[index2].componentProps = data;
|
|
4378
4295
|
console.log(this._content);
|
|
4379
4296
|
}
|
|
@@ -4408,8 +4325,7 @@ const DynamicFormPanel = /* @__PURE__ */ defineComponent({
|
|
|
4408
4325
|
}) => {
|
|
4409
4326
|
const dataRef = ref(props.data);
|
|
4410
4327
|
return () => {
|
|
4411
|
-
|
|
4412
|
-
const formItems = (_a2 = props.options) == null ? void 0 : _a2.filter((item) => {
|
|
4328
|
+
const formItems = props.options?.filter((item) => {
|
|
4413
4329
|
if (item.condition) {
|
|
4414
4330
|
return item.condition(dataRef.value);
|
|
4415
4331
|
}
|
|
@@ -4655,11 +4571,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4655
4571
|
PageEditor2.edit(index2, result);
|
|
4656
4572
|
};
|
|
4657
4573
|
onMounted(() => {
|
|
4658
|
-
|
|
4659
|
-
(_a2 = editableRef.value) == null ? void 0 : _a2.parentElement.addEventListener("scroll", updateToolsPos, false);
|
|
4574
|
+
editableRef.value?.parentElement.addEventListener("scroll", updateToolsPos, false);
|
|
4660
4575
|
onBeforeUnmount(() => {
|
|
4661
|
-
|
|
4662
|
-
(_a3 = editableRef.value) == null ? void 0 : _a3.parentElement.removeEventListener("scroll", updateToolsPos);
|
|
4576
|
+
editableRef.value?.parentElement.removeEventListener("scroll", updateToolsPos);
|
|
4663
4577
|
});
|
|
4664
4578
|
PageEditor2.setContent({
|
|
4665
4579
|
version: "1.0.0",
|
|
@@ -4859,7 +4773,7 @@ PageEditor.registerBaseModule("base-image", "图片", (data) => {
|
|
|
4859
4773
|
{ name: "src", title: "图片路径 :", component: "MKUploadImage", props: { cutSize: "818*597" }, defaultValue: "" }
|
|
4860
4774
|
]);
|
|
4861
4775
|
const MKVisualPageEditor = withInstall(VisualPageEditor2);
|
|
4862
|
-
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) {
|
|
4776
|
+
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) {
|
|
4863
4777
|
var h2 = (h2 = document.getElementsByTagName("script"))[h2.length - 1], l = h2.getAttribute("data-injectcss"), h2 = h2.getAttribute("data-disable-injectsvg");
|
|
4864
4778
|
if (!h2) {
|
|
4865
4779
|
var a, o, i, c, e, v = function(h3, l2) {
|
|
@@ -4893,11 +4807,11 @@ window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" vie
|
|
|
4893
4807
|
}
|
|
4894
4808
|
d();
|
|
4895
4809
|
}
|
|
4896
|
-
}(window);
|
|
4810
|
+
})(window);
|
|
4897
4811
|
function useEffect(cb, options) {
|
|
4898
4812
|
watchEffect((onInvalidate) => {
|
|
4899
4813
|
const unregister = cb();
|
|
4900
|
-
onInvalidate(() => unregister
|
|
4814
|
+
onInvalidate(() => unregister?.());
|
|
4901
4815
|
}, {
|
|
4902
4816
|
flush: "post",
|
|
4903
4817
|
...options
|
|
@@ -4909,7 +4823,7 @@ function useMounted(cb) {
|
|
|
4909
4823
|
unregister = cb();
|
|
4910
4824
|
});
|
|
4911
4825
|
onUnmounted(() => {
|
|
4912
|
-
unregister
|
|
4826
|
+
unregister?.();
|
|
4913
4827
|
});
|
|
4914
4828
|
}
|
|
4915
4829
|
function useCharacterLimit(editor, maxCharacters, optional = Object.freeze({})) {
|
|
@@ -5098,7 +5012,7 @@ function registerClickAndPointerListeners(register, unregister) {
|
|
|
5098
5012
|
}
|
|
5099
5013
|
return () => {
|
|
5100
5014
|
if (--handleClickAndPointerDownListenersCount === 0) {
|
|
5101
|
-
handleClickAndPointerDownListenersUnregister
|
|
5015
|
+
handleClickAndPointerDownListenersUnregister?.();
|
|
5102
5016
|
handleClickAndPointerDownListenersUnregister = void 0;
|
|
5103
5017
|
}
|
|
5104
5018
|
};
|
|
@@ -5148,20 +5062,8 @@ function useLexicalIsTextContentEmpty(editor, trim) {
|
|
|
5148
5062
|
return readonly(isEmpty2);
|
|
5149
5063
|
}
|
|
5150
5064
|
class HtmlElementNode extends ElementNode {
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
* @param tagName
|
|
5154
|
-
* @param className
|
|
5155
|
-
* @param style
|
|
5156
|
-
* @param key
|
|
5157
|
-
*/
|
|
5158
|
-
constructor(tagName, className, style, key) {
|
|
5159
|
-
super(key);
|
|
5160
|
-
__publicField(this, "__tagName");
|
|
5161
|
-
__publicField(this, "__class");
|
|
5162
|
-
this.__tagName = tagName, this.__class = className;
|
|
5163
|
-
this.__style = style || "";
|
|
5164
|
-
}
|
|
5065
|
+
__tagName;
|
|
5066
|
+
__class;
|
|
5165
5067
|
static getType() {
|
|
5166
5068
|
return "html-element";
|
|
5167
5069
|
}
|
|
@@ -5179,6 +5081,18 @@ class HtmlElementNode extends ElementNode {
|
|
|
5179
5081
|
header: $covertHtmlElementDOM
|
|
5180
5082
|
};
|
|
5181
5083
|
}
|
|
5084
|
+
/**
|
|
5085
|
+
*
|
|
5086
|
+
* @param tagName
|
|
5087
|
+
* @param className
|
|
5088
|
+
* @param style
|
|
5089
|
+
* @param key
|
|
5090
|
+
*/
|
|
5091
|
+
constructor(tagName, className, style, key) {
|
|
5092
|
+
super(key);
|
|
5093
|
+
this.__tagName = tagName, this.__class = className;
|
|
5094
|
+
this.__style = style || "";
|
|
5095
|
+
}
|
|
5182
5096
|
/**
|
|
5183
5097
|
* 名称
|
|
5184
5098
|
* @returns
|
|
@@ -5191,8 +5105,7 @@ class HtmlElementNode extends ElementNode {
|
|
|
5191
5105
|
* @returns
|
|
5192
5106
|
*/
|
|
5193
5107
|
getDesc() {
|
|
5194
|
-
|
|
5195
|
-
return (_a2 = this.__class) == null ? void 0 : _a2.split(/[\s]/g).join(".");
|
|
5108
|
+
return this.__class?.split(/[\s]/g).join(".");
|
|
5196
5109
|
}
|
|
5197
5110
|
/**
|
|
5198
5111
|
* 添加样式
|
|
@@ -5285,21 +5198,9 @@ const $covertHtmlElementDOM = (domNode) => {
|
|
|
5285
5198
|
};
|
|
5286
5199
|
};
|
|
5287
5200
|
class HtmlElementDecoratorNode extends DecoratorNode {
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
* @param className
|
|
5292
|
-
* @param style
|
|
5293
|
-
* @param key
|
|
5294
|
-
*/
|
|
5295
|
-
constructor(tagName, className, style, key) {
|
|
5296
|
-
super(key);
|
|
5297
|
-
__publicField(this, "__tagName");
|
|
5298
|
-
__publicField(this, "__class");
|
|
5299
|
-
__publicField(this, "__style");
|
|
5300
|
-
this.__tagName = tagName, this.__class = className;
|
|
5301
|
-
this.__style = style || "";
|
|
5302
|
-
}
|
|
5201
|
+
__tagName;
|
|
5202
|
+
__class;
|
|
5203
|
+
__style;
|
|
5303
5204
|
static getType() {
|
|
5304
5205
|
return "html-decorator-element";
|
|
5305
5206
|
}
|
|
@@ -5315,6 +5216,18 @@ class HtmlElementDecoratorNode extends DecoratorNode {
|
|
|
5315
5216
|
section: $covertHtmlElementDecoratorNode
|
|
5316
5217
|
};
|
|
5317
5218
|
}
|
|
5219
|
+
/**
|
|
5220
|
+
*
|
|
5221
|
+
* @param tagName
|
|
5222
|
+
* @param className
|
|
5223
|
+
* @param style
|
|
5224
|
+
* @param key
|
|
5225
|
+
*/
|
|
5226
|
+
constructor(tagName, className, style, key) {
|
|
5227
|
+
super(key);
|
|
5228
|
+
this.__tagName = tagName, this.__class = className;
|
|
5229
|
+
this.__style = style || "";
|
|
5230
|
+
}
|
|
5318
5231
|
/**
|
|
5319
5232
|
* 名称
|
|
5320
5233
|
* @returns
|
|
@@ -5327,8 +5240,7 @@ class HtmlElementDecoratorNode extends DecoratorNode {
|
|
|
5327
5240
|
* @returns
|
|
5328
5241
|
*/
|
|
5329
5242
|
getDesc() {
|
|
5330
|
-
|
|
5331
|
-
return (_a2 = this.__class) == null ? void 0 : _a2.split(/[\s]/g).join(".");
|
|
5243
|
+
return this.__class?.split(/[\s]/g).join(".");
|
|
5332
5244
|
}
|
|
5333
5245
|
/**
|
|
5334
5246
|
* 导出JSON
|
|
@@ -5451,21 +5363,8 @@ const $covertHtmlElementDecoratorNode = (domNode) => {
|
|
|
5451
5363
|
const INSERT_MODULE_COMMAND = createCommand("INSERT_MODULE_COMMAND");
|
|
5452
5364
|
const AttrMarkName = "module-name";
|
|
5453
5365
|
class ModuleDecoratorNode extends HtmlElementDecoratorNode {
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
* @param name
|
|
5457
|
-
* @param data
|
|
5458
|
-
* @param className
|
|
5459
|
-
* @param style
|
|
5460
|
-
* @param key
|
|
5461
|
-
*/
|
|
5462
|
-
constructor(name, html, className, style, key) {
|
|
5463
|
-
super("div", className, style, key);
|
|
5464
|
-
__publicField(this, "__moduleName");
|
|
5465
|
-
__publicField(this, "__moduleHtml");
|
|
5466
|
-
this.__moduleName = name;
|
|
5467
|
-
this.__moduleHtml = html;
|
|
5468
|
-
}
|
|
5366
|
+
__moduleName;
|
|
5367
|
+
__moduleHtml;
|
|
5469
5368
|
static getType() {
|
|
5470
5369
|
return "module";
|
|
5471
5370
|
}
|
|
@@ -5483,6 +5382,19 @@ class ModuleDecoratorNode extends HtmlElementDecoratorNode {
|
|
|
5483
5382
|
header: $covertModuleDecoratorNode
|
|
5484
5383
|
};
|
|
5485
5384
|
}
|
|
5385
|
+
/**
|
|
5386
|
+
*
|
|
5387
|
+
* @param name
|
|
5388
|
+
* @param data
|
|
5389
|
+
* @param className
|
|
5390
|
+
* @param style
|
|
5391
|
+
* @param key
|
|
5392
|
+
*/
|
|
5393
|
+
constructor(name, html, className, style, key) {
|
|
5394
|
+
super("div", className, style, key);
|
|
5395
|
+
this.__moduleName = name;
|
|
5396
|
+
this.__moduleHtml = html;
|
|
5397
|
+
}
|
|
5486
5398
|
/**
|
|
5487
5399
|
* 导出JSON
|
|
5488
5400
|
* @returns
|
|
@@ -5701,13 +5613,8 @@ function $isModuleDecoratorWarpNode(node) {
|
|
|
5701
5613
|
const INSERT_IMAGE_COMMAND = createCommand("INSERT_IMAGE_COMMAND");
|
|
5702
5614
|
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==";
|
|
5703
5615
|
class ImageNode extends HtmlElementDecoratorNode {
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
__publicField(this, "__src");
|
|
5707
|
-
__publicField(this, "__alt");
|
|
5708
|
-
this.__src = src;
|
|
5709
|
-
this.__alt = alt;
|
|
5710
|
-
}
|
|
5616
|
+
__src;
|
|
5617
|
+
__alt;
|
|
5711
5618
|
static getType() {
|
|
5712
5619
|
return "image";
|
|
5713
5620
|
}
|
|
@@ -5733,6 +5640,11 @@ class ImageNode extends HtmlElementDecoratorNode {
|
|
|
5733
5640
|
}
|
|
5734
5641
|
};
|
|
5735
5642
|
}
|
|
5643
|
+
constructor(src, alt, className, style, key) {
|
|
5644
|
+
super("img", className, style, key);
|
|
5645
|
+
this.__src = src;
|
|
5646
|
+
this.__alt = alt;
|
|
5647
|
+
}
|
|
5736
5648
|
/**
|
|
5737
5649
|
* 隔离渲染函数
|
|
5738
5650
|
* @param editor
|
|
@@ -6305,7 +6217,7 @@ const DataFormItem = /* @__PURE__ */ defineComponent({
|
|
|
6305
6217
|
setup(props) {
|
|
6306
6218
|
const slots = useSlots();
|
|
6307
6219
|
const dataFormContext = inject(DATA_FORM_CONTEXT_KEY);
|
|
6308
|
-
const dataForm = computed(() =>
|
|
6220
|
+
const dataForm = computed(() => dataFormContext?.dataForm ?? null);
|
|
6309
6221
|
let _formColumn = null;
|
|
6310
6222
|
const existFormColumn = ref(unref(dataForm).getColumn(props.name));
|
|
6311
6223
|
const formColumn = computed(() => {
|
|
@@ -6341,10 +6253,7 @@ const DataFormItem = /* @__PURE__ */ defineComponent({
|
|
|
6341
6253
|
} = useFormColumnComponent(formColumn, dataForm);
|
|
6342
6254
|
const disabled = useFormDisabled(computed(() => props.disabled === null ? unref(formColumn).disabled : props.disabled));
|
|
6343
6255
|
const value = computed({
|
|
6344
|
-
get: () =>
|
|
6345
|
-
var _a2;
|
|
6346
|
-
return (_a2 = unref(formColumn)) == null ? void 0 : _a2.getValue();
|
|
6347
|
-
},
|
|
6256
|
+
get: () => unref(formColumn)?.getValue(),
|
|
6348
6257
|
set: (v) => {
|
|
6349
6258
|
unref(formColumn).setValue(v);
|
|
6350
6259
|
}
|
|
@@ -6360,14 +6269,13 @@ const DataFormItem = /* @__PURE__ */ defineComponent({
|
|
|
6360
6269
|
column: formColumn
|
|
6361
6270
|
}));
|
|
6362
6271
|
return () => {
|
|
6363
|
-
var _a2;
|
|
6364
6272
|
let _formColumn2 = unref(formColumn);
|
|
6365
6273
|
let _component = unref(component);
|
|
6366
|
-
let children =
|
|
6274
|
+
let children = slots.default?.({
|
|
6367
6275
|
data: unref(dataForm).data,
|
|
6368
6276
|
column: _formColumn2,
|
|
6369
6277
|
dataForm: unref(dataForm)
|
|
6370
|
-
})
|
|
6278
|
+
}) || null;
|
|
6371
6279
|
if (!children && _component) {
|
|
6372
6280
|
const FormColumnComponent = toRaw(_component);
|
|
6373
6281
|
children = createVNode(FormColumnComponent, mergeProps(unref(componentProps), {
|
|
@@ -6407,7 +6315,6 @@ const Form = /* @__PURE__ */ defineComponent({
|
|
|
6407
6315
|
const data = computed(() => unref(dataForm).data);
|
|
6408
6316
|
const columns = computed(() => unref(dataForm).getColumns().filter((column) => column.visible));
|
|
6409
6317
|
const rules = computed(() => {
|
|
6410
|
-
var _a2;
|
|
6411
6318
|
const rules2 = {};
|
|
6412
6319
|
for (const column of unref(columns)) {
|
|
6413
6320
|
if (column.required && !column.rules.find((rule) => rule.required)) {
|
|
@@ -6416,7 +6323,7 @@ const Form = /* @__PURE__ */ defineComponent({
|
|
|
6416
6323
|
message: `请录入${column.label}.`
|
|
6417
6324
|
}];
|
|
6418
6325
|
}
|
|
6419
|
-
let componentRules =
|
|
6326
|
+
let componentRules = props.rules?.[column.name] || [];
|
|
6420
6327
|
if (!Array.isArray(componentRules)) {
|
|
6421
6328
|
componentRules = [componentRules];
|
|
6422
6329
|
}
|
|
@@ -6438,16 +6345,13 @@ const Form = /* @__PURE__ */ defineComponent({
|
|
|
6438
6345
|
unref(dataForm2).formModels.push({
|
|
6439
6346
|
id: formUID,
|
|
6440
6347
|
validate: async () => {
|
|
6441
|
-
|
|
6442
|
-
return ((_a2 = unref(formEl)) == null ? void 0 : _a2.validateField()) ?? false;
|
|
6348
|
+
return unref(formEl)?.validateField() ?? false;
|
|
6443
6349
|
},
|
|
6444
6350
|
reset: () => {
|
|
6445
|
-
|
|
6446
|
-
(_a2 = unref(formEl)) == null ? void 0 : _a2.resetFields();
|
|
6351
|
+
unref(formEl)?.resetFields();
|
|
6447
6352
|
},
|
|
6448
6353
|
clearValidate: () => {
|
|
6449
|
-
|
|
6450
|
-
(_a2 = unref(formEl)) == null ? void 0 : _a2.clearValidate();
|
|
6354
|
+
unref(formEl)?.clearValidate();
|
|
6451
6355
|
}
|
|
6452
6356
|
});
|
|
6453
6357
|
const disposable = dataForm2.dataFormTypeChangeEvent.on(async ({
|
|
@@ -6472,18 +6376,16 @@ const Form = /* @__PURE__ */ defineComponent({
|
|
|
6472
6376
|
});
|
|
6473
6377
|
});
|
|
6474
6378
|
return () => {
|
|
6475
|
-
var _a2;
|
|
6476
6379
|
if (!unref(dataForm).initd) {
|
|
6477
6380
|
return null;
|
|
6478
6381
|
}
|
|
6479
|
-
let children =
|
|
6382
|
+
let children = slots.default?.();
|
|
6480
6383
|
if (!children) {
|
|
6481
6384
|
children = unref(columns).map((column) => {
|
|
6482
|
-
var _a3;
|
|
6483
6385
|
if (!column.name) {
|
|
6484
6386
|
return null;
|
|
6485
6387
|
}
|
|
6486
|
-
return
|
|
6388
|
+
return slots[`col-${column.name}`]?.() || (column.componentInfo === "MKFormDetail" ? createVNode(MKDataFormItem, {
|
|
6487
6389
|
"label": column.label,
|
|
6488
6390
|
"labelWidth": "0px",
|
|
6489
6391
|
"labelPosition": "top",
|
|
@@ -6611,8 +6513,7 @@ const FormView = /* @__PURE__ */ defineComponent({
|
|
|
6611
6513
|
});
|
|
6612
6514
|
const route = useRoute();
|
|
6613
6515
|
const handleSave = async () => {
|
|
6614
|
-
|
|
6615
|
-
await ((_a2 = unref(dataForm)) == null ? void 0 : _a2.simpleSubmit());
|
|
6516
|
+
await unref(dataForm)?.simpleSubmit();
|
|
6616
6517
|
};
|
|
6617
6518
|
const handleCancel = () => {
|
|
6618
6519
|
unref(dataForm).cancel();
|
|
@@ -6667,8 +6568,7 @@ const FormView = /* @__PURE__ */ defineComponent({
|
|
|
6667
6568
|
}, [route.meta.title])]);
|
|
6668
6569
|
},
|
|
6669
6570
|
extra: () => {
|
|
6670
|
-
|
|
6671
|
-
return createVNode(Fragment, null, [(_a2 = slots["footer-button"]) == null ? void 0 : _a2.call(slots), saveBtn]);
|
|
6571
|
+
return createVNode(Fragment, null, [slots["footer-button"]?.(), saveBtn]);
|
|
6672
6572
|
}
|
|
6673
6573
|
});
|
|
6674
6574
|
}
|
|
@@ -6676,25 +6576,22 @@ const FormView = /* @__PURE__ */ defineComponent({
|
|
|
6676
6576
|
"class": "mk-form-view",
|
|
6677
6577
|
"shadow": "never"
|
|
6678
6578
|
}, {
|
|
6679
|
-
default: () => {
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
default: () => [_slot]
|
|
6696
|
-
})])];
|
|
6697
|
-
}
|
|
6579
|
+
default: () => [createVNode("div", {
|
|
6580
|
+
"class": "mk-form-view__main"
|
|
6581
|
+
}, [createVNode(ElScrollbar, null, {
|
|
6582
|
+
default: () => [createVNode(MKForm, {
|
|
6583
|
+
"labelPosition": props.labelPosition,
|
|
6584
|
+
"rules": props.rules,
|
|
6585
|
+
"labelWidth": props.labelWidth,
|
|
6586
|
+
"dataForm": props.dataForm
|
|
6587
|
+
}, slots)]
|
|
6588
|
+
})]), createVNode("div", {
|
|
6589
|
+
"class": "mk-form-view__footer"
|
|
6590
|
+
}, [slots["footer-button"]?.(), saveBtn, createVNode(ElButton, {
|
|
6591
|
+
"onClick": handleCancel
|
|
6592
|
+
}, _isSlot$4(_slot = I18n.instance.translate("mk.dataForm.cancelButton")) ? _slot : {
|
|
6593
|
+
default: () => [_slot]
|
|
6594
|
+
})])]
|
|
6698
6595
|
});
|
|
6699
6596
|
};
|
|
6700
6597
|
}
|
|
@@ -6789,10 +6686,7 @@ const columnProps$1 = buildProps({
|
|
|
6789
6686
|
});
|
|
6790
6687
|
function useFormItem() {
|
|
6791
6688
|
const dataFormItemContext = inject(DATA_FORM_ITEM_CONTEXT_KEY);
|
|
6792
|
-
const column = computed(() =>
|
|
6793
|
-
var _a2;
|
|
6794
|
-
return ((_a2 = unref(dataFormItemContext)) == null ? void 0 : _a2.column) ?? null;
|
|
6795
|
-
});
|
|
6689
|
+
const column = computed(() => unref(dataFormItemContext)?.column ?? null);
|
|
6796
6690
|
const value = computed({
|
|
6797
6691
|
get: () => {
|
|
6798
6692
|
const _column = unref(column);
|
|
@@ -6809,10 +6703,7 @@ function useFormItem() {
|
|
|
6809
6703
|
_column.setValue(v);
|
|
6810
6704
|
}
|
|
6811
6705
|
});
|
|
6812
|
-
const disabled = computed(() =>
|
|
6813
|
-
var _a2;
|
|
6814
|
-
return ((_a2 = unref(column)) == null ? void 0 : _a2.disabled) ?? false;
|
|
6815
|
-
});
|
|
6706
|
+
const disabled = computed(() => unref(column)?.disabled ?? false);
|
|
6816
6707
|
return { column, value, disabled };
|
|
6817
6708
|
}
|
|
6818
6709
|
const MKDataForm = withInstall(DataForm, {
|
|
@@ -6865,7 +6756,7 @@ const useQueryParams = (dataTable) => {
|
|
|
6865
6756
|
);
|
|
6866
6757
|
event.on(
|
|
6867
6758
|
debounce(([paginationEvent]) => {
|
|
6868
|
-
const pagination =
|
|
6759
|
+
const pagination = paginationEvent?.pagination ?? null;
|
|
6869
6760
|
const params = dataTable2.dataFilter.getParams();
|
|
6870
6761
|
const query2 = {};
|
|
6871
6762
|
if (pagination) {
|
|
@@ -6945,7 +6836,7 @@ const DataTableColumnComponent = /* @__PURE__ */ defineComponent({
|
|
|
6945
6836
|
props: dataTableColumnProps,
|
|
6946
6837
|
setup(props) {
|
|
6947
6838
|
const dataTableContext = inject(DATA_TABLE_CONTEXT_KEY);
|
|
6948
|
-
const dataTable = computed(() =>
|
|
6839
|
+
const dataTable = computed(() => dataTableContext?.dataTable ?? null);
|
|
6949
6840
|
const tableColumn = computed(() => props.column);
|
|
6950
6841
|
const {
|
|
6951
6842
|
component,
|
|
@@ -7003,7 +6894,7 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
7003
6894
|
return props.treeProps;
|
|
7004
6895
|
});
|
|
7005
6896
|
const dataTableContext = inject(DATA_TABLE_CONTEXT_KEY);
|
|
7006
|
-
const dataTableEl = computed(() =>
|
|
6897
|
+
const dataTableEl = computed(() => dataTableContext?.el ?? null);
|
|
7007
6898
|
const tableEl = ref(null);
|
|
7008
6899
|
const dataTable = computed(() => props.dataTable ?? dataTableContext.dataTable);
|
|
7009
6900
|
const rowKey = computed(() => props.rowKey || unref(dataTable).primaryKey);
|
|
@@ -7077,7 +6968,6 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
7077
6968
|
});
|
|
7078
6969
|
return () => {
|
|
7079
6970
|
const columns = unref(dataTable).getColumns().filter((column) => column.visible && column.name).map((column) => {
|
|
7080
|
-
var _a2;
|
|
7081
6971
|
const columnProps2 = {
|
|
7082
6972
|
prop: column.name,
|
|
7083
6973
|
label: column.label,
|
|
@@ -7092,10 +6982,9 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
7092
6982
|
if (!column.visible) {
|
|
7093
6983
|
return null;
|
|
7094
6984
|
}
|
|
7095
|
-
return
|
|
6985
|
+
return slots[`col-${column.name}`]?.() ?? createVNode(ElTableColumn, columnProps2, {
|
|
7096
6986
|
default: (scope) => {
|
|
7097
|
-
|
|
7098
|
-
let children = (_a3 = slots[`col-${column.name}-content`]) == null ? void 0 : _a3.call(slots, {
|
|
6987
|
+
let children = slots[`col-${column.name}-content`]?.({
|
|
7099
6988
|
$index: scope.$index,
|
|
7100
6989
|
row: scope.row,
|
|
7101
6990
|
column,
|
|
@@ -7130,10 +7019,7 @@ const Table = /* @__PURE__ */ defineComponent({
|
|
|
7130
7019
|
"width": unref(selectionColumn).width,
|
|
7131
7020
|
"fixed": unref(selectionColumn).fixed
|
|
7132
7021
|
}, null) : null, columns],
|
|
7133
|
-
empty: () =>
|
|
7134
|
-
var _a2;
|
|
7135
|
-
return ((_a2 = slots.empty) == null ? void 0 : _a2.call(slots)) || createVNode(ElEmpty, null, null);
|
|
7136
|
-
}
|
|
7022
|
+
empty: () => slots.empty?.() || createVNode(ElEmpty, null, null)
|
|
7137
7023
|
});
|
|
7138
7024
|
};
|
|
7139
7025
|
}
|
|
@@ -7177,8 +7063,7 @@ const TableHeaderItem = /* @__PURE__ */ defineComponent({
|
|
|
7177
7063
|
slots
|
|
7178
7064
|
}) {
|
|
7179
7065
|
return () => {
|
|
7180
|
-
|
|
7181
|
-
let children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
|
|
7066
|
+
let children = slots.default?.();
|
|
7182
7067
|
if (!children && props.tableHeaderItem) {
|
|
7183
7068
|
return createVNode(InnerTableHeaderItem, {
|
|
7184
7069
|
"tableHeaderItem": props.tableHeaderItem
|
|
@@ -7205,23 +7090,17 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
7205
7090
|
}) {
|
|
7206
7091
|
const dataTableContext = inject(DATA_TABLE_CONTEXT_KEY);
|
|
7207
7092
|
const dataTable = computed(() => dataTableContext.dataTable);
|
|
7208
|
-
const tableHeader = computed(() =>
|
|
7209
|
-
var _a2;
|
|
7210
|
-
return (_a2 = unref(dataTable)) == null ? void 0 : _a2.header;
|
|
7211
|
-
});
|
|
7093
|
+
const tableHeader = computed(() => unref(dataTable)?.header);
|
|
7212
7094
|
const leftArea = computed(() => {
|
|
7213
|
-
var
|
|
7214
|
-
var items = ((_a2 = unref(tableHeader)) == null ? void 0 : _a2.leftArea) ?? [];
|
|
7095
|
+
var items = unref(tableHeader)?.leftArea ?? [];
|
|
7215
7096
|
return items.filter((item) => item.predicate());
|
|
7216
7097
|
});
|
|
7217
7098
|
const rightArea = computed(() => {
|
|
7218
|
-
var
|
|
7219
|
-
var items = ((_a2 = unref(tableHeader)) == null ? void 0 : _a2.rightArea) ?? [];
|
|
7099
|
+
var items = unref(tableHeader)?.rightArea ?? [];
|
|
7220
7100
|
return items.filter((item) => item.predicate());
|
|
7221
7101
|
});
|
|
7222
7102
|
const route = useRoute();
|
|
7223
7103
|
return () => {
|
|
7224
|
-
var _a2, _b2, _c2;
|
|
7225
7104
|
const leftItems = unref(leftArea).filter((item) => item.componentInfo !== "MKClassifySearch").map((item) => createVNode(TableHeaderItem, {
|
|
7226
7105
|
"tableHeaderItem": item
|
|
7227
7106
|
}, null));
|
|
@@ -7237,8 +7116,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
7237
7116
|
"icon": null
|
|
7238
7117
|
}, {
|
|
7239
7118
|
title: () => {
|
|
7240
|
-
|
|
7241
|
-
return ((_a3 = slots["header-title"]) == null ? void 0 : _a3.call(slots)) ?? createVNode("h3", {
|
|
7119
|
+
return slots["header-title"]?.() ?? createVNode("h3", {
|
|
7242
7120
|
"style": "color: var(--el-text-color-regular);",
|
|
7243
7121
|
"class": "m-l-2 flex items-center"
|
|
7244
7122
|
}, [route.meta.icon ? createVNode(MKSvgIcon, {
|
|
@@ -7247,8 +7125,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
7247
7125
|
}, null) : null, createVNode("span", null, [route.meta.title])]);
|
|
7248
7126
|
},
|
|
7249
7127
|
extra: () => {
|
|
7250
|
-
|
|
7251
|
-
return createVNode(Fragment, null, [rightItems, (_a3 = slots["header-tools"]) == null ? void 0 : _a3.call(slots)]);
|
|
7128
|
+
return createVNode(Fragment, null, [rightItems, slots["header-tools"]?.()]);
|
|
7252
7129
|
},
|
|
7253
7130
|
content: () => {
|
|
7254
7131
|
return createVNode("div", {
|
|
@@ -7260,9 +7137,9 @@ const TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
7260
7137
|
"class": "mk-table-view__header"
|
|
7261
7138
|
}, [createVNode("div", {
|
|
7262
7139
|
"class": "mk-table-view__header-main"
|
|
7263
|
-
}, [
|
|
7140
|
+
}, [slots["header-title"]?.(), leftItems, classifySearchItems, slots["header-main"]?.()]), createVNode("div", {
|
|
7264
7141
|
"class": "mk-table-view__header-tools"
|
|
7265
|
-
}, [rightItems,
|
|
7142
|
+
}, [rightItems, slots["header-tools"]?.()])]);
|
|
7266
7143
|
};
|
|
7267
7144
|
}
|
|
7268
7145
|
});
|
|
@@ -7279,10 +7156,9 @@ const TableView = /* @__PURE__ */ defineComponent({
|
|
|
7279
7156
|
const pageSizes = computed(() => unref(dataTable).pageSizes);
|
|
7280
7157
|
const isTree = computed(() => unref(dataTable) instanceof DataTree);
|
|
7281
7158
|
return () => {
|
|
7282
|
-
|
|
7283
|
-
const pagination = ((_a2 = slots.pagination) == null ? void 0 : _a2.call(slots, {
|
|
7159
|
+
const pagination = slots.pagination?.({
|
|
7284
7160
|
dataTable: unref(dataTable)
|
|
7285
|
-
})
|
|
7161
|
+
}) || (unref(pageSizes).length && !unref(isTree) ? createVNode(MKDataTablePagination, {
|
|
7286
7162
|
"dataTable": unref(dataTable)
|
|
7287
7163
|
}, null) : null);
|
|
7288
7164
|
const renderSlots = {};
|
|
@@ -7292,30 +7168,24 @@ const TableView = /* @__PURE__ */ defineComponent({
|
|
|
7292
7168
|
}, slots);
|
|
7293
7169
|
}
|
|
7294
7170
|
return props.mode === "page" ? createVNode(MKPagePanel, null, {
|
|
7295
|
-
default: () => {
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
"dataTable": unref(dataTable)
|
|
7304
|
-
}, null), pagination])];
|
|
7305
|
-
},
|
|
7171
|
+
default: () => [createVNode("div", {
|
|
7172
|
+
"class": "p-4 flex flex-col w-full h-full"
|
|
7173
|
+
}, [slots.default?.({
|
|
7174
|
+
dataTable: unref(dataTable)
|
|
7175
|
+
}) || createVNode(MKTable, {
|
|
7176
|
+
"class": "flex-1",
|
|
7177
|
+
"dataTable": unref(dataTable)
|
|
7178
|
+
}, null), pagination])],
|
|
7306
7179
|
...renderSlots
|
|
7307
7180
|
}) : createVNode(ElCard, {
|
|
7308
7181
|
"class": "mk-table-view",
|
|
7309
7182
|
"shadow": "never"
|
|
7310
7183
|
}, {
|
|
7311
|
-
default: () => {
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
"dataTable": unref(dataTable)
|
|
7317
|
-
}, null), pagination];
|
|
7318
|
-
},
|
|
7184
|
+
default: () => [slots.default?.({
|
|
7185
|
+
dataTable: unref(dataTable)
|
|
7186
|
+
}) || createVNode(MKTable, {
|
|
7187
|
+
"dataTable": unref(dataTable)
|
|
7188
|
+
}, null), pagination],
|
|
7319
7189
|
...renderSlots
|
|
7320
7190
|
});
|
|
7321
7191
|
};
|
|
@@ -7372,7 +7242,7 @@ const TableClassifySearchItem = /* @__PURE__ */ defineComponent({
|
|
|
7372
7242
|
modelValue.value = _modelValue;
|
|
7373
7243
|
return;
|
|
7374
7244
|
}
|
|
7375
|
-
modelValue.value =
|
|
7245
|
+
modelValue.value = item?.value ?? null;
|
|
7376
7246
|
};
|
|
7377
7247
|
const options = computed(() => {
|
|
7378
7248
|
if (Array.isArray(props.options)) {
|
|
@@ -7418,12 +7288,10 @@ const TableClassifySearch = /* @__PURE__ */ defineComponent({
|
|
|
7418
7288
|
setup(props, {
|
|
7419
7289
|
slots
|
|
7420
7290
|
}) {
|
|
7421
|
-
|
|
7422
|
-
const
|
|
7423
|
-
const classifySearch = computed(() => (dataTable == null ? void 0 : dataTable.classifySearch) ?? null);
|
|
7291
|
+
const dataTable = inject(DATA_TABLE_CONTEXT_KEY)?.dataTable;
|
|
7292
|
+
const classifySearch = computed(() => dataTable?.classifySearch ?? null);
|
|
7424
7293
|
return () => {
|
|
7425
|
-
|
|
7426
|
-
let children = (_a3 = slots.default) == null ? void 0 : _a3.call(slots);
|
|
7294
|
+
let children = slots.default?.();
|
|
7427
7295
|
const _classifySearch = unref(classifySearch);
|
|
7428
7296
|
if (!children && _classifySearch) {
|
|
7429
7297
|
if (!_classifySearch.getClassifySearchItems().length) {
|
|
@@ -7627,16 +7495,14 @@ const Tree = /* @__PURE__ */ defineComponent({
|
|
|
7627
7495
|
const currentNodeKey = computed(() => (props.currentNodeKey || unref(dataTree).getSelection()[0]) ?? "");
|
|
7628
7496
|
onMounted(() => {
|
|
7629
7497
|
watch(currentNodeKey, (currentNodeKey2) => {
|
|
7630
|
-
|
|
7631
|
-
(_a2 = unref(treeRef)) == null ? void 0 : _a2.setCurrentKey(currentNodeKey2 || null);
|
|
7498
|
+
unref(treeRef)?.setCurrentKey(currentNodeKey2 || null);
|
|
7632
7499
|
}, {
|
|
7633
7500
|
immediate: true
|
|
7634
7501
|
});
|
|
7635
7502
|
});
|
|
7636
7503
|
unref(dataTree).afterLoadEvent.on(async () => {
|
|
7637
|
-
var _a2;
|
|
7638
7504
|
await nextTick();
|
|
7639
|
-
|
|
7505
|
+
unref(treeRef)?.setCurrentKey(unref(currentNodeKey) || null);
|
|
7640
7506
|
});
|
|
7641
7507
|
const handleAdd = (dataTreeNode) => {
|
|
7642
7508
|
unref(dataTree).addRecord(dataTreeNode ? {
|
|
@@ -7662,18 +7528,16 @@ const Tree = /* @__PURE__ */ defineComponent({
|
|
|
7662
7528
|
resolve(dataTreeNode.children);
|
|
7663
7529
|
};
|
|
7664
7530
|
const filter = (value) => {
|
|
7665
|
-
|
|
7666
|
-
(_a2 = unref(treeRef)) == null ? void 0 : _a2.filter(value);
|
|
7531
|
+
unref(treeRef)?.filter(value);
|
|
7667
7532
|
};
|
|
7668
7533
|
const handleCurrentChange = (dataTreeNode, node) => {
|
|
7669
|
-
var _a2;
|
|
7670
7534
|
if (!dataTreeNode) {
|
|
7671
7535
|
return;
|
|
7672
7536
|
}
|
|
7673
7537
|
const _dataTree = unref(dataTree);
|
|
7674
7538
|
if (!props.allowSelectContainer && !dataTreeNode.isLeaf) {
|
|
7675
7539
|
const current = _dataTree.getSelection()[0] ?? null;
|
|
7676
|
-
|
|
7540
|
+
unref(treeRef)?.setCurrentKey(current);
|
|
7677
7541
|
return;
|
|
7678
7542
|
}
|
|
7679
7543
|
_dataTree.setSelection([dataTreeNode.data[_dataTree.primaryKey]]);
|
|
@@ -7736,8 +7600,7 @@ const Tree = /* @__PURE__ */ defineComponent({
|
|
|
7736
7600
|
"onNode-click": handleNodeClick
|
|
7737
7601
|
}, {
|
|
7738
7602
|
default: (scope) => {
|
|
7739
|
-
|
|
7740
|
-
let children = (_a2 = $slots.default) == null ? void 0 : _a2.call($slots, scope);
|
|
7603
|
+
let children = $slots.default?.(scope);
|
|
7741
7604
|
if (children) {
|
|
7742
7605
|
return children;
|
|
7743
7606
|
}
|
|
@@ -7745,8 +7608,8 @@ const Tree = /* @__PURE__ */ defineComponent({
|
|
|
7745
7608
|
data
|
|
7746
7609
|
} = scope;
|
|
7747
7610
|
const label = data.data[innerDataTree.props.label];
|
|
7748
|
-
const main =
|
|
7749
|
-
const tools =
|
|
7611
|
+
const main = $slots["node-main"]?.(scope) || label;
|
|
7612
|
+
const tools = $slots["node-tools"]?.(scope) || createVNode(Fragment, null, [$slots["node-tools-prefix"]?.(scope), createVNode(ElButton, {
|
|
7750
7613
|
"type": "primary",
|
|
7751
7614
|
"link": true,
|
|
7752
7615
|
"onClick": () => handleAdd(data)
|
|
@@ -7764,7 +7627,7 @@ const Tree = /* @__PURE__ */ defineComponent({
|
|
|
7764
7627
|
"onClick": () => handleDelete(data)
|
|
7765
7628
|
}, {
|
|
7766
7629
|
default: () => [createTextVNode("删除")]
|
|
7767
|
-
}),
|
|
7630
|
+
}), $slots["node-tools-suffix"]?.(scope)]);
|
|
7768
7631
|
return createVNode("div", {
|
|
7769
7632
|
"class": "flex w-full py-2 justify-between"
|
|
7770
7633
|
}, [createVNode("div", null, [main]), createVNode("div", {
|
|
@@ -7798,8 +7661,7 @@ const TreeView = /* @__PURE__ */ defineComponent({
|
|
|
7798
7661
|
const treeRef = ref();
|
|
7799
7662
|
const searchInputValue = ref("");
|
|
7800
7663
|
watch(searchInputValue, (value) => {
|
|
7801
|
-
|
|
7802
|
-
(_a2 = unref(treeRef)) == null ? void 0 : _a2.filter(value);
|
|
7664
|
+
unref(treeRef)?.filter(value);
|
|
7803
7665
|
});
|
|
7804
7666
|
const filterNodeMethod = (value, data) => {
|
|
7805
7667
|
if (typeof props.filterNodeMethod === "function") {
|
|
@@ -7812,10 +7674,9 @@ const TreeView = /* @__PURE__ */ defineComponent({
|
|
|
7812
7674
|
unref(dataTree).addRecord();
|
|
7813
7675
|
};
|
|
7814
7676
|
return () => {
|
|
7815
|
-
|
|
7816
|
-
const content = ((_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
|
|
7677
|
+
const content = slots.default?.({
|
|
7817
7678
|
dataTree: props.dataTree
|
|
7818
|
-
})
|
|
7679
|
+
}) || createVNode(MKTree, {
|
|
7819
7680
|
"ref": (component) => treeRef.value = component,
|
|
7820
7681
|
"dataTree": unref(dataTree),
|
|
7821
7682
|
"filterNodeMethod": filterNodeMethod
|
|
@@ -7884,7 +7745,6 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7884
7745
|
selectNodeId.value = props.curSelectId;
|
|
7885
7746
|
});
|
|
7886
7747
|
const setDefaultSelectNode = (callback) => {
|
|
7887
|
-
var _a2;
|
|
7888
7748
|
const list = props.dataTree.getList();
|
|
7889
7749
|
if (list.length > 0) {
|
|
7890
7750
|
if (!selectNodeId.value) {
|
|
@@ -7896,7 +7756,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7896
7756
|
callback && callback(item);
|
|
7897
7757
|
break;
|
|
7898
7758
|
}
|
|
7899
|
-
|
|
7759
|
+
item.children?.forEach((child) => list.push(child));
|
|
7900
7760
|
}
|
|
7901
7761
|
}
|
|
7902
7762
|
};
|
|
@@ -8157,10 +8017,7 @@ const MaterialGroupFormPopover = /* @__PURE__ */ defineComponent({
|
|
|
8157
8017
|
}, {
|
|
8158
8018
|
default: () => [createTextVNode("保存")]
|
|
8159
8019
|
})])])],
|
|
8160
|
-
reference: () =>
|
|
8161
|
-
var _a2;
|
|
8162
|
-
return (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
|
|
8163
|
-
}
|
|
8020
|
+
reference: () => slots.default?.()
|
|
8164
8021
|
});
|
|
8165
8022
|
};
|
|
8166
8023
|
}
|
|
@@ -8185,7 +8042,7 @@ const MaterialGroup = /* @__PURE__ */ defineComponent({
|
|
|
8185
8042
|
await nextTick();
|
|
8186
8043
|
materialGroupForm.setData({
|
|
8187
8044
|
...materialGroupForm.data,
|
|
8188
|
-
parentGroupId:
|
|
8045
|
+
parentGroupId: parent?.id || null
|
|
8189
8046
|
});
|
|
8190
8047
|
};
|
|
8191
8048
|
const handleEditClick = (item) => {
|
|
@@ -8317,10 +8174,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8317
8174
|
() => props.materialTable.getSelection().includes(props.material.id)
|
|
8318
8175
|
);
|
|
8319
8176
|
const currentMaterialTypeValue = computed(
|
|
8320
|
-
() =>
|
|
8321
|
-
var _a2;
|
|
8322
|
-
return ((_a2 = props.materialTable.currentMaterialType) == null ? void 0 : _a2.value) ?? null;
|
|
8323
|
-
}
|
|
8177
|
+
() => props.materialTable.currentMaterialType?.value ?? null
|
|
8324
8178
|
);
|
|
8325
8179
|
const MaterialComponent = computed(() => {
|
|
8326
8180
|
const component = props.materialTable.resolveMaterialComponent(
|
|
@@ -8487,10 +8341,7 @@ const MaterialList = /* @__PURE__ */ defineComponent({
|
|
|
8487
8341
|
const loading = computed(() => unref(materialTable).loading);
|
|
8488
8342
|
const materialTypes = computed(() => unref(materialTable).getMaterialTypes());
|
|
8489
8343
|
const currentMaterialType = computed(() => unref(materialTable).currentMaterialType);
|
|
8490
|
-
const currentMaterialTypeId = computed(() =>
|
|
8491
|
-
var _a2;
|
|
8492
|
-
return ((_a2 = unref(currentMaterialType)) == null ? void 0 : _a2.value) ?? "";
|
|
8493
|
-
});
|
|
8344
|
+
const currentMaterialTypeId = computed(() => unref(currentMaterialType)?.value ?? "");
|
|
8494
8345
|
const materialList = computed(() => unref(materialTable).getList());
|
|
8495
8346
|
onBeforeUnmount(() => {
|
|
8496
8347
|
defaultMaterialTable.dispose();
|
|
@@ -8638,9 +8489,8 @@ const MaterialList = /* @__PURE__ */ defineComponent({
|
|
|
8638
8489
|
const handleDownload = () => {
|
|
8639
8490
|
};
|
|
8640
8491
|
const handleSelectFile = async () => {
|
|
8641
|
-
var _a2;
|
|
8642
8492
|
const file = await fileSelect({
|
|
8643
|
-
accept:
|
|
8493
|
+
accept: unref(currentMaterialType)?.accept
|
|
8644
8494
|
});
|
|
8645
8495
|
if (file) {
|
|
8646
8496
|
unref(materialTable).upload.upload(file);
|
|
@@ -8829,8 +8679,7 @@ const ImageEditPanelComponent = /* @__PURE__ */ defineComponent({
|
|
|
8829
8679
|
immediate: true
|
|
8830
8680
|
});
|
|
8831
8681
|
const handleMaterialSelect = async (data) => {
|
|
8832
|
-
|
|
8833
|
-
attrs.src = ((_a2 = data[0]) == null ? void 0 : _a2.path) ?? "";
|
|
8682
|
+
attrs.src = data[0]?.path ?? "";
|
|
8834
8683
|
};
|
|
8835
8684
|
const selectImage = async () => {
|
|
8836
8685
|
const file = await fileSelect({
|
|
@@ -9023,18 +8872,14 @@ const showImageEditDialog = async (attrs) => {
|
|
|
9023
8872
|
return new Promise((resolve, reject) => {
|
|
9024
8873
|
selectState.value = attrs.src ? "attrs" : "select";
|
|
9025
8874
|
const imageEditPanelRef = ref(null);
|
|
9026
|
-
const editResult = computed(() =>
|
|
9027
|
-
var _a2;
|
|
9028
|
-
return (_a2 = imageEditPanelRef.value) == null ? void 0 : _a2.getResult();
|
|
9029
|
-
});
|
|
8875
|
+
const editResult = computed(() => imageEditPanelRef.value?.getResult());
|
|
9030
8876
|
const toCropImageHandle = async () => {
|
|
9031
|
-
var _a2;
|
|
9032
8877
|
if (editResult.value.src) {
|
|
9033
8878
|
var result = await ImageCropper({
|
|
9034
8879
|
src: editResult.value.src
|
|
9035
8880
|
});
|
|
9036
8881
|
if (result.data) {
|
|
9037
|
-
|
|
8882
|
+
imageEditPanelRef.value?.setSrc(result.data);
|
|
9038
8883
|
}
|
|
9039
8884
|
}
|
|
9040
8885
|
};
|
|
@@ -9128,9 +8973,8 @@ const showModuleSelectDialog = async (namespace) => {
|
|
|
9128
8973
|
return true;
|
|
9129
8974
|
}
|
|
9130
8975
|
}).map((item) => {
|
|
9131
|
-
var _a2;
|
|
9132
8976
|
return createVNode("div", {
|
|
9133
|
-
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${
|
|
8977
|
+
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${selectOption.value?.name == item.name ? "active" : ""}`,
|
|
9134
8978
|
"onClick": () => clickHandle(item)
|
|
9135
8979
|
}, [item.cover ? createVNode("img", {
|
|
9136
8980
|
"src": item.cover
|
|
@@ -9176,9 +9020,8 @@ const showTemplateSelectDialog = function(namespace) {
|
|
|
9176
9020
|
dialogInstance.destroy();
|
|
9177
9021
|
};
|
|
9178
9022
|
const handleConfirmClick = () => {
|
|
9179
|
-
var _a2;
|
|
9180
9023
|
dialogInstance.destroy();
|
|
9181
|
-
resolve(
|
|
9024
|
+
resolve(selectOption.value?.name);
|
|
9182
9025
|
};
|
|
9183
9026
|
const clickHandle = (item) => {
|
|
9184
9027
|
selectOption.value = item;
|
|
@@ -9198,9 +9041,8 @@ const showTemplateSelectDialog = function(namespace) {
|
|
|
9198
9041
|
return true;
|
|
9199
9042
|
}
|
|
9200
9043
|
}).map((item) => {
|
|
9201
|
-
var _a2;
|
|
9202
9044
|
return createVNode("div", {
|
|
9203
|
-
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${
|
|
9045
|
+
"class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${selectOption.value?.name == item.name ? "active" : ""}`,
|
|
9204
9046
|
"onClick": () => clickHandle(item)
|
|
9205
9047
|
}, [item.cover ? createVNode("img", {
|
|
9206
9048
|
"src": item.cover
|
|
@@ -9329,7 +9171,6 @@ const useLexicalEditor = function(options, errHandle) {
|
|
|
9329
9171
|
// 补空
|
|
9330
9172
|
editor.registerUpdateListener(({ editorState }) => {
|
|
9331
9173
|
editor.update(() => {
|
|
9332
|
-
var _a2;
|
|
9333
9174
|
const rootNode = $getRoot();
|
|
9334
9175
|
if (rootNode.isEmpty()) {
|
|
9335
9176
|
const p = $createParagraphNode();
|
|
@@ -9347,7 +9188,7 @@ const useLexicalEditor = function(options, errHandle) {
|
|
|
9347
9188
|
}
|
|
9348
9189
|
list.push(...node.getChildren());
|
|
9349
9190
|
} else if (el && $isTextNode(node)) {
|
|
9350
|
-
if (
|
|
9191
|
+
if (el?.nextElementSibling?.tagName.toLowerCase() == "br") {
|
|
9351
9192
|
el.classList.add("mk-doc__br-brfore-mark");
|
|
9352
9193
|
} else {
|
|
9353
9194
|
el.classList.remove("mk-doc__br-brfore-mark");
|
|
@@ -9452,15 +9293,14 @@ const addFontSizeToOptions = function(options, size, rootSize = 14) {
|
|
|
9452
9293
|
options.push({ value: `${Math.round(size / rootSize * 100) / 100}rem`, label: size + "px" });
|
|
9453
9294
|
};
|
|
9454
9295
|
const useLexicalEditorState = function(editor, options) {
|
|
9455
|
-
var _a2, _b2;
|
|
9456
9296
|
if (!editor) {
|
|
9457
9297
|
editor = useLexicalEditorContext().editor;
|
|
9458
9298
|
}
|
|
9459
9299
|
if (!options) {
|
|
9460
9300
|
options = { rootFontSize: 14, fontFamilyOptions: [], fontSizeOptions: [] };
|
|
9461
9301
|
}
|
|
9462
|
-
options.rootFontSize
|
|
9463
|
-
if (!
|
|
9302
|
+
options.rootFontSize ??= 14;
|
|
9303
|
+
if (!options?.fontSizeOptions?.length) {
|
|
9464
9304
|
options.fontSizeOptions = [];
|
|
9465
9305
|
for (let i = 0; i < 80; i += 2) {
|
|
9466
9306
|
addFontSizeToOptions(options.fontSizeOptions, 10 + i, options.rootFontSize);
|
|
@@ -9471,7 +9311,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9471
9311
|
}
|
|
9472
9312
|
}
|
|
9473
9313
|
}
|
|
9474
|
-
if (!
|
|
9314
|
+
if (!options?.fontFamilyOptions?.length) {
|
|
9475
9315
|
options.fontFamilyOptions = [{ value: "", label: "默认字体" }].concat(FONT_FAMILY.map((fv) => {
|
|
9476
9316
|
let fvl = fv.split("="), label = fvl[0], value = fvl[1] || `'${label}'`;
|
|
9477
9317
|
return { value, label };
|
|
@@ -9564,7 +9404,6 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9564
9404
|
// 其他状态
|
|
9565
9405
|
editor.registerUpdateListener(({ editorState }) => {
|
|
9566
9406
|
editorState.read(() => {
|
|
9567
|
-
var _a3, _b3, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
9568
9407
|
const selection = $getSelection();
|
|
9569
9408
|
if ($isRangeSelection(selection)) {
|
|
9570
9409
|
const anchorNode = selection.anchor.getNode();
|
|
@@ -9576,7 +9415,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9576
9415
|
parentNode = anchorNode.getTopLevelElementOrThrow();
|
|
9577
9416
|
}
|
|
9578
9417
|
let parentDOM = editor.getElementByKey(parentNode.getKey());
|
|
9579
|
-
alignValue.value =
|
|
9418
|
+
alignValue.value = parentDOM?.style.textAlign || "left";
|
|
9580
9419
|
if (alignValue.value == "start") {
|
|
9581
9420
|
alignValue.value = "left";
|
|
9582
9421
|
} else if (alignValue.value == "end") {
|
|
@@ -9589,28 +9428,28 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9589
9428
|
canSubscript.value = selection.hasFormat("subscript");
|
|
9590
9429
|
canSuperscript.value = selection.hasFormat("superscript");
|
|
9591
9430
|
if (canSubscript.value) {
|
|
9592
|
-
curContentTypeDesc.value =
|
|
9431
|
+
curContentTypeDesc.value = contentTypeList.find((item) => item.value == "subscript")?.label ?? "正文";
|
|
9593
9432
|
} else if (canSuperscript.value) {
|
|
9594
|
-
curContentTypeDesc.value =
|
|
9433
|
+
curContentTypeDesc.value = contentTypeList.find((item) => item.value == "superscript")?.label ?? "正文";
|
|
9595
9434
|
} else if (parentDOM !== null) {
|
|
9596
9435
|
const type = $isHeadingNode(parentNode) ? parentNode.getTag() : parentNode.getType();
|
|
9597
|
-
curContentTypeDesc.value =
|
|
9436
|
+
curContentTypeDesc.value = contentTypeList.find((item) => item.value == type)?.label ?? "正文";
|
|
9598
9437
|
}
|
|
9599
9438
|
var ff = $getSelectionStyleValueForProperty(selection, "font-family", "");
|
|
9600
9439
|
let fs = $getSelectionStyleValueForProperty(selection, "font-size", "");
|
|
9601
9440
|
if (fs) {
|
|
9602
9441
|
fontSize.value = Math.round(parseFloat(fs) * options.rootFontSize) + "px";
|
|
9603
9442
|
} else if (parentDOM) {
|
|
9604
|
-
fontSize.value =
|
|
9443
|
+
fontSize.value = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontSize ?? Math.round(options.rootFontSize) + "px";
|
|
9605
9444
|
} else {
|
|
9606
9445
|
fontSize.value = Math.round(options.rootFontSize) + "px";
|
|
9607
9446
|
}
|
|
9608
9447
|
if (!ff && parentDOM) {
|
|
9609
|
-
ff =
|
|
9448
|
+
ff = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontFamily ?? "";
|
|
9610
9449
|
}
|
|
9611
9450
|
fontColor.value = $getSelectionStyleValueForProperty(selection, "color", "#000");
|
|
9612
9451
|
bgColor.value = $getSelectionStyleValueForProperty(selection, "background-color", "");
|
|
9613
|
-
fontFamily.value =
|
|
9452
|
+
fontFamily.value = options.fontFamilyOptions?.find((item) => item.value == ff) || options.fontFamilyOptions[0];
|
|
9614
9453
|
canTextStyleDisabled.value = false;
|
|
9615
9454
|
const parent = anchorNode.getParent();
|
|
9616
9455
|
if (canLink.value = $isLinkNode(parent) || $isLinkNode(anchorNode)) {
|
|
@@ -10041,10 +9880,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10041
9880
|
ref();
|
|
10042
9881
|
const updateToolsPos = () => {
|
|
10043
9882
|
nextTick(() => {
|
|
10044
|
-
var _a2;
|
|
10045
9883
|
if (selectPayload.value != null) {
|
|
10046
9884
|
const stageIframe = document.body.querySelector("#" + stageId);
|
|
10047
|
-
const editBodyRect =
|
|
9885
|
+
const editBodyRect = editor.getRootElement()?.getBoundingClientRect();
|
|
10048
9886
|
const selectElement = editor.getElementByKey(selectPayload.value.nodeKey);
|
|
10049
9887
|
const selectRect = selectElement.getBoundingClientRect();
|
|
10050
9888
|
const selectElComputedStyle = window.getComputedStyle(selectElement);
|
|
@@ -10052,7 +9890,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10052
9890
|
const selectElMarginLeft = parseInt(selectElComputedStyle.marginLeft);
|
|
10053
9891
|
const selectElMarginBottom = parseInt(selectElComputedStyle.marginBottom);
|
|
10054
9892
|
const selectElMarginRight = parseInt(selectElComputedStyle.marginRight);
|
|
10055
|
-
let baseY = (
|
|
9893
|
+
let baseY = (stageIframe?.offsetTop ?? 0) - (editBodyRect?.y ?? 0), baseX = (stageIframe?.offsetLeft ?? 0) - (editBodyRect?.x ?? 0);
|
|
10056
9894
|
if (toolbarRef.value != null) {
|
|
10057
9895
|
const toolsRect = toolbarRef.value.getBoundingClientRect();
|
|
10058
9896
|
toolsPos.top = Math.max(selectRect.y - toolsRect.height - 5 + baseY, 5 + baseY) + "px";
|
|
@@ -10090,7 +9928,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10090
9928
|
const copyInsert = (action) => {
|
|
10091
9929
|
editor.update(() => {
|
|
10092
9930
|
const selection = $getSelection();
|
|
10093
|
-
const node = $isNodeSelection(selection) ? selection
|
|
9931
|
+
const node = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
|
|
10094
9932
|
if (node) {
|
|
10095
9933
|
const oldNode = deepCloneNode(node);
|
|
10096
9934
|
if (action == -1) {
|
|
@@ -10113,7 +9951,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10113
9951
|
// 点击选中
|
|
10114
9952
|
editor.registerCommand(CLICK_COMMAND, (event) => {
|
|
10115
9953
|
const el = event.target;
|
|
10116
|
-
const nodeKey = el
|
|
9954
|
+
const nodeKey = el?.getAttribute("node-key");
|
|
10117
9955
|
if (nodeKey != null) {
|
|
10118
9956
|
event.preventDefault();
|
|
10119
9957
|
setElementBlockSelection(editor, nodeKey);
|
|
@@ -10149,7 +9987,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10149
9987
|
// 删除模块
|
|
10150
9988
|
editor.registerCommand(REMOVE_ELEMENTBLOCK_COMMAND, () => {
|
|
10151
9989
|
const selection = $getSelection();
|
|
10152
|
-
const node = $isNodeSelection(selection) ? selection
|
|
9990
|
+
const node = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
|
|
10153
9991
|
if (node) {
|
|
10154
9992
|
node.remove();
|
|
10155
9993
|
editor.dispatchCommand(SELECTED_ELEMENTBLOCK_COMMAND, null);
|
|
@@ -10160,7 +9998,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10160
9998
|
// 选中的话
|
|
10161
9999
|
editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
|
|
10162
10000
|
const selection = $getSelection();
|
|
10163
|
-
const node = $isNodeSelection(selection) ? selection
|
|
10001
|
+
const node = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
|
|
10164
10002
|
if (node) {
|
|
10165
10003
|
nodeTitle.value = node.getTitle ? node.getTitle() : "";
|
|
10166
10004
|
if ($isModuleDecoratorNode(node)) {
|
|
@@ -10171,15 +10009,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10171
10009
|
}
|
|
10172
10010
|
showTools.value = !$isRootNode(node);
|
|
10173
10011
|
showMask.value = $isHtmlElementDecoratorNode(node);
|
|
10174
|
-
if (node
|
|
10012
|
+
if (node?.__next) {
|
|
10175
10013
|
const nextNode = $getNodeByKey(node.__next);
|
|
10176
|
-
canSelectedNextNode.value =
|
|
10014
|
+
canSelectedNextNode.value = node?.__next ? $isElementNode(nextNode) && !$isParagraphNode(nextNode) : false;
|
|
10177
10015
|
} else {
|
|
10178
10016
|
canSelectedNextNode.value = false;
|
|
10179
10017
|
}
|
|
10180
|
-
if (node
|
|
10018
|
+
if (node?.__prev) {
|
|
10181
10019
|
const prevNode = $getNodeByKey(node.__prev);
|
|
10182
|
-
canSelectedPrevNode.value =
|
|
10020
|
+
canSelectedPrevNode.value = node?.__prev ? $isElementNode(prevNode) && !$isParagraphNode(prevNode) : false;
|
|
10183
10021
|
} else {
|
|
10184
10022
|
canSelectedPrevNode.value = false;
|
|
10185
10023
|
}
|
|
@@ -10877,7 +10715,7 @@ const insertNodeHandle = (node, selectNode) => {
|
|
|
10877
10715
|
};
|
|
10878
10716
|
const insertNodesHandle = (...nodes) => {
|
|
10879
10717
|
const selection = $getSelection();
|
|
10880
|
-
let selectNode = $isNodeSelection(selection) ? selection
|
|
10718
|
+
let selectNode = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : $getRoot();
|
|
10881
10719
|
nodes.forEach((node) => insertNodeHandle(node, selectNode));
|
|
10882
10720
|
return false;
|
|
10883
10721
|
};
|
|
@@ -11257,7 +11095,7 @@ const insertListNode = (listType) => {
|
|
|
11257
11095
|
const selection = $getSelection();
|
|
11258
11096
|
const list = $createListNode(listType);
|
|
11259
11097
|
const listItem = $createListItemNode();
|
|
11260
|
-
let elementNode = $isNodeSelection(selection) ? selection
|
|
11098
|
+
let elementNode = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
|
|
11261
11099
|
if ($isTextNode(elementNode)) {
|
|
11262
11100
|
elementNode = elementNode.getParent();
|
|
11263
11101
|
}
|
|
@@ -11761,7 +11599,6 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11761
11599
|
theme,
|
|
11762
11600
|
editable: props.editable,
|
|
11763
11601
|
namespace: props.namespace,
|
|
11764
|
-
editorState: null,
|
|
11765
11602
|
importCss: props.importCss,
|
|
11766
11603
|
importScripts: props.importScripts,
|
|
11767
11604
|
modules: props.modules,
|
|
@@ -11934,10 +11771,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11934
11771
|
const contentIsEmpty = ref(true);
|
|
11935
11772
|
const showAddNewline = ref(false);
|
|
11936
11773
|
const iframeContentRef = ref(null);
|
|
11937
|
-
const iframeBody = computed(() =>
|
|
11938
|
-
var _a2, _b2, _c2;
|
|
11939
|
-
return (_c2 = (_b2 = (_a2 = iframeContentRef.value) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.document) == null ? void 0 : _c2.body;
|
|
11940
|
-
});
|
|
11774
|
+
const iframeBody = computed(() => iframeContentRef.value?.contentWindow?.document?.body);
|
|
11941
11775
|
let updateTimeoutKey = 0;
|
|
11942
11776
|
const updateStageHeight = () => {
|
|
11943
11777
|
const stageEl = editor.getRootElement();
|
|
@@ -11955,8 +11789,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11955
11789
|
editor.update(() => $getRoot().append($createParagraphNode()));
|
|
11956
11790
|
};
|
|
11957
11791
|
useMounted(() => {
|
|
11958
|
-
|
|
11959
|
-
const doc = (_b2 = (_a2 = iframeContentRef.value) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.document;
|
|
11792
|
+
const doc = iframeContentRef.value?.contentWindow?.document;
|
|
11960
11793
|
importScript.split(",").filter((item) => !!item).forEach((path2) => {
|
|
11961
11794
|
const script = document.createElement("script");
|
|
11962
11795
|
script.src = path2;
|
|
@@ -12035,7 +11868,7 @@ const markdownEditorProps = buildProps({
|
|
|
12035
11868
|
const markdownEditorEmits = {
|
|
12036
11869
|
"update:model-value": (modelValue) => true
|
|
12037
11870
|
};
|
|
12038
|
-
const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-
|
|
11871
|
+
const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-D8ao5xa_.js"));
|
|
12039
11872
|
const MKMarkdownEditor = withInstall(_MarkdownEditor);
|
|
12040
11873
|
const _hoisted_1$s = { class: "mk-rich-text-toolbar" };
|
|
12041
11874
|
const _hoisted_2$n = { class: "mk-rich-text-editor__stage_warp" };
|
|
@@ -12099,7 +11932,7 @@ const Dialogs = /* @__PURE__ */ defineComponent({
|
|
|
12099
11932
|
setup(props) {
|
|
12100
11933
|
const dialogInstances = ref([]);
|
|
12101
11934
|
const dialogImplInstance = Dialoger.implInstance;
|
|
12102
|
-
if (
|
|
11935
|
+
if (dialogImplInstance?.dialogInstanceCreateEvent && isFunction(dialogImplInstance.dialogInstanceCreateEvent.on)) {
|
|
12103
11936
|
dialogImplInstance.dialogInstanceCreateEvent.on((dialogInstance) => {
|
|
12104
11937
|
dialogInstance.destroyEvent.once(() => {
|
|
12105
11938
|
const index2 = dialogInstances.value.findIndex((instance) => dialogInstance.id === instance.id);
|
|
@@ -12132,32 +11965,26 @@ const Dialogs = /* @__PURE__ */ defineComponent({
|
|
|
12132
11965
|
return () => {
|
|
12133
11966
|
const dialogs = unref(dialogInstances).map((dialogInstance) => {
|
|
12134
11967
|
return createVNode(MKConfigProvider, null, {
|
|
12135
|
-
default: () => {
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
|
|
11968
|
+
default: () => [createVNode(ElDialog, {
|
|
11969
|
+
"class": dialogInstance.class,
|
|
11970
|
+
"width": dialogInstance.width,
|
|
11971
|
+
"modelValue": dialogInstance.visible,
|
|
11972
|
+
"onUpdate:model-value": (visible) => dialogInstance.visible = visible,
|
|
11973
|
+
"onClose": () => handleClose(dialogInstance),
|
|
11974
|
+
"title": isFunction(dialogInstance.header) ? dialogInstance.header?.() : dialogInstance.title || ""
|
|
11975
|
+
}, {
|
|
11976
|
+
default: () => dialogInstance.body(),
|
|
11977
|
+
footer: () => isFunction(dialogInstance.footer) ? dialogInstance.footer?.() : createVNode(Fragment, null, [createVNode(ElButton, {
|
|
11978
|
+
"onClick": () => handleCancel(dialogInstance)
|
|
12144
11979
|
}, {
|
|
12145
|
-
default: () => dialogInstance.
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
"type": "primary",
|
|
12154
|
-
"onClick": () => handleConfirm(dialogInstance)
|
|
12155
|
-
}, {
|
|
12156
|
-
default: () => [dialogInstance.confirmButtonText ?? "确认"]
|
|
12157
|
-
})]);
|
|
12158
|
-
}
|
|
12159
|
-
})];
|
|
12160
|
-
}
|
|
11980
|
+
default: () => [dialogInstance.cancelButtonText ?? "取消"]
|
|
11981
|
+
}), createVNode(ElButton, {
|
|
11982
|
+
"type": "primary",
|
|
11983
|
+
"onClick": () => handleConfirm(dialogInstance)
|
|
11984
|
+
}, {
|
|
11985
|
+
default: () => [dialogInstance.confirmButtonText ?? "确认"]
|
|
11986
|
+
})])
|
|
11987
|
+
})]
|
|
12161
11988
|
});
|
|
12162
11989
|
});
|
|
12163
11990
|
return createVNode(Fragment, null, [dialogs]);
|
|
@@ -12178,8 +12005,7 @@ const Text$1 = /* @__PURE__ */ defineComponent({
|
|
|
12178
12005
|
}) {
|
|
12179
12006
|
const copyContainer = ref();
|
|
12180
12007
|
const copyHandle = () => {
|
|
12181
|
-
|
|
12182
|
-
const copyText = props.copyContent || ((_a2 = copyContainer.value) == null ? void 0 : _a2.innerText) || "";
|
|
12008
|
+
const copyText = props.copyContent || copyContainer.value?.innerText || "";
|
|
12183
12009
|
if (navigator.clipboard === void 0) {
|
|
12184
12010
|
const input = document.createElement("input");
|
|
12185
12011
|
input.value = copyText;
|
|
@@ -12389,27 +12215,27 @@ async function OpenVerifyCode(options) {
|
|
|
12389
12215
|
}
|
|
12390
12216
|
const MKOpenVerifyCode = OpenVerifyCode;
|
|
12391
12217
|
let ResourceManager$1 = class ResourceManager extends Disposable {
|
|
12218
|
+
directories;
|
|
12219
|
+
resourceInfoList;
|
|
12220
|
+
loadingManager;
|
|
12221
|
+
isShowEditDialog = false;
|
|
12222
|
+
currentEditText = "";
|
|
12223
|
+
filterExtensions = [];
|
|
12224
|
+
baseURL = "";
|
|
12225
|
+
get selectResourceList() {
|
|
12226
|
+
return this.resourceInfoList.filter((item) => item.isSelected);
|
|
12227
|
+
}
|
|
12228
|
+
get loading() {
|
|
12229
|
+
return this.loadingManager.loading;
|
|
12230
|
+
}
|
|
12392
12231
|
constructor(options) {
|
|
12393
12232
|
super();
|
|
12394
|
-
__publicField(this, "directories");
|
|
12395
|
-
__publicField(this, "resourceInfoList");
|
|
12396
|
-
__publicField(this, "loadingManager");
|
|
12397
|
-
__publicField(this, "isShowEditDialog", false);
|
|
12398
|
-
__publicField(this, "currentEditText", "");
|
|
12399
|
-
__publicField(this, "filterExtensions", []);
|
|
12400
|
-
__publicField(this, "baseURL", "");
|
|
12401
12233
|
this.directories = [];
|
|
12402
12234
|
this.resourceInfoList = [];
|
|
12403
12235
|
this.loadingManager = new LoadingManager();
|
|
12404
12236
|
this.filterExtensions = options.extensions ?? [];
|
|
12405
12237
|
this.baseURL = options.baseURL;
|
|
12406
12238
|
}
|
|
12407
|
-
get selectResourceList() {
|
|
12408
|
-
return this.resourceInfoList.filter((item) => item.isSelected);
|
|
12409
|
-
}
|
|
12410
|
-
get loading() {
|
|
12411
|
-
return this.loadingManager.loading;
|
|
12412
|
-
}
|
|
12413
12239
|
async loadResourceInfoList(toPath = this.directories.length ? `/${this.directories.join("/")}` : "") {
|
|
12414
12240
|
const httpRequest = MSAppClient.instance.httpRequest;
|
|
12415
12241
|
try {
|
|
@@ -12884,9 +12710,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12884
12710
|
unref(resourceManager).downloadSelectResource();
|
|
12885
12711
|
};
|
|
12886
12712
|
const handleDrop = async (event) => {
|
|
12887
|
-
var _a2, _b2;
|
|
12888
12713
|
waitUploadFiles = [];
|
|
12889
|
-
var _items =
|
|
12714
|
+
var _items = event.dataTransfer?.items;
|
|
12890
12715
|
var fileSystemEntry = _items[0].webkitGetAsEntry();
|
|
12891
12716
|
const internalProcess = async (item, path2 = "") => {
|
|
12892
12717
|
if (item.isFile) {
|
|
@@ -12924,7 +12749,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12924
12749
|
ElMessage.error({ message: checkResponse.data.msg });
|
|
12925
12750
|
return;
|
|
12926
12751
|
}
|
|
12927
|
-
if (
|
|
12752
|
+
if (checkResponse.data.data?.length === 0) {
|
|
12928
12753
|
await unref(resourceManager).uploadResourceList(files);
|
|
12929
12754
|
waitUploadFiles = [];
|
|
12930
12755
|
return;
|
|
@@ -13155,7 +12980,7 @@ const getFileNameByPath = (path2) => {
|
|
|
13155
12980
|
return path2.substring(path2.lastIndexOf("/") + 1, 0);
|
|
13156
12981
|
};
|
|
13157
12982
|
const useUploadService = (webFileUpload) => {
|
|
13158
|
-
webFileUpload
|
|
12983
|
+
webFileUpload ??= new WebFileUpload();
|
|
13159
12984
|
return {
|
|
13160
12985
|
/**
|
|
13161
12986
|
* 文件选择
|
|
@@ -13184,8 +13009,7 @@ const useUploadService = (webFileUpload) => {
|
|
|
13184
13009
|
uploadItemInfo.progress = Math.round((ev.progress ?? 0) * 100);
|
|
13185
13010
|
});
|
|
13186
13011
|
uploadItem.completeEvent.once(() => {
|
|
13187
|
-
|
|
13188
|
-
if (((_a2 = uploadItem.response) == null ? void 0 : _a2.data.code) === 200) {
|
|
13012
|
+
if (uploadItem.response?.data.code === 200) {
|
|
13189
13013
|
uploadItemInfo.path = uploadItem.response.data.data.path;
|
|
13190
13014
|
if (uploadItemInfo.path) {
|
|
13191
13015
|
uploadItemInfo.name = getFileNameByPath(uploadItemInfo.path);
|
|
@@ -14937,8 +14761,7 @@ const MKFileSelect = async function(options) {
|
|
|
14937
14761
|
}
|
|
14938
14762
|
};
|
|
14939
14763
|
const handleMaterialSelect = async (data) => {
|
|
14940
|
-
|
|
14941
|
-
filePath.value = (_a2 = data[0]) == null ? void 0 : _a2.path;
|
|
14764
|
+
filePath.value = data[0]?.path;
|
|
14942
14765
|
file = null;
|
|
14943
14766
|
};
|
|
14944
14767
|
const handleConfirmClick = async () => {
|
|
@@ -15383,10 +15206,11 @@ async function ResourceSelect(options) {
|
|
|
15383
15206
|
});
|
|
15384
15207
|
}
|
|
15385
15208
|
const MKResourceSelect = ResourceSelect;
|
|
15386
|
-
|
|
15209
|
+
class MsMenuTree extends DataTree {
|
|
15210
|
+
static [DATA_MODEL_NAME] = "ms-menu";
|
|
15387
15211
|
constructor(options = {}) {
|
|
15388
15212
|
super({
|
|
15389
|
-
name:
|
|
15213
|
+
name: MsMenuTree[DATA_MODEL_NAME],
|
|
15390
15214
|
moduleName: MODULE_NAME,
|
|
15391
15215
|
sortFieldName: "sort",
|
|
15392
15216
|
...options
|
|
@@ -15519,10 +15343,10 @@ const _MsMenuTree = class _MsMenuTree extends (_F = DataTree, _E = DATA_MODEL_NA
|
|
|
15519
15343
|
*/
|
|
15520
15344
|
getRoutePath(item) {
|
|
15521
15345
|
const route = item.routes.find((route2) => route2.id === item.routeId);
|
|
15522
|
-
let path2 =
|
|
15346
|
+
let path2 = route?.route || "";
|
|
15523
15347
|
if (!path2 && route) {
|
|
15524
15348
|
const pageRoute = MSAppClient.instance.pageManager.extendsPages.find((item2) => item2.name === route.name);
|
|
15525
|
-
path2 =
|
|
15349
|
+
path2 = pageRoute?.path ?? "";
|
|
15526
15350
|
}
|
|
15527
15351
|
if (!path2 && route) {
|
|
15528
15352
|
const match = route.name.match(/^dv\/([^/]+)\/(edit|.+)$/i);
|
|
@@ -15543,28 +15367,26 @@ const _MsMenuTree = class _MsMenuTree extends (_F = DataTree, _E = DATA_MODEL_NA
|
|
|
15543
15367
|
return item;
|
|
15544
15368
|
}
|
|
15545
15369
|
nodeHasChildren(node) {
|
|
15546
|
-
|
|
15547
|
-
return [MenuType.Container, MenuType.SystemSettings].includes((_a2 = node.data) == null ? void 0 : _a2.type);
|
|
15370
|
+
return [MenuType.Container, MenuType.SystemSettings].includes(node.data?.type);
|
|
15548
15371
|
}
|
|
15549
15372
|
async load(params) {
|
|
15550
15373
|
return super.loadAll(params);
|
|
15551
15374
|
}
|
|
15552
|
-
}
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
const _MsMenuForm = class _MsMenuForm extends (_H = DataForm$1, _G = DATA_MODEL_NAME, _H) {
|
|
15375
|
+
}
|
|
15376
|
+
class MsMenuForm extends DataForm$1 {
|
|
15377
|
+
static [DATA_MODEL_NAME] = "ms-menu";
|
|
15556
15378
|
// 构造
|
|
15557
15379
|
constructor(options = {}) {
|
|
15558
15380
|
super({
|
|
15559
|
-
name:
|
|
15381
|
+
name: MsMenuForm[DATA_MODEL_NAME],
|
|
15560
15382
|
moduleName: MODULE_NAME,
|
|
15561
15383
|
...options
|
|
15562
15384
|
});
|
|
15563
|
-
// 父菜单数据表
|
|
15564
|
-
__publicField(this, "parentMenuTable", this.register(new MsMenuTree({ pageSize: 10 })));
|
|
15565
|
-
// 路由定义
|
|
15566
|
-
__publicField(this, "routeDefineTable", this.register(new MsRouteTable({ pageSize: 10 })));
|
|
15567
15385
|
}
|
|
15386
|
+
// 父菜单数据表
|
|
15387
|
+
parentMenuTable = this.register(new MsMenuTree({ pageSize: 10 }));
|
|
15388
|
+
// 路由定义
|
|
15389
|
+
routeDefineTable = this.register(new MsRouteTable({ pageSize: 10 }));
|
|
15568
15390
|
async initialize() {
|
|
15569
15391
|
await super.initialize();
|
|
15570
15392
|
await Promise.all([
|
|
@@ -15667,9 +15489,8 @@ const _MsMenuForm = class _MsMenuForm extends (_H = DataForm$1, _G = DATA_MODEL_
|
|
|
15667
15489
|
this.getColumn("urlType").disabled = dataFormType !== DataFormType.ADD;
|
|
15668
15490
|
});
|
|
15669
15491
|
this.formItemValueChangeEvent.on(({ formItem }) => {
|
|
15670
|
-
var _a2;
|
|
15671
15492
|
if (formItem.name === "type" || formItem.name === "urlType") {
|
|
15672
|
-
const visible =
|
|
15493
|
+
const visible = this.data?.type === MenuType.Menu && this.data.urlType === MenuUrlType.Inner;
|
|
15673
15494
|
this.getColumn("routes").visible = visible;
|
|
15674
15495
|
this.getColumn("permissionPoints").visible = visible;
|
|
15675
15496
|
}
|
|
@@ -15715,20 +15536,18 @@ const _MsMenuForm = class _MsMenuForm extends (_H = DataForm$1, _G = DATA_MODEL_
|
|
|
15715
15536
|
memo: item.memo || ""
|
|
15716
15537
|
};
|
|
15717
15538
|
}
|
|
15718
|
-
}
|
|
15719
|
-
__publicField(_MsMenuForm, _G, "ms-menu");
|
|
15720
|
-
let MsMenuForm = _MsMenuForm;
|
|
15539
|
+
}
|
|
15721
15540
|
class RolePermissionConfigTable extends MsMenuTable {
|
|
15541
|
+
roleRouteTable;
|
|
15542
|
+
rolePermissionPointTable;
|
|
15543
|
+
permissionPointDefineTable;
|
|
15544
|
+
routeDefineTable;
|
|
15545
|
+
rootRoleMenuNodes = [];
|
|
15546
|
+
currentRole = null;
|
|
15547
|
+
currentRoleId = "";
|
|
15548
|
+
currentRoleDesc = "";
|
|
15722
15549
|
constructor(options = {}) {
|
|
15723
15550
|
super({ ...options });
|
|
15724
|
-
__publicField(this, "roleRouteTable");
|
|
15725
|
-
__publicField(this, "rolePermissionPointTable");
|
|
15726
|
-
__publicField(this, "permissionPointDefineTable");
|
|
15727
|
-
__publicField(this, "routeDefineTable");
|
|
15728
|
-
__publicField(this, "rootRoleMenuNodes", []);
|
|
15729
|
-
__publicField(this, "currentRole", null);
|
|
15730
|
-
__publicField(this, "currentRoleId", "");
|
|
15731
|
-
__publicField(this, "currentRoleDesc", "");
|
|
15732
15551
|
this.roleRouteTable = new MsRoleRouteTable();
|
|
15733
15552
|
this.rolePermissionPointTable = new MsRolePermissionPointTable();
|
|
15734
15553
|
this.permissionPointDefineTable = new class extends MsPermissionPointDefineTable {
|
|
@@ -15860,8 +15679,8 @@ class RolePermissionConfigTable extends MsMenuTable {
|
|
|
15860
15679
|
*/
|
|
15861
15680
|
async selectRolePermission(role) {
|
|
15862
15681
|
this.currentRole = role;
|
|
15863
|
-
this.currentRoleId =
|
|
15864
|
-
this.currentRoleDesc =
|
|
15682
|
+
this.currentRoleId = role?.id || "";
|
|
15683
|
+
this.currentRoleDesc = role?.desc || "";
|
|
15865
15684
|
const [
|
|
15866
15685
|
roleRouteTableResult,
|
|
15867
15686
|
rolePermissionPointTableResult
|
|
@@ -16055,10 +15874,11 @@ class RolePermissionConfigTable extends MsMenuTable {
|
|
|
16055
15874
|
return !!(removePermissionPointDefines.length || removeRoutes.length || addPermissionPointDefine.length || addRoutes.length);
|
|
16056
15875
|
}
|
|
16057
15876
|
}
|
|
16058
|
-
|
|
15877
|
+
class MsMemberForm extends DataForm$1 {
|
|
15878
|
+
static [DATA_MODEL_NAME] = "ms-member";
|
|
16059
15879
|
constructor(options = {}) {
|
|
16060
15880
|
super({
|
|
16061
|
-
name:
|
|
15881
|
+
name: MsMemberForm[DATA_MODEL_NAME],
|
|
16062
15882
|
moduleName: MODULE_NAME,
|
|
16063
15883
|
...options
|
|
16064
15884
|
});
|
|
@@ -16137,9 +15957,7 @@ const _MsMemberForm = class _MsMemberForm extends (_J = DataForm$1, _I = DATA_MO
|
|
|
16137
15957
|
// memo: item.memo || "",
|
|
16138
15958
|
// } as F;
|
|
16139
15959
|
// }
|
|
16140
|
-
}
|
|
16141
|
-
__publicField(_MsMemberForm, _I, "ms-member");
|
|
16142
|
-
let MsMemberForm = _MsMemberForm;
|
|
15960
|
+
}
|
|
16143
15961
|
const MemberNickNameColumn = /* @__PURE__ */ defineComponent({
|
|
16144
15962
|
props: dataTableColumnProps,
|
|
16145
15963
|
setup(props) {
|
|
@@ -16194,14 +16012,15 @@ const MemberRolesColumn = /* @__PURE__ */ defineComponent({
|
|
|
16194
16012
|
};
|
|
16195
16013
|
}
|
|
16196
16014
|
});
|
|
16197
|
-
|
|
16015
|
+
class MsMemberTable extends DataTable$1 {
|
|
16016
|
+
static [DATA_MODEL_NAME] = "ms-member";
|
|
16017
|
+
activeDialog = null;
|
|
16198
16018
|
constructor(options = {}) {
|
|
16199
16019
|
super({
|
|
16200
|
-
name:
|
|
16020
|
+
name: MsMemberTable[DATA_MODEL_NAME],
|
|
16201
16021
|
moduleName: MODULE_NAME,
|
|
16202
16022
|
...options
|
|
16203
16023
|
});
|
|
16204
|
-
__publicField(this, "activeDialog", null);
|
|
16205
16024
|
this.activeMemberForm = this.register(new class extends MsMemberForm {
|
|
16206
16025
|
formatSubmitData(data) {
|
|
16207
16026
|
data = super.formatSubmitData(data);
|
|
@@ -16217,10 +16036,9 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
|
|
|
16217
16036
|
* @protected
|
|
16218
16037
|
*/
|
|
16219
16038
|
async initialize() {
|
|
16220
|
-
var _a2, _b2, _c2;
|
|
16221
16039
|
await super.initialize();
|
|
16222
16040
|
await this.initActiveMemberForm();
|
|
16223
|
-
const isSuperAdmin =
|
|
16041
|
+
const isSuperAdmin = MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false;
|
|
16224
16042
|
this.header.rightArea = [new RefreshButton(), new AddButton(), new ImportButton(), new TableHeaderItem$1({
|
|
16225
16043
|
componentInfo: "MKBatchOpt",
|
|
16226
16044
|
predicate: () => isSuperAdmin
|
|
@@ -16453,7 +16271,6 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
|
|
|
16453
16271
|
* 申请成员
|
|
16454
16272
|
*/
|
|
16455
16273
|
async approveMember() {
|
|
16456
|
-
var _a2;
|
|
16457
16274
|
try {
|
|
16458
16275
|
if (this.activeMemberForm.loading) {
|
|
16459
16276
|
return;
|
|
@@ -16475,14 +16292,14 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
|
|
|
16475
16292
|
approveResult: _data.valid.toString()
|
|
16476
16293
|
}
|
|
16477
16294
|
});
|
|
16478
|
-
if (
|
|
16295
|
+
if (response?.data.code != 200) {
|
|
16479
16296
|
Messager.error({
|
|
16480
|
-
message:
|
|
16297
|
+
message: response?.data.msg || "请求失败"
|
|
16481
16298
|
});
|
|
16482
16299
|
return;
|
|
16483
16300
|
}
|
|
16484
|
-
|
|
16485
|
-
if (response
|
|
16301
|
+
this.activeDialog?.destroy();
|
|
16302
|
+
if (response?.data.data) {
|
|
16486
16303
|
Dialoger.customRender({
|
|
16487
16304
|
title: "重置密码成功",
|
|
16488
16305
|
width: "475px",
|
|
@@ -16517,34 +16334,31 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
|
|
|
16517
16334
|
}
|
|
16518
16335
|
}
|
|
16519
16336
|
formatItem(item) {
|
|
16520
|
-
var _a2;
|
|
16521
16337
|
return {
|
|
16522
16338
|
...item,
|
|
16523
|
-
roles:
|
|
16339
|
+
roles: item.roles?.map((role) => ({
|
|
16524
16340
|
id: role.id,
|
|
16525
16341
|
name: role.name || "",
|
|
16526
16342
|
desc: role.desc || ""
|
|
16527
|
-
}))
|
|
16343
|
+
})) ?? [],
|
|
16528
16344
|
type: item.valid === 0 ? 1 : 3
|
|
16529
16345
|
};
|
|
16530
16346
|
}
|
|
16531
|
-
}
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16347
|
+
}
|
|
16348
|
+
class MsMemberRoleTable extends DataTable$1 {
|
|
16349
|
+
static [DATA_MODEL_NAME] = "ms-member-role";
|
|
16350
|
+
currentRole = null;
|
|
16535
16351
|
constructor(options = {}) {
|
|
16536
16352
|
super({
|
|
16537
|
-
name:
|
|
16353
|
+
name: MsMemberRoleTable[DATA_MODEL_NAME],
|
|
16538
16354
|
moduleName: MODULE_NAME,
|
|
16539
16355
|
...options
|
|
16540
16356
|
});
|
|
16541
|
-
__publicField(this, "currentRole", null);
|
|
16542
16357
|
const memberRoleTable = this;
|
|
16543
16358
|
this.memberTable = this.register(new class extends MsMemberTable {
|
|
16544
16359
|
async loadRequest(params) {
|
|
16545
|
-
var _a2, _b2;
|
|
16546
16360
|
return super.loadRequest(Object.assign({
|
|
16547
|
-
excludeRoleIds:
|
|
16361
|
+
excludeRoleIds: memberRoleTable.currentRole?.id ? [memberRoleTable.currentRole?.id] : []
|
|
16548
16362
|
}, params));
|
|
16549
16363
|
}
|
|
16550
16364
|
}());
|
|
@@ -16600,13 +16414,12 @@ const _MsMemberRoleTable = class _MsMemberRoleTable extends (_N = DataTable$1, _
|
|
|
16600
16414
|
buttons: [new DeleteButton()]
|
|
16601
16415
|
})]);
|
|
16602
16416
|
}
|
|
16603
|
-
}
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
const _MsMemberRoleForm = class _MsMemberRoleForm extends (_P = DataForm$1, _O = DATA_MODEL_NAME, _P) {
|
|
16417
|
+
}
|
|
16418
|
+
class MsMemberRoleForm extends DataForm$1 {
|
|
16419
|
+
static [DATA_MODEL_NAME] = "ms-member-role";
|
|
16607
16420
|
constructor(options = {}) {
|
|
16608
16421
|
super({
|
|
16609
|
-
name:
|
|
16422
|
+
name: MsMemberRoleForm[DATA_MODEL_NAME],
|
|
16610
16423
|
moduleName: MODULE_NAME,
|
|
16611
16424
|
...options
|
|
16612
16425
|
});
|
|
@@ -16620,13 +16433,12 @@ const _MsMemberRoleForm = class _MsMemberRoleForm extends (_P = DataForm$1, _O =
|
|
|
16620
16433
|
// roleId: this.currentRole?.id!,
|
|
16621
16434
|
// };
|
|
16622
16435
|
// }
|
|
16623
|
-
}
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
const _MsIPWhitelistForm = class _MsIPWhitelistForm extends (_R = DataForm$1, _Q = DATA_MODEL_NAME, _R) {
|
|
16436
|
+
}
|
|
16437
|
+
class MsIPWhitelistForm extends DataForm$1 {
|
|
16438
|
+
static [DATA_MODEL_NAME] = "ms-access-ip-whitelist";
|
|
16627
16439
|
constructor(options = {}) {
|
|
16628
16440
|
super({
|
|
16629
|
-
name:
|
|
16441
|
+
name: MsIPWhitelistForm[DATA_MODEL_NAME],
|
|
16630
16442
|
moduleName: MODULE_NAME,
|
|
16631
16443
|
...options
|
|
16632
16444
|
});
|
|
@@ -16651,13 +16463,12 @@ const _MsIPWhitelistForm = class _MsIPWhitelistForm extends (_R = DataForm$1, _Q
|
|
|
16651
16463
|
})
|
|
16652
16464
|
]);
|
|
16653
16465
|
}
|
|
16654
|
-
}
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = DataTable$1, _S = DATA_MODEL_NAME, _T) {
|
|
16466
|
+
}
|
|
16467
|
+
class MsIPWhitelistTable extends DataTable$1 {
|
|
16468
|
+
static [DATA_MODEL_NAME] = "ms-access-ip-whitelist";
|
|
16658
16469
|
constructor(options = {}) {
|
|
16659
16470
|
super({
|
|
16660
|
-
name:
|
|
16471
|
+
name: MsIPWhitelistTable[DATA_MODEL_NAME],
|
|
16661
16472
|
moduleName: MODULE_NAME,
|
|
16662
16473
|
...options
|
|
16663
16474
|
});
|
|
@@ -16669,10 +16480,7 @@ const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = DataTable$1,
|
|
|
16669
16480
|
new AddButton(),
|
|
16670
16481
|
new TableHeaderItem$1({
|
|
16671
16482
|
componentInfo: "MKBatchOpt",
|
|
16672
|
-
predicate: () =>
|
|
16673
|
-
var _a2, _b2, _c2;
|
|
16674
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
16675
|
-
}
|
|
16483
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
16676
16484
|
})
|
|
16677
16485
|
];
|
|
16678
16486
|
this.setColumns([
|
|
@@ -16727,13 +16535,12 @@ const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = DataTable$1,
|
|
|
16727
16535
|
})
|
|
16728
16536
|
]);
|
|
16729
16537
|
}
|
|
16730
|
-
}
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
const _MsDenyIPAccessListForm = class _MsDenyIPAccessListForm extends (_V = DataForm$1, _U = DATA_MODEL_NAME, _V) {
|
|
16538
|
+
}
|
|
16539
|
+
class MsDenyIPAccessListForm extends DataForm$1 {
|
|
16540
|
+
static [DATA_MODEL_NAME] = "ms-deny-access-ip-list";
|
|
16734
16541
|
constructor(options = {}) {
|
|
16735
16542
|
super({
|
|
16736
|
-
name:
|
|
16543
|
+
name: MsDenyIPAccessListForm[DATA_MODEL_NAME],
|
|
16737
16544
|
moduleName: MODULE_NAME,
|
|
16738
16545
|
...options
|
|
16739
16546
|
});
|
|
@@ -16750,13 +16557,12 @@ const _MsDenyIPAccessListForm = class _MsDenyIPAccessListForm extends (_V = Data
|
|
|
16750
16557
|
})
|
|
16751
16558
|
]);
|
|
16752
16559
|
}
|
|
16753
|
-
}
|
|
16754
|
-
|
|
16755
|
-
|
|
16756
|
-
const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = DataTable$1, _W = DATA_MODEL_NAME, _X) {
|
|
16560
|
+
}
|
|
16561
|
+
class MsDenyIPAccessListTable extends DataTable$1 {
|
|
16562
|
+
static [DATA_MODEL_NAME] = "ms-deny-access-ip-list";
|
|
16757
16563
|
constructor(options = {}) {
|
|
16758
16564
|
super({
|
|
16759
|
-
name:
|
|
16565
|
+
name: MsDenyIPAccessListTable[DATA_MODEL_NAME],
|
|
16760
16566
|
moduleName: MODULE_NAME,
|
|
16761
16567
|
...options
|
|
16762
16568
|
});
|
|
@@ -16768,10 +16574,7 @@ const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = Da
|
|
|
16768
16574
|
new AddButton(),
|
|
16769
16575
|
new TableHeaderItem$1({
|
|
16770
16576
|
componentInfo: "MKBatchOpt",
|
|
16771
|
-
predicate: () =>
|
|
16772
|
-
var _a2, _b2, _c2;
|
|
16773
|
-
return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
|
|
16774
|
-
}
|
|
16577
|
+
predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
|
|
16775
16578
|
})
|
|
16776
16579
|
];
|
|
16777
16580
|
this.setColumns([
|
|
@@ -16826,13 +16629,12 @@ const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = Da
|
|
|
16826
16629
|
})
|
|
16827
16630
|
]);
|
|
16828
16631
|
}
|
|
16829
|
-
}
|
|
16830
|
-
|
|
16831
|
-
|
|
16832
|
-
const _MsRegionForm = class _MsRegionForm extends (_Z = DataForm$1, _Y = DATA_MODEL_NAME, _Z) {
|
|
16632
|
+
}
|
|
16633
|
+
class MsRegionForm extends DataForm$1 {
|
|
16634
|
+
static [DATA_MODEL_NAME] = "ms-region";
|
|
16833
16635
|
constructor(options = {}) {
|
|
16834
16636
|
super({
|
|
16835
|
-
name:
|
|
16637
|
+
name: MsRegionForm[DATA_MODEL_NAME],
|
|
16836
16638
|
moduleName: MODULE_NAME,
|
|
16837
16639
|
...options
|
|
16838
16640
|
});
|
|
@@ -16865,13 +16667,12 @@ const _MsRegionForm = class _MsRegionForm extends (_Z = DataForm$1, _Y = DATA_MO
|
|
|
16865
16667
|
new FormColumn({ name: "pinyin", label: "拼音" })
|
|
16866
16668
|
]);
|
|
16867
16669
|
}
|
|
16868
|
-
}
|
|
16869
|
-
|
|
16870
|
-
|
|
16871
|
-
const _MsRegionTable = class _MsRegionTable extends (_$ = DataTable$1, __ = DATA_MODEL_NAME, _$) {
|
|
16670
|
+
}
|
|
16671
|
+
class MsRegionTable extends DataTable$1 {
|
|
16672
|
+
static [DATA_MODEL_NAME] = "ms-region";
|
|
16872
16673
|
constructor(options = {}) {
|
|
16873
16674
|
super({
|
|
16874
|
-
name:
|
|
16675
|
+
name: MsRegionTable[DATA_MODEL_NAME],
|
|
16875
16676
|
moduleName: MODULE_NAME,
|
|
16876
16677
|
...options
|
|
16877
16678
|
});
|
|
@@ -16917,9 +16718,7 @@ const _MsRegionTable = class _MsRegionTable extends (_$ = DataTable$1, __ = DATA
|
|
|
16917
16718
|
new TableActionColumn()
|
|
16918
16719
|
]);
|
|
16919
16720
|
}
|
|
16920
|
-
}
|
|
16921
|
-
__publicField(_MsRegionTable, __, "ms-region");
|
|
16922
|
-
let MsRegionTable = _MsRegionTable;
|
|
16721
|
+
}
|
|
16923
16722
|
class DepartmentForm extends DataForm$1 {
|
|
16924
16723
|
constructor(options = {}) {
|
|
16925
16724
|
super({ name: "ms-dept", ...options });
|
|
@@ -17152,10 +16951,11 @@ class LocalLogTree extends DataTree {
|
|
|
17152
16951
|
return { ...item, children: [] };
|
|
17153
16952
|
}
|
|
17154
16953
|
}
|
|
17155
|
-
|
|
16954
|
+
class MsMessageForm extends DataForm$1 {
|
|
16955
|
+
static [DATA_MODEL_NAME] = "message";
|
|
17156
16956
|
constructor(options = {}) {
|
|
17157
16957
|
super({
|
|
17158
|
-
name:
|
|
16958
|
+
name: MsMessageForm[DATA_MODEL_NAME],
|
|
17159
16959
|
moduleName: MODULE_NAME,
|
|
17160
16960
|
...options
|
|
17161
16961
|
});
|
|
@@ -17187,13 +16987,12 @@ const _MsMessageForm = class _MsMessageForm extends (_ba = DataForm$1, _aa = DAT
|
|
|
17187
16987
|
})
|
|
17188
16988
|
]);
|
|
17189
16989
|
}
|
|
17190
|
-
}
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
const _SendForm = class _SendForm extends (_da = DataForm$1, _ca = DATA_MODEL_NAME, _da) {
|
|
16990
|
+
}
|
|
16991
|
+
class SendForm extends DataForm$1 {
|
|
16992
|
+
static [DATA_MODEL_NAME] = "message";
|
|
17194
16993
|
constructor(options = {}) {
|
|
17195
16994
|
super({
|
|
17196
|
-
name:
|
|
16995
|
+
name: SendForm[DATA_MODEL_NAME],
|
|
17197
16996
|
moduleName: MODULE_NAME,
|
|
17198
16997
|
...options
|
|
17199
16998
|
});
|
|
@@ -17254,17 +17053,16 @@ const _SendForm = class _SendForm extends (_da = DataForm$1, _ca = DATA_MODEL_NA
|
|
|
17254
17053
|
async addRequest(params) {
|
|
17255
17054
|
return await this.httpRequest.post("/ms/dv/message/send", this.data);
|
|
17256
17055
|
}
|
|
17257
|
-
}
|
|
17258
|
-
|
|
17259
|
-
|
|
17260
|
-
|
|
17056
|
+
}
|
|
17057
|
+
class MsMessageTable extends DataTable$1 {
|
|
17058
|
+
static [DATA_MODEL_NAME] = "message";
|
|
17059
|
+
sendForm;
|
|
17261
17060
|
constructor(options = {}) {
|
|
17262
17061
|
super({
|
|
17263
|
-
name:
|
|
17062
|
+
name: MsMessageTable[DATA_MODEL_NAME],
|
|
17264
17063
|
moduleName: MODULE_NAME,
|
|
17265
17064
|
...options
|
|
17266
17065
|
});
|
|
17267
|
-
__publicField(this, "sendForm");
|
|
17268
17066
|
this.httpRequest = MSAppClient.instance.httpRequest;
|
|
17269
17067
|
this.sendForm = this.register(new SendForm());
|
|
17270
17068
|
}
|
|
@@ -17307,13 +17105,13 @@ const _MsMessageTable = class _MsMessageTable extends (_fa = DataTable$1, _ea =
|
|
|
17307
17105
|
// new TableActionColumn(),
|
|
17308
17106
|
]);
|
|
17309
17107
|
}
|
|
17310
|
-
}
|
|
17311
|
-
|
|
17312
|
-
|
|
17313
|
-
|
|
17108
|
+
}
|
|
17109
|
+
class MsMessageNotifyTable extends DataTable$1 {
|
|
17110
|
+
static components = new Components();
|
|
17111
|
+
static [DATA_MODEL_NAME] = "message-notify";
|
|
17314
17112
|
constructor(options = {}) {
|
|
17315
17113
|
super({
|
|
17316
|
-
name:
|
|
17114
|
+
name: MsMessageNotifyTable[DATA_MODEL_NAME],
|
|
17317
17115
|
moduleName: "ms",
|
|
17318
17116
|
...options
|
|
17319
17117
|
});
|
|
@@ -17343,7 +17141,7 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTab
|
|
|
17343
17141
|
return response;
|
|
17344
17142
|
}
|
|
17345
17143
|
handleNotification(notification) {
|
|
17346
|
-
const NotificationComponent =
|
|
17144
|
+
const NotificationComponent = MsMessageNotifyTable.components.resolveComponent(notification.type.toString());
|
|
17347
17145
|
if (NotificationComponent) {
|
|
17348
17146
|
Notificationer.info({
|
|
17349
17147
|
dangerouslyUseHTMLString: notification.dangerouslyUseHTMLString ?? false,
|
|
@@ -17381,9 +17179,9 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTab
|
|
|
17381
17179
|
try {
|
|
17382
17180
|
this.loadingManager.startLoading();
|
|
17383
17181
|
const result = await this.httpRequest.post("/message/readAll");
|
|
17384
|
-
if (
|
|
17182
|
+
if (result?.data.code !== 200) {
|
|
17385
17183
|
Messager.error({
|
|
17386
|
-
message:
|
|
17184
|
+
message: result?.data.msg || "操作失败"
|
|
17387
17185
|
});
|
|
17388
17186
|
return;
|
|
17389
17187
|
}
|
|
@@ -17396,14 +17194,12 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTab
|
|
|
17396
17194
|
this.loadingManager.completeLoading();
|
|
17397
17195
|
}
|
|
17398
17196
|
}
|
|
17399
|
-
}
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
let MsMessageNotifyTable = _MsMessageNotifyTable;
|
|
17403
|
-
const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1, _ia = DATA_MODEL_NAME, _ja) {
|
|
17197
|
+
}
|
|
17198
|
+
class MsRequestLogTable extends DataTable$1 {
|
|
17199
|
+
static [DATA_MODEL_NAME] = "request-log";
|
|
17404
17200
|
constructor(options = {}) {
|
|
17405
17201
|
super({
|
|
17406
|
-
name:
|
|
17202
|
+
name: MsRequestLogTable[DATA_MODEL_NAME],
|
|
17407
17203
|
moduleName: MODULE_NAME,
|
|
17408
17204
|
...options
|
|
17409
17205
|
});
|
|
@@ -17475,7 +17271,6 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1,
|
|
|
17475
17271
|
buttons: [new ActionButton({
|
|
17476
17272
|
label: "查看内容",
|
|
17477
17273
|
handler: async (row) => {
|
|
17478
|
-
var _a2;
|
|
17479
17274
|
try {
|
|
17480
17275
|
this.loadingManager.startLoading();
|
|
17481
17276
|
const response = await this.dataViewRequest.load(row.id, {
|
|
@@ -17487,7 +17282,7 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1,
|
|
|
17487
17282
|
});
|
|
17488
17283
|
return;
|
|
17489
17284
|
}
|
|
17490
|
-
const content =
|
|
17285
|
+
const content = response.data.data?.content;
|
|
17491
17286
|
if (!content) {
|
|
17492
17287
|
Messager.warning({
|
|
17493
17288
|
message: "没有获取到内容"
|
|
@@ -17524,33 +17319,39 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1,
|
|
|
17524
17319
|
timeOperationElapsedMilliseconds: `${item.timeOperationElapsedMilliseconds / 1e3}s`
|
|
17525
17320
|
};
|
|
17526
17321
|
}
|
|
17527
|
-
}
|
|
17528
|
-
__publicField(_MsRequestLogTable, _ia, "request-log");
|
|
17529
|
-
let MsRequestLogTable = _MsRequestLogTable;
|
|
17322
|
+
}
|
|
17530
17323
|
class MSAppClient {
|
|
17324
|
+
static instance = null;
|
|
17325
|
+
origin = "";
|
|
17326
|
+
_options;
|
|
17327
|
+
app;
|
|
17328
|
+
projectName;
|
|
17329
|
+
logo;
|
|
17330
|
+
appID;
|
|
17331
|
+
userSession = null;
|
|
17332
|
+
httpRequest;
|
|
17333
|
+
ready = false;
|
|
17334
|
+
initd = false;
|
|
17335
|
+
pageManager;
|
|
17336
|
+
modules = [];
|
|
17337
|
+
settings;
|
|
17338
|
+
/**
|
|
17339
|
+
* @deprecated
|
|
17340
|
+
* @description 使用 MSAppClient.instance.userSession.userInfo
|
|
17341
|
+
*/
|
|
17342
|
+
get userInfo() {
|
|
17343
|
+
return this.userSession?.userInfo ?? null;
|
|
17344
|
+
}
|
|
17345
|
+
dataTableComponents;
|
|
17346
|
+
dataTableHeaderComponents;
|
|
17347
|
+
dataFormComponents;
|
|
17348
|
+
dataFilterComponents;
|
|
17349
|
+
whereFilterComponents;
|
|
17350
|
+
i18n;
|
|
17351
|
+
vueRouter;
|
|
17352
|
+
beforeInitUserSessionEvent = new Event();
|
|
17353
|
+
userSessionChangeEvent = new Event();
|
|
17531
17354
|
constructor(options) {
|
|
17532
|
-
__publicField(this, "origin", "");
|
|
17533
|
-
__publicField(this, "_options");
|
|
17534
|
-
__publicField(this, "app");
|
|
17535
|
-
__publicField(this, "projectName");
|
|
17536
|
-
__publicField(this, "logo");
|
|
17537
|
-
__publicField(this, "appID");
|
|
17538
|
-
__publicField(this, "userSession", null);
|
|
17539
|
-
__publicField(this, "httpRequest");
|
|
17540
|
-
__publicField(this, "ready", false);
|
|
17541
|
-
__publicField(this, "initd", false);
|
|
17542
|
-
__publicField(this, "pageManager");
|
|
17543
|
-
__publicField(this, "modules", []);
|
|
17544
|
-
__publicField(this, "settings");
|
|
17545
|
-
__publicField(this, "dataTableComponents");
|
|
17546
|
-
__publicField(this, "dataTableHeaderComponents");
|
|
17547
|
-
__publicField(this, "dataFormComponents");
|
|
17548
|
-
__publicField(this, "dataFilterComponents");
|
|
17549
|
-
__publicField(this, "whereFilterComponents");
|
|
17550
|
-
__publicField(this, "i18n");
|
|
17551
|
-
__publicField(this, "vueRouter");
|
|
17552
|
-
__publicField(this, "beforeInitUserSessionEvent", new Event());
|
|
17553
|
-
__publicField(this, "userSessionChangeEvent", new Event());
|
|
17554
17355
|
this._options = this._normalizeOptions(options);
|
|
17555
17356
|
this.app = options.app;
|
|
17556
17357
|
this.appID = this._options.appID;
|
|
@@ -17575,14 +17376,6 @@ class MSAppClient {
|
|
|
17575
17376
|
HttpRequest.setDefaultHttpRequest(this.httpRequest);
|
|
17576
17377
|
DVQueryable.setHttpRequest(this.httpRequest);
|
|
17577
17378
|
}
|
|
17578
|
-
/**
|
|
17579
|
-
* @deprecated
|
|
17580
|
-
* @description 使用 MSAppClient.instance.userSession.userInfo
|
|
17581
|
-
*/
|
|
17582
|
-
get userInfo() {
|
|
17583
|
-
var _a2;
|
|
17584
|
-
return ((_a2 = this.userSession) == null ? void 0 : _a2.userInfo) ?? null;
|
|
17585
|
-
}
|
|
17586
17379
|
setUserSession(userSession) {
|
|
17587
17380
|
if (this.userSession) {
|
|
17588
17381
|
this.userSession.dispose();
|
|
@@ -17626,7 +17419,7 @@ class MSAppClient {
|
|
|
17626
17419
|
this.userSession = null;
|
|
17627
17420
|
this.beforeInitUserSessionEvent.emit({ userSession });
|
|
17628
17421
|
const userSessionInitResult = await userSession.init();
|
|
17629
|
-
if (
|
|
17422
|
+
if (userSessionInitResult?.data.code !== 200) {
|
|
17630
17423
|
userSession.dispose();
|
|
17631
17424
|
return userSessionInitResult;
|
|
17632
17425
|
}
|
|
@@ -17721,41 +17514,41 @@ class MSAppClient {
|
|
|
17721
17514
|
this.pageManager.addExtendsPage({
|
|
17722
17515
|
name: "dv/ms-material/list",
|
|
17723
17516
|
path: "/sys/materials",
|
|
17724
|
-
component: () => import("./index-
|
|
17517
|
+
component: () => import("./index-9xY--M0f.js"),
|
|
17725
17518
|
meta: { name: "ms-material" }
|
|
17726
17519
|
});
|
|
17727
17520
|
this.pageManager.addExtendsPage({
|
|
17728
17521
|
name: "dv/ms-role/single/list/dialog",
|
|
17729
17522
|
path: "/sys/roles",
|
|
17730
|
-
component: () => import("./index-
|
|
17523
|
+
component: () => import("./index-Bhhtz3Yu.js"),
|
|
17731
17524
|
meta: { name: "ms-role" }
|
|
17732
17525
|
});
|
|
17733
17526
|
this.pageManager.addExtendsPage({
|
|
17734
17527
|
name: "dv/ms-role/permission",
|
|
17735
17528
|
path: "/sys/roles/:id/permission",
|
|
17736
|
-
component: () => import("./PermissionManage-
|
|
17529
|
+
component: () => import("./PermissionManage-Drqh6bZl.js")
|
|
17737
17530
|
});
|
|
17738
17531
|
this.pageManager.addExtendsPage({
|
|
17739
17532
|
name: "dv/local-log/single/tree/dialog",
|
|
17740
17533
|
path: "/log/local",
|
|
17741
|
-
component: () => import("./index-
|
|
17534
|
+
component: () => import("./index-BJyjbwYB.js"),
|
|
17742
17535
|
meta: { name: "local-log" }
|
|
17743
17536
|
});
|
|
17744
17537
|
this.pageManager.addExtendsPage({
|
|
17745
17538
|
name: "dv/ms-menu/list",
|
|
17746
17539
|
path: "/sys/menus",
|
|
17747
|
-
component: () => import("./index-
|
|
17540
|
+
component: () => import("./index-B_WzSRqh.js"),
|
|
17748
17541
|
meta: { name: "ms-menu" }
|
|
17749
17542
|
});
|
|
17750
17543
|
this.pageManager.addExtendsPage({
|
|
17751
17544
|
name: "icons/list",
|
|
17752
17545
|
path: "/sys/icons",
|
|
17753
|
-
component: () => import("./index-
|
|
17546
|
+
component: () => import("./index-Dc66zrKf.js")
|
|
17754
17547
|
});
|
|
17755
17548
|
this.pageManager.addExtendsPage({
|
|
17756
17549
|
name: "dv/ms-todo/single/list/dialog",
|
|
17757
17550
|
path: "/dv/todo",
|
|
17758
|
-
component: () => import("./index-
|
|
17551
|
+
component: () => import("./index-BuTSTk63.js")
|
|
17759
17552
|
});
|
|
17760
17553
|
for (let internalModule of internalModules) {
|
|
17761
17554
|
for (let item of internalModule.normalPages) {
|
|
@@ -17766,9 +17559,8 @@ class MSAppClient {
|
|
|
17766
17559
|
}
|
|
17767
17560
|
}
|
|
17768
17561
|
this.httpRequest.getInterceptors().response.use((config) => {
|
|
17769
|
-
var _a2;
|
|
17770
17562
|
if (config.data.code === 401) {
|
|
17771
|
-
|
|
17563
|
+
this.userSession?.dispose();
|
|
17772
17564
|
this.vueRouter.push({ name: "login" });
|
|
17773
17565
|
}
|
|
17774
17566
|
return config;
|
|
@@ -17827,7 +17619,6 @@ class MSAppClient {
|
|
|
17827
17619
|
this.modules.push(module);
|
|
17828
17620
|
}
|
|
17829
17621
|
}
|
|
17830
|
-
__publicField(MSAppClient, "instance", null);
|
|
17831
17622
|
class MessagerImpl extends SkeletonMessageSender {
|
|
17832
17623
|
info(message) {
|
|
17833
17624
|
ElMessage.info(message);
|
|
@@ -17858,10 +17649,7 @@ class NotificationerImpl extends SkeletonMessageSender {
|
|
|
17858
17649
|
}
|
|
17859
17650
|
let uid = 0;
|
|
17860
17651
|
class DialogerImpl extends SkeletonDialoger {
|
|
17861
|
-
|
|
17862
|
-
super(...arguments);
|
|
17863
|
-
__publicField(this, "dialogInstanceCreateEvent", new Event());
|
|
17864
|
-
}
|
|
17652
|
+
dialogInstanceCreateEvent = new Event();
|
|
17865
17653
|
async prompt(options) {
|
|
17866
17654
|
const promptResult = await ElMessageBox.prompt(options.message, options.title, options);
|
|
17867
17655
|
return promptResult.value;
|
|
@@ -18414,16 +18202,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18414
18202
|
}
|
|
18415
18203
|
});
|
|
18416
18204
|
const readAllHandle = async () => {
|
|
18417
|
-
|
|
18418
|
-
(_a2 = props.messageNotifyTable) == null ? void 0 : _a2.readAll();
|
|
18205
|
+
props.messageNotifyTable?.readAll();
|
|
18419
18206
|
};
|
|
18420
18207
|
watch(selectValue, (selectValue2) => {
|
|
18421
|
-
|
|
18422
|
-
(_a2 = props.messageNotifyTable) == null ? void 0 : _a2.setMessageType(selectValue2);
|
|
18208
|
+
props.messageNotifyTable?.setMessageType(selectValue2);
|
|
18423
18209
|
});
|
|
18424
18210
|
watch(buttonName, async (buttonName2) => {
|
|
18425
|
-
|
|
18426
|
-
(_a2 = props.messageNotifyTable) == null ? void 0 : _a2.setReadType(buttonName2);
|
|
18211
|
+
props.messageNotifyTable?.setReadType(buttonName2);
|
|
18427
18212
|
});
|
|
18428
18213
|
return (_ctx, _cache) => {
|
|
18429
18214
|
const _component_ElOption = resolveComponent("ElOption");
|
|
@@ -18507,21 +18292,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18507
18292
|
return openBlock(), createElementBlock("div", {
|
|
18508
18293
|
class: normalizeClass(["mk-message__body-item", { "is-read": item.isRead }]),
|
|
18509
18294
|
key: item.id,
|
|
18510
|
-
onClick: ($event) =>
|
|
18511
|
-
var _a2;
|
|
18512
|
-
return (_a2 = messageType.value.find((a) => a.type == item.type)) == null ? void 0 : _a2.actions(item);
|
|
18513
|
-
}
|
|
18295
|
+
onClick: ($event) => messageType.value.find((a) => a.type == item.type)?.actions(item)
|
|
18514
18296
|
}, [
|
|
18515
18297
|
createElementVNode("div", _hoisted_3$a, toDisplayString(item.title), 1),
|
|
18516
18298
|
createElementVNode("div", _hoisted_4$9, toDisplayString(item.content), 1),
|
|
18517
18299
|
createElementVNode("div", _hoisted_5$8, [
|
|
18518
18300
|
createVNode(unref(ElTag), null, {
|
|
18519
|
-
default: withCtx(() =>
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
createTextVNode(toDisplayString((_a2 = messageType.value.find((a) => a.type == item.type)) == null ? void 0 : _a2.name), 1)
|
|
18523
|
-
];
|
|
18524
|
-
}),
|
|
18301
|
+
default: withCtx(() => [
|
|
18302
|
+
createTextVNode(toDisplayString(messageType.value.find((a) => a.type == item.type)?.name), 1)
|
|
18303
|
+
]),
|
|
18525
18304
|
_: 2
|
|
18526
18305
|
}, 1024),
|
|
18527
18306
|
createTextVNode(" " + toDisplayString(item.createdAt), 1)
|
|
@@ -18678,7 +18457,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18678
18457
|
router.push({ name: "login" });
|
|
18679
18458
|
};
|
|
18680
18459
|
return (_ctx, _cache) => {
|
|
18681
|
-
var _a2;
|
|
18682
18460
|
const _component_el_avatar = resolveComponent("el-avatar");
|
|
18683
18461
|
const _component_el_tag = resolveComponent("el-tag");
|
|
18684
18462
|
const _component_el_divider = resolveComponent("el-divider");
|
|
@@ -18686,7 +18464,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18686
18464
|
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
18687
18465
|
unref(settingsStore).settings.toolbar.navSearch ? (openBlock(), createBlock(_sfc_main$m, { key: 0 })) : createCommentVNode("", true),
|
|
18688
18466
|
unref(settingsStore).settings.toolbar.fullscreen ? (openBlock(), createBlock(_sfc_main$l, { key: 1 })) : createCommentVNode("", true),
|
|
18689
|
-
|
|
18467
|
+
unref(settingsStore).settings.toolbar?.message ? (openBlock(), createBlock(unref(MKMessage), { key: 2 })) : createCommentVNode("", true),
|
|
18690
18468
|
unref(userInfo) ? (openBlock(), createBlock(_component_el_popover, {
|
|
18691
18469
|
key: 3,
|
|
18692
18470
|
class: "h-full py-2",
|
|
@@ -18761,36 +18539,34 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18761
18539
|
createVNode(_component_el_divider, { style: { "margin": "10px 0" } }),
|
|
18762
18540
|
createElementVNode("div", null, [
|
|
18763
18541
|
unref(settingsStore).mode === "pc" && unref(settingsStore).settings.menu.mode === "head" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(settingsStore).settings.toolbar.shortcutMenus, (item, index2) => {
|
|
18764
|
-
var _a3, _b2, _c2, _d2;
|
|
18765
18542
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
18766
|
-
|
|
18543
|
+
item.meta?.type == "3" ? (openBlock(), createElementBlock("div", {
|
|
18767
18544
|
key: 0,
|
|
18768
18545
|
class: "w-full el-button user-action-item el-button--primary is-text gap-2",
|
|
18769
18546
|
style: { "justify-content": "start" },
|
|
18770
18547
|
onClick: item.handler
|
|
18771
18548
|
}, [
|
|
18772
|
-
|
|
18549
|
+
item?.icon ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
18773
18550
|
key: 0,
|
|
18774
|
-
name: item
|
|
18551
|
+
name: item?.icon
|
|
18775
18552
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18776
|
-
createTextVNode(" " + toDisplayString(typeof
|
|
18553
|
+
createTextVNode(" " + toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18777
18554
|
], 8, _hoisted_13$2)) : createCommentVNode("", true)
|
|
18778
18555
|
], 64);
|
|
18779
18556
|
}), 128)) : createCommentVNode("", true),
|
|
18780
18557
|
unref(settingsStore).mode === "pc" && unref(settingsStore).settings.menu.mode === "head" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(menuStore).allMenus, (item, index2) => {
|
|
18781
|
-
var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
18782
18558
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
18783
|
-
|
|
18559
|
+
item.meta?.type == "3" ? (openBlock(), createElementBlock("div", {
|
|
18784
18560
|
key: 0,
|
|
18785
18561
|
class: "w-full el-button user-action-item el-button--primary is-text gap-2",
|
|
18786
18562
|
style: { "justify-content": "start" },
|
|
18787
18563
|
onClick: ($event) => unref(switchTo)(index2)
|
|
18788
18564
|
}, [
|
|
18789
|
-
|
|
18565
|
+
item.meta?.icon ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
18790
18566
|
key: 0,
|
|
18791
|
-
name:
|
|
18567
|
+
name: item.meta?.icon
|
|
18792
18568
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18793
|
-
createTextVNode(" " + toDisplayString(typeof
|
|
18569
|
+
createTextVNode(" " + toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18794
18570
|
], 8, _hoisted_14$2)) : createCommentVNode("", true)
|
|
18795
18571
|
], 64);
|
|
18796
18572
|
}), 128)) : createCommentVNode("", true),
|
|
@@ -18850,9 +18626,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18850
18626
|
}, [
|
|
18851
18627
|
createElementVNode("div", _hoisted_3$8, [
|
|
18852
18628
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuStore).allMenus, (item, index2) => {
|
|
18853
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
18854
18629
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
18855
|
-
|
|
18630
|
+
item.meta?.type != "3" ? (openBlock(), createElementBlock("div", {
|
|
18856
18631
|
key: 0,
|
|
18857
18632
|
class: normalizeClass(["menu-item relative mx-1 py-3 transition-all", {
|
|
18858
18633
|
active: index2 === unref(menuStore).actived
|
|
@@ -18863,15 +18638,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18863
18638
|
class: 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)]", {
|
|
18864
18639
|
"text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": index2 === unref(menuStore).actived
|
|
18865
18640
|
}]),
|
|
18866
|
-
title: typeof
|
|
18641
|
+
title: typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title,
|
|
18867
18642
|
onClick: ($event) => unref(switchTo)(index2)
|
|
18868
18643
|
}, [
|
|
18869
18644
|
createElementVNode("div", _hoisted_5$6, [
|
|
18870
|
-
|
|
18645
|
+
item.meta?.icon ? (openBlock(), createBlock(_component_MKSvgIcon, {
|
|
18871
18646
|
key: 0,
|
|
18872
|
-
name:
|
|
18647
|
+
name: item.meta?.icon
|
|
18873
18648
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18874
|
-
createElementVNode("span", _hoisted_6$5, toDisplayString(typeof
|
|
18649
|
+
createElementVNode("span", _hoisted_6$5, toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18875
18650
|
])
|
|
18876
18651
|
], 10, _hoisted_4$7)) : createCommentVNode("", true)
|
|
18877
18652
|
], 2)) : createCommentVNode("", true)
|
|
@@ -18923,12 +18698,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18923
18698
|
createElementVNode("div", _hoisted_2$8, [
|
|
18924
18699
|
createElementVNode("div", _hoisted_3$7, [
|
|
18925
18700
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuStore).allMenus, (item, index2) => {
|
|
18926
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
18927
18701
|
return openBlock(), createElementBlock("div", {
|
|
18928
18702
|
key: index2,
|
|
18929
18703
|
class: normalizeClass(["menu-item relative px-2 py-1 transition-all", {
|
|
18930
18704
|
active: index2 === unref(menuStore).actived,
|
|
18931
|
-
system:
|
|
18705
|
+
system: item.meta?.type == "3"
|
|
18932
18706
|
}])
|
|
18933
18707
|
}, [
|
|
18934
18708
|
item.children && item.children.length !== 0 ? (openBlock(), createElementBlock("div", {
|
|
@@ -18936,16 +18710,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18936
18710
|
class: 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!", {
|
|
18937
18711
|
"text-[var(--g-main-sidebar-menu-active-color)]! bg-[var(--g-main-sidebar-menu-active-bg)]!": index2 === unref(menuStore).actived
|
|
18938
18712
|
}]),
|
|
18939
|
-
title: typeof
|
|
18713
|
+
title: typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title,
|
|
18940
18714
|
onClick: ($event) => unref(switchTo)(index2)
|
|
18941
18715
|
}, [
|
|
18942
18716
|
createElementVNode("div", _hoisted_5$5, [
|
|
18943
|
-
|
|
18717
|
+
item.meta?.icon ? (openBlock(), createBlock(_component_MKSvgIcon, {
|
|
18944
18718
|
key: 0,
|
|
18945
|
-
name:
|
|
18719
|
+
name: item.meta?.icon,
|
|
18946
18720
|
class: "menu-item-container-icon transition-transform"
|
|
18947
18721
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18948
|
-
createElementVNode("span", _hoisted_6$4, toDisplayString(typeof
|
|
18722
|
+
createElementVNode("span", _hoisted_6$4, toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
|
|
18949
18723
|
])
|
|
18950
18724
|
], 10, _hoisted_4$6)) : createCommentVNode("", true)
|
|
18951
18725
|
], 2);
|
|
@@ -19005,65 +18779,59 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19005
18779
|
custom: "",
|
|
19006
18780
|
to: _ctx.item.path || (_ctx.uniqueKey.at(-1) && _ctx.item.meta && !_ctx.item.group ? { name: _ctx.uniqueKey.at(-1) } : "")
|
|
19007
18781
|
}, {
|
|
19008
|
-
default: withCtx(({ href, navigate }) =>
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
]
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
];
|
|
19062
|
-
}),
|
|
19063
|
-
_: 2
|
|
19064
|
-
}, 1040, ["class", "title"]))
|
|
19065
|
-
];
|
|
19066
|
-
}),
|
|
18782
|
+
default: withCtx(({ href, navigate }) => [
|
|
18783
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.subMenu ? "div" : "a"), mergeProps({
|
|
18784
|
+
...!_ctx.subMenu && {
|
|
18785
|
+
href: _ctx.item.meta?.link ? _ctx.item.meta.link : href,
|
|
18786
|
+
target: _ctx.item.meta?.link ? "_blank" : "_self",
|
|
18787
|
+
class: "no-underline"
|
|
18788
|
+
}
|
|
18789
|
+
}, {
|
|
18790
|
+
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)]", {
|
|
18791
|
+
"text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!": unref(isItemActive),
|
|
18792
|
+
"px-3!": unref(rootMenu).isMenuPopup && _ctx.level === 0
|
|
18793
|
+
}],
|
|
18794
|
+
title: typeof _ctx.item.meta?.title === "function" ? _ctx.item.meta?.title() : _ctx.item.meta?.title
|
|
18795
|
+
}, toHandlers({
|
|
18796
|
+
...!_ctx.subMenu && {
|
|
18797
|
+
click: navigate
|
|
18798
|
+
}
|
|
18799
|
+
})), {
|
|
18800
|
+
default: withCtx(() => [
|
|
18801
|
+
createElementVNode("div", {
|
|
18802
|
+
class: normalizeClass(["inline-flex flex-1 items-center justify-center gap-[12px]", {
|
|
18803
|
+
"flex-col": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.mode === "vertical",
|
|
18804
|
+
"gap-1!": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName,
|
|
18805
|
+
"w-full": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName && unref(rootMenu).props.mode === "vertical"
|
|
18806
|
+
}]),
|
|
18807
|
+
style: normalizeStyle(unref(indentStyle))
|
|
18808
|
+
}, [
|
|
18809
|
+
props.item.meta?.icon ? (openBlock(), createBlock(_component_MKSvgIcon, {
|
|
18810
|
+
key: 0,
|
|
18811
|
+
name: props.item.meta.icon,
|
|
18812
|
+
size: 18,
|
|
18813
|
+
class: "menu-item-container-icon transition-transform"
|
|
18814
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18815
|
+
!(unref(rootMenu).isMenuPopup && _ctx.level === 0 && !unref(rootMenu).props.showCollapseName) ? (openBlock(), createElementBlock("span", {
|
|
18816
|
+
key: 1,
|
|
18817
|
+
class: normalizeClass(["w-0 flex-1 truncate text-sm transition-height transition-opacity transition-width", {
|
|
18818
|
+
"opacity-0 w-0 h-0": unref(rootMenu).isMenuPopup && _ctx.level === 0 && !unref(rootMenu).props.showCollapseName,
|
|
18819
|
+
"w-full text-center": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName
|
|
18820
|
+
}])
|
|
18821
|
+
}, toDisplayString(typeof _ctx.item.meta?.title === "function" ? _ctx.item.meta?.title() : _ctx.item.meta?.title), 3)) : createCommentVNode("", true)
|
|
18822
|
+
], 6),
|
|
18823
|
+
_ctx.subMenu && !(unref(rootMenu).isMenuPopup && _ctx.level === 0) ? (openBlock(), createElementBlock("i", {
|
|
18824
|
+
key: 0,
|
|
18825
|
+
class: 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]", [
|
|
18826
|
+
_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]",
|
|
18827
|
+
unref(rootMenu).isMenuPopup && _ctx.level === 0 && "opacity-0",
|
|
18828
|
+
unref(rootMenu).isMenuPopup && _ctx.level !== 0 && "-rotate-90 -top-[1.5px]"
|
|
18829
|
+
]])
|
|
18830
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
18831
|
+
]),
|
|
18832
|
+
_: 2
|
|
18833
|
+
}, 1040, ["class", "title"]))
|
|
18834
|
+
]),
|
|
19067
18835
|
_: 1
|
|
19068
18836
|
}, 8, ["to"])
|
|
19069
18837
|
], 2);
|
|
@@ -19155,10 +18923,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19155
18923
|
const hasChildren = computed(() => {
|
|
19156
18924
|
let flag = true;
|
|
19157
18925
|
if (props.menu.children) {
|
|
19158
|
-
if (props.menu.children.every((item) => {
|
|
19159
|
-
var _a2;
|
|
19160
|
-
return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
|
|
19161
|
-
})) {
|
|
18926
|
+
if (props.menu.children.every((item) => item.meta?.menu === false)) {
|
|
19162
18927
|
flag = false;
|
|
19163
18928
|
}
|
|
19164
18929
|
} else {
|
|
@@ -19182,7 +18947,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19182
18947
|
return;
|
|
19183
18948
|
}
|
|
19184
18949
|
rootMenu.mouseInMenu = props.uniqueKey;
|
|
19185
|
-
timeout
|
|
18950
|
+
timeout?.();
|
|
19186
18951
|
({ stop: timeout } = useTimeoutFn(() => {
|
|
19187
18952
|
if (hasChildren.value) {
|
|
19188
18953
|
rootMenu.openMenu(index2, props.uniqueKey);
|
|
@@ -19220,7 +18985,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19220
18985
|
return;
|
|
19221
18986
|
}
|
|
19222
18987
|
rootMenu.mouseInMenu = [];
|
|
19223
|
-
timeout
|
|
18988
|
+
timeout?.();
|
|
19224
18989
|
({ stop: timeout } = useTimeoutFn(() => {
|
|
19225
18990
|
if (rootMenu.mouseInMenu.length === 0) {
|
|
19226
18991
|
rootMenu.closeMenu(props.uniqueKey);
|
|
@@ -19268,11 +19033,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19268
19033
|
}, {
|
|
19269
19034
|
default: withCtx(() => [
|
|
19270
19035
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu.children, (item) => {
|
|
19271
|
-
var _a2;
|
|
19272
19036
|
return openBlock(), createElementBlock(Fragment, {
|
|
19273
19037
|
key: item.name
|
|
19274
19038
|
}, [
|
|
19275
|
-
|
|
19039
|
+
item.meta?.menu !== false ? (openBlock(), createBlock(_component_SubMenu, {
|
|
19276
19040
|
key: 0,
|
|
19277
19041
|
"unique-key": [..._ctx.uniqueKey, item.name],
|
|
19278
19042
|
menu: item,
|
|
@@ -19360,11 +19124,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19360
19124
|
});
|
|
19361
19125
|
};
|
|
19362
19126
|
function setSubMenusActive(index2) {
|
|
19363
|
-
|
|
19364
|
-
(_a2 = subMenus.value[index2]) == null ? void 0 : _a2.indexPath.forEach((idx) => {
|
|
19127
|
+
subMenus.value[index2]?.indexPath.forEach((idx) => {
|
|
19365
19128
|
subMenus.value[idx].active = true;
|
|
19366
19129
|
});
|
|
19367
|
-
|
|
19130
|
+
items.value[index2]?.indexPath.forEach((idx) => {
|
|
19368
19131
|
subMenus.value[idx].active = true;
|
|
19369
19132
|
});
|
|
19370
19133
|
}
|
|
@@ -19382,7 +19145,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19382
19145
|
}
|
|
19383
19146
|
};
|
|
19384
19147
|
function initMenu() {
|
|
19385
|
-
var _a2;
|
|
19386
19148
|
const menuList = [...props.menu];
|
|
19387
19149
|
for (const menuItem of menuList) {
|
|
19388
19150
|
if (menuItem.routes.includes(activeIndex.value)) {
|
|
@@ -19394,7 +19156,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19394
19156
|
}
|
|
19395
19157
|
openedMenus.value = [props.value];
|
|
19396
19158
|
for (const menuItem of menuList) {
|
|
19397
|
-
if (
|
|
19159
|
+
if (menuItem.children?.find((sub) => openedMenus.value.includes(sub.name))) {
|
|
19398
19160
|
openedMenus.value.push(menuItem.name);
|
|
19399
19161
|
}
|
|
19400
19162
|
}
|
|
@@ -19466,12 +19228,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
19466
19228
|
}])
|
|
19467
19229
|
}, [
|
|
19468
19230
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (item) => {
|
|
19469
|
-
var _a2, _b2;
|
|
19470
19231
|
return openBlock(), createElementBlock(Fragment, {
|
|
19471
19232
|
key: item.name
|
|
19472
19233
|
}, [
|
|
19473
|
-
|
|
19474
|
-
|
|
19234
|
+
item.meta?.menu !== false ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19235
|
+
item.children?.length ? (openBlock(), createBlock(_sfc_main$f, {
|
|
19475
19236
|
key: 0,
|
|
19476
19237
|
menu: item,
|
|
19477
19238
|
"unique-key": [item.name]
|
|
@@ -19510,10 +19271,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
19510
19271
|
showShadowBottom.value = Math.ceil(scrollTop + clientHeight) < scrollHeight;
|
|
19511
19272
|
}
|
|
19512
19273
|
const enableSidebar = computed(() => {
|
|
19513
|
-
return settingsStore.mode === "mobile" || menuStore.sidebarMenus.length !== 0 && !menuStore.sidebarMenus.every((item) =>
|
|
19514
|
-
var _a2;
|
|
19515
|
-
return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
|
|
19516
|
-
});
|
|
19274
|
+
return settingsStore.mode === "mobile" || menuStore.sidebarMenus.length !== 0 && !menuStore.sidebarMenus.every((item) => item.meta?.menu === false);
|
|
19517
19275
|
});
|
|
19518
19276
|
watch(enableSidebar, (val) => {
|
|
19519
19277
|
if (val) {
|
|
@@ -19649,15 +19407,13 @@ const useTabbarStore = defineStore(
|
|
|
19649
19407
|
const list = ref([]);
|
|
19650
19408
|
const leaveIndex = ref(-1);
|
|
19651
19409
|
async function add(route) {
|
|
19652
|
-
var _a2, _b2, _c2;
|
|
19653
19410
|
const names = [];
|
|
19654
19411
|
route.matched.forEach((v, i) => {
|
|
19655
|
-
var _a3;
|
|
19656
19412
|
if (i > 0) {
|
|
19657
|
-
|
|
19413
|
+
v.components?.default.name && names.push(v.components.default.name);
|
|
19658
19414
|
}
|
|
19659
19415
|
});
|
|
19660
|
-
const meta =
|
|
19416
|
+
const meta = route.matched.at(-1)?.meta;
|
|
19661
19417
|
const tabId = route.fullPath;
|
|
19662
19418
|
if (route.name !== "reload") {
|
|
19663
19419
|
const findTab = list.value.find((item) => {
|
|
@@ -19672,8 +19428,8 @@ const useTabbarStore = defineStore(
|
|
|
19672
19428
|
tabId,
|
|
19673
19429
|
fullPath: route.fullPath,
|
|
19674
19430
|
routeName: route.name,
|
|
19675
|
-
title: typeof
|
|
19676
|
-
icon:
|
|
19431
|
+
title: typeof meta?.title === "function" ? meta.title() : meta?.title,
|
|
19432
|
+
icon: meta?.icon ?? meta?.breadcrumbNeste?.findLast((item) => item.icon)?.icon,
|
|
19677
19433
|
name: names
|
|
19678
19434
|
};
|
|
19679
19435
|
if (leaveIndex.value >= 0) {
|
|
@@ -19872,9 +19628,8 @@ function useTabbar() {
|
|
|
19872
19628
|
});
|
|
19873
19629
|
}
|
|
19874
19630
|
function checkCloseLeftSide(tabId = getId()) {
|
|
19875
|
-
var _a2;
|
|
19876
19631
|
let flag = true;
|
|
19877
|
-
if (tabId ===
|
|
19632
|
+
if (tabId === tabbarStore.list[0]?.tabId) {
|
|
19878
19633
|
flag = false;
|
|
19879
19634
|
} else {
|
|
19880
19635
|
const index2 = tabbarStore.list.findIndex((item) => item.tabId === tabId);
|
|
@@ -19885,9 +19640,8 @@ function useTabbar() {
|
|
|
19885
19640
|
return flag;
|
|
19886
19641
|
}
|
|
19887
19642
|
function checkCloseRightSide(tabId = getId()) {
|
|
19888
|
-
var _a2;
|
|
19889
19643
|
let flag = true;
|
|
19890
|
-
if (tabId ===
|
|
19644
|
+
if (tabId === tabbarStore.list.at(-1)?.tabId) {
|
|
19891
19645
|
flag = false;
|
|
19892
19646
|
} else {
|
|
19893
19647
|
const index2 = tabbarStore.list.findIndex((item) => item.tabId === tabId);
|
|
@@ -20031,10 +19785,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
20031
19785
|
hotkeys(
|
|
20032
19786
|
"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",
|
|
20033
19787
|
(e, handle) => {
|
|
20034
|
-
var _a2, _b2;
|
|
20035
19788
|
if (settingsStore.settings.tabbar.enable && settingsStore.settings.tabbar.enableHotkeys) {
|
|
20036
19789
|
e.preventDefault();
|
|
20037
19790
|
switch (handle.key) {
|
|
19791
|
+
// 切换到当前标签页紧邻的上一个标签页
|
|
20038
19792
|
case "alt+left":
|
|
20039
19793
|
if (tabbarStore.list[0].tabId !== activedTabId.value) {
|
|
20040
19794
|
const index2 = tabbarStore.list.findIndex(
|
|
@@ -20043,17 +19797,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
20043
19797
|
router.push(tabbarStore.list[index2 - 1].fullPath);
|
|
20044
19798
|
}
|
|
20045
19799
|
break;
|
|
19800
|
+
// 切换到当前标签页紧邻的下一个标签页
|
|
20046
19801
|
case "alt+right":
|
|
20047
|
-
if (
|
|
19802
|
+
if (tabbarStore.list.at(-1)?.tabId !== activedTabId.value) {
|
|
20048
19803
|
const index2 = tabbarStore.list.findIndex(
|
|
20049
19804
|
(item) => item.tabId === activedTabId.value
|
|
20050
19805
|
);
|
|
20051
19806
|
router.push(tabbarStore.list[index2 + 1].fullPath);
|
|
20052
19807
|
}
|
|
20053
19808
|
break;
|
|
19809
|
+
// 关闭当前标签页
|
|
20054
19810
|
case "alt+w":
|
|
20055
19811
|
tabbar.closeById(activedTabId.value);
|
|
20056
19812
|
break;
|
|
19813
|
+
// 切换到第 n 个标签页
|
|
20057
19814
|
case "alt+1":
|
|
20058
19815
|
case "alt+2":
|
|
20059
19816
|
case "alt+3":
|
|
@@ -20064,9 +19821,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
20064
19821
|
case "alt+8":
|
|
20065
19822
|
case "alt+9": {
|
|
20066
19823
|
const number = Number(handle.key.split("+")[1]);
|
|
20067
|
-
|
|
19824
|
+
tabbarStore.list[number - 1]?.fullPath && router.push(tabbarStore.list[number - 1].fullPath);
|
|
20068
19825
|
break;
|
|
20069
19826
|
}
|
|
19827
|
+
// 切换到最后一个标签页
|
|
20070
19828
|
case "alt+0":
|
|
20071
19829
|
router.push(tabbarStore.list[tabbarStore.list.length - 1].fullPath);
|
|
20072
19830
|
break;
|
|
@@ -20107,7 +19865,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
20107
19865
|
class: normalizeClass(["tab", {
|
|
20108
19866
|
actived: element.tabId === unref(activedTabId)
|
|
20109
19867
|
}]),
|
|
20110
|
-
title: typeof
|
|
19868
|
+
title: typeof element?.title === "function" ? element.title() : element.title,
|
|
20111
19869
|
onClick: ($event) => unref(router).push(element.fullPath),
|
|
20112
19870
|
onContextmenu: ($event) => onTabbarContextmenu($event, element)
|
|
20113
19871
|
}, [
|
|
@@ -20123,7 +19881,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
20123
19881
|
name: element.icon,
|
|
20124
19882
|
class: "icon"
|
|
20125
19883
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
20126
|
-
createTextVNode(" " + toDisplayString(typeof
|
|
19884
|
+
createTextVNode(" " + toDisplayString(typeof element?.title === "function" ? element.title() : element.title), 1)
|
|
20127
19885
|
])),
|
|
20128
19886
|
unref(tabbarStore).list.length > 1 ? (openBlock(), createElementBlock("div", {
|
|
20129
19887
|
key: 0,
|
|
@@ -20451,13 +20209,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20451
20209
|
flag = true;
|
|
20452
20210
|
}
|
|
20453
20211
|
if (item.breadcrumb.some((b) => {
|
|
20454
|
-
var _a2;
|
|
20455
20212
|
if (typeof b.title === "function") {
|
|
20456
20213
|
if (b.title().includes(searchInput.value)) {
|
|
20457
20214
|
return true;
|
|
20458
20215
|
}
|
|
20459
20216
|
} else {
|
|
20460
|
-
if (
|
|
20217
|
+
if (b.title?.includes(searchInput.value)) {
|
|
20461
20218
|
return true;
|
|
20462
20219
|
}
|
|
20463
20220
|
}
|
|
@@ -20521,40 +20278,35 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20521
20278
|
});
|
|
20522
20279
|
}
|
|
20523
20280
|
function hasChildren(item) {
|
|
20524
|
-
var _a2;
|
|
20525
20281
|
let flag = true;
|
|
20526
|
-
if (
|
|
20527
|
-
var _a3;
|
|
20528
|
-
return ((_a3 = i.meta) == null ? void 0 : _a3.menu) === false;
|
|
20529
|
-
})) {
|
|
20282
|
+
if (item.children?.every((i) => i.meta?.menu === false)) {
|
|
20530
20283
|
flag = false;
|
|
20531
20284
|
}
|
|
20532
20285
|
return flag;
|
|
20533
20286
|
}
|
|
20534
20287
|
function getSourceListByMenus(arr, basePath, icon, breadcrumb) {
|
|
20535
20288
|
arr.forEach((item) => {
|
|
20536
|
-
|
|
20537
|
-
if (((_a2 = item.meta) == null ? void 0 : _a2.menu) !== false) {
|
|
20289
|
+
if (item.meta?.menu !== false) {
|
|
20538
20290
|
const breadcrumbTemp = cloneDeep(breadcrumb) || [];
|
|
20539
20291
|
if (item.children && hasChildren(item)) {
|
|
20540
20292
|
breadcrumbTemp.push({
|
|
20541
|
-
title:
|
|
20293
|
+
title: item.meta?.title
|
|
20542
20294
|
});
|
|
20543
20295
|
getSourceListByMenus(
|
|
20544
20296
|
item.children,
|
|
20545
20297
|
resolveRoutePath(basePath, item.path),
|
|
20546
|
-
|
|
20298
|
+
item.meta?.icon ?? icon,
|
|
20547
20299
|
breadcrumbTemp
|
|
20548
20300
|
);
|
|
20549
20301
|
} else {
|
|
20550
20302
|
breadcrumbTemp.push({
|
|
20551
|
-
title:
|
|
20303
|
+
title: item.meta?.title
|
|
20552
20304
|
});
|
|
20553
20305
|
sourceList.value.push({
|
|
20554
20306
|
path: resolveRoutePath(basePath, item.path),
|
|
20555
|
-
icon:
|
|
20556
|
-
title:
|
|
20557
|
-
link:
|
|
20307
|
+
icon: item.meta?.icon ?? icon,
|
|
20308
|
+
title: item.meta?.title,
|
|
20309
|
+
link: item.meta?.link,
|
|
20558
20310
|
breadcrumb: breadcrumbTemp
|
|
20559
20311
|
});
|
|
20560
20312
|
}
|
|
@@ -20580,24 +20332,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20580
20332
|
}
|
|
20581
20333
|
}
|
|
20582
20334
|
function keyEnter() {
|
|
20583
|
-
var _a2;
|
|
20584
20335
|
if (actived.value !== -1) {
|
|
20585
|
-
|
|
20336
|
+
searchResultItemRef.value.find((item) => Number.parseInt(item.dataset.index) === actived.value)?.click();
|
|
20586
20337
|
}
|
|
20587
20338
|
}
|
|
20588
20339
|
function handleScroll() {
|
|
20589
|
-
var _a2, _b2;
|
|
20590
20340
|
if (searchResultRef.value) {
|
|
20591
20341
|
const contentDom = searchResultRef.value.osInstance().elements().content;
|
|
20592
20342
|
let scrollTo = 0;
|
|
20593
20343
|
if (actived.value !== -1) {
|
|
20594
20344
|
scrollTo = contentDom.scrollTop;
|
|
20595
|
-
const activedOffsetTop =
|
|
20345
|
+
const activedOffsetTop = searchResultItemRef.value.find(
|
|
20596
20346
|
(item) => Number.parseInt(item.dataset.index) === actived.value
|
|
20597
|
-
)
|
|
20598
|
-
const activedClientHeight =
|
|
20347
|
+
)?.offsetTop ?? 0;
|
|
20348
|
+
const activedClientHeight = searchResultItemRef.value.find(
|
|
20599
20349
|
(item) => Number.parseInt(item.dataset.index) === actived.value
|
|
20600
|
-
)
|
|
20350
|
+
)?.clientHeight ?? 0;
|
|
20601
20351
|
const searchScrollTop = contentDom.scrollTop;
|
|
20602
20352
|
const searchClientHeight = contentDom.clientHeight;
|
|
20603
20353
|
if (activedOffsetTop + activedClientHeight > searchScrollTop + searchClientHeight) {
|
|
@@ -21168,7 +20918,6 @@ const SystemProvider = /* @__PURE__ */ defineComponent({
|
|
|
21168
20918
|
computed(() => msAppClient.ready);
|
|
21169
20919
|
const slots = useSlots();
|
|
21170
20920
|
watch(computed(() => unref(vueRouter.currentRoute)), (route) => {
|
|
21171
|
-
var _a2, _b2, _c2, _d2;
|
|
21172
20921
|
const userSession = msAppClient.userSession;
|
|
21173
20922
|
if (!userSession) {
|
|
21174
20923
|
return;
|
|
@@ -21192,7 +20941,7 @@ const SystemProvider = /* @__PURE__ */ defineComponent({
|
|
|
21192
20941
|
const tab = tabs.findTabByID(route.fullPath) ?? tabs.createTab({
|
|
21193
20942
|
id: route.fullPath,
|
|
21194
20943
|
title: routeInfo.title,
|
|
21195
|
-
affix: !!
|
|
20944
|
+
affix: !!route.matched?.[route.matched?.length - 1]?.meta?.affix,
|
|
21196
20945
|
realRoute: route,
|
|
21197
20946
|
route: routeInfo
|
|
21198
20947
|
});
|
|
@@ -21290,10 +21039,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21290
21039
|
if (settingsStore.settings.menu.subMenuCollapse && settingsStore.mode !== "mobile") {
|
|
21291
21040
|
actualWidth = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--g-sub-sidebar-collapse-width"));
|
|
21292
21041
|
}
|
|
21293
|
-
if (menuStore.sidebarMenus.every((item) => {
|
|
21294
|
-
var _a2;
|
|
21295
|
-
return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
|
|
21296
|
-
})) {
|
|
21042
|
+
if (menuStore.sidebarMenus.every((item) => item.meta?.menu === false)) {
|
|
21297
21043
|
actualWidth = 0;
|
|
21298
21044
|
}
|
|
21299
21045
|
return `${actualWidth}px`;
|
|
@@ -21383,7 +21129,6 @@ const Layout = /* @__PURE__ */ defineComponent({
|
|
|
21383
21129
|
});
|
|
21384
21130
|
const MKLayout = withInstall(Layout);
|
|
21385
21131
|
function generateRoutesFromFiles(files) {
|
|
21386
|
-
var _a2;
|
|
21387
21132
|
const routes = [];
|
|
21388
21133
|
for (const file of files) {
|
|
21389
21134
|
const segments = file.path.split("/");
|
|
@@ -21413,7 +21158,7 @@ function generateRoutesFromFiles(files) {
|
|
|
21413
21158
|
route.path += getRoutePath(tokens);
|
|
21414
21159
|
}
|
|
21415
21160
|
}
|
|
21416
|
-
route.path =
|
|
21161
|
+
route.path = file.module.mkRoute?.path || route.path;
|
|
21417
21162
|
parent.push(route);
|
|
21418
21163
|
}
|
|
21419
21164
|
return prepareRoutes(routes);
|
|
@@ -21500,13 +21245,12 @@ function findRouteByKey(key, routes) {
|
|
|
21500
21245
|
return findRouteByKey(key, routes);
|
|
21501
21246
|
}
|
|
21502
21247
|
function prepareRoutes(routes, parent, keys = /* @__PURE__ */ new Set()) {
|
|
21503
|
-
var _a2;
|
|
21504
21248
|
for (const route of routes) {
|
|
21505
21249
|
if (route.key) {
|
|
21506
21250
|
route.key = route.key.replace(/\/index$/, "").replace(/\//g, "-");
|
|
21507
21251
|
if (keys.has(route.key)) {
|
|
21508
21252
|
const existingRoute = findRouteByKey(route.key, routes);
|
|
21509
|
-
const extra =
|
|
21253
|
+
const extra = existingRoute?.name ? `is the same as \`${existingRoute.file}\`` : "is a duplicate";
|
|
21510
21254
|
console.warn(
|
|
21511
21255
|
`Route name generated for \`${route.file}\` ${extra}. You may wish to set a custom name using \`definePageMeta\` within the page file.`
|
|
21512
21256
|
);
|
|
@@ -21516,7 +21260,7 @@ function prepareRoutes(routes, parent, keys = /* @__PURE__ */ new Set()) {
|
|
|
21516
21260
|
if (parent && route.path.startsWith("/")) {
|
|
21517
21261
|
route.path = route.path.slice(1);
|
|
21518
21262
|
}
|
|
21519
|
-
if (
|
|
21263
|
+
if (route.children?.length) {
|
|
21520
21264
|
route.children = prepareRoutes(route.children, route, keys);
|
|
21521
21265
|
}
|
|
21522
21266
|
if (route.key) {
|
|
@@ -21560,10 +21304,9 @@ const initApplication = async (options) => {
|
|
|
21560
21304
|
window.msAppClient = msAppClient;
|
|
21561
21305
|
const routes = generateRoutesFromFiles(
|
|
21562
21306
|
Object.keys(options.routes).map((key) => {
|
|
21563
|
-
var _a2;
|
|
21564
21307
|
return {
|
|
21565
21308
|
path: key.replace(/^\.\/pages\/(.+)\.vue$/, (_2, g) => g),
|
|
21566
|
-
module:
|
|
21309
|
+
module: options.routes[key]?.default || options.routes[key]
|
|
21567
21310
|
};
|
|
21568
21311
|
})
|
|
21569
21312
|
);
|
|
@@ -21621,9 +21364,9 @@ export {
|
|
|
21621
21364
|
useSingleViewWithDialog as N,
|
|
21622
21365
|
MKTreeView as O,
|
|
21623
21366
|
MKCodeEditor as P,
|
|
21624
|
-
|
|
21367
|
+
markdownEditorEmits as Q,
|
|
21625
21368
|
ResourceSelect as R,
|
|
21626
|
-
|
|
21369
|
+
markdownEditorProps as S,
|
|
21627
21370
|
MKFileSelect as T,
|
|
21628
21371
|
install as U,
|
|
21629
21372
|
version as V,
|
|
@@ -21823,4 +21566,4 @@ export {
|
|
|
21823
21566
|
MsRouteTable as y,
|
|
21824
21567
|
useSingleView as z
|
|
21825
21568
|
};
|
|
21826
|
-
//# sourceMappingURL=index-
|
|
21569
|
+
//# sourceMappingURL=index-B-aUha22.js.map
|