2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-21 19:40:36 +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) | | lang | String | zh | Translation (en/zh/es) |
| placeholder | String | | input placeholder text | | placeholder | String | | input placeholder text |
| width | String/Number | 210 | input size | | width | String/Number | 210 | input size |
| disabledDays | Array | [] | Days in YYYY-MM-DD format to disable | | disabled-days | Array | [] | Days in YYYY-MM-DD format to disable |
| showYearNav | Boolean | true | Show the year nav in the calendar | | not-before | String | '' | Disable all dates before date in YYY-MM-DD format |
| notBefore | String | '' | Disable all dates before date in YYY-MM-DD format | | not-after | String | '' | Disable all dates after date in YYY-MM-DD format |
| notAfter | String | '' | Disable all dates after date in YYY-MM-DD format |
| shortcuts | Boolean/Array | true | the shortcuts for the range picker | | shortcuts | Boolean/Array | true | the shortcuts for the range picker |
## shortcuts ## shortcuts
+4 -4
View File
@@ -6,7 +6,7 @@
</div> </div>
<div class="demo"> <div class="demo">
<span class="label">range:</span> <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>
</div> </div>
</template> </template>
@@ -19,9 +19,9 @@ export default {
components: { DatePicker }, components: { DatePicker },
data () { data () {
return { return {
value1: '2017-5-9', value1: '2017-6-15',
disabledDays: ['2017-8-13'], disabledDays: ['2017-6-13'],
notAfter: '2017-9-16', notAfter: '2017-6-16',
value2: '' value2: ''
} }
} }