소스 검색

:zap: 升级avue版本,优化富文本加载方式

smallchill 6 년 전
부모
커밋
ec478ce72b
8개의 변경된 파일31개의 추가작업 그리고 33개의 파일을 삭제
  1. 9 9
      package-lock.json
  2. 1 1
      package.json
  3. 0 6
      public/cdn/avue/2.1.2/avue.min.js
  4. 6 0
      public/cdn/avue/2.1.5/avue.min.js
  5. 0 0
      public/cdn/avue/2.1.5/index.css
  6. 2 2
      public/index.html
  7. 9 11
      src/views/desk/notice.vue
  8. 4 4
      yarn.lock

+ 9 - 9
package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "saber-admin",
-  "version": "2.0.7",
+  "version": "2.1.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
@@ -1878,9 +1878,9 @@
       }
     },
     "avue-plugin-ueditor": {
-      "version": "0.0.5",
-      "resolved": "https://registry.npm.taobao.org/avue-plugin-ueditor/download/avue-plugin-ueditor-0.0.5.tgz?cache=0&sync_timestamp=1564922511413&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Favue-plugin-ueditor%2Fdownload%2Favue-plugin-ueditor-0.0.5.tgz",
-      "integrity": "sha1-Dlp/tvl73pc1YfBLLhPaQwTXB+g=",
+      "version": "0.0.6",
+      "resolved": "https://registry.npm.taobao.org/avue-plugin-ueditor/download/avue-plugin-ueditor-0.0.6.tgz",
+      "integrity": "sha1-nS9Iv9aZP/lQKqg8TQfaJdsLE5Y=",
       "requires": {
         "axios": "^0.18.0",
         "vue": "^2.5.17",
@@ -4057,7 +4057,7 @@
     "element-ui": {
       "version": "2.12.0",
       "resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.12.0.tgz",
-      "integrity": "sha1-K2f57uPtouaISHPBxYnL4w2anWA=",
+      "integrity": "sha1-qJO8Ea5Pfbt+nVQWBvI+ZD8THuQ=",
       "requires": {
         "async-validator": "~1.8.1",
         "babel-helper-vue-jsx-merge-props": "^2.0.0",
@@ -9149,14 +9149,14 @@
       "dev": true
     },
     "quill": {
-      "version": "1.3.6",
-      "resolved": "https://registry.npm.taobao.org/quill/download/quill-1.3.6.tgz",
-      "integrity": "sha1-mfTeH+6FkloNfUFjttgyjyMxek0=",
+      "version": "1.3.7",
+      "resolved": "https://registry.npm.taobao.org/quill/download/quill-1.3.7.tgz",
+      "integrity": "sha1-2lsvOixHDpMjQM2/NmjJ8h+Shug=",
       "requires": {
         "clone": "^2.1.1",
         "deep-equal": "^1.0.1",
         "eventemitter3": "^2.0.3",
-        "extend": "^3.0.1",
+        "extend": "^3.0.2",
         "parchment": "^1.1.4",
         "quill-delta": "^3.6.2"
       }

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
     "test:e2e": "vue-cli-service test:e2e"
   },
   "dependencies": {
-    "avue-plugin-ueditor": "^0.0.5",
+    "avue-plugin-ueditor": "^0.0.6",
     "axios": "^0.18.0",
     "babel-polyfill": "^6.26.0",
     "classlist-polyfill": "^1.2.0",

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 6
public/cdn/avue/2.1.2/avue.min.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 6 - 0
public/cdn/avue/2.1.5/avue.min.js


+ 0 - 0
public/cdn/avue/2.1.2/index.css → public/cdn/avue/2.1.5/index.css


+ 2 - 2
public/index.html

@@ -12,7 +12,7 @@
   <link rel="stylesheet" href="<%= BASE_URL %>cdn/element-ui/2.12.0/theme-chalk/index.css">
   <link rel="stylesheet" href="<%= BASE_URL %>cdn/animate/3.5.2/animate.css">
   <link rel="stylesheet" href="<%= BASE_URL %>cdn/iconfont/1.0.0/index.css">
-  <link rel="stylesheet" href="<%= BASE_URL %>cdn/avue/2.1.2/index.css">
+  <link rel="stylesheet" href="<%= BASE_URL %>cdn/avue/2.1.5/index.css">
   <script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
   <script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
   <link rel="icon" href="<%= BASE_URL %>favicon.png">
@@ -105,7 +105,7 @@
 <script src="<%= BASE_URL %>cdn/vue-router/3.0.1/vue-router.min.js" charset="utf-8"></script>
 <script src="<%= BASE_URL %>cdn/axios/1.0.0/axios.min.js" charset="utf-8"></script>
 <script src="<%= BASE_URL %>cdn/element-ui/2.12.0/index.js" charset="utf-8"></script>
-<script src="<%= BASE_URL %>cdn/avue/2.1.2/avue.min.js" charset="utf-8"></script>
+<script src="<%= BASE_URL %>cdn/avue/2.1.5/avue.min.js" charset="utf-8"></script>
 </body>
 
 </html>

+ 9 - 11
src/views/desk/notice.vue

@@ -30,9 +30,6 @@
                 slot="category">
         <el-tag>{{row.categoryName}}</el-tag>
       </template>
-      <template slot-scope="scope" slot="contentForm">
-        <avue-ueditor :min-rows=6 v-model="form.content" :upload="upload"></avue-ueditor>
-      </template>
     </avue-crud>
   </basic-container>
 </template>
@@ -57,13 +54,6 @@
           total: 0
         },
         selectionList: [],
-        upload: {
-          action: '/api/blade-resource/oss/endpoint/put-file',
-          props: {
-            res: "data",
-            url: "link",
-          }
-        },
         option: {
           height: 'auto',
           calcHeight: 350,
@@ -137,8 +127,16 @@
             {
               label: "通知内容",
               prop: "content",
-              formslot: true,
+              component: 'ueditor',
+              options: {
+                action: '/api/blade-resource/oss/endpoint/put-file',
+                props: {
+                  res: "data",
+                  url: "link",
+                }
+              },
               hide: true,
+              minRows: 6,
               span: 24,
             }
           ]

+ 4 - 4
yarn.lock

@@ -1467,10 +1467,10 @@ autoprefixer@^9.5.1:
     postcss "^7.0.17"
     postcss-value-parser "^4.0.0"
 
-avue-plugin-ueditor@^0.0.5:
-  version "0.0.5"
-  resolved "https://registry.npm.taobao.org/avue-plugin-ueditor/download/avue-plugin-ueditor-0.0.5.tgz?cache=0&sync_timestamp=1564922511413&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Favue-plugin-ueditor%2Fdownload%2Favue-plugin-ueditor-0.0.5.tgz#0e5a7fb6f97bde973561f04b2e13da4304d707e8"
-  integrity sha1-Dlp/tvl73pc1YfBLLhPaQwTXB+g=
+avue-plugin-ueditor@^0.0.6:
+  version "0.0.6"
+  resolved "https://registry.npm.taobao.org/avue-plugin-ueditor/download/avue-plugin-ueditor-0.0.6.tgz#9d2f48bfd6993ff9502aa83c4d07da25db0b1396"
+  integrity sha1-nS9Iv9aZP/lQKqg8TQfaJdsLE5Y=
   dependencies:
     axios "^0.18.0"
     vue "^2.5.17"

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.