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

Commit

Permalink
fix(ui/step): 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 9710053 commit 198e7fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/varlet-vue2-ui/src/step/Step.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export default defineComponent({
isActive({ index, active }) {
return index !== -1 && active > index
},
length() {
return this.steps.step.length
},
activeColor() {
return this.steps.activeColor
},
Expand All @@ -74,7 +71,7 @@ export default defineComponent({
},
},
watch: {
length() {
'steps.step': function () {
const { newLength, index } = this
this.isLastChild = newLength - 1 === index
const main = this.$refs.main
Expand Down

0 comments on commit 198e7fd

Please sign in to comment.