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