Commit 1a5a2179 authored by 李静's avatar 李静

a

parent 144857d8
...@@ -28,19 +28,48 @@ ...@@ -28,19 +28,48 @@
created() { created() {
$(function() { $(function() {
$('#calendar').fullCalendar({ $('#calendar').fullCalendar({
customButtons: {
myCustomButton: {
text: '自定义按钮',
click: function() {
alert('点击了自定义按钮!')
}
}
},
header: { header: {
left: 'prev,next today', left: 'title',
center: 'title', center: '',
right: 'month,agendaWeek,agendaDay,listWeek' right: 'today prev,next myCustomButton'
}, },
currentTimezone: 'Asia/Beijing',
weekNumbersWithinDays: true,
handleWindowResize: true,
eventLimit: true, eventLimit: true,
views: {
agenda: {
eventLimit: 3
}
},
weekNumberCalculation: 'ISO', weekNumberCalculation: 'ISO',
dayClick: function() { dayClick: function() {
alert('a day has been clicked!') alert('a day has been clicked!')
}, },
views: { events: [
month: { titleFormat: 'YYYY, MM, DD' } {
title: 'event1',
start: '2018-04-17'
},
{
title: 'event2',
start: '2018-04-17',
end: '2018-04-18'
},
{
title: 'event3',
start: '',
allDay: false // will make the time show
} }
]
}) })
}) })
}, },
...@@ -50,5 +79,11 @@ ...@@ -50,5 +79,11 @@
} }
</script> </script>
<style scoped> <style scoped>
</style>
<style>
.fc-button-group, .fc button {
display: block !important;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment