回答編集履歴
1
vueファイルで確かめた
test
CHANGED
@@ -73,3 +73,89 @@
|
|
73
73
|
</html>
|
74
74
|
|
75
75
|
```
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
vueファイルだとこうかな
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
```vue
|
84
|
+
|
85
|
+
<template>
|
86
|
+
|
87
|
+
<FullCalendar
|
88
|
+
|
89
|
+
defaultView="dayGridMonth"
|
90
|
+
|
91
|
+
:plugins="calendarPlugins"
|
92
|
+
|
93
|
+
:columnHeaderText="columnHeaderText"
|
94
|
+
|
95
|
+
/>
|
96
|
+
|
97
|
+
</template>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<script>
|
102
|
+
|
103
|
+
import FullCalendar from '@fullcalendar/vue'
|
104
|
+
|
105
|
+
import dayGridPlugin from '@fullcalendar/daygrid'
|
106
|
+
|
107
|
+
import timeGridPlugin from '@fullcalendar/timegrid'
|
108
|
+
|
109
|
+
import interactionPlugin from '@fullcalendar/interaction'
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
export default {
|
114
|
+
|
115
|
+
components: {
|
116
|
+
|
117
|
+
FullCalendar
|
118
|
+
|
119
|
+
},
|
120
|
+
|
121
|
+
data () {
|
122
|
+
|
123
|
+
return {
|
124
|
+
|
125
|
+
calendarPlugins: [
|
126
|
+
|
127
|
+
dayGridPlugin,
|
128
|
+
|
129
|
+
timeGridPlugin,
|
130
|
+
|
131
|
+
interactionPlugin
|
132
|
+
|
133
|
+
],
|
134
|
+
|
135
|
+
};
|
136
|
+
|
137
|
+
},
|
138
|
+
|
139
|
+
methods: {
|
140
|
+
|
141
|
+
columnHeaderText(date) {
|
142
|
+
|
143
|
+
return(["日", "月", "火", "水", "木", "金", "土"][date.getDay()]);
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
</script>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<style lang="scss">
|
156
|
+
|
157
|
+
@import './node_modules/@fullcalendar/core/main.css';
|
158
|
+
|
159
|
+
</style>
|
160
|
+
|
161
|
+
```
|