@maketribe/ms-app 5.0.9 → 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-DsoGSCyW.cjs → 404-BS9npH9c.cjs} +2 -2
- package/dist/cjs/{404-DsoGSCyW.cjs.map → 404-BS9npH9c.cjs.map} +1 -1
- package/dist/cjs/{Editor-TyGeVyJv.cjs → Editor-DZVgFelj.cjs} +2 -2
- package/dist/cjs/{Editor-TyGeVyJv.cjs.map → Editor-DZVgFelj.cjs.map} +1 -1
- package/dist/cjs/{Editor-BqvhActR.cjs → Editor-Dr4HzYR4.cjs} +2 -2
- package/dist/cjs/{Editor-BqvhActR.cjs.map → Editor-Dr4HzYR4.cjs.map} +1 -1
- package/dist/cjs/{PermissionManage-BrDGa_UN.cjs → PermissionManage-B7QLYWfw.cjs} +2 -2
- package/dist/cjs/{PermissionManage-BrDGa_UN.cjs.map → PermissionManage-B7QLYWfw.cjs.map} +1 -1
- package/dist/cjs/{ResourceSelectInput-mZNsKVaR.cjs → ResourceSelectInput-BJuSpqn8.cjs} +2 -2
- package/dist/cjs/{ResourceSelectInput-mZNsKVaR.cjs.map → ResourceSelectInput-BJuSpqn8.cjs.map} +1 -1
- package/dist/cjs/{dialog-B8Nzuzat.cjs → dialog-94OgX_-k.cjs} +2 -2
- package/dist/cjs/{dialog-B8Nzuzat.cjs.map → dialog-94OgX_-k.cjs.map} +1 -1
- package/dist/cjs/{dialog-ws-qDXhH.cjs → dialog-BOXXmTou.cjs} +2 -2
- package/dist/cjs/{dialog-ws-qDXhH.cjs.map → dialog-BOXXmTou.cjs.map} +1 -1
- package/dist/cjs/{dialog-DlS_587d.cjs → dialog-fuEyo8KO.cjs} +2 -2
- package/dist/cjs/{dialog-DlS_587d.cjs.map → dialog-fuEyo8KO.cjs.map} +1 -1
- package/dist/cjs/{edit-CYc5KqMB.cjs → edit-CB1K7cDL.cjs} +2 -2
- package/dist/cjs/{edit-CYc5KqMB.cjs.map → edit-CB1K7cDL.cjs.map} +1 -1
- package/dist/cjs/{index-B9HQ3Y0-.cjs → index-7lnm5nKI.cjs} +3 -3
- package/dist/cjs/{index-B9HQ3Y0-.cjs.map → index-7lnm5nKI.cjs.map} +1 -1
- package/dist/cjs/{index-CQjp35DZ.cjs → index-B0flhg1p.cjs} +3 -3
- package/dist/cjs/{index-CQjp35DZ.cjs.map → index-B0flhg1p.cjs.map} +1 -1
- package/dist/cjs/{index-pg0U1cYW.cjs → index-B2NYKPc_.cjs} +2 -2
- package/dist/cjs/{index-pg0U1cYW.cjs.map → index-B2NYKPc_.cjs.map} +1 -1
- package/dist/cjs/{index-CyMpxFvv.cjs → index-B6cSi0Cy.cjs} +2 -2
- package/dist/cjs/{index-CyMpxFvv.cjs.map → index-B6cSi0Cy.cjs.map} +1 -1
- package/dist/cjs/{index-CNrQsjVi.cjs → index-B8Ead7KB.cjs} +3 -3
- package/dist/cjs/{index-CNrQsjVi.cjs.map → index-B8Ead7KB.cjs.map} +1 -1
- package/dist/cjs/{index-WNWR7Kpo.cjs → index-BQD5GUCs.cjs} +2 -2
- package/dist/cjs/{index-WNWR7Kpo.cjs.map → index-BQD5GUCs.cjs.map} +1 -1
- package/dist/cjs/{index-Ds6URrV_.cjs → index-BZeFI7EC.cjs} +2 -2
- package/dist/cjs/{index-Ds6URrV_.cjs.map → index-BZeFI7EC.cjs.map} +1 -1
- package/dist/cjs/{index-DoofIAoG.cjs → index-Bif8y-Dt.cjs} +2 -2
- package/dist/cjs/{index-DoofIAoG.cjs.map → index-Bif8y-Dt.cjs.map} +1 -1
- package/dist/cjs/{index-r48xHdt8.cjs → index-BkfMZOl5.cjs} +2 -2
- package/dist/cjs/{index-r48xHdt8.cjs.map → index-BkfMZOl5.cjs.map} +1 -1
- package/dist/cjs/{index-BYtCb5AM.cjs → index-C13jHB17.cjs} +2 -2
- package/dist/cjs/{index-BYtCb5AM.cjs.map → index-C13jHB17.cjs.map} +1 -1
- package/dist/cjs/{index-CLiRi-y4.cjs → index-CGF5bFeZ.cjs} +22 -29
- package/dist/cjs/index-CGF5bFeZ.cjs.map +1 -0
- package/dist/cjs/{index-C6LoLuO6.cjs → index-CSOJt10E.cjs} +3 -3
- package/dist/cjs/{index-C6LoLuO6.cjs.map → index-CSOJt10E.cjs.map} +1 -1
- package/dist/cjs/{index-D7uyP6x1.cjs → index-Cd77zyw8.cjs} +742 -168
- package/dist/cjs/index-Cd77zyw8.cjs.map +1 -0
- package/dist/cjs/{index-CwMEcp5I.cjs → index-CjE09YZa.cjs} +2 -2
- package/dist/cjs/{index-CwMEcp5I.cjs.map → index-CjE09YZa.cjs.map} +1 -1
- package/dist/cjs/{index-DVCA7kLt.cjs → index-D2kpG38e.cjs} +2 -2
- package/dist/cjs/{index-DVCA7kLt.cjs.map → index-D2kpG38e.cjs.map} +1 -1
- package/dist/cjs/{index-CWwBc_8E.cjs → index-D5B7Amef.cjs} +2 -2
- package/dist/cjs/{index-CWwBc_8E.cjs.map → index-D5B7Amef.cjs.map} +1 -1
- package/dist/cjs/{index-K6rWNY0_.cjs → index-D86bWHDI.cjs} +2 -2
- package/dist/cjs/{index-K6rWNY0_.cjs.map → index-D86bWHDI.cjs.map} +1 -1
- package/dist/cjs/{index-CLJ5yQwP.cjs → index-DISV_9li.cjs} +2 -2
- package/dist/cjs/{index-CLJ5yQwP.cjs.map → index-DISV_9li.cjs.map} +1 -1
- package/dist/cjs/{index-Bu4xSmFo.cjs → index-Dk_INZ5a.cjs} +2 -2
- package/dist/cjs/{index-Bu4xSmFo.cjs.map → index-Dk_INZ5a.cjs.map} +1 -1
- package/dist/cjs/{index-CVpahh1K.cjs → index-Ds9HLEon.cjs} +2 -2
- package/dist/cjs/{index-CVpahh1K.cjs.map → index-Ds9HLEon.cjs.map} +1 -1
- package/dist/cjs/{index-C48nzB4H.cjs → index-DsW4hpNQ.cjs} +4 -4
- package/dist/cjs/{index-C48nzB4H.cjs.map → index-DsW4hpNQ.cjs.map} +1 -1
- package/dist/cjs/{index-B8QhN6Cu.cjs → index-DyEjoXi5.cjs} +2 -2
- package/dist/cjs/{index-B8QhN6Cu.cjs.map → index-DyEjoXi5.cjs.map} +1 -1
- package/dist/cjs/{index-D5s4Cj9O.cjs → index-ImPQTA-O.cjs} +3 -3
- package/dist/cjs/{index-D5s4Cj9O.cjs.map → index-ImPQTA-O.cjs.map} +1 -1
- package/dist/cjs/{index-Bb0xcJZY.cjs → index-K7soiGhY.cjs} +2 -2
- package/dist/cjs/{index-Bb0xcJZY.cjs.map → index-K7soiGhY.cjs.map} +1 -1
- package/dist/cjs/{index-B3XOpjLI.cjs → index-VkFApqPY.cjs} +2 -2
- package/dist/cjs/{index-B3XOpjLI.cjs.map → index-VkFApqPY.cjs.map} +1 -1
- package/dist/cjs/{index-SJI9ueXk.cjs → index-Z5qxMUov.cjs} +2 -2
- package/dist/cjs/{index-SJI9ueXk.cjs.map → index-Z5qxMUov.cjs.map} +1 -1
- package/dist/cjs/{index-NktqGIq8.cjs → index-jtODMRK7.cjs} +2 -2
- package/dist/cjs/{index-NktqGIq8.cjs.map → index-jtODMRK7.cjs.map} +1 -1
- package/dist/cjs/{index-BpKp6AIW.cjs → index-yCQ9_5Jf.cjs} +2 -2
- package/dist/cjs/{index-BpKp6AIW.cjs.map → index-yCQ9_5Jf.cjs.map} +1 -1
- package/dist/cjs/{index-Bx_rFF_t.cjs → index-ysaDU9e4.cjs} +2 -2
- package/dist/cjs/{index-Bx_rFF_t.cjs.map → index-ysaDU9e4.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/ms-app.css +39 -36
- package/dist/cjs/{normal-Dg3KXLWF.cjs → normal-BLdThhW9.cjs} +2 -2
- package/dist/cjs/{normal-Dg3KXLWF.cjs.map → normal-BLdThhW9.cjs.map} +1 -1
- package/dist/cjs/{normal-dA6oyWVs.cjs → normal-BX2PHgQx.cjs} +2 -2
- package/dist/cjs/{normal-dA6oyWVs.cjs.map → normal-BX2PHgQx.cjs.map} +1 -1
- package/dist/cjs/{table-Z0LdkjjE.cjs → table-BFRsYZPG.cjs} +2 -2
- package/dist/cjs/{table-Z0LdkjjE.cjs.map → table-BFRsYZPG.cjs.map} +1 -1
- package/dist/esm/{404-DAWKe6ES.js → 404-CqVEJmH2.js} +2 -2
- package/dist/esm/{404-DAWKe6ES.js.map → 404-CqVEJmH2.js.map} +1 -1
- package/dist/esm/{Editor-FtP24qiO.js → Editor-6Wpudlcm.js} +2 -2
- package/dist/esm/{Editor-FtP24qiO.js.map → Editor-6Wpudlcm.js.map} +1 -1
- package/dist/esm/{Editor-1wn7fOUg.js → Editor-C-BCft7T.js} +2 -2
- package/dist/esm/{Editor-1wn7fOUg.js.map → Editor-C-BCft7T.js.map} +1 -1
- package/dist/esm/{PermissionManage-BylEBYYE.js → PermissionManage-IWOtoupA.js} +2 -2
- package/dist/esm/{PermissionManage-BylEBYYE.js.map → PermissionManage-IWOtoupA.js.map} +1 -1
- package/dist/esm/{ResourceSelectInput-aUqcnI03.js → ResourceSelectInput-XRrLuhAj.js} +2 -2
- package/dist/esm/{ResourceSelectInput-aUqcnI03.js.map → ResourceSelectInput-XRrLuhAj.js.map} +1 -1
- package/dist/esm/{dialog-bPnlI9Pp.js → dialog-CW16mrKR.js} +2 -2
- package/dist/esm/{dialog-bPnlI9Pp.js.map → dialog-CW16mrKR.js.map} +1 -1
- package/dist/esm/{dialog-BQKfvOcd.js → dialog-DM1KPS1w.js} +2 -2
- package/dist/esm/{dialog-BQKfvOcd.js.map → dialog-DM1KPS1w.js.map} +1 -1
- package/dist/esm/{dialog-j7vOsbf4.js → dialog-cqZAK5ie.js} +2 -2
- package/dist/esm/{dialog-j7vOsbf4.js.map → dialog-cqZAK5ie.js.map} +1 -1
- package/dist/esm/{edit-Bhd1iOml.js → edit-DIHA5XOt.js} +2 -2
- package/dist/esm/{edit-Bhd1iOml.js.map → edit-DIHA5XOt.js.map} +1 -1
- package/dist/esm/{index-91WWThgd.js → index-35Efb8bL.js} +3 -3
- package/dist/esm/{index-91WWThgd.js.map → index-35Efb8bL.js.map} +1 -1
- package/dist/esm/{index-gHSlwV_h.js → index-66UwZ_hy.js} +2 -2
- package/dist/esm/{index-gHSlwV_h.js.map → index-66UwZ_hy.js.map} +1 -1
- package/dist/esm/{index-B4w34vDh.js → index-6vh7RATs.js} +2 -2
- package/dist/esm/{index-B4w34vDh.js.map → index-6vh7RATs.js.map} +1 -1
- package/dist/esm/{index-DnzDcFQu.js → index-BPkMyf0X.js} +2 -2
- package/dist/esm/{index-DnzDcFQu.js.map → index-BPkMyf0X.js.map} +1 -1
- package/dist/esm/{index-BEVg8jbE.js → index-BQ0Xi-3e.js} +3 -3
- package/dist/esm/{index-BEVg8jbE.js.map → index-BQ0Xi-3e.js.map} +1 -1
- package/dist/esm/{index-BaEP_U6-.js → index-BWRcd7up.js} +2 -2
- package/dist/esm/{index-BaEP_U6-.js.map → index-BWRcd7up.js.map} +1 -1
- package/dist/esm/{index-U17oCNrf.js → index-Bh5Odtd8.js} +2 -2
- package/dist/esm/{index-U17oCNrf.js.map → index-Bh5Odtd8.js.map} +1 -1
- package/dist/esm/{index-C1Yg83hj.js → index-BjGPP9kn.js} +2 -2
- package/dist/esm/{index-C1Yg83hj.js.map → index-BjGPP9kn.js.map} +1 -1
- package/dist/esm/{index-DFYxQOiM.js → index-BtB3P9pp.js} +3 -3
- package/dist/esm/{index-DFYxQOiM.js.map → index-BtB3P9pp.js.map} +1 -1
- package/dist/esm/{index-uCFh___i.js → index-CHWJvqti.js} +2 -2
- package/dist/esm/{index-uCFh___i.js.map → index-CHWJvqti.js.map} +1 -1
- package/dist/esm/{index-DH6EdqAf.js → index-CYo3aVIy.js} +2 -2
- package/dist/esm/{index-DH6EdqAf.js.map → index-CYo3aVIy.js.map} +1 -1
- package/dist/esm/{index-D9dWP60s.js → index-CiJ4Z6Ki.js} +2 -2
- package/dist/esm/{index-D9dWP60s.js.map → index-CiJ4Z6Ki.js.map} +1 -1
- package/dist/esm/{index-CkAyJPwY.js → index-D4_OGO5a.js} +2 -2
- package/dist/esm/{index-CkAyJPwY.js.map → index-D4_OGO5a.js.map} +1 -1
- package/dist/esm/{index-bzPx148i.js → index-D7KNXJsj.js} +2 -2
- package/dist/esm/{index-bzPx148i.js.map → index-D7KNXJsj.js.map} +1 -1
- package/dist/esm/{index-CNDSwQ8T.js → index-D97H9sJ9.js} +2 -2
- package/dist/esm/{index-CNDSwQ8T.js.map → index-D97H9sJ9.js.map} +1 -1
- package/dist/esm/{index-CuC9PygB.js → index-DJ1i3-xQ.js} +3 -3
- package/dist/esm/{index-CuC9PygB.js.map → index-DJ1i3-xQ.js.map} +1 -1
- package/dist/esm/{index-C01eEUrV.js → index-DSOkncEZ.js} +2 -2
- package/dist/esm/{index-C01eEUrV.js.map → index-DSOkncEZ.js.map} +1 -1
- package/dist/esm/{index-DdVK_pUP.js → index-DXv3Ml8a.js} +2 -2
- package/dist/esm/{index-DdVK_pUP.js.map → index-DXv3Ml8a.js.map} +1 -1
- package/dist/esm/{index-Cs7H9CP_.js → index-JoJ6at24.js} +2 -2
- package/dist/esm/{index-Cs7H9CP_.js.map → index-JoJ6at24.js.map} +1 -1
- package/dist/esm/{index-C_qhz3nB.js → index-KTv2n8gM.js} +2 -2
- package/dist/esm/{index-C_qhz3nB.js.map → index-KTv2n8gM.js.map} +1 -1
- package/dist/esm/{index-DuThAqYZ.js → index-NpH63e9v.js} +2 -2
- package/dist/esm/{index-DuThAqYZ.js.map → index-NpH63e9v.js.map} +1 -1
- package/dist/esm/{index-CA35twZ5.js → index-QEZjM3Ft.js} +2 -2
- package/dist/esm/{index-CA35twZ5.js.map → index-QEZjM3Ft.js.map} +1 -1
- package/dist/esm/{index-B_Go2PR1.js → index-Rs8COBKr.js} +22 -29
- package/dist/esm/index-Rs8COBKr.js.map +1 -0
- package/dist/esm/{index-BAq8-IPR.js → index-ThsVWdu1.js} +2 -2
- package/dist/esm/{index-BAq8-IPR.js.map → index-ThsVWdu1.js.map} +1 -1
- package/dist/esm/{index-wXCX4-t6.js → index-VJmsRKkD.js} +3 -3
- package/dist/esm/{index-wXCX4-t6.js.map → index-VJmsRKkD.js.map} +1 -1
- package/dist/esm/{index-Be5t9Bxr.js → index-mBU7uA9A.js} +4 -4
- package/dist/esm/{index-Be5t9Bxr.js.map → index-mBU7uA9A.js.map} +1 -1
- package/dist/esm/{index-CB0AQNOh.js → index-oW7TPBGB.js} +2 -2
- package/dist/esm/{index-CB0AQNOh.js.map → index-oW7TPBGB.js.map} +1 -1
- package/dist/esm/{index-D_ypO7dY.js → index-ptf7evnt.js} +743 -169
- package/dist/esm/index-ptf7evnt.js.map +1 -0
- package/dist/esm/{index-ifqiACf5.js → index-xw27C2IO.js} +2 -2
- package/dist/esm/{index-ifqiACf5.js.map → index-xw27C2IO.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ms-app.css +39 -36
- package/dist/esm/{normal-B5cpa2VE.js → normal-BRq_ZbNY.js} +2 -2
- package/dist/esm/{normal-B5cpa2VE.js.map → normal-BRq_ZbNY.js.map} +1 -1
- package/dist/esm/{normal-BpjYrH9U.js → normal-BiT7Zdho.js} +2 -2
- package/dist/esm/{normal-BpjYrH9U.js.map → normal-BiT7Zdho.js.map} +1 -1
- package/dist/esm/{table-CWKCXSvU.js → table-B1ke5wsY.js} +2 -2
- package/dist/esm/{table-CWKCXSvU.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/dist/types/components/data-model/data-tree-list/index.d.ts +12 -807
- package/dist/types/components/data-model/data-tree-list/index.vue.d.ts +8 -538
- package/package.json +22 -22
- package/dist/cjs/index-CLiRi-y4.cjs.map +0 -1
- package/dist/cjs/index-D7uyP6x1.cjs.map +0 -1
- package/dist/esm/index-B_Go2PR1.js.map +0 -1
- package/dist/esm/index-D_ypO7dY.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" };
|
|
@@ -7772,7 +7773,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7772
7773
|
props: {
|
|
7773
7774
|
title: { type: String, default: "" },
|
|
7774
7775
|
iconName: { type: String },
|
|
7775
|
-
dataTree: { type: [DataTree,
|
|
7776
|
+
dataTree: { type: [DataTree, DataTable$1], required: true },
|
|
7776
7777
|
autoLoad: { type: Boolean, default: true },
|
|
7777
7778
|
dataItemDescFieldName: { type: String, default: "name" },
|
|
7778
7779
|
curSelectId: { type: [String, Number] },
|
|
@@ -7807,14 +7808,15 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7807
7808
|
}
|
|
7808
7809
|
};
|
|
7809
7810
|
onMounted(() => {
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7811
|
+
new Promise((resolve) => {
|
|
7812
|
+
props.dataTree.afterLoadEvent.on(() => resolve);
|
|
7813
|
+
}).then(() => {
|
|
7814
|
+
if (props.useFirstSelect) {
|
|
7815
|
+
setDefaultSelectNode((item) => {
|
|
7816
|
+
curSelectItemId.value = item.id;
|
|
7817
|
+
emit("select", item);
|
|
7818
|
+
});
|
|
7819
|
+
}
|
|
7818
7820
|
});
|
|
7819
7821
|
});
|
|
7820
7822
|
onUnmounted(() => {
|
|
@@ -7855,8 +7857,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7855
7857
|
const _component_ElDropdownMenu = resolveComponent("ElDropdownMenu");
|
|
7856
7858
|
const _component_ElDropdown = resolveComponent("ElDropdown");
|
|
7857
7859
|
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
7858
|
-
__props.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7859
|
-
createElementVNode("div", _hoisted_3$
|
|
7860
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
7861
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
7860
7862
|
__props.iconName ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
7861
7863
|
key: 0,
|
|
7862
7864
|
name: __props.iconName
|
|
@@ -7883,7 +7885,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7883
7885
|
default: withCtx(() => [
|
|
7884
7886
|
isTree ? (openBlock(), createBlock(unref(MKTree), {
|
|
7885
7887
|
key: 0,
|
|
7886
|
-
|
|
7888
|
+
dataTree: __props.dataTree,
|
|
7887
7889
|
onNodeClick: selectPart,
|
|
7888
7890
|
defaultExpandAll: __props.defaultExpandAll,
|
|
7889
7891
|
draggable: isDrag.value,
|
|
@@ -7945,7 +7947,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7945
7947
|
], true)
|
|
7946
7948
|
]),
|
|
7947
7949
|
_: 3
|
|
7948
|
-
}, 8, ["
|
|
7950
|
+
}, 8, ["dataTree", "defaultExpandAll", "draggable", "currentNodeKey"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.dataTree.getList(), (item) => {
|
|
7949
7951
|
return openBlock(), createElementBlock("div", {
|
|
7950
7952
|
class: normalizeClass(["data-tree-list__aside-item flex flex-justify-between", [item.id === curSelectItemId.value ? "is-active" : ""]]),
|
|
7951
7953
|
key: item.id,
|
|
@@ -8006,10 +8008,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
8006
8008
|
};
|
|
8007
8009
|
}
|
|
8008
8010
|
});
|
|
8009
|
-
const DataTreeList = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-
|
|
8011
|
+
const DataTreeList = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-8fe753c3"]]);
|
|
8010
8012
|
const MKDataTreeList = withInstall(DataTreeList);
|
|
8011
8013
|
const _hoisted_1$z = { class: "w-[100%] flex justify-between" };
|
|
8012
|
-
const _hoisted_2$
|
|
8014
|
+
const _hoisted_2$q = { class: "font-size-[16px] p-l-[10px] flex flex-items-center" };
|
|
8013
8015
|
const _sfc_main$L = /* @__PURE__ */ Object.assign({ name: "MKDataGroupPanel" }, {
|
|
8014
8016
|
__name: "index",
|
|
8015
8017
|
props: {
|
|
@@ -8037,7 +8039,7 @@ const _sfc_main$L = /* @__PURE__ */ Object.assign({ name: "MKDataGroupPanel" },
|
|
|
8037
8039
|
}, {
|
|
8038
8040
|
title: withCtx(() => [
|
|
8039
8041
|
createElementVNode("div", _hoisted_1$z, [
|
|
8040
|
-
createElementVNode("b", _hoisted_2$
|
|
8042
|
+
createElementVNode("b", _hoisted_2$q, [
|
|
8041
8043
|
createTextVNode(toDisplayString(item[__props.dataItemDescFieldName]) + " ", 1),
|
|
8042
8044
|
renderSlot(_ctx.$slots, "subtitle", {
|
|
8043
8045
|
data: item,
|
|
@@ -8262,8 +8264,8 @@ const _hoisted_1$y = {
|
|
|
8262
8264
|
key: 0,
|
|
8263
8265
|
class: "mk-material-item__tools"
|
|
8264
8266
|
};
|
|
8265
|
-
const _hoisted_2$
|
|
8266
|
-
const _hoisted_3$
|
|
8267
|
+
const _hoisted_2$p = { class: "mk-material-item__tools-item" };
|
|
8268
|
+
const _hoisted_3$i = { class: "mk-material-item__preview" };
|
|
8267
8269
|
const _hoisted_4$f = { class: "mk-material-item__title" };
|
|
8268
8270
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
8269
8271
|
__name: "MaterialItem",
|
|
@@ -8335,7 +8337,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8335
8337
|
}, {
|
|
8336
8338
|
default: withCtx(() => [
|
|
8337
8339
|
!__props.selectable ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
8338
|
-
createElementVNode("div", _hoisted_2$
|
|
8340
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
8339
8341
|
createVNode(_component_ElDropdown, null, {
|
|
8340
8342
|
dropdown: withCtx(() => [
|
|
8341
8343
|
currentMaterialTypeValue.value === 1 ? (openBlock(), createBlock(_component_ElDropdownItem, {
|
|
@@ -8400,7 +8402,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8400
8402
|
})
|
|
8401
8403
|
])
|
|
8402
8404
|
])) : createCommentVNode("", true),
|
|
8403
|
-
createElementVNode("div", _hoisted_3$
|
|
8405
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
8404
8406
|
createVNode(unref(MaterialComponent), {
|
|
8405
8407
|
src: __props.material.path,
|
|
8406
8408
|
viewTools: !__props.selectable
|
|
@@ -8676,7 +8678,7 @@ const MaterialList = /* @__PURE__ */ defineComponent({
|
|
|
8676
8678
|
});
|
|
8677
8679
|
const MKMaterialList = withInstall(MaterialList);
|
|
8678
8680
|
const _hoisted_1$x = { class: "h-full w-full" };
|
|
8679
|
-
const _hoisted_2$
|
|
8681
|
+
const _hoisted_2$o = {
|
|
8680
8682
|
class: "w-[100%] h-[100%] bg-[--g-bg]",
|
|
8681
8683
|
"element-loading-background": "var(--g-bg)",
|
|
8682
8684
|
"element-loading-text": "加载中..."
|
|
@@ -8695,7 +8697,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
8695
8697
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
8696
8698
|
(openBlock(), createBlock(Suspense, null, {
|
|
8697
8699
|
fallback: withCtx(() => [
|
|
8698
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
8700
|
+
withDirectives(createElementVNode("div", _hoisted_2$o, null, 512), [
|
|
8699
8701
|
[_directive_loading, true]
|
|
8700
8702
|
])
|
|
8701
8703
|
]),
|
|
@@ -9229,6 +9231,31 @@ const showHtmlTemplateDialog = function() {
|
|
|
9229
9231
|
});
|
|
9230
9232
|
});
|
|
9231
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
|
+
};
|
|
9232
9259
|
const LexicalEditorProviderKey = "LexicalEditorProviderKey";
|
|
9233
9260
|
const HISTORY_MERGE_OPTIONS = { tag: "history-merge" };
|
|
9234
9261
|
const EditorPlugins = [];
|
|
@@ -9247,7 +9274,7 @@ const useLexicalEditor = function(options, errHandle) {
|
|
|
9247
9274
|
const registerNodes = plugins.filter((p) => p.plugin.nodes).map((p) => p.plugin.nodes).reduce((a, b) => a.concat(b));
|
|
9248
9275
|
const editor = createEditor({
|
|
9249
9276
|
editable: options.editable,
|
|
9250
|
-
html: options.html,
|
|
9277
|
+
html: options.html || DefaultHtmlConfig,
|
|
9251
9278
|
namespace,
|
|
9252
9279
|
nodes: options.nodes ? [...registerNodes, ...options.nodes] : registerNodes,
|
|
9253
9280
|
theme: options.theme,
|
|
@@ -9438,6 +9465,10 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9438
9465
|
const canStrikethrough = ref(false);
|
|
9439
9466
|
const canSubscript = ref(false);
|
|
9440
9467
|
const canSuperscript = ref(false);
|
|
9468
|
+
const spacing = reactive({
|
|
9469
|
+
lineHeight: 0,
|
|
9470
|
+
letterSpacing: 0
|
|
9471
|
+
});
|
|
9441
9472
|
const alignList = ref(["left", "center", "right", "justify"]);
|
|
9442
9473
|
const alignValue = ref(alignList.value[0]);
|
|
9443
9474
|
const canLink = ref(false);
|
|
@@ -9530,12 +9561,14 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9530
9561
|
} else if (alignValue.value == "end") {
|
|
9531
9562
|
alignValue.value = "right";
|
|
9532
9563
|
}
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
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
|
+
}
|
|
9539
9572
|
if (canSubscript.value) {
|
|
9540
9573
|
curContentTypeDesc.value = contentTypeList.find((item) => item.value == "subscript")?.label ?? "正文";
|
|
9541
9574
|
} else if (canSuperscript.value) {
|
|
@@ -9544,8 +9577,10 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9544
9577
|
const type = $isHeadingNode(parentNode) ? parentNode.getTag() : parentNode.getType();
|
|
9545
9578
|
curContentTypeDesc.value = contentTypeList.find((item) => item.value == type)?.label ?? "正文";
|
|
9546
9579
|
}
|
|
9547
|
-
|
|
9580
|
+
let ff = $getSelectionStyleValueForProperty(selection, "font-family", "");
|
|
9548
9581
|
let fs = $getSelectionStyleValueForProperty(selection, "font-size", "");
|
|
9582
|
+
let letterSpacing = $getSelectionStyleValueForProperty(selection, "letter-spacing", "0");
|
|
9583
|
+
let lineHeight = $getSelectionStyleValueForProperty(selection, "line-height", "1.5");
|
|
9549
9584
|
if (fs) {
|
|
9550
9585
|
fontSize.value = Math.round(parseFloat(fs) * options.rootFontSize) + "px";
|
|
9551
9586
|
} else if (parentDOM) {
|
|
@@ -9553,6 +9588,12 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9553
9588
|
} else {
|
|
9554
9589
|
fontSize.value = Math.round(options.rootFontSize) + "px";
|
|
9555
9590
|
}
|
|
9591
|
+
if (letterSpacing) {
|
|
9592
|
+
spacing.letterSpacing = parseFloat(letterSpacing);
|
|
9593
|
+
}
|
|
9594
|
+
if (lineHeight) {
|
|
9595
|
+
spacing.lineHeight = parseFloat(lineHeight);
|
|
9596
|
+
}
|
|
9556
9597
|
if (!ff && parentDOM) {
|
|
9557
9598
|
ff = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontFamily ?? "";
|
|
9558
9599
|
}
|
|
@@ -9561,7 +9602,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9561
9602
|
fontFamily.value = options.fontFamilyOptions?.find((item) => item.value == ff) || options.fontFamilyOptions[0];
|
|
9562
9603
|
canTextStyleDisabled.value = false;
|
|
9563
9604
|
const parent = anchorNode.getParent();
|
|
9564
|
-
if (canLink.value
|
|
9605
|
+
if (canLink.value && ($isLinkNode(parent) || $isLinkNode(anchorNode))) {
|
|
9565
9606
|
linkValue.value = $isLinkNode(parent) ? parent.getURL() : anchorNode.getURL();
|
|
9566
9607
|
} else {
|
|
9567
9608
|
linkValue.value = "";
|
|
@@ -9582,6 +9623,12 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9582
9623
|
const redoCommand = () => {
|
|
9583
9624
|
editor.dispatchCommand(REDO_COMMAND, void 0);
|
|
9584
9625
|
};
|
|
9626
|
+
watch(() => spacing.letterSpacing, (value) => {
|
|
9627
|
+
setTextStyle("letter-spacing", value + "px");
|
|
9628
|
+
});
|
|
9629
|
+
watch(() => spacing.lineHeight, (value) => {
|
|
9630
|
+
setTextStyle("line-height", value);
|
|
9631
|
+
});
|
|
9585
9632
|
return {
|
|
9586
9633
|
canUndo,
|
|
9587
9634
|
undoCommand,
|
|
@@ -9589,6 +9636,7 @@ const useLexicalEditorState = function(editor, options) {
|
|
|
9589
9636
|
redoCommand,
|
|
9590
9637
|
canTextStyleDisabled,
|
|
9591
9638
|
setTextStyle,
|
|
9639
|
+
spacing,
|
|
9592
9640
|
fontSize,
|
|
9593
9641
|
fontSizeOptions: options.fontSizeOptions,
|
|
9594
9642
|
fontColor,
|
|
@@ -9877,11 +9925,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9877
9925
|
KEY_TAB_COMMAND,
|
|
9878
9926
|
(event) => {
|
|
9879
9927
|
const selection = $getSelection();
|
|
9880
|
-
if (!$isRangeSelection(selection))
|
|
9881
|
-
return false;
|
|
9928
|
+
if (!$isRangeSelection(selection)) return false;
|
|
9882
9929
|
event.preventDefault();
|
|
9883
9930
|
return editor.dispatchCommand(
|
|
9884
|
-
event.shiftKey ? OUTDENT_CONTENT_COMMAND :
|
|
9931
|
+
event.shiftKey ? OUTDENT_CONTENT_COMMAND : INSERT_TAB_COMMAND,
|
|
9885
9932
|
void 0
|
|
9886
9933
|
);
|
|
9887
9934
|
},
|
|
@@ -10056,7 +10103,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10056
10103
|
useMounted(() => {
|
|
10057
10104
|
return mergeRegister(
|
|
10058
10105
|
editor.registerCommand(UPDATE_ELEMENTBLOCK_TOOLBAR_POS_COMMAND, () => updateToolsPos(), lowPriority),
|
|
10059
|
-
editor.registerUpdateListener((
|
|
10106
|
+
editor.registerUpdateListener(({ editorState }) => {
|
|
10107
|
+
setTimeout(() => updateToolsPos(), 50);
|
|
10108
|
+
}),
|
|
10060
10109
|
// 点击选中
|
|
10061
10110
|
editor.registerCommand(CLICK_COMMAND, (event) => {
|
|
10062
10111
|
const el = event.target;
|
|
@@ -10336,9 +10385,28 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10336
10385
|
};
|
|
10337
10386
|
}
|
|
10338
10387
|
});
|
|
10339
|
-
const ElementBlockSelectionPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
10340
|
-
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" };
|
|
10341
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({
|
|
10342
10410
|
__name: "ToolbarPlugin",
|
|
10343
10411
|
props: {
|
|
10344
10412
|
// doc | rich-text | mini
|
|
@@ -10367,6 +10435,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10367
10435
|
canSubscript,
|
|
10368
10436
|
canSuperscript,
|
|
10369
10437
|
canLink,
|
|
10438
|
+
spacing,
|
|
10370
10439
|
alignList,
|
|
10371
10440
|
alignValue,
|
|
10372
10441
|
contentTypeList,
|
|
@@ -10382,6 +10451,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10382
10451
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
10383
10452
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
10384
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");
|
|
10385
10456
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10386
10457
|
__props.mode == "doc" ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {
|
|
10387
10458
|
default: withCtx(() => [
|
|
@@ -10429,7 +10500,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10429
10500
|
onClick: ($event) => unref(setContentType)(item.value)
|
|
10430
10501
|
}, {
|
|
10431
10502
|
default: withCtx(() => [
|
|
10432
|
-
createElementVNode("div", _hoisted_1$
|
|
10503
|
+
createElementVNode("div", _hoisted_1$u, toDisplayString(item.label), 1)
|
|
10433
10504
|
]),
|
|
10434
10505
|
_: 2
|
|
10435
10506
|
}, 1032, ["class", "value", "onClick"]);
|
|
@@ -10590,11 +10661,60 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10590
10661
|
createVNode(_component_el_divider, { direction: "vertical" }),
|
|
10591
10662
|
createVNode(_component_el_button_group, { class: "font-style" }, {
|
|
10592
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
|
+
}),
|
|
10593
10713
|
createVNode(_component_el_button, {
|
|
10594
10714
|
disabled: unref(canTextStyleDisabled),
|
|
10595
10715
|
text: "",
|
|
10596
10716
|
class: normalizeClass(`${unref(canBold) ? "active" : ""}`),
|
|
10597
|
-
onClick: _cache[
|
|
10717
|
+
onClick: _cache[8] || (_cache[8] = ($event) => unref(setTextStyle)("bold"))
|
|
10598
10718
|
}, {
|
|
10599
10719
|
default: withCtx(() => [
|
|
10600
10720
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10608,7 +10728,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10608
10728
|
disabled: unref(canTextStyleDisabled),
|
|
10609
10729
|
text: "",
|
|
10610
10730
|
class: normalizeClass(`${unref(canItalic) ? "active" : ""}`),
|
|
10611
|
-
onClick: _cache[
|
|
10731
|
+
onClick: _cache[9] || (_cache[9] = ($event) => unref(setTextStyle)("italic"))
|
|
10612
10732
|
}, {
|
|
10613
10733
|
default: withCtx(() => [
|
|
10614
10734
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10622,7 +10742,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10622
10742
|
disabled: unref(canTextStyleDisabled),
|
|
10623
10743
|
text: "",
|
|
10624
10744
|
class: normalizeClass(`${unref(canStrikethrough) ? "active" : ""}`),
|
|
10625
|
-
onClick: _cache[
|
|
10745
|
+
onClick: _cache[10] || (_cache[10] = ($event) => unref(setTextStyle)("strikethrough"))
|
|
10626
10746
|
}, {
|
|
10627
10747
|
default: withCtx(() => [
|
|
10628
10748
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10636,7 +10756,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10636
10756
|
disabled: unref(canTextStyleDisabled),
|
|
10637
10757
|
text: "",
|
|
10638
10758
|
class: normalizeClass(`${unref(canUnderline) ? "active" : ""}`),
|
|
10639
|
-
onClick: _cache[
|
|
10759
|
+
onClick: _cache[11] || (_cache[11] = ($event) => unref(setTextStyle)("underline"))
|
|
10640
10760
|
}, {
|
|
10641
10761
|
default: withCtx(() => [
|
|
10642
10762
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10650,7 +10770,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10650
10770
|
disabled: unref(canTextStyleDisabled),
|
|
10651
10771
|
text: "",
|
|
10652
10772
|
class: normalizeClass(`${unref(canSubscript) ? "active" : ""}`),
|
|
10653
|
-
onClick: _cache[
|
|
10773
|
+
onClick: _cache[12] || (_cache[12] = ($event) => unref(setTextStyle)("subscript"))
|
|
10654
10774
|
}, {
|
|
10655
10775
|
default: withCtx(() => [
|
|
10656
10776
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10664,7 +10784,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10664
10784
|
disabled: unref(canTextStyleDisabled),
|
|
10665
10785
|
text: "",
|
|
10666
10786
|
class: normalizeClass(`${unref(canSuperscript) ? "active" : ""}`),
|
|
10667
|
-
onClick: _cache[
|
|
10787
|
+
onClick: _cache[13] || (_cache[13] = ($event) => unref(setTextStyle)("superscript"))
|
|
10668
10788
|
}, {
|
|
10669
10789
|
default: withCtx(() => [
|
|
10670
10790
|
createVNode(unref(MKSvgIcon), {
|
|
@@ -10728,7 +10848,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10728
10848
|
text: "",
|
|
10729
10849
|
disabled: unref(canTextStyleDisabled),
|
|
10730
10850
|
class: normalizeClass(`${unref(canLink) ? "active" : ""}`),
|
|
10731
|
-
onClick: _cache[
|
|
10851
|
+
onClick: _cache[14] || (_cache[14] = ($event) => unref(setTextStyle)("link"))
|
|
10732
10852
|
}, {
|
|
10733
10853
|
default: withCtx(() => [
|
|
10734
10854
|
!unref(canLink) ? (openBlock(), createBlock(unref(MKSvgIcon), {
|
|
@@ -10782,7 +10902,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10782
10902
|
name: "ep:plus",
|
|
10783
10903
|
class: "mr-2"
|
|
10784
10904
|
}),
|
|
10785
|
-
_cache[
|
|
10905
|
+
_cache[18] || (_cache[18] = createTextVNode(" 插入 ", -1))
|
|
10786
10906
|
]),
|
|
10787
10907
|
_: 1
|
|
10788
10908
|
}, 8, ["disabled"])
|
|
@@ -10793,7 +10913,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10793
10913
|
};
|
|
10794
10914
|
}
|
|
10795
10915
|
});
|
|
10796
|
-
const ToolbarPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10916
|
+
const ToolbarPlugin = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-a6ee1153"]]);
|
|
10797
10917
|
const uploadHandle = async (pathList) => {
|
|
10798
10918
|
if (pathList.length) {
|
|
10799
10919
|
const loadingInstance = ElLoading.service({ fullscreen: true, text: "图片上传中..." });
|
|
@@ -10922,7 +11042,6 @@ registerLexicalEditorPlugin({
|
|
|
10922
11042
|
// tools:[
|
|
10923
11043
|
// {
|
|
10924
11044
|
// key:"edit",title: "编辑", icon: "ep:edit", action: async (editNode:LexicalNode) => {
|
|
10925
|
-
// console.log("编辑")
|
|
10926
11045
|
// // // 打开模块面板
|
|
10927
11046
|
// // const result = (await showModuleSelectDialog()) as ModuleType;
|
|
10928
11047
|
// // const defaultData = createDefaultFormData(result.options);
|
|
@@ -11097,6 +11216,37 @@ registerLexicalEditorPlugin({
|
|
|
11097
11216
|
editor.registerCommand(INSERT_IMAGE_COMMAND, (payload) => {
|
|
11098
11217
|
return insertNodesHandle($createImageNode(payload.src, payload.alt, "", payload.style));
|
|
11099
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),
|
|
11100
11250
|
// 剪切板图片
|
|
11101
11251
|
editor.registerCommand(DRAG_DROP_PASTE, (files) => {
|
|
11102
11252
|
const types = [
|
|
@@ -11106,6 +11256,7 @@ registerLexicalEditorPlugin({
|
|
|
11106
11256
|
"image/gif",
|
|
11107
11257
|
"image/webp"
|
|
11108
11258
|
];
|
|
11259
|
+
console.log(files);
|
|
11109
11260
|
(async () => {
|
|
11110
11261
|
const filesResult = await mediaFileReader(files, [types].flatMap((x) => x));
|
|
11111
11262
|
const result = await uploadHandle(filesResult.filter((f) => isMimeType(f.file, types)).map((f) => f.result));
|
|
@@ -11685,7 +11836,7 @@ const theme = {
|
|
|
11685
11836
|
underlineStrikethrough: "mk-doc__textUnderlineStrikethrough"
|
|
11686
11837
|
}
|
|
11687
11838
|
};
|
|
11688
|
-
const _sfc_main$
|
|
11839
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11689
11840
|
__name: "LexicalComposer",
|
|
11690
11841
|
props: {
|
|
11691
11842
|
modelValue: { type: String, default: "" },
|
|
@@ -11773,8 +11924,8 @@ function useCanShowPlaceholder(editor) {
|
|
|
11773
11924
|
});
|
|
11774
11925
|
return readonly(canShowPlaceholder);
|
|
11775
11926
|
}
|
|
11776
|
-
const _hoisted_1$
|
|
11777
|
-
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({
|
|
11778
11929
|
__name: "ContentEditable",
|
|
11779
11930
|
props: {
|
|
11780
11931
|
ariaActivedescendant: {},
|
|
@@ -11832,7 +11983,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11832
11983
|
role: !editable.value ? void 0 : __props.role,
|
|
11833
11984
|
spellcheck: __props.spellcheck,
|
|
11834
11985
|
tabindex: __props.tabindex
|
|
11835
|
-
}, null, 8, _hoisted_1$
|
|
11986
|
+
}, null, 8, _hoisted_1$t);
|
|
11836
11987
|
};
|
|
11837
11988
|
}
|
|
11838
11989
|
});
|
|
@@ -11864,13 +12015,453 @@ const DecoratedTeleports = defineComponent({
|
|
|
11864
12015
|
});
|
|
11865
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";
|
|
11866
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';
|
|
11867
|
-
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"];
|
|
11868
12459
|
const _hoisted_2$m = {
|
|
11869
12460
|
key: 1,
|
|
11870
12461
|
class: "mk-doc__paragraph mk-doc-editor__stage__placeholder",
|
|
11871
12462
|
style: { "user-select": "text", "white-space": "pre-wrap", "word-break": "break-word" }
|
|
11872
12463
|
};
|
|
11873
|
-
const _sfc_main$
|
|
12464
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
11874
12465
|
__name: "index",
|
|
11875
12466
|
props: { placeholder: { type: String, default: `在这里输入正文...` }, type: { type: String, default: `richtext` } },
|
|
11876
12467
|
setup(__props) {
|
|
@@ -11914,7 +12505,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11914
12505
|
});
|
|
11915
12506
|
const style = document.createElement("style");
|
|
11916
12507
|
style.setAttribute("type", "text/css");
|
|
11917
|
-
style.innerHTML = [DocEditorStageCss, DocEditorCss, importStyles].join("\r\n");
|
|
12508
|
+
style.innerHTML = [DocEditorStageCss, DocEditorCss, DocThemeCss, importStyles].join("\r\n");
|
|
11918
12509
|
style.innerHTML += modules.filter((item) => item.editorCss).map((item) => item.editorCss).join("\r\n");
|
|
11919
12510
|
style.innerHTML += templates.filter((item) => item.editorCss).map((item) => item.editorCss).join("\r\n");
|
|
11920
12511
|
doc.head.append(style);
|
|
@@ -11946,12 +12537,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11946
12537
|
class: "mk-doc-editor-stage-iframe",
|
|
11947
12538
|
ref_key: "iframeContentRef",
|
|
11948
12539
|
ref: iframeContentRef
|
|
11949
|
-
}), null, 16, _hoisted_1$
|
|
12540
|
+
}), null, 16, _hoisted_1$s),
|
|
11950
12541
|
iframeBody.value ? (openBlock(), createBlock(Teleport, {
|
|
11951
12542
|
key: 0,
|
|
11952
12543
|
to: iframeBody.value
|
|
11953
12544
|
}, [
|
|
11954
|
-
createVNode(_sfc_main$
|
|
12545
|
+
createVNode(_sfc_main$A, {
|
|
11955
12546
|
class: normalizeClass(["mk-doc-editor-stage", { placeholder: unref(canShowPlaceholder) && contentIsEmpty.value }])
|
|
11956
12547
|
}, null, 8, ["class"]),
|
|
11957
12548
|
showAddNewline.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11967,7 +12558,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11967
12558
|
};
|
|
11968
12559
|
}
|
|
11969
12560
|
});
|
|
11970
|
-
const EditorStage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12561
|
+
const EditorStage = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-9dbbd07f"]]);
|
|
11971
12562
|
const markdownEditorProps = buildProps({
|
|
11972
12563
|
modelValue: {
|
|
11973
12564
|
type: String,
|
|
@@ -11977,11 +12568,11 @@ const markdownEditorProps = buildProps({
|
|
|
11977
12568
|
const markdownEditorEmits = {
|
|
11978
12569
|
"update:model-value": (modelValue) => true
|
|
11979
12570
|
};
|
|
11980
|
-
const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-
|
|
12571
|
+
const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-6Wpudlcm.js"));
|
|
11981
12572
|
const MKMarkdownEditor = withInstall(_MarkdownEditor);
|
|
11982
|
-
const _hoisted_1$
|
|
12573
|
+
const _hoisted_1$r = { class: "mk-rich-text-toolbar" };
|
|
11983
12574
|
const _hoisted_2$l = { class: "mk-rich-text-editor__stage_warp" };
|
|
11984
|
-
const _sfc_main$
|
|
12575
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
11985
12576
|
...{ name: "MKRichTextEditor" },
|
|
11986
12577
|
__name: "index",
|
|
11987
12578
|
props: {
|
|
@@ -12003,7 +12594,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12003
12594
|
});
|
|
12004
12595
|
return (_ctx, _cache) => {
|
|
12005
12596
|
const _directive_loading = resolveDirective("loading");
|
|
12006
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
12597
|
+
return openBlock(), createBlock(unref(_sfc_main$B), {
|
|
12007
12598
|
modelValue: docContent.value,
|
|
12008
12599
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => docContent.value = $event),
|
|
12009
12600
|
importCss: __props.css,
|
|
@@ -12012,7 +12603,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12012
12603
|
}, {
|
|
12013
12604
|
default: withCtx(() => [
|
|
12014
12605
|
withDirectives((openBlock(), createElementBlock("div", mergeProps({ class: "mk-rich-text-editor" }, _ctx.$attrs), [
|
|
12015
|
-
createElementVNode("div", _hoisted_1$
|
|
12606
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
12016
12607
|
createVNode(unref(ToolbarPlugin), { mode: "rich-text" })
|
|
12017
12608
|
]),
|
|
12018
12609
|
createElementVNode("div", _hoisted_2$l, [
|
|
@@ -12029,7 +12620,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12029
12620
|
};
|
|
12030
12621
|
}
|
|
12031
12622
|
});
|
|
12032
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12623
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d9cd49a2"]]);
|
|
12033
12624
|
const MKRichTextEditor = withInstall(RichTextEditor);
|
|
12034
12625
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12035
12626
|
__proto__: null,
|
|
@@ -12506,7 +13097,7 @@ let ResourceManager$1 = class ResourceManager extends Disposable {
|
|
|
12506
13097
|
item.isSelected = !item.isSelected;
|
|
12507
13098
|
}
|
|
12508
13099
|
};
|
|
12509
|
-
const _hoisted_1$
|
|
13100
|
+
const _hoisted_1$q = { class: "resource-item__wrapper" };
|
|
12510
13101
|
const _hoisted_2$k = { class: "resource-item__main" };
|
|
12511
13102
|
const _hoisted_3$g = { class: "resource-item__label" };
|
|
12512
13103
|
const _hoisted_4$e = ["title"];
|
|
@@ -12514,7 +13105,7 @@ const _hoisted_5$a = { class: "resource-item__time" };
|
|
|
12514
13105
|
const _hoisted_6$6 = { class: "resource-item__size" };
|
|
12515
13106
|
const _hoisted_7$4 = { key: 0 };
|
|
12516
13107
|
const _hoisted_8$3 = { key: 1 };
|
|
12517
|
-
const _sfc_main$
|
|
13108
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12518
13109
|
__name: "index",
|
|
12519
13110
|
props: {
|
|
12520
13111
|
resourceItem: {
|
|
@@ -12551,7 +13142,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12551
13142
|
return openBlock(), createElementBlock("div", {
|
|
12552
13143
|
class: normalizeClass(["resource-item", __props.mode, __props.resourceItem.isSelected ? "is-selected" : ""])
|
|
12553
13144
|
}, [
|
|
12554
|
-
createElementVNode("div", _hoisted_1$
|
|
13145
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
12555
13146
|
createElementVNode("div", _hoisted_2$k, [
|
|
12556
13147
|
createVNode(unref(MKSvgIcon), { name: iconClass.value }, null, 8, ["name"])
|
|
12557
13148
|
]),
|
|
@@ -12571,13 +13162,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12571
13162
|
};
|
|
12572
13163
|
}
|
|
12573
13164
|
});
|
|
12574
|
-
const ResourceItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12575
|
-
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" };
|
|
12576
13167
|
const _hoisted_2$j = ["onClick"];
|
|
12577
13168
|
const _hoisted_3$f = { class: "resource-list-mode" };
|
|
12578
13169
|
const _hoisted_4$d = { class: "resource-list-list" };
|
|
12579
13170
|
const _hoisted_5$9 = ["onClick", "onDblclick"];
|
|
12580
|
-
const _sfc_main$
|
|
13171
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12581
13172
|
__name: "ResourceList",
|
|
12582
13173
|
props: {
|
|
12583
13174
|
resourceManager: {
|
|
@@ -12643,7 +13234,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12643
13234
|
return openBlock(), createElementBlock("div", {
|
|
12644
13235
|
class: normalizeClass(["resource-list", { row: listMode.value == "row" }])
|
|
12645
13236
|
}, [
|
|
12646
|
-
createElementVNode("div", _hoisted_1$
|
|
13237
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
12647
13238
|
createVNode(_component_ElBreadcrumb, null, {
|
|
12648
13239
|
default: withCtx(() => [
|
|
12649
13240
|
createVNode(_component_ElBreadcrumbItem, null, {
|
|
@@ -12762,9 +13353,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12762
13353
|
};
|
|
12763
13354
|
}
|
|
12764
13355
|
});
|
|
12765
|
-
const ResourceList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13356
|
+
const ResourceList = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-f719ea29"]]);
|
|
12766
13357
|
const MKResourceList = withInstall(ResourceList);
|
|
12767
|
-
const _hoisted_1$
|
|
13358
|
+
const _hoisted_1$o = { class: "resource-manager" };
|
|
12768
13359
|
const _hoisted_2$i = {
|
|
12769
13360
|
style: { "color": "var(--el-text-color-regular)" },
|
|
12770
13361
|
m: "l-[10px]",
|
|
@@ -12772,7 +13363,7 @@ const _hoisted_2$i = {
|
|
|
12772
13363
|
};
|
|
12773
13364
|
const _hoisted_3$e = { style: { "margin-left": "10px" } };
|
|
12774
13365
|
const _hoisted_4$c = { class: "w-full h-full p-2 overflow-hidden" };
|
|
12775
|
-
const _sfc_main$
|
|
13366
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12776
13367
|
__name: "index",
|
|
12777
13368
|
props: {
|
|
12778
13369
|
title: { type: String, default: "" },
|
|
@@ -12907,7 +13498,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12907
13498
|
const _component_el_page_header = resolveComponent("el-page-header");
|
|
12908
13499
|
const _directive_loading = resolveDirective("loading");
|
|
12909
13500
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
12910
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
13501
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
12911
13502
|
createVNode(_component_el_page_header, {
|
|
12912
13503
|
style: { "background-color": "#fff", "padding": "10px" },
|
|
12913
13504
|
icon: null
|
|
@@ -13040,7 +13631,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13040
13631
|
};
|
|
13041
13632
|
}
|
|
13042
13633
|
});
|
|
13043
|
-
const ResourceManager2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13634
|
+
const ResourceManager2 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-eaafe196"]]);
|
|
13044
13635
|
const MKResourceManager = withInstall(ResourceManager2);
|
|
13045
13636
|
const UploadFileProps = buildProps({
|
|
13046
13637
|
uploadService: {
|
|
@@ -13190,8 +13781,8 @@ const useUploadComposable = (props, options) => {
|
|
|
13190
13781
|
appendFilePath
|
|
13191
13782
|
};
|
|
13192
13783
|
};
|
|
13193
|
-
const _sfc_main$
|
|
13194
|
-
const _hoisted_1$
|
|
13784
|
+
const _sfc_main$u = {};
|
|
13785
|
+
const _hoisted_1$n = {
|
|
13195
13786
|
height: "400",
|
|
13196
13787
|
viewBox: "0 0 600 400",
|
|
13197
13788
|
width: "600",
|
|
@@ -13199,7 +13790,7 @@ const _hoisted_1$o = {
|
|
|
13199
13790
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
13200
13791
|
};
|
|
13201
13792
|
function _sfc_render$3(_ctx, _cache) {
|
|
13202
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
13793
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, [..._cache[0] || (_cache[0] = [
|
|
13203
13794
|
createElementVNode("defs", { "node-id": "128" }, null, -1),
|
|
13204
13795
|
createElementVNode("path", {
|
|
13205
13796
|
d: "M 0.00 0.00 L 600.00 0.00 L 600.00 400.00 L 0.00 400.00 Z",
|
|
@@ -14678,20 +15269,20 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
14678
15269
|
], -1)
|
|
14679
15270
|
])]);
|
|
14680
15271
|
}
|
|
14681
|
-
const TeamImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14682
|
-
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" };
|
|
14683
15274
|
const _hoisted_2$h = { class: "simple-page-layout__bg" };
|
|
14684
15275
|
const _hoisted_3$d = { class: "simple-page-layout__bg_title" };
|
|
14685
15276
|
const _hoisted_4$b = ["src"];
|
|
14686
15277
|
const _hoisted_5$8 = { class: "simple-page-layout__bg_body" };
|
|
14687
15278
|
const _hoisted_6$5 = { class: "simple-page-layout__main" };
|
|
14688
15279
|
const _hoisted_7$3 = { class: "simple-page-layout__main_body" };
|
|
14689
|
-
const _sfc_main$
|
|
15280
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
14690
15281
|
__name: "index",
|
|
14691
15282
|
setup(__props) {
|
|
14692
15283
|
const system = useMSAppClient();
|
|
14693
15284
|
return (_ctx, _cache) => {
|
|
14694
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15285
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
14695
15286
|
createElementVNode("div", _hoisted_2$h, [
|
|
14696
15287
|
createElementVNode("div", _hoisted_3$d, [
|
|
14697
15288
|
unref(system).logo ? (openBlock(), createElementBlock("img", {
|
|
@@ -14716,9 +15307,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14716
15307
|
};
|
|
14717
15308
|
}
|
|
14718
15309
|
});
|
|
14719
|
-
const SimplePageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15310
|
+
const SimplePageLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-9083603c"]]);
|
|
14720
15311
|
const MKSimplePageLayout = withInstall(SimplePageLayout);
|
|
14721
|
-
const _sfc_main$
|
|
15312
|
+
const _sfc_main$s = {};
|
|
14722
15313
|
function _sfc_render$2(_ctx, _cache) {
|
|
14723
15314
|
return openBlock(), createBlock(Transition, { name: "slide-fade" }, {
|
|
14724
15315
|
default: withCtx(() => [
|
|
@@ -14727,25 +15318,8 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
14727
15318
|
_: 3
|
|
14728
15319
|
});
|
|
14729
15320
|
}
|
|
14730
|
-
const SlideFadeTransition = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15321
|
+
const SlideFadeTransition = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$2]]);
|
|
14731
15322
|
const MKSlideFadeTransition = withInstall(SlideFadeTransition);
|
|
14732
|
-
const _hoisted_1$m = { class: "mk-list-item" };
|
|
14733
|
-
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
14734
|
-
...{ name: "MKListItem" },
|
|
14735
|
-
__name: "index",
|
|
14736
|
-
props: {
|
|
14737
|
-
component: { type: Object }
|
|
14738
|
-
},
|
|
14739
|
-
setup(__props) {
|
|
14740
|
-
return (_ctx, _cache) => {
|
|
14741
|
-
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
14742
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14743
|
-
]);
|
|
14744
|
-
};
|
|
14745
|
-
}
|
|
14746
|
-
});
|
|
14747
|
-
const ListItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-9bb47fa7"]]);
|
|
14748
|
-
const MKListItem = withInstall(ListItem);
|
|
14749
15323
|
const selectLocalFile = async (type) => {
|
|
14750
15324
|
return await fileSelect({
|
|
14751
15325
|
accept: type == "local" || type == "doc" ? "*" : type.indexOf("image") >= 0 ? "image/*" : "video/*"
|
|
@@ -17609,41 +18183,41 @@ class MSAppClient {
|
|
|
17609
18183
|
this.pageManager.addExtendsPage({
|
|
17610
18184
|
name: "ms-menu",
|
|
17611
18185
|
path: "/sys/menus",
|
|
17612
|
-
component: () => import("./index-
|
|
18186
|
+
component: () => import("./index-D7KNXJsj.js"),
|
|
17613
18187
|
meta: { name: "ms-menu" }
|
|
17614
18188
|
});
|
|
17615
18189
|
this.pageManager.addExtendsPage({
|
|
17616
18190
|
name: "ms-role",
|
|
17617
18191
|
path: "/sys/roles",
|
|
17618
|
-
component: () => import("./index-
|
|
18192
|
+
component: () => import("./index-66UwZ_hy.js"),
|
|
17619
18193
|
meta: { name: "ms-role" }
|
|
17620
18194
|
});
|
|
17621
18195
|
this.pageManager.addExtendsPage({
|
|
17622
18196
|
name: "dv/ms-material/list",
|
|
17623
18197
|
path: "/sys/materials",
|
|
17624
|
-
component: () => import("./index-
|
|
18198
|
+
component: () => import("./index-Bh5Odtd8.js"),
|
|
17625
18199
|
meta: { name: "ms-material" }
|
|
17626
18200
|
});
|
|
17627
18201
|
this.pageManager.addExtendsPage({
|
|
17628
18202
|
name: "dv/ms-role/permission",
|
|
17629
18203
|
path: "/sys/roles/:id/permission",
|
|
17630
|
-
component: () => import("./PermissionManage-
|
|
18204
|
+
component: () => import("./PermissionManage-IWOtoupA.js")
|
|
17631
18205
|
});
|
|
17632
18206
|
this.pageManager.addExtendsPage({
|
|
17633
18207
|
name: "dv/local-log/single/tree/dialog",
|
|
17634
18208
|
path: "/log/local",
|
|
17635
|
-
component: () => import("./index-
|
|
18209
|
+
component: () => import("./index-D97H9sJ9.js"),
|
|
17636
18210
|
meta: { name: "local-log" }
|
|
17637
18211
|
});
|
|
17638
18212
|
this.pageManager.addExtendsPage({
|
|
17639
18213
|
name: "icons/list",
|
|
17640
18214
|
path: "/sys/icons",
|
|
17641
|
-
component: () => import("./index-
|
|
18215
|
+
component: () => import("./index-D4_OGO5a.js")
|
|
17642
18216
|
});
|
|
17643
18217
|
this.pageManager.addExtendsPage({
|
|
17644
18218
|
name: "dv/ms-todo/single/list/dialog",
|
|
17645
18219
|
path: "/dv/todo",
|
|
17646
|
-
component: () => import("./index-
|
|
18220
|
+
component: () => import("./index-CHWJvqti.js")
|
|
17647
18221
|
});
|
|
17648
18222
|
for (let internalModule of internalModules) {
|
|
17649
18223
|
for (let item of internalModule.normalPages) {
|
|
@@ -21522,7 +22096,7 @@ export {
|
|
|
21522
22096
|
ImageCropper as ab,
|
|
21523
22097
|
InternalMkModule as ac,
|
|
21524
22098
|
_sfc_main$I as ad,
|
|
21525
|
-
_sfc_main$
|
|
22099
|
+
_sfc_main$B as ae,
|
|
21526
22100
|
_sfc_main$H as af,
|
|
21527
22101
|
LocalLogTree as ag,
|
|
21528
22102
|
LoginAccountMeta as ah,
|
|
@@ -21672,4 +22246,4 @@ export {
|
|
|
21672
22246
|
MKPagePanel as y,
|
|
21673
22247
|
MKTable as z
|
|
21674
22248
|
};
|
|
21675
|
-
//# sourceMappingURL=index-
|
|
22249
|
+
//# sourceMappingURL=index-ptf7evnt.js.map
|