wl-design-mobile 0.1.9 → 0.2.0

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.
@@ -16,7 +16,7 @@
16
16
  <div :style="{ height: listHeight }" class="custom-list">
17
17
  <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
18
18
  <van-list v-model="loading" :finished="finished" :finished-text="finishedTxt" :offset="200" @load="onLoad"
19
- :error.sync="error" :error-text="errorText">
19
+ :error.sync="error" :error-text="errorText" :immediate-check="false">
20
20
  <div v-for="(item, index) in list" :key="index" class="list-item">
21
21
  <div class="card-item">
22
22
  <slot name="head" v-bind:item="item"></slot>
@@ -90,9 +90,11 @@ export default {
90
90
  this.list = [];
91
91
  this.refreshing = false;
92
92
  }
93
+ this.loading = true
93
94
  if (this.testMode === true) {
95
+ console.log("lambo-list -- onLoad -- loadData:", this.pageNum)
94
96
  setTimeout(() => {
95
- this.loading = false
97
+ console.log('this.searchParams',this.searchParams)
96
98
  let arr = [
97
99
  {title: "盐城市亭湖区大树酒业商行", time: "2024-01-01", person:"01", dpt: "储配部", note: "测试"},
98
100
  {title: "盐城市亭湖区大树酒业商行", time: "2024-01-02", person:"02", dpt: "储配部", note: "测试"},
@@ -107,9 +109,10 @@ export default {
107
109
  ]
108
110
  this.list.push(...arr)
109
111
  this.finished = false
112
+ this.loading = false
110
113
  this.offset = this.pageNum * 10
111
114
  this.pageNum++;
112
- }, 1000); // 暂停3秒
115
+ }, 1000); // 暂停1秒
113
116
 
114
117
  }else{
115
118
  let params = {offset: this.offset, limit: this.limit, ...this.searchParams}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wl-design-mobile",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "finch",