@ddwl/ddwl-ui 1.0.26 → 1.0.27

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.0.26",
3
+ "version": "1.0.27",
4
4
  "private": false,
5
5
  "main": "src/main.js",
6
6
  "style": "lib/theme/index.css",
@@ -181,10 +181,7 @@ export default {
181
181
  }
182
182
  this.config.onChange(value, data)
183
183
  })
184
- }
185
-
186
- // 处理下拉选择器
187
- if (this.config.component === 'el-select') {
184
+ } else if (this.config.component === 'el-select') { // 处理下拉选择器
188
185
  data = this.config.options
189
186
  if (Array.isArray(value)) {
190
187
  data = data.filter(i => value.includes(i.value)) || []
@@ -192,6 +189,8 @@ export default {
192
189
  data = data.find(i => value === i.value) || {}
193
190
  }
194
191
  this.config.onChange(value, data)
192
+ } else {
193
+ this.config.onChange(value)
195
194
  }
196
195
  }
197
196
  }
@@ -25,7 +25,7 @@
25
25
  <el-col :span="submitSpan">
26
26
  <div
27
27
  :style="{
28
- 'margin-top': hasSlot && expend && !suffixSlot ? '0px' : '20px'
28
+ 'margin-top': hasSlot && expend && !suffixSlot ? '0px' : '24px'
29
29
  }"
30
30
  class="d-search-form-btn"
31
31
  >
@@ -307,7 +307,7 @@ export default {
307
307
 
308
308
  this.$emit('loaded', this.list)
309
309
 
310
- // 如果当前页码大于0且当前数据列表为空,自动返回上一页并查询
310
+ // 如果当前页码大于1且当前数据列表为空,自动返回上一页并查询
311
311
  if (this.list.length === 0 && this.pageNum > 1) {
312
312
  this.pageNum = this.pageNum - 1
313
313
  this.search()