* 改进Divider中hasSlot计算值的判别代码
This commit is contained in:
parent
b26389a034
commit
67ce5a7faf
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
hasSlot() {
|
||||
if(this.$slots.default) return true;
|
||||
else return false;
|
||||
return !!this.$slots.default;
|
||||
},
|
||||
classes() {
|
||||
return [
|
||||
|
|
Loading…
Add table
Reference in a new issue