web-component-gallery 2.0.23 → 2.0.25
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.
- package/dist/js.umd.js +1 -1
- package/lib/form-comp/ASelectCustom.vue +17 -3
- package/package.json +1 -1
|
@@ -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
|
// 分页配置
|
|
@@ -155,6 +160,14 @@ export default {
|
|
|
155
160
|
this.innerOptions = [...newVal]
|
|
156
161
|
},
|
|
157
162
|
immediate: true
|
|
163
|
+
},
|
|
164
|
+
listPageParams: {
|
|
165
|
+
handler(newVal) {
|
|
166
|
+
this.searchValue = ''
|
|
167
|
+
this.pagination.current = 1
|
|
168
|
+
this.fetchData()
|
|
169
|
+
},
|
|
170
|
+
deep: true
|
|
158
171
|
}
|
|
159
172
|
},
|
|
160
173
|
|
|
@@ -165,7 +178,7 @@ export default {
|
|
|
165
178
|
|
|
166
179
|
mounted() {
|
|
167
180
|
this.pagination.size = this.pSize
|
|
168
|
-
this.fetchData()
|
|
181
|
+
this.initLoad && this.fetchData()
|
|
169
182
|
document.addEventListener('click', this.handleDocumentClick)
|
|
170
183
|
},
|
|
171
184
|
|
|
@@ -184,6 +197,7 @@ export default {
|
|
|
184
197
|
this.isLoadingMore = true
|
|
185
198
|
const { total, records } = await this.listPageHandler({
|
|
186
199
|
...this.pagination,
|
|
200
|
+
...this.listPageParams,
|
|
187
201
|
[this.searchKey]: this.searchValue
|
|
188
202
|
})
|
|
189
203
|
|