@ddwl/ddwl-ui 1.4.3 → 1.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddwl/ddwl-ui",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "private": false,
5
5
  "main": "dist/index.common.js",
6
6
  "style": "dist/index.css",
@@ -151,11 +151,12 @@ export default {
151
151
  * @description: 查询
152
152
  */
153
153
  async search() {
154
- this.$emit('search')
154
+ const params = cloneDeep(this.form)
155
+ this.$emit('search', params)
155
156
  if (this.searchData) {
156
157
  try {
157
158
  this.searchLoading = true
158
- await this.searchData({ pageNum: 1 }, this.form)
159
+ await this.searchData({ pageNum: 1 }, params)
159
160
  this.searchLoading = false
160
161
  } catch (e) {
161
162
  this.searchLoading = false
@@ -167,10 +168,11 @@ export default {
167
168
  */
168
169
  async reset() {
169
170
  this.form = cloneDeep(this.initForm)
170
- this.$emit('search')
171
+ const params = cloneDeep(this.form)
172
+ this.$emit('search', params)
171
173
  if (this.searchData) {
172
174
  this.resetLoading = true
173
- await this.searchData({ pageNum: 1 }, this.form)
175
+ await this.searchData({ pageNum: 1 }, params)
174
176
  this.resetLoading = false
175
177
  }
176
178
  },