vuejs v-model, multiple checkbox and computed property

后端 未结 2 860
栀梦
栀梦 2021-01-13 14:35

I am trying to use multiple checkboxes in single file component. And I need to computed property, but I have boolean newVal instead of array in my setter. Here is my code:

2条回答
  •  暖寄归人
    2021-01-13 14:52

    Properties that start with _ or $ will not be proxied on the Vue instance because they may conflict with Vue’s internal properties and API methods. You will have to access them as vm.$data._property.

    From the official documentation.

提交回复
热议问题