* 改进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: {
|
computed: {
|
||||||
hasSlot() {
|
hasSlot() {
|
||||||
if(this.$slots.default) return true;
|
return !!this.$slots.default;
|
||||||
else return false;
|
|
||||||
},
|
},
|
||||||
classes() {
|
classes() {
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Add table
Reference in a new issue