| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset='utf-8' />
- <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.prod.js'></script>
- <script src='../../packages/core/dist/index.global.js'></script>
- <script src='../../packages/daygrid/dist/index.global.js'></script>
- <script src='../../../contrib/vue3/dist/index.global.js'></script>
- <script>
- document.addEventListener('DOMContentLoaded', function () {
- const App = {
- data() {
- return {
- calendarOptions: {
- initialView: 'dayGridMonth',
- events: [
- { title: 'Nice Event', start: new Date() }
- ]
- }
- }
- }
- }
- const app = Vue.createApp(App)
- app.component('full-calendar', FullCalendar.Vue.default)
- app.mount('#app')
- })
- </script>
- <style>
- body {
- margin: 40px 10px;
- padding: 0;
- font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
- font-size: 14px;
- }
- #calendar {
- max-width: 900px;
- margin: 0 auto;
- }
- </style>
- </head>
- <body>
- <div id='app'>
- <full-calendar :options='calendarOptions'>
- <template v-slot:event-content='arg'>
- <b>{{ arg.timeText }}</b>
- <i>{{ arg.event.title }}</i>
- </template>
- </full-calendar>
- </div>
- </body>
- </html>
|