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

Commit

Permalink
fix(ui/row): watch the cols children directly
Browse files Browse the repository at this point in the history
  • Loading branch information
leno23 committed Feb 24, 2022
1 parent 96b0a7e commit 9710053
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/varlet-vue2-ui/src/row/Row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ export default defineComponent({
average() {
return toPxNum(this.gutter) / 2
},
length() {
return this.cols.length
},
},
watch: {
gutter() {
this.computePadding()
},
length() {
cols() {
this.computePadding()
},
},
Expand Down

0 comments on commit 9710053

Please sign in to comment.