Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
1a5a2179
Commit
1a5a2179
authored
Apr 18, 2018
by
李静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
144857d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
6 deletions
+41
-6
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+41
-6
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
1a5a2179
...
@@ -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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment