hasyrails / calendar-vue-original

0 stars 0 forks source link

12 draggable try / ドラッグ機能の実装 #27

Closed hasyrails closed 4 years ago

hasyrails commented 4 years ago

draggableを使用する

ToDoカードをドラッグして カレンダーに移動できる機能の実装のデモを行う

実装参考

https://www.ritolab.com/entry/173 - RitoLabo

hasyrails commented 4 years ago

まず

Calendarコンポーネントのファイルに そのままToDoカード相当のコードを書いて ドラックできることを確かめる

hasyrails commented 4 years ago

実装

Image from Gyazo

[Vue warn]: Property or method "devidedSchedule" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <Calendar> at app/javascript/components/Calendar.vue
       <App> at app/javascript/app.vue
         <Root>
hasyrails commented 4 years ago

なぜか改善された部分

アイコンが切り替わるようになった Image from Gyazo