mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 09:50:36 +03:00
docs: update disabled-date (#607)
This commit is contained in:
@@ -112,7 +112,7 @@ You can also override some of the default locale by `lang`.
|
|||||||
### Props
|
### Props
|
||||||
|
|
||||||
| Prop | Description | Type | Default |
|
| Prop | Description | Type | Default |
|
||||||
| ------------------- | ------------------------------------------------ | ------------------------------------------- | -------------- |
|
| ------------------- | ------------------------------------------------ | ----------------------------------------------- | -------------- |
|
||||||
| type | select the type of picker | date \|datetime\|year\|month\|time\|week | 'date' |
|
| type | select the type of picker | date \|datetime\|year\|month\|time\|week | 'date' |
|
||||||
| range | if true, pick the range date | `boolean` | false |
|
| range | if true, pick the range date | `boolean` | false |
|
||||||
| format | to set the date format. similar to moment.js | [token](#token) | 'YYYY-MM-DD' |
|
| format | to set the date format. similar to moment.js | [token](#token) | 'YYYY-MM-DD' |
|
||||||
@@ -127,8 +127,8 @@ You can also override some of the default locale by `lang`.
|
|||||||
| confirm-text | the text of confirm button | `string` | 'OK' |
|
| confirm-text | the text of confirm button | `string` | 'OK' |
|
||||||
| multiple | if true, multi-select date | `boolean` | false |
|
| multiple | if true, multi-select date | `boolean` | false |
|
||||||
| disabled | disable the component | `boolean` | false |
|
| disabled | disable the component | `boolean` | false |
|
||||||
| disabled-date | specify the date that cannot be selected | `(date) => boolean` | - |
|
| disabled-date | specify the date that cannot be selected | `(date: Date, currentValue: Date[]) => boolean` | - |
|
||||||
| disabled-time | specify the time that cannot be selected | `(date) => boolean` | - |
|
| disabled-time | specify the time that cannot be selected | `(date: Date) => boolean` | - |
|
||||||
| append-to-body | append the popup to body | `boolean` | true |
|
| append-to-body | append the popup to body | `boolean` | true |
|
||||||
| inline | without input | `boolean` | false |
|
| inline | without input | `boolean` | false |
|
||||||
| input-class | input classname | `string` | 'mx-input' |
|
| input-class | input classname | `string` | 'mx-input' |
|
||||||
|
|||||||
+3
-3
@@ -110,7 +110,7 @@ import 'vue2-datepicker/locale/zh-cn';
|
|||||||
### Props
|
### Props
|
||||||
|
|
||||||
| 属性 | 描述 | 类型 | 默认值 |
|
| 属性 | 描述 | 类型 | 默认值 |
|
||||||
| ------------------- | ------------------------------------------------ | ------------------------------------------- | -------------- |
|
| ------------------- | ------------------------------------------------ | ----------------------------------------------- | -------------- |
|
||||||
| type | 日期选择的类型 | date \|datetime\|year\|month\|time\|week | 'date' |
|
| type | 日期选择的类型 | date \|datetime\|year\|month\|time\|week | 'date' |
|
||||||
| range | 如果是 true, 变成日期范围选择 | `boolean` | false |
|
| range | 如果是 true, 变成日期范围选择 | `boolean` | false |
|
||||||
| format | 设置格式化的 token, 类似 moment.js | [token](#token) | 'YYYY-MM-DD' |
|
| format | 设置格式化的 token, 类似 moment.js | [token](#token) | 'YYYY-MM-DD' |
|
||||||
@@ -125,8 +125,8 @@ import 'vue2-datepicker/locale/zh-cn';
|
|||||||
| confirm-text | 确认按钮的文字 | `string` | 'OK' |
|
| confirm-text | 确认按钮的文字 | `string` | 'OK' |
|
||||||
| multiple | 如果是 true, 可以选择多个日期 | `boolean` | false |
|
| multiple | 如果是 true, 可以选择多个日期 | `boolean` | false |
|
||||||
| disabled | 禁用组件 | `boolean` | false |
|
| disabled | 禁用组件 | `boolean` | false |
|
||||||
| disabled-date | 禁止选择的日期 | `(date) => boolean` | - |
|
| disabled-date | 禁止选择的日期 | `(date: Date, currentValue: Date[]) => boolean` | - |
|
||||||
| disabled-time | 禁止选择的时间 | `(date) => boolean` | - |
|
| disabled-time | 禁止选择的时间 | `(date: Date) => boolean` | - |
|
||||||
| append-to-body | 弹出层插入到 body 元素下 | `boolean` | true |
|
| append-to-body | 弹出层插入到 body 元素下 | `boolean` | true |
|
||||||
| inline | 不显示输入框 | `boolean` | false |
|
| inline | 不显示输入框 | `boolean` | false |
|
||||||
| input-class | 输入框的类 | `string` | 'mx-input' |
|
| input-class | 输入框的类 | `string` | 'mx-input' |
|
||||||
|
|||||||
Reference in New Issue
Block a user