Commit 67ce5a7faf9a51d873718f0379dd0dee9203f404

Authored by xiaofengsha
1 parent b26389a0

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

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
src/components/divider/divider.vue
... ... @@ -35,8 +35,7 @@ export default {
35 35 },
36 36 computed: {
37 37 hasSlot() {
38   - if(this.$slots.default) return true;
39   - else return false;
  38 + return !!this.$slots.default;
40 39 },
41 40 classes() {
42 41 return [
... ...