hasyrails / calendar-vue-original

0 stars 0 forks source link

26 icon trans modify / Cannot read property '_wrapper' of undefined" #56

Closed hasyrails closed 4 years ago

hasyrails commented 4 years ago

Cannot read property '_wrapper' of undefined in Vue.JS

hasyrails commented 4 years ago

エラーの正体

アイコンを別々に表示変更したいのならば、 アイコンを持っている要素をコンポーネント化する必要がある。

Calendarコンポーネントで共通に定義している

data(){
  return{
    icon: 0
  }
}

をあたかも別々の要素ごとで変更させようとするので レンダリングが上手くいかない