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

Commit

Permalink
fix: fix select sync options bug
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Sep 27, 2022
1 parent bdb0ccc commit fe588be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/varlet-vue2-ui/src/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export default defineComponent({
this.syncOptions()
},
options() {
this.syncOptions()
},
multiple(multiple) {
if (multiple && !isArray(this.value)) {
throw Error('The value must be an array when multiple is true')
Expand Down

0 comments on commit fe588be

Please sign in to comment.