GithubHelp home page GithubHelp logo

rangedatepicker's Introduction

中文文档

rangeDatepicker

A secondary development based upon the DatePicker component of iView.

Description

If you are developing your web page through iView and seeking a different style of the DatePciker, please check it out.

This datepicker component has a different appearance compared with iView's, which comprises of two DatePicker component of iView.

Before use

You should install iView before using this component.

$ npm install iview --save

How to use it

Import this component and register it to your vue instance, then you can use it easily.

>API

props

Property Description Type Default Value
dateValue The date value which is an Array contained two Date type items. Array An empty Array
dateType Setting the methods you can use to select time. The optional value is 'date' & 'datetime'.
'date': chose date;
'datetime': chose date and time.
String date
size The size of the component. The optional value is 'default' & 'large'. String default
width The width of the component. Number The width can adjust itself automatically according to the setting of 'dateType' and 'size'.

events

Event Description Return Value
confirm It would be triggered when the confirm button or the shortcut button is clicked. An Array contained two Date type items.

>Sample Code

//supposed the component's name is 'rangeDatepicker'

<range-datepicker @confirm="function" :dateValue="dateArray"></range-datepicker>

<range-datepicker @confirm="function" :dateValue="dateArray" :width="350"></range-datepicker>

<range-datepicker size="large" @confirm="function" :dateValue="dateArray"></range-datepicker>

<range-datepicker dateType="datetime" @confirm="function" :dateValue="dateArray"></range-datepicker>

>Sample Instance

date

image

datetime

image image

rangedatepicker's People

Contributors

trevorhsu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.