wl-design-mobile 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@
15
15
  import LamboCollapse from "../../collapse/lambo-collapse.vue";
16
16
  import LamboIconBtn from "../../btn/lambo-icon-btn.vue";
17
17
  import {axios} from "../../util/axios";
18
- import {fileUploadUrl} from "../../api/doc";
18
+ import {fileGetUrl, fileUploadUrl} from "../../api/doc";
19
19
  import {Toast} from "vant";
20
20
  import LamboImgGrid from "../../doc/img/comonents/lambo-img-grid.vue";
21
21
 
@@ -73,7 +73,7 @@ export default {
73
73
  let item = {
74
74
  fileId: resFile.fileId,
75
75
  fileName: resFile.fileName || file.name,
76
- src: resFile.src
76
+ src: fileGetUrl + resFile.fileId
77
77
  }
78
78
  this.data.push(item)
79
79
  Toast.success(file.name + '上传成功');
@@ -3,14 +3,8 @@
3
3
  <div class="table-head">
4
4
  <div class="table-cell" :style="{'--width': item.width + 'px' || 'auto'}" v-for="(item,index) in columns" :key="index" >{{ item.title }}</div>
5
5
  </div>
6
- <van-list
7
- ref="vanList1"
8
- v-model="loading"
9
- :finished="finished"
10
- finished-text="没有更多了"
11
- @load="onLoad"
12
- offset="10"
13
- >
6
+ <van-list ref="vanList1" v-model="loading"
7
+ :finished="finished" finished-text="没有更多了" @load="onLoad" offset="10">
14
8
  <div class="table-row" v-for="(item,index) in list" :key="index">
15
9
  <template v-for="column in columns">
16
10
  <div v-if="column.type === 'index'" v-bind:key="column.key" class="table-cell table-cell-list" :style="{'--width': column.width + 'px' || 'auto'}">{{index + 1}}</div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wl-design-mobile",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "finch",