Git Product home page Git Product logo

vue-datepicker's Introduction

vue-datepicker - 基于Vue2.x日期选择组件

Datepicker是一款稍微复杂的组件,其中涉及的日历计算与显示需要比较清晰的逻辑。

预览图

How to start

  • 下载依赖项/install dependencies

npm install

  • 运行服务/run server

npm run test

  • 程序默认运行在3000端口: localhost:3000

Description

在全局注册或者局部注册完成后使用组件:

<datepicker v-on:picked="picked"></datepicker>

(该组件源码为components文件夹下面的datepicker.vue文件, 其余文件是搭建了一个简易的express框架)

  • Props:

    moment - 传入的时间(距 1970 年 1 月 1 日之间的毫秒数),默认为现在时间

  • 触发选取时间更新的条件:

    1. 选取日期: 在日历界面点击日期

    2. 选取年份和月份: 仅在可滑动的年份和月份列表点击

License

MIT

vue-datepicker's People

Contributors

watson-yan avatar cryushio avatar

Stargazers

zhouxiang 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.