Git Product home page Git Product logo

Comments (2)

showonne avatar showonne commented on September 23, 2024

昨天没及时回复,时间范围的话可以通过两个日期选择框实现相同目的,最初设计时没有考虑选择范围的情况,如果需要后续可以实现,不过要过几天的,最近有其他事情。。。

from vue-date.

showonne avatar showonne commented on September 23, 2024

@hxlniada 选择时间范围功能已经实现了,需要为value绑定的值为一个数组,即范围起始时间和范围结束时间,效果可以在demo页面上看一下。需要传入:range=true,绑定的值对应变为一个数组,eg:

//template
<datepicker language="ch" :value.sync="range" class="picker picker-range" :min.sync="start" max="2020-01-08" :range=true></datepicker>
//script
export default {
    data () {
        return {
            range: ['2016-08-12', '2016-09-20']
        }
    },
    components: { datepicker }
}

from vue-date.

Related Issues (20)

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.