Преглед изворни кода

fix: 调整编辑器全屏的层级

outaozhen пре 4 година
родитељ
комит
128be35ffe

+ 2 - 1
src/pages/Hr/Notification/components/RighEditor.jsx

@@ -1,6 +1,7 @@
 import React, { useState } from 'react'
 import SimpleMDE from 'react-simplemde-editor'
 import 'easymde/dist/easymde.min.css'
+import styles from '@/pages/Hr/Notification/index.less'
 
 const RighEditor = ({ value, onChange }) => {
   const [cValue, setValue] = useState(value)
@@ -16,7 +17,7 @@ const RighEditor = ({ value, onChange }) => {
     //   renderHTML={text => mdParser.render(text)}
     //   onChange={handleEditorChange}
     // />
-    <SimpleMDE value={cValue} onChange={handleEditorChange} />
+    <SimpleMDE className={styles.SimpleCont} value={cValue} onChange={handleEditorChange} />
   )
 }
 

+ 6 - 0
src/pages/Hr/Notification/index.less

@@ -5,3 +5,9 @@
     list-style: decimal;
   }
 }
+
+.SimpleCont {
+  :global(.EasyMDEContainer .CodeMirror-fullscreen) {
+    z-index: 10;
+  }
+}