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

pull/59/head
smallchill 6 years ago
parent e6aeab8b06
commit ec478ce72b
  1. 18
      package-lock.json
  2. 2
      package.json
  3. 8
      public/cdn/avue/2.1.2/avue.min.js
  4. 8
      public/cdn/avue/2.1.5/avue.min.js
  5. 0
      public/cdn/avue/2.1.5/index.css
  6. 4
      public/index.html
  7. 20
      src/views/desk/notice.vue
  8. 8
      yarn.lock

18
package-lock.json generated

@ -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"
}

@ -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",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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>

@ -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,
}
]

@ -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"

Loading…
Cancel
Save