Vue v-calendar Highlight
by kabanoki
HTML
<link rel="stylesheet" href="https://unpkg.com/v-calendar/lib/v-calendar.min.css">
<script src="https://unpkg.com/v-calendar"></script>
<div id='app'>
<v-calendar :attributes='attrs' ></v-calendar>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<link rel='stylesheet' href='https://unpkg.com/v-calendar/lib/v-calendar.min.css'>
<script src='https://unpkg.com/v-calendar'></script>
CSS
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
}
#app {
background: #fff;
border-radius: 4px;
padding: 20px;
transition: all 0.2s;
text-align: center;
}
Vue
new Vue({
el: '#app',
data: {
attrs: [
{
key: 'today',
highlight: {
animated: true,
height: '1.8rem',
backgroundColor: 'red',
borderColor: null,
borderWidth: '1px',
borderStyle:'solid',
borderRadius:'1.8rem',
opacity: 1
},
dates: new Date(),
popover: {
label: 'メッセージを表示できます',
},
}
],
}
})