vue-property-decorator

What is affecting on will Vue computed property re-computed or no?

£可爱£侵袭症+ 提交于 2021-02-11 12:38:02
问题 I expect that currentSelectionViewContent will be re-computed each time when selectedOptionsIndexes has changed. Really, sometimes it works, sometimes - not. import { Component, Prop, Vue, Watch } from "vue-property-decorator"; @Component({ template }) export class SelectField extends Vue { private onNewOptionSelected(newOption: SelectField.Option, indexInArray: number): void { console.log("~~~~~~~~~~~~~~~"); console.log(JSON.stringify(this.selectedOptionsIndexes, null, 2)); this