vue日历组件封装,可全选,可单选,并可以取各自的值

先上效果图:

 

父组件:calendars.vue

<template>
  <div class="hello">
     <h1>日历测试</h1>
     <div>当前选中的年/月:{
  {curYearMonths}}</div>
     <div style="margin-bottom:20px;">未被选中:{
  {unSelectDays}}</div>
        <Row :gutter="24">
            <Col span="5"> 
                <input type="text" @click="openMultiByDrop($event)" v-model="calendar5.display" > 
            </Col>
        </Row>
      <tra

版权声明:本文为qq_41646249原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。