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

fix README.md

This commit is contained in:
mengxiong10
2017-08-22 14:46:32 +08:00
parent d115a33ec1
commit a018d1f33e
2 changed files with 7 additions and 8 deletions
+3 -4
View File
@@ -53,10 +53,9 @@ export default {
| lang | String | zh | Translation (en/zh/es) |
| placeholder | String | | input placeholder text |
| width | String/Number | 210 | input size |
| disabledDays | Array | [] | Days in YYYY-MM-DD format to disable |
| showYearNav | Boolean | true | Show the year nav in the calendar |
| notBefore | String | '' | Disable all dates before date in YYY-MM-DD format |
| notAfter | String | '' | Disable all dates after date in YYY-MM-DD format |
| disabled-days | Array | [] | Days in YYYY-MM-DD format to disable |
| not-before | String | '' | Disable all dates before date in YYY-MM-DD format |
| not-after | String | '' | Disable all dates after date in YYY-MM-DD format |
| shortcuts | Boolean/Array | true | the shortcuts for the range picker |
## shortcuts
+4 -4
View File
@@ -6,7 +6,7 @@
</div>
<div class="demo">
<span class="label">range:</span>
<date-picker v-model="value2" range lang="zh"></date-picker>
<date-picker v-model="value2" range lang="zh" :not-after="notAfter" :disabled-days="disabledDays"></date-picker>
</div>
</div>
</template>
@@ -19,9 +19,9 @@ export default {
components: { DatePicker },
data () {
return {
value1: '2017-5-9',
disabledDays: ['2017-8-13'],
notAfter: '2017-9-16',
value1: '2017-6-15',
disabledDays: ['2017-6-13'],
notAfter: '2017-6-16',
value2: ''
}
}