xianniu-ui 0.3.4 → 0.3.6

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": "xianniu-ui",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -35,6 +35,7 @@
35
35
  >
36
36
  <el-input
37
37
  style="width: 100%"
38
+ v-bind="item.options ? {...item.options} : {}"
38
39
  v-model="form.value[idx].modelVal"
39
40
  :clearable="item.clearable || true"
40
41
  :placeholder="item.placeholder || '请填写' + item.label"
@@ -53,6 +54,7 @@
53
54
  :placeholder="item.placeholder || '请选择' + item.label"
54
55
  :clearable="item.clearable || true"
55
56
  filterable
57
+ v-bind="item.options ? {...item.options} : {}"
56
58
  :remote="isRemote(item.remote)"
57
59
  :reserve-keyword="isRemote(item.remote)"
58
60
  :default-first-option="isRemote(item.remote)"
@@ -66,7 +66,7 @@
66
66
  :size="itemBtn.size || 'mini'"
67
67
  :icon="itemBtn.icon"
68
68
  :plain="itemBtn.plain"
69
- @click="handleClick(itemBtn.method, row, $index)"
69
+ @click.native.stop="handleClick(itemBtn.method, row, $index)"
70
70
  >{{ label(itemBtn, row) }}</el-button
71
71
  >
72
72
  </template>
@@ -214,6 +214,10 @@ export default {
214
214
  this.$refs.table.toggleRowSelection(row, status);
215
215
  },
216
216
  clearSelection() {
217
+ if(this.radio){
218
+ this.radioSelected = ''
219
+ return
220
+ }
217
221
  this.$refs.table.clearSelection();
218
222
  },
219
223
  doLayout() {