* 改进Divider中hasSlot计算值的判别代码

This commit is contained in:
xiaofengsha 2018-03-29 23:19:49 +08:00
parent b26389a034
commit 67ce5a7faf

View file

@ -35,8 +35,7 @@ export default {
},
computed: {
hasSlot() {
if(this.$slots.default) return true;
else return false;
return !!this.$slots.default;
},
classes() {
return [