2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-06 13:42:27 +03:00

添加inputClass , 修复cell, placaholder

This commit is contained in:
mxie
2017-11-03 10:48:04 +08:00
parent 7c4601ff2e
commit 62e3f3dcae
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -61,6 +61,7 @@ export default {
| shortcuts | Boolean/Array | true | the shortcuts for the range picker |
| first-day-of-week | Number | 7 | set the first day of week (1-7) |
| minute-step | Number | 0 | if > 0 don't show the second picker(0 - 60) |
| input-class | String | 'input' | the input class name |
## shortcuts
+1 -1
View File
@@ -136,7 +136,7 @@ export default {
const date = new Date(time.getFullYear(), time.getMonth(), day, 0, 0, 0)
date.setDate(day)
return {
title: date.toLocaleString(),
title: date.toLocaleDateString(),
date,
day,
classes
+5 -1
View File
@@ -3,7 +3,7 @@
:style="{'width': width + 'px','min-width':range ? (type === 'datetime' ? '320px' : '210px') : '140px'}"
v-clickoutside="closePopup">
<input readonly
class="input"
:class="inputClass"
:value="text"
:placeholder="innerPlaceholder"
ref="input"
@@ -103,6 +103,10 @@ export default {
confirm: {
type: Boolean,
default: false
},
inputClass: {
type: String,
default: 'input'
}
},
data () {