GithubHelp home page GithubHelp logo

v-weekslider's Introduction

v-week-slider

介绍

一个基于Vue无限滑动选择日期的手机端组件

DEMO

demo

安装

npm install --save v-week-slider

使用

import weekSlider from 'v-week-slider'

Vue.use(weekSlider)

<week-slider @dateClick="dateClickhandler" :showYear="true" :defaultDate.sync="default_date"></week-slider>

Props

prop 必选 类型 说明
defaultDate false String 指定日期,默认今天,YYYY-MM-DD
showYear false Boolean 是否显示当前周所属年月,默认false
activeBgColor false String 指定日期背景颜色,,默认'rgba(182, 30, 40, 1)'
todayBgColor false String 今天背景颜,非必须
activeTxtColor false String 指定日期文字颜色,默认'rgba(255, 255, 255, 1)'
todayTxtColor false String 今天文字颜色,非必须
lang false String 周语言,ch(中文) en(英语),默认ch

events

名称 说明 回调参数
dateClick 点击日期触发时间 点击的日期(YYYY-MM-DD)

##Tips 当选中日期为今天时默认采用activeBgColor,activeTxtColor标记该日期

v-weekslider's People

Contributors

linsky avatar hurui79 avatar binaryify avatar

Stargazers

lilghostFinance avatar  avatar  avatar

Watchers

James Cloos avatar  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.