hasyrails / calendar-vue-original

0 stars 0 forks source link

47 schedule detail button / タスク詳細表示ボタン #94

Closed hasyrails closed 4 years ago

hasyrails commented 4 years ago

現状

スケジュールカードの透明化と同時のクリックイベントで発火してしまっている

→ タスク詳細ボタンをコンポーネント化する必要がある

hasyrails commented 4 years ago

タスク詳細ボタンのイベントが発火しない

<ScheduleSettingButton style="margin-left:20px;" @click="openScheduleSettingModal"></ScheduleSettingButton>    

イベント設定はroot divに設定する必要がある?

<div @click="openScheduleSettingModal">
    <ScheduleSettingButton style="margin-left:20px;"></ScheduleSettingButton>
    </div>

発火した

hasyrails commented 4 years ago

モーダルを出現させるところまでは実装完了

Image from Gyazo

hasyrails commented 4 years ago

表示内容をスケジュール内容とするには devidedScheduleを親→子の方向へ統一すべき

現状

GanttChartPage
  ScheduleSettingModal

GanttChart : devidedScheduleを定義
      ↓
Schedule

devidedScheduleをScheduleSettingModalに渡すには?

GanttChartPage
↑  ↓
↑ ScheduleSettingModal
↑
GanttChart : devidedScheduleを定義
↑    ↓
Schedule

devidedScheduleをGanttChartから渡してからまた戻ってくる?

GanttChartPage(親)で定義して 子に渡すのに統一すべき? → vuex