Giter VIP home page Giter VIP logo

vue-calendar's Introduction

vue-calendar

基于Vue2.x 开发的一款针对移动端的, 轻量的, 可滑动的日历组件

  • 使用轻量简便, 单文件导入即可
  • 无需任何依赖即可支持移动端触摸滑动事件
  • 可进行颜色订制

预览

image

Use

 import Calendar from 'Calendar'
 
  <calendar
        ref="calendar"
        :events="calendarEvents"
        @select="selectedDay"
        @monthChanged="monthChanged">
      </calendar>

API

属性 说明 默认 是否必传
options       日历颜色配置, 具体可参考文件内props                                                        无     否  
value   初始选中日期, Array [yyyy, MM, dd]                                                  今天     否  
zero       日期是否补零                                     true     否  
events     Array 日历事件日期数组, 填写的日期下会显示小圆点, 可根据需求用v-bind动态绑定                  空数组   否  
select       选中某个日期的事件, 有一个选中日期的参数 回调函数   否  
monthChanged 切换月份的事件, 一个切换到的月份的参数                                 回调函数   否

vue-calendar's People

Contributors

yangkungit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.