xianniu-ui 0.3.13 → 0.3.14
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/lib/xianniu-ui.common.js +27 -49
- package/lib/xianniu-ui.umd.js +27 -49
- package/lib/xianniu-ui.umd.min.js +3 -3
- package/package.json +1 -1
- package/packages/table/main.vue +5 -3
package/package.json
CHANGED
package/packages/table/main.vue
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
popper-class="xn-table-box-tools__pop"
|
|
63
63
|
class="ml-10"
|
|
64
64
|
trigger="hover"
|
|
65
|
-
:hidden="!showColumn"
|
|
65
|
+
:hidden="!showColumn && columns.length"
|
|
66
66
|
>
|
|
67
67
|
<el-scrollbar
|
|
68
68
|
class="xn-table-box-tools__coll"
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
163
163
|
},
|
|
164
164
|
columns: {
|
|
165
165
|
type: Array,
|
|
166
|
-
default: () =>
|
|
166
|
+
default: () => [],
|
|
167
167
|
},
|
|
168
168
|
stripe: Boolean,
|
|
169
169
|
selection: Boolean,
|
|
@@ -195,7 +195,9 @@ export default {
|
|
|
195
195
|
},
|
|
196
196
|
computed: {},
|
|
197
197
|
created() {
|
|
198
|
-
this
|
|
198
|
+
console.log(this.$slots);
|
|
199
|
+
!this.$slots.default &&
|
|
200
|
+
this.columns.length &&
|
|
199
201
|
this.columns.forEach((item) => {
|
|
200
202
|
this.$set(item, "checked", true);
|
|
201
203
|
});
|