@maketribe/ms-app 5.1.1 → 5.1.2
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-BUqesg-u.cjs → 404-BS9npH9c.cjs} +2 -2
- package/dist/cjs/{404-BUqesg-u.cjs.map → 404-BS9npH9c.cjs.map} +1 -1
- package/dist/cjs/{Editor-DrTzPFpE.cjs → Editor-DZVgFelj.cjs} +2 -2
- package/dist/cjs/{Editor-DrTzPFpE.cjs.map → Editor-DZVgFelj.cjs.map} +1 -1
- package/dist/cjs/{Editor-0w4uLoeB.cjs → Editor-Dr4HzYR4.cjs} +2 -2
- package/dist/cjs/{Editor-0w4uLoeB.cjs.map → Editor-Dr4HzYR4.cjs.map} +1 -1
- package/dist/cjs/{PermissionManage-ppm-FvPa.cjs → PermissionManage-B7QLYWfw.cjs} +2 -2
- package/dist/cjs/{PermissionManage-ppm-FvPa.cjs.map → PermissionManage-B7QLYWfw.cjs.map} +1 -1
- package/dist/cjs/{ResourceSelectInput-1esZECqA.cjs → ResourceSelectInput-BJuSpqn8.cjs} +2 -2
- package/dist/cjs/{ResourceSelectInput-1esZECqA.cjs.map → ResourceSelectInput-BJuSpqn8.cjs.map} +1 -1
- package/dist/cjs/{dialog-BBD5PoO6.cjs → dialog-94OgX_-k.cjs} +2 -2
- package/dist/cjs/{dialog-BBD5PoO6.cjs.map → dialog-94OgX_-k.cjs.map} +1 -1
- package/dist/cjs/{dialog-C9-DYNqE.cjs → dialog-BOXXmTou.cjs} +2 -2
- package/dist/cjs/{dialog-C9-DYNqE.cjs.map → dialog-BOXXmTou.cjs.map} +1 -1
- package/dist/cjs/{dialog-Z78rXmpI.cjs → dialog-fuEyo8KO.cjs} +2 -2
- package/dist/cjs/{dialog-Z78rXmpI.cjs.map → dialog-fuEyo8KO.cjs.map} +1 -1
- package/dist/cjs/{edit-BDLbBXO3.cjs → edit-CB1K7cDL.cjs} +2 -2
- package/dist/cjs/{edit-BDLbBXO3.cjs.map → edit-CB1K7cDL.cjs.map} +1 -1
- package/dist/cjs/{index-BlKwZMb6.cjs → index-7lnm5nKI.cjs} +3 -3
- package/dist/cjs/{index-BlKwZMb6.cjs.map → index-7lnm5nKI.cjs.map} +1 -1
- package/dist/cjs/{index-BboC8910.cjs → index-B0flhg1p.cjs} +3 -3
- package/dist/cjs/{index-BboC8910.cjs.map → index-B0flhg1p.cjs.map} +1 -1
- package/dist/cjs/{index-DxrFV_oq.cjs → index-B2NYKPc_.cjs} +2 -2
- package/dist/cjs/{index-DxrFV_oq.cjs.map → index-B2NYKPc_.cjs.map} +1 -1
- package/dist/cjs/{index-cvtGpPQN.cjs → index-B6cSi0Cy.cjs} +2 -2
- package/dist/cjs/{index-cvtGpPQN.cjs.map → index-B6cSi0Cy.cjs.map} +1 -1
- package/dist/cjs/{index-Drx095NP.cjs → index-B8Ead7KB.cjs} +3 -3
- package/dist/cjs/{index-Drx095NP.cjs.map → index-B8Ead7KB.cjs.map} +1 -1
- package/dist/cjs/{index-13tTYbHY.cjs → index-BQD5GUCs.cjs} +2 -2
- package/dist/cjs/{index-13tTYbHY.cjs.map → index-BQD5GUCs.cjs.map} +1 -1
- package/dist/cjs/{index-B1TSGx7g.cjs → index-BZeFI7EC.cjs} +2 -2
- package/dist/cjs/{index-B1TSGx7g.cjs.map → index-BZeFI7EC.cjs.map} +1 -1
- package/dist/cjs/{index-Dm5L7u16.cjs → index-Bif8y-Dt.cjs} +2 -2
- package/dist/cjs/{index-Dm5L7u16.cjs.map → index-Bif8y-Dt.cjs.map} +1 -1
- package/dist/cjs/{index-Drc4DAj6.cjs → index-BkfMZOl5.cjs} +2 -2
- package/dist/cjs/{index-Drc4DAj6.cjs.map → index-BkfMZOl5.cjs.map} +1 -1
- package/dist/cjs/{index-vvkQ0_US.cjs → index-C13jHB17.cjs} +2 -2
- package/dist/cjs/{index-vvkQ0_US.cjs.map → index-C13jHB17.cjs.map} +1 -1
- package/dist/cjs/{index-CyZy0Sqh.cjs → index-CGF5bFeZ.cjs} +2 -2
- package/dist/cjs/{index-CyZy0Sqh.cjs.map → index-CGF5bFeZ.cjs.map} +1 -1
- package/dist/cjs/{index-B0wbQga9.cjs → index-CSOJt10E.cjs} +3 -3
- package/dist/cjs/{index-B0wbQga9.cjs.map → index-CSOJt10E.cjs.map} +1 -1
- package/dist/cjs/{index-BIYsA_lx.cjs → index-Cd77zyw8.cjs} +729 -156
- package/dist/cjs/index-Cd77zyw8.cjs.map +1 -0
- package/dist/cjs/{index-uZwtVInX.cjs → index-CjE09YZa.cjs} +2 -2
- package/dist/cjs/{index-uZwtVInX.cjs.map → index-CjE09YZa.cjs.map} +1 -1
- package/dist/cjs/{index-B4xWRQGN.cjs → index-D2kpG38e.cjs} +2 -2
- package/dist/cjs/{index-B4xWRQGN.cjs.map → index-D2kpG38e.cjs.map} +1 -1
- package/dist/cjs/{index-BBeMZWTB.cjs → index-D5B7Amef.cjs} +2 -2
- package/dist/cjs/{index-BBeMZWTB.cjs.map → index-D5B7Amef.cjs.map} +1 -1
- package/dist/cjs/{index-dwZfRtsq.cjs → index-D86bWHDI.cjs} +2 -2
- package/dist/cjs/{index-dwZfRtsq.cjs.map → index-D86bWHDI.cjs.map} +1 -1
- package/dist/cjs/{index-qjtbQZKM.cjs → index-DISV_9li.cjs} +2 -2
- package/dist/cjs/{index-qjtbQZKM.cjs.map → index-DISV_9li.cjs.map} +1 -1
- package/dist/cjs/{index-Bd0UvsgJ.cjs → index-Dk_INZ5a.cjs} +2 -2
- package/dist/cjs/{index-Bd0UvsgJ.cjs.map → index-Dk_INZ5a.cjs.map} +1 -1
- package/dist/cjs/{index-K6vLb91a.cjs → index-Ds9HLEon.cjs} +2 -2
- package/dist/cjs/{index-K6vLb91a.cjs.map → index-Ds9HLEon.cjs.map} +1 -1
- package/dist/cjs/{index-DWZWHagC.cjs → index-DsW4hpNQ.cjs} +4 -4
- package/dist/cjs/{index-DWZWHagC.cjs.map → index-DsW4hpNQ.cjs.map} +1 -1
- package/dist/cjs/{index-Ce_7LYAs.cjs → index-DyEjoXi5.cjs} +2 -2
- package/dist/cjs/{index-Ce_7LYAs.cjs.map → index-DyEjoXi5.cjs.map} +1 -1
- package/dist/cjs/{index-BolcjV0I.cjs → index-ImPQTA-O.cjs} +3 -3
- package/dist/cjs/{index-BolcjV0I.cjs.map → index-ImPQTA-O.cjs.map} +1 -1
- package/dist/cjs/{index-BLLmffp3.cjs → index-K7soiGhY.cjs} +2 -2
- package/dist/cjs/{index-BLLmffp3.cjs.map → index-K7soiGhY.cjs.map} +1 -1
- package/dist/cjs/{index-CXZn7yi9.cjs → index-VkFApqPY.cjs} +2 -2
- package/dist/cjs/{index-CXZn7yi9.cjs.map → index-VkFApqPY.cjs.map} +1 -1
- package/dist/cjs/{index-OENZqdNv.cjs → index-Z5qxMUov.cjs} +2 -2
- package/dist/cjs/{index-OENZqdNv.cjs.map → index-Z5qxMUov.cjs.map} +1 -1
- package/dist/cjs/{index-C2mr3K--.cjs → index-jtODMRK7.cjs} +2 -2
- package/dist/cjs/{index-C2mr3K--.cjs.map → index-jtODMRK7.cjs.map} +1 -1
- package/dist/cjs/{index-B4TrhLNj.cjs → index-yCQ9_5Jf.cjs} +2 -2
- package/dist/cjs/{index-B4TrhLNj.cjs.map → index-yCQ9_5Jf.cjs.map} +1 -1
- package/dist/cjs/{index-j-QXHEE8.cjs → index-ysaDU9e4.cjs} +2 -2
- package/dist/cjs/{index-j-QXHEE8.cjs.map → index-ysaDU9e4.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/ms-app.css +28 -25
- package/dist/cjs/{normal-_f5yY9lp.cjs → normal-BLdThhW9.cjs} +2 -2
- package/dist/cjs/{normal-_f5yY9lp.cjs.map → normal-BLdThhW9.cjs.map} +1 -1
- package/dist/cjs/{normal-BHMV0ioD.cjs → normal-BX2PHgQx.cjs} +2 -2
- package/dist/cjs/{normal-BHMV0ioD.cjs.map → normal-BX2PHgQx.cjs.map} +1 -1
- package/dist/cjs/{table-BKpCR-8p.cjs → table-BFRsYZPG.cjs} +2 -2
- package/dist/cjs/{table-BKpCR-8p.cjs.map → table-BFRsYZPG.cjs.map} +1 -1
- package/dist/esm/{404-JxSKoh5I.js → 404-CqVEJmH2.js} +2 -2
- package/dist/esm/{404-JxSKoh5I.js.map → 404-CqVEJmH2.js.map} +1 -1
- package/dist/esm/{Editor-CAfRNtYJ.js → Editor-6Wpudlcm.js} +2 -2
- package/dist/esm/{Editor-CAfRNtYJ.js.map → Editor-6Wpudlcm.js.map} +1 -1
- package/dist/esm/{Editor-DavHJ7Qt.js → Editor-C-BCft7T.js} +2 -2
- package/dist/esm/{Editor-DavHJ7Qt.js.map → Editor-C-BCft7T.js.map} +1 -1
- package/dist/esm/{PermissionManage-B5HQZwNA.js → PermissionManage-IWOtoupA.js} +2 -2
- package/dist/esm/{PermissionManage-B5HQZwNA.js.map → PermissionManage-IWOtoupA.js.map} +1 -1
- package/dist/esm/{ResourceSelectInput-OQtWlQVa.js → ResourceSelectInput-XRrLuhAj.js} +2 -2
- package/dist/esm/{ResourceSelectInput-OQtWlQVa.js.map → ResourceSelectInput-XRrLuhAj.js.map} +1 -1
- package/dist/esm/{dialog-STXHmNSF.js → dialog-CW16mrKR.js} +2 -2
- package/dist/esm/{dialog-STXHmNSF.js.map → dialog-CW16mrKR.js.map} +1 -1
- package/dist/esm/{dialog-jP7Zexmj.js → dialog-DM1KPS1w.js} +2 -2
- package/dist/esm/{dialog-jP7Zexmj.js.map → dialog-DM1KPS1w.js.map} +1 -1
- package/dist/esm/{dialog-2SfWKqm-.js → dialog-cqZAK5ie.js} +2 -2
- package/dist/esm/{dialog-2SfWKqm-.js.map → dialog-cqZAK5ie.js.map} +1 -1
- package/dist/esm/{edit-DtcyRQCr.js → edit-DIHA5XOt.js} +2 -2
- package/dist/esm/{edit-DtcyRQCr.js.map → edit-DIHA5XOt.js.map} +1 -1
- package/dist/esm/{index-BGei0HUY.js → index-35Efb8bL.js} +3 -3
- package/dist/esm/{index-BGei0HUY.js.map → index-35Efb8bL.js.map} +1 -1
- package/dist/esm/{index-DNL7CAod.js → index-66UwZ_hy.js} +2 -2
- package/dist/esm/{index-DNL7CAod.js.map → index-66UwZ_hy.js.map} +1 -1
- package/dist/esm/{index-TV7YfOfp.js → index-6vh7RATs.js} +2 -2
- package/dist/esm/{index-TV7YfOfp.js.map → index-6vh7RATs.js.map} +1 -1
- package/dist/esm/{index-Cx8luLFp.js → index-BPkMyf0X.js} +2 -2
- package/dist/esm/{index-Cx8luLFp.js.map → index-BPkMyf0X.js.map} +1 -1
- package/dist/esm/{index-CzR8tq1M.js → index-BQ0Xi-3e.js} +3 -3
- package/dist/esm/{index-CzR8tq1M.js.map → index-BQ0Xi-3e.js.map} +1 -1
- package/dist/esm/{index-DxcKKcBg.js → index-BWRcd7up.js} +2 -2
- package/dist/esm/{index-DxcKKcBg.js.map → index-BWRcd7up.js.map} +1 -1
- package/dist/esm/{index-ChThfy12.js → index-Bh5Odtd8.js} +2 -2
- package/dist/esm/{index-ChThfy12.js.map → index-Bh5Odtd8.js.map} +1 -1
- package/dist/esm/{index-DPaya5yh.js → index-BjGPP9kn.js} +2 -2
- package/dist/esm/{index-DPaya5yh.js.map → index-BjGPP9kn.js.map} +1 -1
- package/dist/esm/{index-HFsmOVMF.js → index-BtB3P9pp.js} +3 -3
- package/dist/esm/{index-HFsmOVMF.js.map → index-BtB3P9pp.js.map} +1 -1
- package/dist/esm/{index-DngCKmr3.js → index-CHWJvqti.js} +2 -2
- package/dist/esm/{index-DngCKmr3.js.map → index-CHWJvqti.js.map} +1 -1
- package/dist/esm/{index-ClcG_Uxi.js → index-CYo3aVIy.js} +2 -2
- package/dist/esm/{index-ClcG_Uxi.js.map → index-CYo3aVIy.js.map} +1 -1
- package/dist/esm/{index-Bz5_eVni.js → index-CiJ4Z6Ki.js} +2 -2
- package/dist/esm/{index-Bz5_eVni.js.map → index-CiJ4Z6Ki.js.map} +1 -1
- package/dist/esm/{index-BTjPgSfd.js → index-D4_OGO5a.js} +2 -2
- package/dist/esm/{index-BTjPgSfd.js.map → index-D4_OGO5a.js.map} +1 -1
- package/dist/esm/{index-DRsxEB2E.js → index-D7KNXJsj.js} +2 -2
- package/dist/esm/{index-DRsxEB2E.js.map → index-D7KNXJsj.js.map} +1 -1
- package/dist/esm/{index-Dik0qQ8G.js → index-D97H9sJ9.js} +2 -2
- package/dist/esm/{index-Dik0qQ8G.js.map → index-D97H9sJ9.js.map} +1 -1
- package/dist/esm/{index-Od510o2t.js → index-DJ1i3-xQ.js} +3 -3
- package/dist/esm/{index-Od510o2t.js.map → index-DJ1i3-xQ.js.map} +1 -1
- package/dist/esm/{index-CwW9IcgY.js → index-DSOkncEZ.js} +2 -2
- package/dist/esm/{index-CwW9IcgY.js.map → index-DSOkncEZ.js.map} +1 -1
- package/dist/esm/{index-Baoa_VFc.js → index-DXv3Ml8a.js} +2 -2
- package/dist/esm/{index-Baoa_VFc.js.map → index-DXv3Ml8a.js.map} +1 -1
- package/dist/esm/{index-D_Irx6dx.js → index-JoJ6at24.js} +2 -2
- package/dist/esm/{index-D_Irx6dx.js.map → index-JoJ6at24.js.map} +1 -1
- package/dist/esm/{index-CZl5aHgt.js → index-KTv2n8gM.js} +2 -2
- package/dist/esm/{index-CZl5aHgt.js.map → index-KTv2n8gM.js.map} +1 -1
- package/dist/esm/{index-DvNL3hqy.js → index-NpH63e9v.js} +2 -2
- package/dist/esm/{index-DvNL3hqy.js.map → index-NpH63e9v.js.map} +1 -1
- package/dist/esm/{index-B1x-bGRr.js → index-QEZjM3Ft.js} +2 -2
- package/dist/esm/{index-B1x-bGRr.js.map → index-QEZjM3Ft.js.map} +1 -1
- package/dist/esm/{index-CqtxxrkJ.js → index-Rs8COBKr.js} +2 -2
- package/dist/esm/{index-CqtxxrkJ.js.map → index-Rs8COBKr.js.map} +1 -1
- package/dist/esm/{index-BMU0XgfU.js → index-ThsVWdu1.js} +2 -2
- package/dist/esm/{index-BMU0XgfU.js.map → index-ThsVWdu1.js.map} +1 -1
- package/dist/esm/{index-spFPq2iI.js → index-VJmsRKkD.js} +3 -3
- package/dist/esm/{index-spFPq2iI.js.map → index-VJmsRKkD.js.map} +1 -1
- package/dist/esm/{index-D41bpqrw.js → index-mBU7uA9A.js} +4 -4
- package/dist/esm/{index-D41bpqrw.js.map → index-mBU7uA9A.js.map} +1 -1
- package/dist/esm/{index-C27KNxbE.js → index-oW7TPBGB.js} +2 -2
- package/dist/esm/{index-C27KNxbE.js.map → index-oW7TPBGB.js.map} +1 -1
- package/dist/esm/{index-DJrIzfOr.js → index-ptf7evnt.js} +730 -157
- package/dist/esm/index-ptf7evnt.js.map +1 -0
- package/dist/esm/{index-CMmPvv9D.js → index-xw27C2IO.js} +2 -2
- package/dist/esm/{index-CMmPvv9D.js.map → index-xw27C2IO.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ms-app.css +28 -25
- package/dist/esm/{normal-Ce-dZXKU.js → normal-BRq_ZbNY.js} +2 -2
- package/dist/esm/{normal-Ce-dZXKU.js.map → normal-BRq_ZbNY.js.map} +1 -1
- package/dist/esm/{normal-DvPBWbHK.js → normal-BiT7Zdho.js} +2 -2
- package/dist/esm/{normal-DvPBWbHK.js.map → normal-BiT7Zdho.js.map} +1 -1
- package/dist/esm/{table-LHxxMnW7.js → table-B1ke5wsY.js} +2 -2
- package/dist/esm/{table-LHxxMnW7.js.map → table-B1ke5wsY.js.map} +1 -1
- package/dist/types/components/basic/LexicalEditor/composables/useLexicalEditorState.d.ts +68 -1
- package/dist/types/components/basic/LexicalEditor/nodes/HtmlElementNode.d.ts +2 -2
- package/dist/types/components/basic/LexicalEditor/nodes/ImageNode.d.ts +3 -3
- package/dist/types/components/basic/LexicalEditor/utils/html.d.ts +2 -0
- package/package.json +23 -23
- package/dist/cjs/index-BIYsA_lx.cjs.map +0 -1
- package/dist/esm/index-DJrIzfOr.js.map +0 -1
|
@@ -14,7 +14,7 @@ import { VueCropper } from "vue-cropper";
|
|
|
14
14
|
import { $isOverflowNode, OverflowNode, $createOverflowNode } from "@lexical/overflow";
|
|
15
15
|
import { $rootTextContent, $isRootTextContentEmptyCurry, registerLexicalTextEntity, $canShowPlaceholderCurry } from "@lexical/text";
|
|
16
16
|
import { mergeRegister, $dfs, isBlockDomNode, $findMatchingParent, $getNextRightPreorderNode, mediaFileReader, isMimeType, $insertNodeToNearestRoot, $insertFirst } from "@lexical/utils";
|
|
17
|
-
import { $getSelection, $isRangeSelection, $isTextNode, $isLeafNode, $setSelection, COMMAND_PRIORITY_HIGH, ElementNode, DecoratorNode, createCommand, $createParagraphNode, $copyNode, $isElementNode, $getRoot, $cloneWithProperties, isHTMLElement, $isRootOrShadowRoot, $isBlockElementNode, $createLineBreakNode, ArtificialNode__DO_NOT_USE, isInlineDomNode, createEditor, CAN_UNDO_COMMAND, CAN_REDO_COMMAND, $isNodeSelection, FORMAT_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, REDO_COMMAND, UNDO_COMMAND, $createNodeSelection, $getNodeByKey, TextNode, KEY_TAB_COMMAND, OUTDENT_CONTENT_COMMAND,
|
|
17
|
+
import { $getSelection, $isRangeSelection, $isTextNode, $isLeafNode, $setSelection, COMMAND_PRIORITY_HIGH, ElementNode, DecoratorNode, createCommand, $createParagraphNode, $copyNode, $isElementNode, $getRoot, $cloneWithProperties, isHTMLElement, $isRootOrShadowRoot, $isBlockElementNode, $createLineBreakNode, ArtificialNode__DO_NOT_USE, isInlineDomNode, createEditor, CAN_UNDO_COMMAND, CAN_REDO_COMMAND, $isNodeSelection, FORMAT_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, REDO_COMMAND, UNDO_COMMAND, $createNodeSelection, $getNodeByKey, TextNode, KEY_TAB_COMMAND, OUTDENT_CONTENT_COMMAND, INSERT_TAB_COMMAND, COMMAND_PRIORITY_EDITOR, $isParagraphNode, CLICK_COMMAND, SELECTION_CHANGE_COMMAND, $isRootNode, COMMAND_PRIORITY_LOW, PASTE_COMMAND, COMMAND_PRIORITY_CRITICAL, INSERT_PARAGRAPH_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_UP_COMMAND, KEY_ESCAPE_COMMAND, KEY_SPACE_COMMAND, $getNearestNodeFromDOMNode, KEY_ARROW_LEFT_COMMAND, $nodesOfType } from "lexical";
|
|
18
18
|
import { $sliceSelectedTextNodeContent, $getSelectionStyleValueForProperty, $patchStyleText, $setBlocksType } from "@lexical/selection";
|
|
19
19
|
import { $isLinkNode, TOGGLE_LINK_COMMAND, AutoLinkNode, LinkNode, $toggleLink } from "@lexical/link";
|
|
20
20
|
import { $isHeadingNode, $createHeadingNode, HeadingNode, QuoteNode, DRAG_DROP_PASTE, registerRichText } from "@lexical/rich-text";
|
|
@@ -148,84 +148,84 @@ class DataTableComponents extends Components {
|
|
|
148
148
|
name: "MKColumnAction",
|
|
149
149
|
title: "操作",
|
|
150
150
|
component: defineAsyncComponent(
|
|
151
|
-
async () => import("./index-
|
|
151
|
+
async () => import("./index-oW7TPBGB.js")
|
|
152
152
|
)
|
|
153
153
|
});
|
|
154
154
|
this.registerComponent({
|
|
155
155
|
name: "MKColumnText",
|
|
156
156
|
title: "文本",
|
|
157
157
|
component: defineAsyncComponent(
|
|
158
|
-
async () => import("./index-
|
|
158
|
+
async () => import("./index-VJmsRKkD.js")
|
|
159
159
|
)
|
|
160
160
|
});
|
|
161
161
|
this.registerComponent({
|
|
162
162
|
name: "MKColumnObjectMappingText",
|
|
163
163
|
title: "对象映射文本",
|
|
164
164
|
component: defineAsyncComponent(
|
|
165
|
-
async () => import("./index-
|
|
165
|
+
async () => import("./index-35Efb8bL.js")
|
|
166
166
|
)
|
|
167
167
|
});
|
|
168
168
|
this.registerComponent({
|
|
169
169
|
name: "MKColumnImage",
|
|
170
170
|
title: "图片",
|
|
171
171
|
component: defineAsyncComponent(
|
|
172
|
-
async () => import("./index-
|
|
172
|
+
async () => import("./index-CYo3aVIy.js")
|
|
173
173
|
)
|
|
174
174
|
});
|
|
175
175
|
this.registerComponent({
|
|
176
176
|
name: "MKColumnSelect",
|
|
177
177
|
title: "行选择",
|
|
178
178
|
component: defineAsyncComponent(
|
|
179
|
-
async () => import("./index-
|
|
179
|
+
async () => import("./index-CiJ4Z6Ki.js")
|
|
180
180
|
)
|
|
181
181
|
});
|
|
182
182
|
this.registerComponent({
|
|
183
183
|
name: "MKColumnJson",
|
|
184
184
|
title: "JSON",
|
|
185
185
|
component: defineAsyncComponent(
|
|
186
|
-
async () => import("./index-
|
|
186
|
+
async () => import("./index-NpH63e9v.js")
|
|
187
187
|
)
|
|
188
188
|
});
|
|
189
189
|
this.registerComponent({
|
|
190
190
|
name: "MKColumnDate",
|
|
191
191
|
title: "日期时间",
|
|
192
192
|
component: defineAsyncComponent(
|
|
193
|
-
async () => import("./index-
|
|
193
|
+
async () => import("./index-mBU7uA9A.js")
|
|
194
194
|
)
|
|
195
195
|
});
|
|
196
196
|
this.registerComponent({
|
|
197
197
|
name: "MKColumnSwitch",
|
|
198
198
|
title: "开关",
|
|
199
199
|
component: defineAsyncComponent(
|
|
200
|
-
async () => import("./index-
|
|
200
|
+
async () => import("./index-ThsVWdu1.js")
|
|
201
201
|
)
|
|
202
202
|
});
|
|
203
203
|
this.registerComponent({
|
|
204
204
|
name: "MKColumnTag",
|
|
205
205
|
title: "标签",
|
|
206
206
|
component: defineAsyncComponent(
|
|
207
|
-
async () => import("./index-
|
|
207
|
+
async () => import("./index-6vh7RATs.js")
|
|
208
208
|
)
|
|
209
209
|
});
|
|
210
210
|
this.registerComponent({
|
|
211
211
|
name: "MKColumnLink",
|
|
212
212
|
title: "链接",
|
|
213
213
|
component: defineAsyncComponent(
|
|
214
|
-
async () => import("./index-
|
|
214
|
+
async () => import("./index-BtB3P9pp.js")
|
|
215
215
|
)
|
|
216
216
|
});
|
|
217
217
|
this.registerComponent({
|
|
218
218
|
name: "MKColumnSort",
|
|
219
219
|
title: "拖拽排序",
|
|
220
220
|
component: defineAsyncComponent(
|
|
221
|
-
async () => import("./index-
|
|
221
|
+
async () => import("./index-BPkMyf0X.js")
|
|
222
222
|
)
|
|
223
223
|
});
|
|
224
224
|
this.registerComponent({
|
|
225
225
|
name: "MKColumnIcon",
|
|
226
226
|
title: "图标",
|
|
227
227
|
component: defineAsyncComponent(
|
|
228
|
-
async () => import("./index-
|
|
228
|
+
async () => import("./index-BQ0Xi-3e.js")
|
|
229
229
|
)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
@@ -251,14 +251,14 @@ class DataTableHeaderComponents extends Components {
|
|
|
251
251
|
name: "MKBatchOpt",
|
|
252
252
|
title: "批量操作",
|
|
253
253
|
component: defineAsyncComponent(
|
|
254
|
-
async () => import("./index-
|
|
254
|
+
async () => import("./index-DXv3Ml8a.js")
|
|
255
255
|
)
|
|
256
256
|
});
|
|
257
257
|
this.registerComponent({
|
|
258
258
|
name: "MKTableFilter",
|
|
259
259
|
title: "筛选",
|
|
260
260
|
component: defineAsyncComponent(
|
|
261
|
-
async () => import("./index-
|
|
261
|
+
async () => import("./index-DJ1i3-xQ.js")
|
|
262
262
|
)
|
|
263
263
|
});
|
|
264
264
|
}
|
|
@@ -329,7 +329,7 @@ class DataFormComponents extends Components {
|
|
|
329
329
|
name: "MKFormRegionSelect",
|
|
330
330
|
title: "地址选择",
|
|
331
331
|
component: defineAsyncComponent(
|
|
332
|
-
() => import("./index-
|
|
332
|
+
() => import("./index-Rs8COBKr.js")
|
|
333
333
|
)
|
|
334
334
|
});
|
|
335
335
|
this.registerComponent({
|
|
@@ -343,7 +343,7 @@ class DataFormComponents extends Components {
|
|
|
343
343
|
name: "MKFormDetail",
|
|
344
344
|
title: "明细",
|
|
345
345
|
component: defineAsyncComponent(
|
|
346
|
-
() => import("./index-
|
|
346
|
+
() => import("./index-BWRcd7up.js")
|
|
347
347
|
)
|
|
348
348
|
});
|
|
349
349
|
this.registerComponent({
|
|
@@ -364,14 +364,14 @@ class DataFormComponents extends Components {
|
|
|
364
364
|
name: "MKDataTreeSelect",
|
|
365
365
|
title: "树选择器",
|
|
366
366
|
component: defineAsyncComponent(
|
|
367
|
-
() => import("./index-
|
|
367
|
+
() => import("./index-BjGPP9kn.js")
|
|
368
368
|
)
|
|
369
369
|
});
|
|
370
370
|
this.registerComponent({
|
|
371
371
|
name: "MKResourceSelectInput",
|
|
372
372
|
title: "资源选择输入框",
|
|
373
373
|
component: defineAsyncComponent(
|
|
374
|
-
() => import("./ResourceSelectInput-
|
|
374
|
+
() => import("./ResourceSelectInput-XRrLuhAj.js")
|
|
375
375
|
)
|
|
376
376
|
});
|
|
377
377
|
this.registerComponent({
|
|
@@ -407,7 +407,7 @@ class DataFilterComponents extends Components {
|
|
|
407
407
|
title: "下拉框",
|
|
408
408
|
defaultOperator: Operator.IN,
|
|
409
409
|
component: defineAsyncComponent(
|
|
410
|
-
() => import("./index-
|
|
410
|
+
() => import("./index-QEZjM3Ft.js")
|
|
411
411
|
)
|
|
412
412
|
});
|
|
413
413
|
this.registerComponent({
|
|
@@ -415,7 +415,7 @@ class DataFilterComponents extends Components {
|
|
|
415
415
|
title: "树形下拉框",
|
|
416
416
|
defaultOperator: Operator.IN,
|
|
417
417
|
component: defineAsyncComponent(
|
|
418
|
-
() => import("./index-
|
|
418
|
+
() => import("./index-BjGPP9kn.js")
|
|
419
419
|
)
|
|
420
420
|
});
|
|
421
421
|
this.registerComponent({
|
|
@@ -857,7 +857,7 @@ class Router extends Disposable {
|
|
|
857
857
|
vueRouter.addRoute("mk-ms-layout", {
|
|
858
858
|
name: defaultPageRoute.name,
|
|
859
859
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
860
|
-
component: () => import("./normal-
|
|
860
|
+
component: () => import("./normal-BRq_ZbNY.js"),
|
|
861
861
|
meta
|
|
862
862
|
});
|
|
863
863
|
break;
|
|
@@ -865,7 +865,7 @@ class Router extends Disposable {
|
|
|
865
865
|
vueRouter.addRoute("mk-ms-layout", {
|
|
866
866
|
name: defaultPageRoute.name,
|
|
867
867
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
868
|
-
component: () => import("./dialog-
|
|
868
|
+
component: () => import("./dialog-CW16mrKR.js"),
|
|
869
869
|
meta
|
|
870
870
|
});
|
|
871
871
|
break;
|
|
@@ -877,7 +877,7 @@ class Router extends Disposable {
|
|
|
877
877
|
vueRouter.addRoute("mk-ms-layout", {
|
|
878
878
|
name: defaultPageRoute.name,
|
|
879
879
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
880
|
-
component: () => import("./dialog-
|
|
880
|
+
component: () => import("./dialog-DM1KPS1w.js"),
|
|
881
881
|
meta
|
|
882
882
|
});
|
|
883
883
|
break;
|
|
@@ -889,7 +889,7 @@ class Router extends Disposable {
|
|
|
889
889
|
vueRouter.addRoute("mk-ms-layout", {
|
|
890
890
|
name: defaultPageRoute.name,
|
|
891
891
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
892
|
-
component: () => import("./dialog-
|
|
892
|
+
component: () => import("./dialog-cqZAK5ie.js"),
|
|
893
893
|
meta
|
|
894
894
|
});
|
|
895
895
|
break;
|
|
@@ -897,7 +897,7 @@ class Router extends Disposable {
|
|
|
897
897
|
vueRouter.addRoute("mk-ms-layout", {
|
|
898
898
|
name: defaultPageRoute.name,
|
|
899
899
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
900
|
-
component: () => import("./normal-
|
|
900
|
+
component: () => import("./normal-BiT7Zdho.js"),
|
|
901
901
|
meta
|
|
902
902
|
});
|
|
903
903
|
}
|
|
@@ -907,7 +907,7 @@ class Router extends Disposable {
|
|
|
907
907
|
vueRouter.addRoute("mk-ms-layout", {
|
|
908
908
|
name: defaultPageRoute.name,
|
|
909
909
|
path: defaultPageRoute.route || `/dv/${name}`,
|
|
910
|
-
component: () => import("./table-
|
|
910
|
+
component: () => import("./table-B1ke5wsY.js"),
|
|
911
911
|
meta
|
|
912
912
|
});
|
|
913
913
|
break;
|
|
@@ -915,7 +915,7 @@ class Router extends Disposable {
|
|
|
915
915
|
vueRouter.addRoute("mk-ms-layout", {
|
|
916
916
|
name: defaultPageRoute.name,
|
|
917
917
|
path: defaultPageRoute.route || `/dv/${name}/edit/:id?`,
|
|
918
|
-
component: () => import("./edit-
|
|
918
|
+
component: () => import("./edit-DIHA5XOt.js"),
|
|
919
919
|
meta
|
|
920
920
|
});
|
|
921
921
|
break;
|
|
@@ -1837,7 +1837,7 @@ class PageManager {
|
|
|
1837
1837
|
this.addNormalPage({
|
|
1838
1838
|
name: "mk-ms-layout",
|
|
1839
1839
|
path: "/",
|
|
1840
|
-
component: () => import("./index-
|
|
1840
|
+
component: () => import("./index-xw27C2IO.js")
|
|
1841
1841
|
});
|
|
1842
1842
|
this.addNormalPage({
|
|
1843
1843
|
name: "login",
|
|
@@ -1845,7 +1845,7 @@ class PageManager {
|
|
|
1845
1845
|
meta: {
|
|
1846
1846
|
isAuthorization: false
|
|
1847
1847
|
},
|
|
1848
|
-
component: () => import("./index-
|
|
1848
|
+
component: () => import("./index-DSOkncEZ.js")
|
|
1849
1849
|
});
|
|
1850
1850
|
this.addNormalPage({
|
|
1851
1851
|
name: "signup",
|
|
@@ -1853,7 +1853,7 @@ class PageManager {
|
|
|
1853
1853
|
meta: {
|
|
1854
1854
|
isAuthorization: false
|
|
1855
1855
|
},
|
|
1856
|
-
component: () => import("./index-
|
|
1856
|
+
component: () => import("./index-KTv2n8gM.js")
|
|
1857
1857
|
});
|
|
1858
1858
|
this.afterInitdEvent.emit();
|
|
1859
1859
|
this.msAppClientChangeEvent.on(({ msAppClient }) => {
|
|
@@ -1904,7 +1904,7 @@ class PageManager {
|
|
|
1904
1904
|
this.addExtendsPage({
|
|
1905
1905
|
name: "notFound",
|
|
1906
1906
|
path: "/:pathMatch(.*)*",
|
|
1907
|
-
component: () => import("./404-
|
|
1907
|
+
component: () => import("./404-CqVEJmH2.js")
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
userSession.register(
|
|
@@ -3312,8 +3312,8 @@ const _hoisted_1$E = {
|
|
|
3312
3312
|
class: "h-[1em] w-[1em]",
|
|
3313
3313
|
"aria-hidden": "true"
|
|
3314
3314
|
};
|
|
3315
|
-
const _hoisted_2$
|
|
3316
|
-
const _hoisted_3$
|
|
3315
|
+
const _hoisted_2$u = ["xlink:href"];
|
|
3316
|
+
const _hoisted_3$m = ["src"];
|
|
3317
3317
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
3318
3318
|
...{
|
|
3319
3319
|
name: "MKSvgIcon"
|
|
@@ -3385,12 +3385,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3385
3385
|
}, null, 8, ["icon"])) : unref(outputType) === "svg" ? (openBlock(), createElementBlock("svg", _hoisted_1$E, [
|
|
3386
3386
|
createElementVNode("use", {
|
|
3387
3387
|
"xlink:href": `#icon-${__props.name}`
|
|
3388
|
-
}, null, 8, _hoisted_2$
|
|
3388
|
+
}, null, 8, _hoisted_2$u)
|
|
3389
3389
|
])) : unref(outputType) === "img" ? (openBlock(), createElementBlock("img", {
|
|
3390
3390
|
key: 2,
|
|
3391
3391
|
src: __props.name,
|
|
3392
3392
|
class: "h-[1em] w-[1em]"
|
|
3393
|
-
}, null, 8, _hoisted_3$
|
|
3393
|
+
}, null, 8, _hoisted_3$m)) : createCommentVNode("", true)
|
|
3394
3394
|
], 6)) : createCommentVNode("", true);
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
@@ -3732,7 +3732,7 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
3732
3732
|
default: MKCodeEditor
|
|
3733
3733
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3734
3734
|
const MKJsonEditor = withInstall(
|
|
3735
|
-
defineAsyncComponent(() => import("./Editor-
|
|
3735
|
+
defineAsyncComponent(() => import("./Editor-C-BCft7T.js"))
|
|
3736
3736
|
);
|
|
3737
3737
|
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3738
3738
|
__proto__: null,
|
|
@@ -4759,8 +4759,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
4759
4759
|
}
|
|
4760
4760
|
});
|
|
4761
4761
|
const _hoisted_1$C = { class: "mk-visual-page-editor" };
|
|
4762
|
-
const _hoisted_2$
|
|
4763
|
-
const _hoisted_3$
|
|
4762
|
+
const _hoisted_2$t = { class: "mk-visual-page-editor__stage" };
|
|
4763
|
+
const _hoisted_3$l = { class: "mk-visual-page-editor__stage_right" };
|
|
4764
4764
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
4765
4765
|
__name: "editor",
|
|
4766
4766
|
props: { device: { type: String, default: "mobile" } },
|
|
@@ -4775,9 +4775,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4775
4775
|
renderSlot(_ctx.$slots, "toolbar", {}, () => [
|
|
4776
4776
|
createVNode(_sfc_main$S)
|
|
4777
4777
|
], true),
|
|
4778
|
-
createElementVNode("div", _hoisted_2$
|
|
4778
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
4779
4779
|
createVNode(_sfc_main$R),
|
|
4780
|
-
createElementVNode("div", _hoisted_3$
|
|
4780
|
+
createElementVNode("div", _hoisted_3$l, [
|
|
4781
4781
|
renderSlot(_ctx.$slots, "extra-panel", {}, void 0, true)
|
|
4782
4782
|
])
|
|
4783
4783
|
])
|
|
@@ -5117,7 +5117,8 @@ class HtmlElementNode extends ElementNode {
|
|
|
5117
5117
|
*/
|
|
5118
5118
|
constructor(tagName, className, style, key) {
|
|
5119
5119
|
super(key);
|
|
5120
|
-
this.__tagName = tagName
|
|
5120
|
+
this.__tagName = tagName;
|
|
5121
|
+
this.__class = className;
|
|
5121
5122
|
this.__style = style || "";
|
|
5122
5123
|
}
|
|
5123
5124
|
/**
|
|
@@ -5136,10 +5137,10 @@ class HtmlElementNode extends ElementNode {
|
|
|
5136
5137
|
}
|
|
5137
5138
|
/**
|
|
5138
5139
|
* 添加样式
|
|
5139
|
-
* @param
|
|
5140
|
+
* @param data
|
|
5140
5141
|
*/
|
|
5141
|
-
addStyle(
|
|
5142
|
-
const styleObj = Object.assign(getStyleObjectFromRawCSS(this.__style),
|
|
5142
|
+
addStyle(data) {
|
|
5143
|
+
const styleObj = Object.assign(getStyleObjectFromRawCSS(this.__style), data);
|
|
5143
5144
|
return this.setStyle(getCSSFromStyleObject(styleObj));
|
|
5144
5145
|
}
|
|
5145
5146
|
/**
|
|
@@ -5733,9 +5734,9 @@ class ImageNode extends HtmlElementDecoratorNode {
|
|
|
5733
5734
|
}
|
|
5734
5735
|
/**
|
|
5735
5736
|
* 更新DOM
|
|
5736
|
-
* @param
|
|
5737
|
-
* @param
|
|
5738
|
-
* @param
|
|
5737
|
+
* @param prevNode
|
|
5738
|
+
* @param dom
|
|
5739
|
+
* @param config
|
|
5739
5740
|
* @returns
|
|
5740
5741
|
*/
|
|
5741
5742
|
updateDOM(prevNode, dom, config) {
|
|
@@ -5969,7 +5970,7 @@ const createNodesFromElement = function(node, editor, allArtificialNodes, hasBlo
|
|
|
5969
5970
|
}
|
|
5970
5971
|
const children = isBlockDomNode(node) && node.hasAttribute(AttrMarkName) ? [] : node.childNodes;
|
|
5971
5972
|
let childLexicalNodes = [];
|
|
5972
|
-
const hasBlockAncestorLexicalNodeForChildren = currentLexicalNode != null && ($isRootOrShadowRoot(currentLexicalNode) ? false :
|
|
5973
|
+
const hasBlockAncestorLexicalNodeForChildren = currentLexicalNode != null && ($isRootOrShadowRoot(currentLexicalNode) ? false : $isBlockElementNode(currentLexicalNode) || hasBlockAncestorLexicalNode);
|
|
5973
5974
|
for (let i = 0; i < children.length; i++) {
|
|
5974
5975
|
childLexicalNodes.push(...createNodesFromElement(children[i], editor, allArtificialNodes, hasBlockAncestorLexicalNodeForChildren, new Map(forChildMap), currentLexicalNode));
|
|
5975
5976
|
}
|
|
@@ -6034,7 +6035,7 @@ const appendNodesToHTML = function(editor, currentNode, parentElement, selection
|
|
|
6034
6035
|
let target = currentNode;
|
|
6035
6036
|
if (selection !== null) {
|
|
6036
6037
|
let clone = $cloneWithProperties(currentNode);
|
|
6037
|
-
clone = $isTextNode(clone)
|
|
6038
|
+
clone = $isTextNode(clone) ? $sliceSelectedTextNodeContent(selection, clone) : clone;
|
|
6038
6039
|
target = clone;
|
|
6039
6040
|
}
|
|
6040
6041
|
const children = $isElementNode(target) ? target.getChildren() : [];
|
|
@@ -6064,7 +6065,7 @@ const appendNodesToHTML = function(editor, currentNode, parentElement, selection
|
|
|
6064
6065
|
parentElement.append(element);
|
|
6065
6066
|
if (after) {
|
|
6066
6067
|
const newElement = after.call(target, element);
|
|
6067
|
-
if (newElement) {
|
|
6068
|
+
if ((element instanceof Element || element instanceof Text) && (newElement instanceof Element || newElement instanceof Text)) {
|
|
6068
6069
|
element.replaceWith(newElement);
|
|
6069
6070
|
}
|
|
6070
6071
|
}
|
|
@@ -6454,8 +6455,8 @@ const formViewProps = buildProps({
|
|
|
6454
6455
|
formStyles: { type: [Object, String], default: "max-width:700px" }
|
|
6455
6456
|
});
|
|
6456
6457
|
const _hoisted_1$B = { class: "flex flex-col h-[100%]" };
|
|
6457
|
-
const _hoisted_2$
|
|
6458
|
-
const _hoisted_3$
|
|
6458
|
+
const _hoisted_2$s = { class: "flex items-center" };
|
|
6459
|
+
const _hoisted_3$k = { class: "color-[var(--el-text-color-regular)] ml-2 flex items-center" };
|
|
6459
6460
|
const _hoisted_4$h = { class: "bg-white m-2 flex-1 overflow-y-auto" };
|
|
6460
6461
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
6461
6462
|
...{ name: "MKPagePanel" },
|
|
@@ -6481,10 +6482,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6481
6482
|
icon: null
|
|
6482
6483
|
}, createSlots({
|
|
6483
6484
|
title: withCtx(() => [
|
|
6484
|
-
createElementVNode("div", _hoisted_2$
|
|
6485
|
+
createElementVNode("div", _hoisted_2$s, [
|
|
6485
6486
|
renderSlot(_ctx.$slots, "back"),
|
|
6486
6487
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
6487
|
-
createElementVNode("h3", _hoisted_3$
|
|
6488
|
+
createElementVNode("h3", _hoisted_3$k, [
|
|
6488
6489
|
unref(settingsStore).mode === "pc" && unref(iconName) ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
6489
6490
|
key: 0,
|
|
6490
6491
|
name: unref(iconName),
|
|
@@ -7756,11 +7757,11 @@ const MKDataTable = withInstall(DataTable, {
|
|
|
7756
7757
|
MKDataTableColumn
|
|
7757
7758
|
});
|
|
7758
7759
|
const _hoisted_1$A = { class: "data-tree-list" };
|
|
7759
|
-
const _hoisted_2$
|
|
7760
|
+
const _hoisted_2$r = {
|
|
7760
7761
|
key: 0,
|
|
7761
7762
|
class: "data-tree-list__header"
|
|
7762
7763
|
};
|
|
7763
|
-
const _hoisted_3$
|
|
7764
|
+
const _hoisted_3$j = { class: "flex-inline items-center justify-center gap-2" };
|
|
7764
7765
|
const _hoisted_4$g = { class: "data-tree-list__body m-t-2" };
|
|
7765
7766
|
const _hoisted_5$b = ["onClick"];
|
|
7766
7767
|
const _hoisted_6$7 = { class: "flex justify-center items-center" };
|
|
@@ -7856,8 +7857,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7856
7857
|
const _component_ElDropdownMenu = resolveComponent("ElDropdownMenu");
|
|
7857
7858
|
const _component_ElDropdown = resolveComponent("ElDropdown");
|
|
7858
7859
|
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
7859
|
-
__props.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7860
|
-
createElementVNode("div", _hoisted_3$
|
|
7860
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
7861
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
7861
7862
|
__props.iconName ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
7862
7863
|
key: 0,
|
|
7863
7864
|
name: __props.iconName
|
|
@@ -8010,7 +8011,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
8010
8011
|
const DataTreeList = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-8fe753c3"]]);
|
|
8011
8012
|
const MKDataTreeList = withInstall(DataTreeList);
|
|
8012
8013
|
const _hoisted_1$z = { class: "w-[100%] flex justify-between" };
|
|
8013
|
-
const _hoisted_2$
|
|
8014
|
+
const _hoisted_2$q = { class: "font-size-[16px] p-l-[10px] flex flex-items-center" };
|
|
8014
8015
|
const _sfc_main$L = /* @__PURE__ */ Object.assign({ name: "MKDataGroupPanel" }, {
|
|
8015
8016
|
__name: "index",
|
|
8016
8017
|
props: {
|
|
@@ -8038,7 +8039,7 @@ const _sfc_main$L = /* @__PURE__ */ Object.assign({ name: "MKDataGroupPanel" },
|
|
|
8038
8039
|
}, {
|
|
8039
8040
|
title: withCtx(() => [
|
|
8040
8041
|
createElementVNode("div", _hoisted_1$z, [
|
|
8041
|
-
createElementVNode("b", _hoisted_2$
|
|
8042
|
+
createElementVNode("b", _hoisted_2$q, [
|
|
8042
8043
|
createTextVNode(toDisplayString(item[__props.dataItemDescFieldName]) + " ", 1),
|
|
8043
8044
|
renderSlot(_ctx.$slots, "subtitle", {
|
|
8044
8045
|
data: item,
|
|
@@ -8263,8 +8264,8 @@ const _hoisted_1$y = {
|
|
|
8263
8264
|
key: 0,
|
|
8264
8265
|
class: "mk-material-item__tools"
|
|
8265
8266
|
};
|
|
8266
|
-
const _hoisted_2$
|
|
8267
|
-
const _hoisted_3$
|
|
8267
|
+
const _hoisted_2$p = { class: "mk-material-item__tools-item" };
|
|
8268
|
+
const _hoisted_3$i = { class: "mk-material-item__preview" };
|
|
8268
8269
|
const _hoisted_4$f = { class: "mk-material-item__title" };
|
|
8269
8270
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
8270
8271
|
__name: "MaterialItem",
|
|
@@ -8336,7 +8337,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8336
8337
|
}, {
|
|
8337
8338
|
default: withCtx(() => [
|
|
8338
8339
|
!__props.selectable ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
8339
|
-
createElementVNode("div", _hoisted_2$
|
|
8340
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
8340
8341
|
createVNode(_component_ElDropdown, null, {
|
|
8341
8342
|
dropdown: withCtx(() => [
|
|
8342
8343
|
currentMaterialTypeValue.value === 1 ? (openBlock(), createBlock(_component_ElDropdownItem, {
|
|
@@ -8401,7 +8402,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8401
8402
|
})
|
|
8402
8403
|
])
|
|
8403
8404
|
])) : createCommentVNode("", true),
|
|
8404
|
-
createElementVNode("div", _hoisted_3$
|
|
8405
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
8405
8406
|
createVNode(unref(MaterialComponent), {
|
|
8406
8407
|
src: __props.material.path,
|
|
8407
8408
|
viewTools: !__props.selectable
|
|
@@ -8677,7 +8678,7 @@ const MaterialList = /* @__PURE__ */ defineComponent({
|
|
|
8677
8678
|
});
|
|
8678
8679
|
const MKMaterialList = withInstall(MaterialList);
|
|
8679
8680
|
const _hoisted_1$x = { class: "h-full w-full" };
|
|
8680
|
-
const _hoisted_2$
|
|
8681
|
+
const _hoisted_2$o = {
|
|
8681
8682
|
class: "w-[100%] h-[100%] bg-[--g-bg]",
|
|
8682
8683
|
"element-loading-background": "var(--g-bg)",
|
|
8683
8684
|
"element-loading-text": "加载中..."
|
|
@@ -8696,7 +8697,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
8696
8697
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
8697
8698
|
(openBlock(), createBlock(Suspense, null, {
|
|
8698
8699
|
fallback: withCtx(() => [
|
|
8699
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
8700
|
+
withDirectives(createElementVNode("div", _hoisted_2$o, null, 512), [
|
|
8700
8701
|
[_directive_loading, true]
|
|
8701
8702
|
])
|
|
8702
8703
|
]),
|
|
@@ -9230,6 +9231,31 @@ const showHtmlTemplateDialog = function() {
|
|
|
9230
9231
|
});
|
|
9231
9232
|
});
|
|
9232
9233
|
};
|
|
9234
|
+
const innerTextStyleImport = (domNode) => {
|
|
9235
|
+
return {
|
|
9236
|
+
conversion: () => {
|
|
9237
|
+
return {
|
|
9238
|
+
forChild: (lexicalNode) => {
|
|
9239
|
+
if ($isTextNode(lexicalNode)) {
|
|
9240
|
+
const style = domNode.style.cssText;
|
|
9241
|
+
if (style) {
|
|
9242
|
+
lexicalNode.setStyle(lexicalNode.getStyle() + style);
|
|
9243
|
+
}
|
|
9244
|
+
}
|
|
9245
|
+
return lexicalNode;
|
|
9246
|
+
},
|
|
9247
|
+
node: null
|
|
9248
|
+
};
|
|
9249
|
+
},
|
|
9250
|
+
priority: 4
|
|
9251
|
+
};
|
|
9252
|
+
};
|
|
9253
|
+
const DefaultHtmlConfig = {
|
|
9254
|
+
import: {
|
|
9255
|
+
strong: innerTextStyleImport,
|
|
9256
|
+
span: innerTextStyleImport
|
|
9257
|
+
}
|
|
9258
|
+
};
|
|
9233
9259
|
const LexicalEditorProviderKey = "LexicalEditorProviderKey";
|
|
9234
9260
|
const HISTORY_MERGE_OPTIONS = { tag: "history-merge" };
|
|
9235
9261
|
const EditorPlugins = [];
|
|
@@ -9248,7 +9274,7 @@ const useLexicalEditor = function(options, errHandle) {
|
|
|
9248
9274
|
const registerNodes = plugins.filter((p) => p.plugin.nodes).map((p) => p.plugin.nodes).reduce((a, b) => a.concat(b));
|
|
9249
9275
|
const editor = createEditor({
|
|
9250
9276
|
editable: options.editable,
|
|
9251
|
-
html: options.html,
|
|
9277
|
+
html: options.html || DefaultHtmlConfig,
|
|
9252
9278
|
namespace,
|
|
9253
9279
|
nodes: options.nodes ? [...registerNodes, ...options.nodes] : registerNodes,
|
|
9254
9280
|
theme: options.theme,
|
|
@@ -9439,6 +9465,10 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9439
9465
|
const canStrikethrough = ref(false);
|
|
9440
9466
|
const canSubscript = ref(false);
|
|
9441
9467
|
const canSuperscript = ref(false);
|
|
9468
|
+
const spacing = reactive({
|
|
9469
|
+
lineHeight: 0,
|
|
9470
|
+
letterSpacing: 0
|
|
9471
|
+
});
|
|
9442
9472
|
const alignList = ref(["left", "center", "right", "justify"]);
|
|
9443
9473
|
const alignValue = ref(alignList.value[0]);
|
|
9444
9474
|
const canLink = ref(false);
|
|
@@ -9531,12 +9561,14 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9531
9561
|
} else if (alignValue.value == "end") {
|
|
9532
9562
|
alignValue.value = "right";
|
|
9533
9563
|
}
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9564
|
+
if ($isTextNode(anchorNode)) {
|
|
9565
|
+
canBold.value = anchorNode.hasFormat("bold");
|
|
9566
|
+
canItalic.value = anchorNode.hasFormat("italic");
|
|
9567
|
+
canUnderline.value = anchorNode.hasFormat("underline");
|
|
9568
|
+
canStrikethrough.value = anchorNode.hasFormat("strikethrough");
|
|
9569
|
+
canSubscript.value = anchorNode.hasFormat("subscript");
|
|
9570
|
+
canSuperscript.value = anchorNode.hasFormat("superscript");
|
|
9571
|
+
}
|
|
9540
9572
|
if (canSubscript.value) {
|
|
9541
9573
|
curContentTypeDesc.value = contentTypeList.find((item) => item.value == "subscript")?.label ?? "正文";
|
|
9542
9574
|
} else if (canSuperscript.value) {
|
|
@@ -9545,8 +9577,10 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9545
9577
|
const type = $isHeadingNode(parentNode) ? parentNode.getTag() : parentNode.getType();
|
|
9546
9578
|
curContentTypeDesc.value = contentTypeList.find((item) => item.value == type)?.label ?? "正文";
|
|
9547
9579
|
}
|
|
9548
|
-
|
|
9580
|
+
let ff = $getSelectionStyleValueForProperty(selection, "font-family", "");
|
|
9549
9581
|
let fs = $getSelectionStyleValueForProperty(selection, "font-size", "");
|
|
9582
|
+
let letterSpacing = $getSelectionStyleValueForProperty(selection, "letter-spacing", "0");
|
|
9583
|
+
let lineHeight = $getSelectionStyleValueForProperty(selection, "line-height", "1.5");
|
|
9550
9584
|
if (fs) {
|
|
9551
9585
|
fontSize.value = Math.round(parseFloat(fs) * options.rootFontSize) + "px";
|
|
9552
9586
|
} else if (parentDOM) {
|
|
@@ -9554,6 +9588,12 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9554
9588
|
} else {
|
|
9555
9589
|
fontSize.value = Math.round(options.rootFontSize) + "px";
|
|
9556
9590
|
}
|
|
9591
|
+
if (letterSpacing) {
|
|
9592
|
+
spacing.letterSpacing = parseFloat(letterSpacing);
|
|
9593
|
+
}
|
|
9594
|
+
if (lineHeight) {
|
|
9595
|
+
spacing.lineHeight = parseFloat(lineHeight);
|
|
9596
|
+
}
|
|
9557
9597
|
if (!ff && parentDOM) {
|
|
9558
9598
|
ff = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontFamily ?? "";
|
|
9559
9599
|
}
|
|
@@ -9562,7 +9602,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9562
9602
|
fontFamily.value = options.fontFamilyOptions?.find((item) => item.value == ff) || options.fontFamilyOptions[0];
|
|
9563
9603
|
canTextStyleDisabled.value = false;
|
|
9564
9604
|
const parent = anchorNode.getParent();
|
|
9565
|
-
if (canLink.value
|
|
9605
|
+
if (canLink.value && ($isLinkNode(parent) || $isLinkNode(anchorNode))) {
|
|
9566
9606
|
linkValue.value = $isLinkNode(parent) ? parent.getURL() : anchorNode.getURL();
|
|
9567
9607
|
} else {
|
|
9568
9608
|
linkValue.value = "";
|
|
@@ -9583,6 +9623,12 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9583
9623
|
const redoCommand = () => {
|
|
9584
9624
|
editor.dispatchCommand(REDO_COMMAND, void 0);
|
|
9585
9625
|
};
|
|
9626
|
+
watch(() => spacing.letterSpacing, (value) => {
|
|
9627
|
+
setTextStyle("letter-spacing", value + "px");
|
|
9628
|
+
});
|
|
9629
|
+
watch(() => spacing.lineHeight, (value) => {
|
|
9630
|
+
setTextStyle("line-height", value);
|
|
9631
|
+
});
|
|
9586
9632
|
return {
|
|
9587
9633
|
canUndo,
|
|
9588
9634
|
undoCommand,
|
|
@@ -9590,6 +9636,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9590
9636
|
redoCommand,
|
|
9591
9637
|
canTextStyleDisabled,
|
|
9592
9638
|
setTextStyle,
|
|
9639
|
+
spacing,
|
|
9593
9640
|
fontSize,
|
|
9594
9641
|
fontSizeOptions: options.fontSizeOptions,
|
|
9595
9642
|
fontColor,
|
|
@@ -9878,11 +9925,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9878
9925
|
KEY_TAB_COMMAND,
|
|
9879
9926
|
(event) => {
|
|
9880
9927
|
const selection = $getSelection();
|
|
9881
|
-
if (!$isRangeSelection(selection))
|
|
9882
|
-
return false;
|
|
9928
|
+
if (!$isRangeSelection(selection)) return false;
|
|
9883
9929
|
event.preventDefault();
|
|
9884
9930
|
return editor.dispatchCommand(
|
|
9885
|
-
event.shiftKey ? OUTDENT_CONTENT_COMMAND :
|
|
9931
|
+
event.shiftKey ? OUTDENT_CONTENT_COMMAND : INSERT_TAB_COMMAND,
|
|
9886
9932
|
void 0
|
|
9887
9933
|
);
|
|
9888
9934
|
},
|
|
@@ -10057,7 +10103,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10057
10103
|
useMounted(() => {
|
|
10058
10104
|
return mergeRegister(
|
|
10059
10105
|
editor.registerCommand(UPDATE_ELEMENTBLOCK_TOOLBAR_POS_COMMAND, () => updateToolsPos(), lowPriority),
|
|
10060
|
-
editor.registerUpdateListener((
|
|
10106
|
+
editor.registerUpdateListener(({ editorState }) => {
|
|
10107
|
+
setTimeout(() => updateToolsPos(), 50);
|
|
10108
|
+
}),
|
|
10061
10109
|
// 点击选中
|
|
10062
10110
|
editor.registerCommand(CLICK_COMMAND, (event) => {
|
|
10063
10111
|
const el = event.target;
|
|
@@ -10337,9 +10385,28 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10337
10385
|
};
|
|
10338
10386
|
}
|
|
10339
10387
|
});
|
|
10340
|
-
const ElementBlockSelectionPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
10341
|
-
const _hoisted_1$v = {
|
|
10388
|
+
const ElementBlockSelectionPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-2c08b5aa"]]);
|
|
10389
|
+
const _hoisted_1$v = { class: "mk-list-item" };
|
|
10342
10390
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
10391
|
+
...{ name: "MKListItem" },
|
|
10392
|
+
__name: "index",
|
|
10393
|
+
props: {
|
|
10394
|
+
component: { type: Object }
|
|
10395
|
+
},
|
|
10396
|
+
setup(__props) {
|
|
10397
|
+
return (_ctx, _cache) => {
|
|
10398
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
10399
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
10400
|
+
]);
|
|
10401
|
+
};
|
|
10402
|
+
}
|
|
10403
|
+
});
|
|
10404
|
+
const ListItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-9bb47fa7"]]);
|
|
10405
|
+
const MKListItem = withInstall(ListItem);
|
|
10406
|
+
const _hoisted_1$u = { style: { "padding": "0 10px" } };
|
|
10407
|
+
const _hoisted_2$n = { class: "justify-between flex items-center" };
|
|
10408
|
+
const _hoisted_3$h = { class: "justify-between flex items-center" };
|
|
10409
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
10343
10410
|
__name: "ToolbarPlugin",
|
|
10344
10411
|
props: {
|
|
10345
10412
|
// doc | rich-text | mini
|
|
@@ -10368,6 +10435,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10368
10435
|
canSubscript,
|
|
10369
10436
|
canSuperscript,
|
|
10370
10437
|
canLink,
|
|
10438
|
+
spacing,
|
|
10371
10439
|
alignList,
|
|
10372
10440
|
alignValue,
|
|
10373
10441
|
contentTypeList,
|
|
@@ -10383,6 +10451,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10383
10451
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
10384
10452
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
10385
10453
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
10454
|
+
const _component_el_input_number = resolveComponent("el-input-number");
|
|
10455
|
+
const _component_el_popover = resolveComponent("el-popover");
|
|
10386
10456
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10387
10457
|
__props.mode == "doc" ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {
|
|
10388
10458
|
default: withCtx(() => [
|
|
@@ -10430,7 +10500,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10430
10500
|
onClick: ($event) => unref(setContentType)(item.value)
|
|
10431
10501
|
}, {
|
|
10432
10502
|
default: withCtx(() => [
|
|
10433
|
-
createElementVNode("div", _hoisted_1$
|
|
10503
|
+
createElementVNode("div", _hoisted_1$u, toDisplayString(item.label), 1)
|
|
10434
10504
|
]),
|
|
10435
10505
|
_: 2
|
|
10436
10506
|
}, 1032, ["class", "value", "onClick"]);
|
|
@@ -10591,11 +10661,60 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10591
10661
|
createVNode(_component_el_divider, { direction: "vertical" }),
|
|
10592
10662
|
createVNode(_component_el_button_group, { class: "font-style" }, {
|
|
10593
10663
|
default: withCtx(() => [
|
|
10664
|
+
createVNode(_component_el_popover, {
|
|
10665
|
+
placement: "bottom",
|
|
10666
|
+
width: 240,
|
|
10667
|
+
trigger: "click"
|
|
10668
|
+
}, {
|
|
10669
|
+
reference: withCtx(() => [
|
|
10670
|
+
createVNode(_component_el_button, {
|
|
10671
|
+
disabled: unref(canTextStyleDisabled),
|
|
10672
|
+
text: ""
|
|
10673
|
+
}, {
|
|
10674
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
10675
|
+
createTextVNode(" 字 ", -1)
|
|
10676
|
+
])]),
|
|
10677
|
+
_: 1
|
|
10678
|
+
}, 8, ["disabled"])
|
|
10679
|
+
]),
|
|
10680
|
+
default: withCtx(() => [
|
|
10681
|
+
createVNode(unref(MKListItem), null, {
|
|
10682
|
+
default: withCtx(() => [
|
|
10683
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
10684
|
+
_cache[16] || (_cache[16] = createTextVNode("字间距 :", -1)),
|
|
10685
|
+
createVNode(_component_el_input_number, {
|
|
10686
|
+
modelValue: unref(spacing).letterSpacing,
|
|
10687
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(spacing).letterSpacing = $event),
|
|
10688
|
+
min: 0,
|
|
10689
|
+
size: "small"
|
|
10690
|
+
}, null, 8, ["modelValue"])
|
|
10691
|
+
])
|
|
10692
|
+
]),
|
|
10693
|
+
_: 1
|
|
10694
|
+
}),
|
|
10695
|
+
createVNode(unref(MKListItem), null, {
|
|
10696
|
+
default: withCtx(() => [
|
|
10697
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
10698
|
+
_cache[17] || (_cache[17] = createTextVNode("行间距 :", -1)),
|
|
10699
|
+
createVNode(_component_el_input_number, {
|
|
10700
|
+
modelValue: unref(spacing).lineHeight,
|
|
10701
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(spacing).lineHeight = $event),
|
|
10702
|
+
step: 0.1,
|
|
10703
|
+
min: 1,
|
|
10704
|
+
size: "small"
|
|
10705
|
+
}, null, 8, ["modelValue"])
|
|
10706
|
+
])
|
|
10707
|
+
]),
|
|
10708
|
+
_: 1
|
|
10709
|
+
})
|
|
10710
|
+
]),
|
|
10711
|
+
_: 1
|
|
10712
|
+
}),
|
|
10594
10713
|
createVNode(_component_el_button, {
|
|
10595
10714
|
disabled: unref(canTextStyleDisabled),
|
|
10596
10715
|
text: "",
|
|
10597
10716
|
class: normalizeClass(`${unref(canBold) ? "active" : ""}`),
|
|
10598
|
-
onClick: _cache[
|
|
10717
|
+
onClick: _cache[8] || (_cache[8] = ($event) => unref(setTextStyle)("bold"))
|
|
10599
10718
|
}, {
|
|
10600
10719
|
default: withCtx(() => [
|
|
10601
10720
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10609,7 +10728,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10609
10728
|
disabled: unref(canTextStyleDisabled),
|
|
10610
10729
|
text: "",
|
|
10611
10730
|
class: normalizeClass(`${unref(canItalic) ? "active" : ""}`),
|
|
10612
|
-
onClick: _cache[
|
|
10731
|
+
onClick: _cache[9] || (_cache[9] = ($event) => unref(setTextStyle)("italic"))
|
|
10613
10732
|
}, {
|
|
10614
10733
|
default: withCtx(() => [
|
|
10615
10734
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10623,7 +10742,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10623
10742
|
disabled: unref(canTextStyleDisabled),
|
|
10624
10743
|
text: "",
|
|
10625
10744
|
class: normalizeClass(`${unref(canStrikethrough) ? "active" : ""}`),
|
|
10626
|
-
onClick: _cache[
|
|
10745
|
+
onClick: _cache[10] || (_cache[10] = ($event) => unref(setTextStyle)("strikethrough"))
|
|
10627
10746
|
}, {
|
|
10628
10747
|
default: withCtx(() => [
|
|
10629
10748
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10637,7 +10756,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10637
10756
|
disabled: unref(canTextStyleDisabled),
|
|
10638
10757
|
text: "",
|
|
10639
10758
|
class: normalizeClass(`${unref(canUnderline) ? "active" : ""}`),
|
|
10640
|
-
onClick: _cache[
|
|
10759
|
+
onClick: _cache[11] || (_cache[11] = ($event) => unref(setTextStyle)("underline"))
|
|
10641
10760
|
}, {
|
|
10642
10761
|
default: withCtx(() => [
|
|
10643
10762
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10651,7 +10770,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10651
10770
|
disabled: unref(canTextStyleDisabled),
|
|
10652
10771
|
text: "",
|
|
10653
10772
|
class: normalizeClass(`${unref(canSubscript) ? "active" : ""}`),
|
|
10654
|
-
onClick: _cache[
|
|
10773
|
+
onClick: _cache[12] || (_cache[12] = ($event) => unref(setTextStyle)("subscript"))
|
|
10655
10774
|
}, {
|
|
10656
10775
|
default: withCtx(() => [
|
|
10657
10776
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10665,7 +10784,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10665
10784
|
disabled: unref(canTextStyleDisabled),
|
|
10666
10785
|
text: "",
|
|
10667
10786
|
class: normalizeClass(`${unref(canSuperscript) ? "active" : ""}`),
|
|
10668
|
-
onClick: _cache[
|
|
10787
|
+
onClick: _cache[13] || (_cache[13] = ($event) => unref(setTextStyle)("superscript"))
|
|
10669
10788
|
}, {
|
|
10670
10789
|
default: withCtx(() => [
|
|
10671
10790
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10729,7 +10848,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10729
10848
|
text: "",
|
|
10730
10849
|
disabled: unref(canTextStyleDisabled),
|
|
10731
10850
|
class: normalizeClass(`${unref(canLink) ? "active" : ""}`),
|
|
10732
|
-
onClick: _cache[
|
|
10851
|
+
onClick: _cache[14] || (_cache[14] = ($event) => unref(setTextStyle)("link"))
|
|
10733
10852
|
}, {
|
|
10734
10853
|
default: withCtx(() => [
|
|
10735
10854
|
!unref(canLink) ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
@@ -10783,7 +10902,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10783
10902
|
name: "ep:plus",
|
|
10784
10903
|
class: "mr-2"
|
|
10785
10904
|
}),
|
|
10786
|
-
_cache[
|
|
10905
|
+
_cache[18] || (_cache[18] = createTextVNode(" 插入 ", -1))
|
|
10787
10906
|
]),
|
|
10788
10907
|
_: 1
|
|
10789
10908
|
}, 8, ["disabled"])
|
|
@@ -10794,7 +10913,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10794
10913
|
};
|
|
10795
10914
|
}
|
|
10796
10915
|
});
|
|
10797
|
-
const ToolbarPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10916
|
+
const ToolbarPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-a6ee1153"]]);
|
|
10798
10917
|
const uploadHandle = async (pathList) => {
|
|
10799
10918
|
if (pathList.length) {
|
|
10800
10919
|
const loadingInstance = ElLoading.service({ fullscreen: true, text: "图片上传中..." });
|
|
@@ -10923,7 +11042,6 @@ registerLexicalEditorPlugin({
|
|
|
10923
11042
|
// tools:[
|
|
10924
11043
|
// {
|
|
10925
11044
|
// key:"edit",title: "编辑", icon: "ep:edit", action: async (editNode:LexicalNode) => {
|
|
10926
|
-
// console.log("编辑")
|
|
10927
11045
|
// // // 打开模块面板
|
|
10928
11046
|
// // const result = (await showModuleSelectDialog()) as ModuleType;
|
|
10929
11047
|
// // const defaultData = createDefaultFormData(result.options);
|
|
@@ -11098,6 +11216,37 @@ registerLexicalEditorPlugin({
|
|
|
11098
11216
|
editor.registerCommand(INSERT_IMAGE_COMMAND, (payload) => {
|
|
11099
11217
|
return insertNodesHandle($createImageNode(payload.src, payload.alt, "", payload.style));
|
|
11100
11218
|
}, COMMAND_PRIORITY_LOW),
|
|
11219
|
+
editor.registerCommand(PASTE_COMMAND, (event) => {
|
|
11220
|
+
if (!event.clipboardData) return false;
|
|
11221
|
+
const html = event.clipboardData.getData("text/html");
|
|
11222
|
+
const hasWordImage = /<img[^>]+src="data:image/i.test(html);
|
|
11223
|
+
if (hasWordImage) {
|
|
11224
|
+
setTimeout(() => {
|
|
11225
|
+
editor.update(async () => {
|
|
11226
|
+
const root = $getRoot();
|
|
11227
|
+
const imageNodes = [];
|
|
11228
|
+
function traverse(node) {
|
|
11229
|
+
if (node.getType() === "image") {
|
|
11230
|
+
const src = node.__src;
|
|
11231
|
+
if (src && src.startsWith("data:image")) {
|
|
11232
|
+
imageNodes.push(node);
|
|
11233
|
+
}
|
|
11234
|
+
}
|
|
11235
|
+
if ($isElementNode(node)) {
|
|
11236
|
+
node.getChildren().forEach(traverse);
|
|
11237
|
+
}
|
|
11238
|
+
}
|
|
11239
|
+
traverse(root);
|
|
11240
|
+
for (const node of imageNodes) {
|
|
11241
|
+
const base64 = node.__src;
|
|
11242
|
+
const result = await uploadHandle([base64]);
|
|
11243
|
+
editor.update(() => node.setSrc(result[0]));
|
|
11244
|
+
}
|
|
11245
|
+
});
|
|
11246
|
+
}, 100);
|
|
11247
|
+
}
|
|
11248
|
+
return false;
|
|
11249
|
+
}, COMMAND_PRIORITY_CRITICAL),
|
|
11101
11250
|
// 剪切板图片
|
|
11102
11251
|
editor.registerCommand(DRAG_DROP_PASTE, (files) => {
|
|
11103
11252
|
const types = [
|
|
@@ -11107,6 +11256,7 @@ registerLexicalEditorPlugin({
|
|
|
11107
11256
|
"image/gif",
|
|
11108
11257
|
"image/webp"
|
|
11109
11258
|
];
|
|
11259
|
+
console.log(files);
|
|
11110
11260
|
(async () => {
|
|
11111
11261
|
const filesResult = await mediaFileReader(files, [types].flatMap((x) => x));
|
|
11112
11262
|
const result = await uploadHandle(filesResult.filter((f) => isMimeType(f.file, types)).map((f) => f.result));
|
|
@@ -11686,7 +11836,7 @@ const theme = {
|
|
|
11686
11836
|
underlineStrikethrough: "mk-doc__textUnderlineStrikethrough"
|
|
11687
11837
|
}
|
|
11688
11838
|
};
|
|
11689
|
-
const _sfc_main$
|
|
11839
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11690
11840
|
__name: "LexicalComposer",
|
|
11691
11841
|
props: {
|
|
11692
11842
|
modelValue: { type: String, default: "" },
|
|
@@ -11774,8 +11924,8 @@ function useCanShowPlaceholder(editor) {
|
|
|
11774
11924
|
});
|
|
11775
11925
|
return readonly(canShowPlaceholder);
|
|
11776
11926
|
}
|
|
11777
|
-
const _hoisted_1$
|
|
11778
|
-
const _sfc_main$
|
|
11927
|
+
const _hoisted_1$t = ["id", "aria-activedescendant", "aria-autocomplete", "aria-controls", "aria-describedby", "aria-expanded", "aria-label", "aria-labelledby", "aria-multiline", "aria-owns", "aria-required", "autocapitalize", "autocomplete", "autocorrect", "contenteditable", "role", "spellcheck", "tabindex"];
|
|
11928
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11779
11929
|
__name: "ContentEditable",
|
|
11780
11930
|
props: {
|
|
11781
11931
|
ariaActivedescendant: {},
|
|
@@ -11833,7 +11983,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11833
11983
|
role: !editable.value ? void 0 : __props.role,
|
|
11834
11984
|
spellcheck: __props.spellcheck,
|
|
11835
11985
|
tabindex: __props.tabindex
|
|
11836
|
-
}, null, 8, _hoisted_1$
|
|
11986
|
+
}, null, 8, _hoisted_1$t);
|
|
11837
11987
|
};
|
|
11838
11988
|
}
|
|
11839
11989
|
});
|
|
@@ -11865,13 +12015,453 @@ const DecoratedTeleports = defineComponent({
|
|
|
11865
12015
|
});
|
|
11866
12016
|
const DocEditorStageCss = "html,body{\n width:100%;\n height:100%;\n padding:0px;\n margin:0px;\n position: relative;\n font-size: 14px;\n color:#000;\n overflow: hidden;\n}\n.mk-doc-editor-newline{\n width: 100%;\n line-height: 40px;\n display: flex;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n color: #ccc;\n position: absolute;\n bottom: 0;\n z-index: 10;\n}\n.mk-doc-editor-newline:hover{\n outline: 1px dashed #ccc;\n}\n.mk-doc-editor-stage{\n width: 100%;\n margin: auto;\n position: relative;\n z-index: 1;\n outline: 0;\n border: 0;\n padding: 10px 20px 30px 20px;\n box-sizing: border-box;\n flex: 1; \n}\n\n.mk-doc-editor__stage__placeholder{\n position: absolute;\n top: 10px;\n left:20px;\n z-index: 0; \n color: #ccc;\n padding-left: 4px;\n}\n";
|
|
11867
12017
|
const DocEditorCss = ' \n.mk-doc__embedBlock {\n position: relative;\n z-index: 1;\n padding: 1px;\n cursor: pointer;\n}\n\n.mk-doc__embedBlock >*{ pointer-events: none; }\n\n/* 清除浮动 */\n.mk-doc-editor-stage::after{\n content: "";\n display: block;\n clear: both;\n width: 0;\n height: 0;\n font-size: 0;\n}\n/* 缩进 */\n.mk-doc-editor-stage * {\n --lexical-indent-base-value:2em\n}\n/* 光标样式 */\n.mk-doc-editor-stage *:has(>span):not(a) > span:last-child::after,\n.mk-doc__empty-mark::before,\n.mk-doc__br-brfore-mark::after{ \n content: "↩︎";\n color: #ccc;\n margin-left: 4px;\n cursor: text;\n user-select: none;\n pointer-events: none;\n position: absolute;\n font-size: 12px;\n height: 0;\n width: 1px; \n vertical-align: middle;\n}\n\n/* placeholder 模式 */\n.mk-doc-editor-stage.placeholder *::after,\n.mk-doc-editor-stage.placeholder *::before{ display: none;}\n\n/* 选中样式 */\n.mk-doc__node-selection {\n outline: 2px solid rgb(60, 132, 244);\n}\n/* hover 的标识线条 */\n.mk-doc-editor-stage div:not([data-lexical-decorator]>*):hover,\n.mk-doc-editor-stage section:not([data-lexical-decorator]>*):hover,\n.mk-doc-editor-stage main:not([data-lexical-decorator]>*):hover,\n.mk-doc-editor-stage header:not([data-lexical-decorator]):hover,\n.mk-doc-editor-stage p:not([data-lexical-decorator]>*):hover{\n outline: 1px solid #d7e6ff;\n}\n.mk-doc__image-text-warp p:hover,\n.mk-doc__image-text-warp section:hover,\n.mk-doc__image-text-warp div:hover,\n[data-lexical-decorator]:hover {\n outline: none !important;\n}\n.mk-doc-editor-stage [data-lexical-decorator]{\n user-select: none;\n white-space: initial;\n word-break: initial;\n cursor: pointer;\n}\n.mk-doc-editor-stage [data-lexical-decorator]>* {\n pointer-events: none;\n}\n';
|
|
11868
|
-
const
|
|
12018
|
+
const DocThemeCss = `
|
|
12019
|
+
.mk-doc__ltr {
|
|
12020
|
+
text-align: left;
|
|
12021
|
+
}
|
|
12022
|
+
.mk-doc__rtl {
|
|
12023
|
+
text-align: right;
|
|
12024
|
+
}
|
|
12025
|
+
.mk-doc__paragraph {
|
|
12026
|
+
margin: 0;
|
|
12027
|
+
}
|
|
12028
|
+
.mk-doc__quote {
|
|
12029
|
+
margin: 0;
|
|
12030
|
+
margin-left: 20px;
|
|
12031
|
+
margin-bottom: 10px;
|
|
12032
|
+
font-size: 15px;
|
|
12033
|
+
color: rgb(101, 103, 107);
|
|
12034
|
+
border-left-color: rgb(206, 208, 212);
|
|
12035
|
+
border-left-width: 4px;
|
|
12036
|
+
border-left-style: solid;
|
|
12037
|
+
padding-left: 16px;
|
|
12038
|
+
}
|
|
12039
|
+
.mk-doc__quote .mk-doc__paragraph {
|
|
12040
|
+
text-indent: 0;
|
|
12041
|
+
|
|
12042
|
+
}
|
|
12043
|
+
.mk-doc__h1 {
|
|
12044
|
+
font-size: 2rem;
|
|
12045
|
+
color: rgb(5, 5, 5);
|
|
12046
|
+
font-weight: 400;
|
|
12047
|
+
margin: 0;
|
|
12048
|
+
}
|
|
12049
|
+
.mk-doc__h2 {
|
|
12050
|
+
font-size: 1.5rem;
|
|
12051
|
+
color: rgb(101, 103, 107);
|
|
12052
|
+
font-weight: 700;
|
|
12053
|
+
margin: 0;
|
|
12054
|
+
text-transform: uppercase;
|
|
12055
|
+
}
|
|
12056
|
+
.mk-doc__h3 {
|
|
12057
|
+
font-size: 1.17rem;
|
|
12058
|
+
margin: 0;
|
|
12059
|
+
text-transform: uppercase;
|
|
12060
|
+
}
|
|
12061
|
+
.mk-doc__indent {
|
|
12062
|
+
--lexical-indent-base-value: 40px;
|
|
12063
|
+
}
|
|
12064
|
+
.mk-doc__textBold {
|
|
12065
|
+
font-weight: bold;
|
|
12066
|
+
}
|
|
12067
|
+
.mk-doc__textItalic {
|
|
12068
|
+
font-style: italic;
|
|
12069
|
+
}
|
|
12070
|
+
.mk-doc__textUnderline {
|
|
12071
|
+
text-decoration: underline;
|
|
12072
|
+
}
|
|
12073
|
+
.mk-doc__textStrikethrough {
|
|
12074
|
+
text-decoration: line-through;
|
|
12075
|
+
}
|
|
12076
|
+
.mk-doc__textUnderlineStrikethrough {
|
|
12077
|
+
text-decoration: underline line-through;
|
|
12078
|
+
}
|
|
12079
|
+
.mk-doc__textSubscript {
|
|
12080
|
+
font-size: 0.8em;
|
|
12081
|
+
vertical-align: sub !important;
|
|
12082
|
+
}
|
|
12083
|
+
.mk-doc__textSuperscript {
|
|
12084
|
+
font-size: 0.8em;
|
|
12085
|
+
vertical-align: super;
|
|
12086
|
+
}
|
|
12087
|
+
.mk-doc__textCode {
|
|
12088
|
+
background-color: rgb(240, 242, 245);
|
|
12089
|
+
padding: 1px 0.25rem;
|
|
12090
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
|
12091
|
+
font-size: 94%;
|
|
12092
|
+
}
|
|
12093
|
+
.mk-doc__hashtag {
|
|
12094
|
+
background-color: rgba(88, 144, 255, 0.15);
|
|
12095
|
+
border-bottom: 1px solid rgba(88, 144, 255, 0.3);
|
|
12096
|
+
}
|
|
12097
|
+
.mk-doc__link {
|
|
12098
|
+
color: rgb(33, 111, 219);
|
|
12099
|
+
text-decoration: none;
|
|
12100
|
+
}
|
|
12101
|
+
.mk-doc__link:hover {
|
|
12102
|
+
text-decoration: underline;
|
|
12103
|
+
cursor: pointer;
|
|
12104
|
+
}
|
|
12105
|
+
.mk-doc__code {
|
|
12106
|
+
background-color: rgb(240, 242, 245);
|
|
12107
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
|
12108
|
+
display: block;
|
|
12109
|
+
padding: 8px 8px 8px 52px;
|
|
12110
|
+
line-height: 1.53;
|
|
12111
|
+
font-size: 13px;
|
|
12112
|
+
margin: 0;
|
|
12113
|
+
margin-top: 8px;
|
|
12114
|
+
margin-bottom: 8px;
|
|
12115
|
+
overflow-x: auto;
|
|
12116
|
+
position: relative;
|
|
12117
|
+
tab-size: 2;
|
|
12118
|
+
}
|
|
12119
|
+
.mk-doc__code:before {
|
|
12120
|
+
content: attr(data-gutter);
|
|
12121
|
+
position: absolute;
|
|
12122
|
+
background-color: #eee;
|
|
12123
|
+
left: 0;
|
|
12124
|
+
top: 0;
|
|
12125
|
+
border-right: 1px solid #ccc;
|
|
12126
|
+
padding: 8px;
|
|
12127
|
+
color: #777;
|
|
12128
|
+
white-space: pre-wrap;
|
|
12129
|
+
text-align: right;
|
|
12130
|
+
min-width: 25px;
|
|
12131
|
+
}
|
|
12132
|
+
.mk-doc__table {
|
|
12133
|
+
border-collapse: collapse;
|
|
12134
|
+
border-spacing: 0;
|
|
12135
|
+
overflow-y: scroll;
|
|
12136
|
+
overflow-x: scroll;
|
|
12137
|
+
table-layout: fixed;
|
|
12138
|
+
width: max-content;
|
|
12139
|
+
margin: 30px 0;
|
|
12140
|
+
}
|
|
12141
|
+
.mk-doc__tableSelection *::selection {
|
|
12142
|
+
background-color: transparent;
|
|
12143
|
+
}
|
|
12144
|
+
.mk-doc__tableSelected {
|
|
12145
|
+
outline: 2px solid rgb(60, 132, 244);
|
|
12146
|
+
}
|
|
12147
|
+
.mk-doc__tableCell {
|
|
12148
|
+
border: 1px solid #bbb;
|
|
12149
|
+
width: 75px;
|
|
12150
|
+
min-width: 75px;
|
|
12151
|
+
vertical-align: top;
|
|
12152
|
+
text-align: start;
|
|
12153
|
+
padding: 6px 8px;
|
|
12154
|
+
position: relative;
|
|
12155
|
+
outline: none;
|
|
12156
|
+
}
|
|
12157
|
+
.mk-doc__tableCellSortedIndicator {
|
|
12158
|
+
display: block;
|
|
12159
|
+
opacity: 0.5;
|
|
12160
|
+
position: absolute;
|
|
12161
|
+
bottom: 0;
|
|
12162
|
+
left: 0;
|
|
12163
|
+
width: 100%;
|
|
12164
|
+
height: 4px;
|
|
12165
|
+
background-color: #999;
|
|
12166
|
+
}
|
|
12167
|
+
.mk-doc__tableCellResizer {
|
|
12168
|
+
position: absolute;
|
|
12169
|
+
right: -4px;
|
|
12170
|
+
height: 100%;
|
|
12171
|
+
width: 8px;
|
|
12172
|
+
cursor: ew-resize;
|
|
12173
|
+
z-index: 10;
|
|
12174
|
+
top: 0;
|
|
12175
|
+
}
|
|
12176
|
+
.mk-doc__tableCellHeader {
|
|
12177
|
+
background-color: #f2f3f5;
|
|
12178
|
+
text-align: start;
|
|
12179
|
+
}
|
|
12180
|
+
.mk-doc__tableCellSelected {
|
|
12181
|
+
background-color: #c9dbf0;
|
|
12182
|
+
}
|
|
12183
|
+
.mk-doc__tableCellPrimarySelected {
|
|
12184
|
+
border: 2px solid rgb(60, 132, 244);
|
|
12185
|
+
display: block;
|
|
12186
|
+
height: calc(100% - 2px);
|
|
12187
|
+
position: absolute;
|
|
12188
|
+
width: calc(100% - 2px);
|
|
12189
|
+
left: -1px;
|
|
12190
|
+
top: -1px;
|
|
12191
|
+
z-index: 2;
|
|
12192
|
+
}
|
|
12193
|
+
.mk-doc__tableCellEditing {
|
|
12194
|
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
|
|
12195
|
+
border-radius: 3px;
|
|
12196
|
+
}
|
|
12197
|
+
.mk-doc__tableAddColumns {
|
|
12198
|
+
position: absolute;
|
|
12199
|
+
top: 0;
|
|
12200
|
+
width: 20px;
|
|
12201
|
+
background-color: #eee;
|
|
12202
|
+
height: 100%;
|
|
12203
|
+
right: -25px;
|
|
12204
|
+
animation: table-controls 0.2s ease;
|
|
12205
|
+
border: 0;
|
|
12206
|
+
cursor: pointer;
|
|
12207
|
+
}
|
|
12208
|
+
.mk-doc__tableAddColumns:after {
|
|
12209
|
+
background-image: url(../images/icons/plus.svg);
|
|
12210
|
+
background-size: contain;
|
|
12211
|
+
background-position: center;
|
|
12212
|
+
background-repeat: no-repeat;
|
|
12213
|
+
display: block;
|
|
12214
|
+
content: ' ';
|
|
12215
|
+
position: absolute;
|
|
12216
|
+
top: 0;
|
|
12217
|
+
left: 0;
|
|
12218
|
+
width: 100%;
|
|
12219
|
+
height: 100%;
|
|
12220
|
+
opacity: 0.4;
|
|
12221
|
+
}
|
|
12222
|
+
.mk-doc__tableAddColumns:hover {
|
|
12223
|
+
background-color: #c9dbf0;
|
|
12224
|
+
}
|
|
12225
|
+
.mk-doc__tableAddRows {
|
|
12226
|
+
position: absolute;
|
|
12227
|
+
bottom: -25px;
|
|
12228
|
+
width: calc(100% - 25px);
|
|
12229
|
+
background-color: #eee;
|
|
12230
|
+
height: 20px;
|
|
12231
|
+
left: 0;
|
|
12232
|
+
animation: table-controls 0.2s ease;
|
|
12233
|
+
border: 0;
|
|
12234
|
+
cursor: pointer;
|
|
12235
|
+
}
|
|
12236
|
+
.mk-doc__tableAddRows:after {
|
|
12237
|
+
background-image: url(../images/icons/plus.svg);
|
|
12238
|
+
background-size: contain;
|
|
12239
|
+
background-position: center;
|
|
12240
|
+
background-repeat: no-repeat;
|
|
12241
|
+
display: block;
|
|
12242
|
+
content: ' ';
|
|
12243
|
+
position: absolute;
|
|
12244
|
+
top: 0;
|
|
12245
|
+
left: 0;
|
|
12246
|
+
width: 100%;
|
|
12247
|
+
height: 100%;
|
|
12248
|
+
opacity: 0.4;
|
|
12249
|
+
}
|
|
12250
|
+
.mk-doc__tableAddRows:hover {
|
|
12251
|
+
background-color: #c9dbf0;
|
|
12252
|
+
}
|
|
12253
|
+
@keyframes table-controls {
|
|
12254
|
+
0% {
|
|
12255
|
+
opacity: 0;
|
|
12256
|
+
}
|
|
12257
|
+
100% {
|
|
12258
|
+
opacity: 1;
|
|
12259
|
+
}
|
|
12260
|
+
}
|
|
12261
|
+
.mk-doc__tableCellResizeRuler {
|
|
12262
|
+
display: block;
|
|
12263
|
+
position: absolute;
|
|
12264
|
+
width: 1px;
|
|
12265
|
+
background-color: rgb(60, 132, 244);
|
|
12266
|
+
height: 100%;
|
|
12267
|
+
top: 0;
|
|
12268
|
+
}
|
|
12269
|
+
.mk-doc__tableCellActionButtonContainer {
|
|
12270
|
+
display: block;
|
|
12271
|
+
right: 5px;
|
|
12272
|
+
top: 6px;
|
|
12273
|
+
position: absolute;
|
|
12274
|
+
z-index: 4;
|
|
12275
|
+
width: 20px;
|
|
12276
|
+
height: 20px;
|
|
12277
|
+
}
|
|
12278
|
+
.mk-doc__tableCellActionButton {
|
|
12279
|
+
background-color: #eee;
|
|
12280
|
+
display: block;
|
|
12281
|
+
border: 0;
|
|
12282
|
+
border-radius: 20px;
|
|
12283
|
+
width: 20px;
|
|
12284
|
+
height: 20px;
|
|
12285
|
+
color: #222;
|
|
12286
|
+
cursor: pointer;
|
|
12287
|
+
}
|
|
12288
|
+
.mk-doc__tableCellActionButton:hover {
|
|
12289
|
+
background-color: #ddd;
|
|
12290
|
+
}
|
|
12291
|
+
.mk-doc__characterLimit {
|
|
12292
|
+
display: inline;
|
|
12293
|
+
background-color: #ffbbbb !important;
|
|
12294
|
+
}
|
|
12295
|
+
.mk-doc__ol1 {
|
|
12296
|
+
padding: 0;
|
|
12297
|
+
margin: 0;
|
|
12298
|
+
/* list-style-position: inside; */
|
|
12299
|
+
}
|
|
12300
|
+
.mk-doc__ol2 {
|
|
12301
|
+
padding: 0;
|
|
12302
|
+
margin: 0;
|
|
12303
|
+
list-style-type: upper-alpha;
|
|
12304
|
+
/* list-style-position: inside; */
|
|
12305
|
+
}
|
|
12306
|
+
.mk-doc__ol3 {
|
|
12307
|
+
padding: 0;
|
|
12308
|
+
margin: 0;
|
|
12309
|
+
list-style-type: lower-alpha;
|
|
12310
|
+
/* list-style-position: inside; */
|
|
12311
|
+
}
|
|
12312
|
+
.mk-doc__ol4 {
|
|
12313
|
+
padding: 0;
|
|
12314
|
+
margin: 0;
|
|
12315
|
+
list-style-type: upper-roman;
|
|
12316
|
+
/* list-style-position: inside; */
|
|
12317
|
+
}
|
|
12318
|
+
.mk-doc__ol5 {
|
|
12319
|
+
padding: 0;
|
|
12320
|
+
margin: 0;
|
|
12321
|
+
list-style-type: lower-roman;
|
|
12322
|
+
/* list-style-position: inside; */
|
|
12323
|
+
}
|
|
12324
|
+
.mk-doc__ul {
|
|
12325
|
+
padding: 0;
|
|
12326
|
+
margin: 0;
|
|
12327
|
+
/* list-style-position: inside; */
|
|
12328
|
+
}
|
|
12329
|
+
.mk-doc__listItem {
|
|
12330
|
+
margin: 0 32px;
|
|
12331
|
+
}
|
|
12332
|
+
.mk-doc__listItemChecked,
|
|
12333
|
+
.mk-doc__listItemUnchecked {
|
|
12334
|
+
position: relative;
|
|
12335
|
+
margin-left: 8px;
|
|
12336
|
+
margin-right: 8px;
|
|
12337
|
+
padding-left: 24px;
|
|
12338
|
+
padding-right: 24px;
|
|
12339
|
+
list-style-type: none;
|
|
12340
|
+
outline: none;
|
|
12341
|
+
}
|
|
12342
|
+
.mk-doc__listItemChecked {
|
|
12343
|
+
text-decoration: line-through;
|
|
12344
|
+
}
|
|
12345
|
+
.mk-doc__listItemUnchecked:before,
|
|
12346
|
+
.mk-doc__listItemChecked:before {
|
|
12347
|
+
content: '';
|
|
12348
|
+
width: 16px;
|
|
12349
|
+
height: 16px;
|
|
12350
|
+
top: 2px;
|
|
12351
|
+
left: 0;
|
|
12352
|
+
cursor: pointer;
|
|
12353
|
+
display: block;
|
|
12354
|
+
background-size: cover;
|
|
12355
|
+
position: absolute;
|
|
12356
|
+
}
|
|
12357
|
+
.mk-doc__listItemUnchecked[dir='rtl']:before,
|
|
12358
|
+
.mk-doc__listItemChecked[dir='rtl']:before {
|
|
12359
|
+
left: auto;
|
|
12360
|
+
right: 0;
|
|
12361
|
+
}
|
|
12362
|
+
.mk-doc__listItemUnchecked:focus:before,
|
|
12363
|
+
.mk-doc__listItemChecked:focus:before {
|
|
12364
|
+
box-shadow: 0 0 0 2px #a6cdfe;
|
|
12365
|
+
border-radius: 2px;
|
|
12366
|
+
}
|
|
12367
|
+
.mk-doc__listItemUnchecked:before {
|
|
12368
|
+
border: 1px solid #999;
|
|
12369
|
+
border-radius: 2px;
|
|
12370
|
+
}
|
|
12371
|
+
.mk-doc__listItemChecked:before {
|
|
12372
|
+
border: 1px solid rgb(61, 135, 245);
|
|
12373
|
+
border-radius: 2px;
|
|
12374
|
+
background-color: #3d87f5;
|
|
12375
|
+
background-repeat: no-repeat;
|
|
12376
|
+
}
|
|
12377
|
+
.mk-doc__listItemChecked:after {
|
|
12378
|
+
content: '';
|
|
12379
|
+
cursor: pointer;
|
|
12380
|
+
border-color: #fff;
|
|
12381
|
+
border-style: solid;
|
|
12382
|
+
position: absolute;
|
|
12383
|
+
display: block;
|
|
12384
|
+
top: 6px;
|
|
12385
|
+
width: 3px;
|
|
12386
|
+
left: 7px;
|
|
12387
|
+
right: 7px;
|
|
12388
|
+
height: 6px;
|
|
12389
|
+
transform: rotate(45deg);
|
|
12390
|
+
border-width: 0 2px 2px 0;
|
|
12391
|
+
}
|
|
12392
|
+
.mk-doc__nestedListItem {
|
|
12393
|
+
list-style-type: none;
|
|
12394
|
+
}
|
|
12395
|
+
.mk-doc__nestedListItem:before,
|
|
12396
|
+
.mk-doc__nestedListItem:after {
|
|
12397
|
+
display: none;
|
|
12398
|
+
}
|
|
12399
|
+
.mk-doc__tokenComment {
|
|
12400
|
+
color: slategray;
|
|
12401
|
+
}
|
|
12402
|
+
.mk-doc__tokenPunctuation {
|
|
12403
|
+
color: #999;
|
|
12404
|
+
}
|
|
12405
|
+
.mk-doc__tokenProperty {
|
|
12406
|
+
color: #905;
|
|
12407
|
+
}
|
|
12408
|
+
.mk-doc__tokenSelector {
|
|
12409
|
+
color: #690;
|
|
12410
|
+
}
|
|
12411
|
+
.mk-doc__tokenOperator {
|
|
12412
|
+
color: #9a6e3a;
|
|
12413
|
+
}
|
|
12414
|
+
.mk-doc__tokenAttr {
|
|
12415
|
+
color: #07a;
|
|
12416
|
+
}
|
|
12417
|
+
.mk-doc__tokenVariable {
|
|
12418
|
+
color: #e90;
|
|
12419
|
+
}
|
|
12420
|
+
.mk-doc__tokenFunction {
|
|
12421
|
+
color: #dd4a68;
|
|
12422
|
+
}
|
|
12423
|
+
.mk-doc__mark {
|
|
12424
|
+
background: rgba(255, 212, 0, 0.14);
|
|
12425
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.3);
|
|
12426
|
+
padding-bottom: 2px;
|
|
12427
|
+
}
|
|
12428
|
+
.mk-doc__markOverlap {
|
|
12429
|
+
background: rgba(255, 212, 0, 0.3);
|
|
12430
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
|
|
12431
|
+
}
|
|
12432
|
+
.mk-doc__mark.selected {
|
|
12433
|
+
background: rgba(255, 212, 0, 0.5);
|
|
12434
|
+
border-bottom: 2px solid rgba(255, 212, 0, 1);
|
|
12435
|
+
}
|
|
12436
|
+
.mk-doc__markOverlap.selected {
|
|
12437
|
+
background: rgba(255, 212, 0, 0.7);
|
|
12438
|
+
border-bottom: 2px solid rgba(255, 212, 0, 0.7);
|
|
12439
|
+
}
|
|
12440
|
+
.mk-doc__layoutContainer {
|
|
12441
|
+
display: grid;
|
|
12442
|
+
gap: 10px;
|
|
12443
|
+
margin: 10px 0;
|
|
12444
|
+
}
|
|
12445
|
+
.mk-doc__layoutItem {
|
|
12446
|
+
border: 1px dashed #ddd;
|
|
12447
|
+
padding: 8px 16px;
|
|
12448
|
+
}
|
|
12449
|
+
|
|
12450
|
+
.mk-doc__image-text::after{
|
|
12451
|
+
content: ".";
|
|
12452
|
+
font-size: 0;
|
|
12453
|
+
clear: both;
|
|
12454
|
+
display: block;
|
|
12455
|
+
}
|
|
12456
|
+
|
|
12457
|
+
`;
|
|
12458
|
+
const _hoisted_1$s = ["id"];
|
|
11869
12459
|
const _hoisted_2$m = {
|
|
11870
12460
|
key: 1,
|
|
11871
12461
|
class: "mk-doc__paragraph mk-doc-editor__stage__placeholder",
|
|
11872
12462
|
style: { "user-select": "text", "white-space": "pre-wrap", "word-break": "break-word" }
|
|
11873
12463
|
};
|
|
11874
|
-
const _sfc_main$
|
|
12464
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
11875
12465
|
__name: "index",
|
|
11876
12466
|
props: { placeholder: { type: String, default: `在这里输入正文...` }, type: { type: String, default: `richtext` } },
|
|
11877
12467
|
setup(__props) {
|
|
@@ -11915,7 +12505,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11915
12505
|
});
|
|
11916
12506
|
const style = document.createElement("style");
|
|
11917
12507
|
style.setAttribute("type", "text/css");
|
|
11918
|
-
style.innerHTML = [DocEditorStageCss, DocEditorCss, importStyles].join("\r\n");
|
|
12508
|
+
style.innerHTML = [DocEditorStageCss, DocEditorCss, DocThemeCss, importStyles].join("\r\n");
|
|
11919
12509
|
style.innerHTML += modules.filter((item) => item.editorCss).map((item) => item.editorCss).join("\r\n");
|
|
11920
12510
|
style.innerHTML += templates.filter((item) => item.editorCss).map((item) => item.editorCss).join("\r\n");
|
|
11921
12511
|
doc.head.append(style);
|
|
@@ -11947,12 +12537,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11947
12537
|
class: "mk-doc-editor-stage-iframe",
|
|
11948
12538
|
ref_key: "iframeContentRef",
|
|
11949
12539
|
ref: iframeContentRef
|
|
11950
|
-
}), null, 16, _hoisted_1$
|
|
12540
|
+
}), null, 16, _hoisted_1$s),
|
|
11951
12541
|
iframeBody.value ? (openBlock(), createBlock(Teleport, {
|
|
11952
12542
|
key: 0,
|
|
11953
12543
|
to: iframeBody.value
|
|
11954
12544
|
}, [
|
|
11955
|
-
createVNode(_sfc_main$
|
|
12545
|
+
createVNode(_sfc_main$A, {
|
|
11956
12546
|
class: normalizeClass(["mk-doc-editor-stage", { placeholder: unref(canShowPlaceholder) && contentIsEmpty.value }])
|
|
11957
12547
|
}, null, 8, ["class"]),
|
|
11958
12548
|
showAddNewline.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11968,7 +12558,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11968
12558
|
};
|
|
11969
12559
|
}
|
|
11970
12560
|
});
|
|
11971
|
-
const EditorStage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12561
|
+
const EditorStage = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-9dbbd07f"]]);
|
|
11972
12562
|
const markdownEditorProps = buildProps({
|
|
11973
12563
|
modelValue: {
|
|
11974
12564
|
type: String,
|
|
@@ -11978,11 +12568,11 @@ const markdownEditorProps = buildProps({
|
|
|
11978
12568
|
const markdownEditorEmits = {
|
|
11979
12569
|
"update:model-value": (modelValue) => true
|
|
11980
12570
|
};
|
|
11981
|
-
const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-
|
|
12571
|
+
const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-6Wpudlcm.js"));
|
|
11982
12572
|
const MKMarkdownEditor = withInstall(_MarkdownEditor);
|
|
11983
|
-
const _hoisted_1$
|
|
12573
|
+
const _hoisted_1$r = { class: "mk-rich-text-toolbar" };
|
|
11984
12574
|
const _hoisted_2$l = { class: "mk-rich-text-editor__stage_warp" };
|
|
11985
|
-
const _sfc_main$
|
|
12575
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
11986
12576
|
...{ name: "MKRichTextEditor" },
|
|
11987
12577
|
__name: "index",
|
|
11988
12578
|
props: {
|
|
@@ -12004,7 +12594,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12004
12594
|
});
|
|
12005
12595
|
return (_ctx, _cache) => {
|
|
12006
12596
|
const _directive_loading = resolveDirective("loading");
|
|
12007
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
12597
|
+
return openBlock(), createBlock(unref(_sfc_main$B), {
|
|
12008
12598
|
modelValue: docContent.value,
|
|
12009
12599
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => docContent.value = $event),
|
|
12010
12600
|
importCss: __props.css,
|
|
@@ -12013,7 +12603,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12013
12603
|
}, {
|
|
12014
12604
|
default: withCtx(() => [
|
|
12015
12605
|
withDirectives((openBlock(), createElementBlock("div", mergeProps({ class: "mk-rich-text-editor" }, _ctx.$attrs), [
|
|
12016
|
-
createElementVNode("div", _hoisted_1$
|
|
12606
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
12017
12607
|
createVNode(unref(ToolbarPlugin), { mode: "rich-text" })
|
|
12018
12608
|
]),
|
|
12019
12609
|
createElementVNode("div", _hoisted_2$l, [
|
|
@@ -12030,7 +12620,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12030
12620
|
};
|
|
12031
12621
|
}
|
|
12032
12622
|
});
|
|
12033
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12623
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d9cd49a2"]]);
|
|
12034
12624
|
const MKRichTextEditor = withInstall(RichTextEditor);
|
|
12035
12625
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12036
12626
|
__proto__: null,
|
|
@@ -12507,7 +13097,7 @@ let ResourceManager$1 = class ResourceManager extends Disposable {
|
|
|
12507
13097
|
item.isSelected = !item.isSelected;
|
|
12508
13098
|
}
|
|
12509
13099
|
};
|
|
12510
|
-
const _hoisted_1$
|
|
13100
|
+
const _hoisted_1$q = { class: "resource-item__wrapper" };
|
|
12511
13101
|
const _hoisted_2$k = { class: "resource-item__main" };
|
|
12512
13102
|
const _hoisted_3$g = { class: "resource-item__label" };
|
|
12513
13103
|
const _hoisted_4$e = ["title"];
|
|
@@ -12515,7 +13105,7 @@ const _hoisted_5$a = { class: "resource-item__time" };
|
|
|
12515
13105
|
const _hoisted_6$6 = { class: "resource-item__size" };
|
|
12516
13106
|
const _hoisted_7$4 = { key: 0 };
|
|
12517
13107
|
const _hoisted_8$3 = { key: 1 };
|
|
12518
|
-
const _sfc_main$
|
|
13108
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12519
13109
|
__name: "index",
|
|
12520
13110
|
props: {
|
|
12521
13111
|
resourceItem: {
|
|
@@ -12552,7 +13142,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12552
13142
|
return openBlock(), createElementBlock("div", {
|
|
12553
13143
|
class: normalizeClass(["resource-item", __props.mode, __props.resourceItem.isSelected ? "is-selected" : ""])
|
|
12554
13144
|
}, [
|
|
12555
|
-
createElementVNode("div", _hoisted_1$
|
|
13145
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
12556
13146
|
createElementVNode("div", _hoisted_2$k, [
|
|
12557
13147
|
createVNode(unref(MKSvgIcon), { name: iconClass.value }, null, 8, ["name"])
|
|
12558
13148
|
]),
|
|
@@ -12572,13 +13162,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12572
13162
|
};
|
|
12573
13163
|
}
|
|
12574
13164
|
});
|
|
12575
|
-
const ResourceItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12576
|
-
const _hoisted_1$
|
|
13165
|
+
const ResourceItem = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2ddbca94"]]);
|
|
13166
|
+
const _hoisted_1$p = { class: "resource-list-header" };
|
|
12577
13167
|
const _hoisted_2$j = ["onClick"];
|
|
12578
13168
|
const _hoisted_3$f = { class: "resource-list-mode" };
|
|
12579
13169
|
const _hoisted_4$d = { class: "resource-list-list" };
|
|
12580
13170
|
const _hoisted_5$9 = ["onClick", "onDblclick"];
|
|
12581
|
-
const _sfc_main$
|
|
13171
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12582
13172
|
__name: "ResourceList",
|
|
12583
13173
|
props: {
|
|
12584
13174
|
resourceManager: {
|
|
@@ -12644,7 +13234,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12644
13234
|
return openBlock(), createElementBlock("div", {
|
|
12645
13235
|
class: normalizeClass(["resource-list", { row: listMode.value == "row" }])
|
|
12646
13236
|
}, [
|
|
12647
|
-
createElementVNode("div", _hoisted_1$
|
|
13237
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
12648
13238
|
createVNode(_component_ElBreadcrumb, null, {
|
|
12649
13239
|
default: withCtx(() => [
|
|
12650
13240
|
createVNode(_component_ElBreadcrumbItem, null, {
|
|
@@ -12763,9 +13353,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12763
13353
|
};
|
|
12764
13354
|
}
|
|
12765
13355
|
});
|
|
12766
|
-
const ResourceList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13356
|
+
const ResourceList = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-f719ea29"]]);
|
|
12767
13357
|
const MKResourceList = withInstall(ResourceList);
|
|
12768
|
-
const _hoisted_1$
|
|
13358
|
+
const _hoisted_1$o = { class: "resource-manager" };
|
|
12769
13359
|
const _hoisted_2$i = {
|
|
12770
13360
|
style: { "color": "var(--el-text-color-regular)" },
|
|
12771
13361
|
m: "l-[10px]",
|
|
@@ -12773,7 +13363,7 @@ const _hoisted_2$i = {
|
|
|
12773
13363
|
};
|
|
12774
13364
|
const _hoisted_3$e = { style: { "margin-left": "10px" } };
|
|
12775
13365
|
const _hoisted_4$c = { class: "w-full h-full p-2 overflow-hidden" };
|
|
12776
|
-
const _sfc_main$
|
|
13366
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12777
13367
|
__name: "index",
|
|
12778
13368
|
props: {
|
|
12779
13369
|
title: { type: String, default: "" },
|
|
@@ -12908,7 +13498,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12908
13498
|
const _component_el_page_header = resolveComponent("el-page-header");
|
|
12909
13499
|
const _directive_loading = resolveDirective("loading");
|
|
12910
13500
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
12911
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
13501
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12912
13502
|
createVNode(_component_el_page_header, {
|
|
12913
13503
|
style: { "background-color": "#fff", "padding": "10px" },
|
|
12914
13504
|
icon: null
|
|
@@ -13041,7 +13631,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13041
13631
|
};
|
|
13042
13632
|
}
|
|
13043
13633
|
});
|
|
13044
|
-
const ResourceManager2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13634
|
+
const ResourceManager2 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-eaafe196"]]);
|
|
13045
13635
|
const MKResourceManager = withInstall(ResourceManager2);
|
|
13046
13636
|
const UploadFileProps = buildProps({
|
|
13047
13637
|
uploadService: {
|
|
@@ -13191,8 +13781,8 @@ const useUploadComposable = (props, options) => {
|
|
|
13191
13781
|
appendFilePath
|
|
13192
13782
|
};
|
|
13193
13783
|
};
|
|
13194
|
-
const _sfc_main$
|
|
13195
|
-
const _hoisted_1$
|
|
13784
|
+
const _sfc_main$u = {};
|
|
13785
|
+
const _hoisted_1$n = {
|
|
13196
13786
|
height: "400",
|
|
13197
13787
|
viewBox: "0 0 600 400",
|
|
13198
13788
|
width: "600",
|
|
@@ -13200,7 +13790,7 @@ const _hoisted_1$o = {
|
|
|
13200
13790
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
13201
13791
|
};
|
|
13202
13792
|
function _sfc_render$3(_ctx, _cache) {
|
|
13203
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
13793
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, [..._cache[0] || (_cache[0] = [
|
|
13204
13794
|
createElementVNode("defs", { "node-id": "128" }, null, -1),
|
|
13205
13795
|
createElementVNode("path", {
|
|
13206
13796
|
d: "M 0.00 0.00 L 600.00 0.00 L 600.00 400.00 L 0.00 400.00 Z",
|
|
@@ -14679,20 +15269,20 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
14679
15269
|
], -1)
|
|
14680
15270
|
])]);
|
|
14681
15271
|
}
|
|
14682
|
-
const TeamImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14683
|
-
const _hoisted_1$
|
|
15272
|
+
const TeamImage = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$3]]);
|
|
15273
|
+
const _hoisted_1$m = { class: "simple-page-layout__warp" };
|
|
14684
15274
|
const _hoisted_2$h = { class: "simple-page-layout__bg" };
|
|
14685
15275
|
const _hoisted_3$d = { class: "simple-page-layout__bg_title" };
|
|
14686
15276
|
const _hoisted_4$b = ["src"];
|
|
14687
15277
|
const _hoisted_5$8 = { class: "simple-page-layout__bg_body" };
|
|
14688
15278
|
const _hoisted_6$5 = { class: "simple-page-layout__main" };
|
|
14689
15279
|
const _hoisted_7$3 = { class: "simple-page-layout__main_body" };
|
|
14690
|
-
const _sfc_main$
|
|
15280
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
14691
15281
|
__name: "index",
|
|
14692
15282
|
setup(__props) {
|
|
14693
15283
|
const system = useMSAppClient();
|
|
14694
15284
|
return (_ctx, _cache) => {
|
|
14695
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15285
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
14696
15286
|
createElementVNode("div", _hoisted_2$h, [
|
|
14697
15287
|
createElementVNode("div", _hoisted_3$d, [
|
|
14698
15288
|
unref(system).logo ? (openBlock(), createElementBlock("img", {
|
|
@@ -14717,9 +15307,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14717
15307
|
};
|
|
14718
15308
|
}
|
|
14719
15309
|
});
|
|
14720
|
-
const SimplePageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15310
|
+
const SimplePageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-9083603c"]]);
|
|
14721
15311
|
const MKSimplePageLayout = withInstall(SimplePageLayout);
|
|
14722
|
-
const _sfc_main$
|
|
15312
|
+
const _sfc_main$s = {};
|
|
14723
15313
|
function _sfc_render$2(_ctx, _cache) {
|
|
14724
15314
|
return openBlock(), createBlock(Transition, { name: "slide-fade" }, {
|
|
14725
15315
|
default: withCtx(() => [
|
|
@@ -14728,25 +15318,8 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
14728
15318
|
_: 3
|
|
14729
15319
|
});
|
|
14730
15320
|
}
|
|
14731
|
-
const SlideFadeTransition = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15321
|
+
const SlideFadeTransition = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$2]]);
|
|
14732
15322
|
const MKSlideFadeTransition = withInstall(SlideFadeTransition);
|
|
14733
|
-
const _hoisted_1$m = { class: "mk-list-item" };
|
|
14734
|
-
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
14735
|
-
...{ name: "MKListItem" },
|
|
14736
|
-
__name: "index",
|
|
14737
|
-
props: {
|
|
14738
|
-
component: { type: Object }
|
|
14739
|
-
},
|
|
14740
|
-
setup(__props) {
|
|
14741
|
-
return (_ctx, _cache) => {
|
|
14742
|
-
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
14743
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14744
|
-
]);
|
|
14745
|
-
};
|
|
14746
|
-
}
|
|
14747
|
-
});
|
|
14748
|
-
const ListItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-9bb47fa7"]]);
|
|
14749
|
-
const MKListItem = withInstall(ListItem);
|
|
14750
15323
|
const selectLocalFile = async (type) => {
|
|
14751
15324
|
return await fileSelect({
|
|
14752
15325
|
accept: type == "local" || type == "doc" ? "*" : type.indexOf("image") >= 0 ? "image/*" : "video/*"
|
|
@@ -17610,41 +18183,41 @@ class MSAppClient {
|
|
|
17610
18183
|
this.pageManager.addExtendsPage({
|
|
17611
18184
|
name: "ms-menu",
|
|
17612
18185
|
path: "/sys/menus",
|
|
17613
|
-
component: () => import("./index-
|
|
18186
|
+
component: () => import("./index-D7KNXJsj.js"),
|
|
17614
18187
|
meta: { name: "ms-menu" }
|
|
17615
18188
|
});
|
|
17616
18189
|
this.pageManager.addExtendsPage({
|
|
17617
18190
|
name: "ms-role",
|
|
17618
18191
|
path: "/sys/roles",
|
|
17619
|
-
component: () => import("./index-
|
|
18192
|
+
component: () => import("./index-66UwZ_hy.js"),
|
|
17620
18193
|
meta: { name: "ms-role" }
|
|
17621
18194
|
});
|
|
17622
18195
|
this.pageManager.addExtendsPage({
|
|
17623
18196
|
name: "dv/ms-material/list",
|
|
17624
18197
|
path: "/sys/materials",
|
|
17625
|
-
component: () => import("./index-
|
|
18198
|
+
component: () => import("./index-Bh5Odtd8.js"),
|
|
17626
18199
|
meta: { name: "ms-material" }
|
|
17627
18200
|
});
|
|
17628
18201
|
this.pageManager.addExtendsPage({
|
|
17629
18202
|
name: "dv/ms-role/permission",
|
|
17630
18203
|
path: "/sys/roles/:id/permission",
|
|
17631
|
-
component: () => import("./PermissionManage-
|
|
18204
|
+
component: () => import("./PermissionManage-IWOtoupA.js")
|
|
17632
18205
|
});
|
|
17633
18206
|
this.pageManager.addExtendsPage({
|
|
17634
18207
|
name: "dv/local-log/single/tree/dialog",
|
|
17635
18208
|
path: "/log/local",
|
|
17636
|
-
component: () => import("./index-
|
|
18209
|
+
component: () => import("./index-D97H9sJ9.js"),
|
|
17637
18210
|
meta: { name: "local-log" }
|
|
17638
18211
|
});
|
|
17639
18212
|
this.pageManager.addExtendsPage({
|
|
17640
18213
|
name: "icons/list",
|
|
17641
18214
|
path: "/sys/icons",
|
|
17642
|
-
component: () => import("./index-
|
|
18215
|
+
component: () => import("./index-D4_OGO5a.js")
|
|
17643
18216
|
});
|
|
17644
18217
|
this.pageManager.addExtendsPage({
|
|
17645
18218
|
name: "dv/ms-todo/single/list/dialog",
|
|
17646
18219
|
path: "/dv/todo",
|
|
17647
|
-
component: () => import("./index-
|
|
18220
|
+
component: () => import("./index-CHWJvqti.js")
|
|
17648
18221
|
});
|
|
17649
18222
|
for (let internalModule of internalModules) {
|
|
17650
18223
|
for (let item of internalModule.normalPages) {
|
|
@@ -21523,7 +22096,7 @@ export {
|
|
|
21523
22096
|
ImageCropper as ab,
|
|
21524
22097
|
InternalMkModule as ac,
|
|
21525
22098
|
_sfc_main$I as ad,
|
|
21526
|
-
_sfc_main$
|
|
22099
|
+
_sfc_main$B as ae,
|
|
21527
22100
|
_sfc_main$H as af,
|
|
21528
22101
|
LocalLogTree as ag,
|
|
21529
22102
|
LoginAccountMeta as ah,
|
|
@@ -21673,4 +22246,4 @@ export {
|
|
|
21673
22246
|
MKPagePanel as y,
|
|
21674
22247
|
MKTable as z
|
|
21675
22248
|
};
|
|
21676
|
-
//# sourceMappingURL=index-
|
|
22249
|
+
//# sourceMappingURL=index-ptf7evnt.js.map
|