Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix(ui/divider): fix divider check text error
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Feb 18, 2022
1 parent 01a323c commit c02c852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-vue2-ui/src/divider/Divider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default defineComponent({
methods: {
checkHasText() {
this.withText = Boolean(this.slots.default?.().length) || Boolean(props.description)
this.withText = this.hasSlots() || Boolean(props.description)
},
},
Expand Down

0 comments on commit c02c852

Please sign in to comment.