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