Comments (2)
昨天没及时回复,时间范围的话可以通过两个日期选择框实现相同目的,最初设计时没有考虑选择范围的情况,如果需要后续可以实现,不过要过几天的,最近有其他事情。。。
from vue-date.
@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)
- Giving the datepicker name attribute HOT 3
- 日期所对应的星期不对 HOT 2
- how to show the cancle button? HOT 1
- Minor usability enhancements
- How to set startDay to Monday
- 不兼容IE9吗 HOT 1
- chrome iphone6plus调试时显示错误
- 可以用在vue-form-generator 嗎?
- Language and Format HOT 1
- 能否做到支持SSR
- Default v-model is show in label but it is not selected-highlighted in opened date-picker HOT 2
- Language ES HOT 2
- Language FR HOT 1
- Update v-model of the date picker in range mode doesn't work
- date for now
- Release-Management HOT 2
- Errors after update HOT 6
- 切换年份后,日历日期与星期匹配不正确 HOT 1
- Add TypeScript typings file HOT 1
- How to disable some days on the calendar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-date.