lsc 2 years ago
parent
commit
06d62cc764
3 changed files with 494 additions and 221 deletions
  1. 100 113
      package-lock.json
  2. 389 108
      src/components/pages/addCourse.vue
  3. 5 0
      src/components/tools/wangEnduit.vue

File diff suppressed because it is too large
+ 100 - 113
package-lock.json


File diff suppressed because it is too large
+ 389 - 108
src/components/pages/addCourse.vue


+ 5 - 0
src/components/tools/wangEnduit.vue

@@ -34,6 +34,10 @@ export default {
       type: Boolean,
       default: false,
     },
+    placeholder:{
+      type:String,
+      default:"请输入正文"
+    }
   },
   watch: {
     isClear(val) {
@@ -91,6 +95,7 @@ export default {
       //忽略粘贴内容中的图片
       this.editor.config.pasteIgnoreImg = false;
       this.editor.config.showLinkImg = false;
+      this.editor.config.placeholder = this.placeholder;
       var that = this;
       this.editor.config.customUploadImg = function (files, insert) {
         const loading = Loading.service({

Some files were not shown because too many files changed in this diff