web-component-gallery 2.0.23 → 2.0.24

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.
@@ -20,9 +20,9 @@
20
20
  @search="handleSearch"
21
21
  @popupScroll="handleScroll"
22
22
  v-bind="attrs"
23
+ v-on="$listeners"
23
24
  v-model="innerValue"
24
25
  >
25
- <!-- v-on="$listeners" -->
26
26
  <template v-for="(index, name) in $slots" v-slot:[name]>
27
27
  <slot :name="name" />
28
28
  </template>
@@ -67,6 +67,7 @@ export default {
67
67
  default: undefined
68
68
  },
69
69
  mode: String,
70
+ width: String,
70
71
  isInput: {
71
72
  type: Boolean,
72
73
  default: false
@@ -75,7 +76,6 @@ export default {
75
76
  type: String,
76
77
  default: '请选择'
77
78
  },
78
- width: String,
79
79
 
80
80
  // 数据映射
81
81
  valueKey: {
@@ -93,6 +93,11 @@ export default {
93
93
  type: Array,
94
94
  default: () => []
95
95
  },
96
+ initLoad: {
97
+ type: Boolean,
98
+ default: true
99
+ },
100
+ listPageParams: Object,
96
101
  listPageHandler: Function,
97
102
 
98
103
  // 分页配置
@@ -165,7 +170,7 @@ export default {
165
170
 
166
171
  mounted() {
167
172
  this.pagination.size = this.pSize
168
- this.fetchData()
173
+ this.initLoad && this.fetchData()
169
174
  document.addEventListener('click', this.handleDocumentClick)
170
175
  },
171
176
 
@@ -184,6 +189,7 @@ export default {
184
189
  this.isLoadingMore = true
185
190
  const { total, records } = await this.listPageHandler({
186
191
  ...this.pagination,
192
+ ...this.listPageParams,
187
193
  [this.searchKey]: this.searchValue
188
194
  })
189
195
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [