From 0d7d6fc9a5c40ccc90190b0f24039ec1362f120f Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期一, 17 十月 2022 11:33:10 +0800
Subject: [PATCH] 新增设备管理、完善消息新增,修改bug

---
 src/components/edit/index.vue |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/src/components/edit/index.vue b/src/components/edit/index.vue
index 7752241..ec89cb5 100644
--- a/src/components/edit/index.vue
+++ b/src/components/edit/index.vue
@@ -11,6 +11,7 @@
             editor: null
         }
     },
+    props:['getMyBody'],
     mounted() {
         this.editor = new E('#edit');
         this.editor.config.height = 450;
@@ -18,6 +19,11 @@
             '#4b9bb7',
             '#09152f'
         ]
+        
+        this.editor.config.onchange =(html)=>{
+            // 绗簩姝ワ紝鐩戞帶鍙樺寲锛屽悓姝ユ洿鏂板埌 textarea
+            this.$emit('getMyBody',html);
+        }
         this.editor.create();
     },
     beforeDestroy() {
@@ -28,14 +34,15 @@
 }
 </script>
 <style lang="scss" scoped>
-    #edit{
-        :deep(.w-e-toolbar){
-            background-color: #09152f !important;
-            color: #4b9bb7;
-        }
-        :deep(.w-e-text-container){
-            background-color: #09152f !important;
-            color: #4b9bb7;
-        }
+#edit {
+    :deep(.w-e-toolbar) {
+        background-color: #09152f !important;
+        color: #4b9bb7;
     }
+
+    :deep(.w-e-text-container) {
+        background-color: #09152f !important;
+        color: #4b9bb7;
+    }
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0