* 改进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: { computed: {
hasSlot() { hasSlot() {
if(this.$slots.default) return true; return !!this.$slots.default;
else return false;
}, },
classes() { classes() {
return [ return [