xianniu-ui 0.3.28 → 0.3.29

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.28",
3
+ "version": "0.3.29",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -139,6 +139,10 @@ export default {
139
139
  type: Boolean,
140
140
  default: true,
141
141
  },
142
+ defaultColl:{
143
+ type: Number,
144
+ default: 3,
145
+ }
142
146
  },
143
147
  computed: {
144
148
  col() {
@@ -220,7 +224,7 @@ export default {
220
224
  this.form.value = [];
221
225
  for (let i = 0, formData = this.formData; i < formData.length; i++) {
222
226
  const item = formData[i];
223
- item.isShow = i > 3 && this.showColl ? false : true;
227
+ item.isShow = i > this.defaultColl && this.showColl ? false : true;
224
228
  this.form.value.push({
225
229
  ...item,
226
230
  key: item.prop,
@@ -8,7 +8,7 @@
8
8
  <el-button
9
9
  type="text"
10
10
  v-show="selectedData.length"
11
- class="ml-5"
11
+ class="ml-5 pt-0 pb-0"
12
12
  size="mini"
13
13
  @click="clearSelection"
14
14
  >取消</el-button