This commit is contained in:
Aresn 2017-06-02 11:43:02 +08:00
parent e4e8711d0f
commit 75c32564f0
2 changed files with 13 additions and 34 deletions

View file

@ -61,17 +61,9 @@
}
return status;
}
},
data () {
return {
alone: false
};
},
mounted () {
const child_length = this.$refs.badge.children.length;
if (child_length === 1) {
this.alone = true;
},
alone () {
return this.$slots.default === undefined;
}
}
};