diff --git a/README.md b/README.md
index 3a4172d9b..0e059fe72 100644
--- a/README.md
+++ b/README.md
@@ -218,6 +218,12 @@ http://react-component.github.io/calendar/examples/index.html
|
date input's placeholder |
+
+ | disableDateInput |
+ Boolean |
+ false |
+ disable range date input |
+
| mode |
enum('time', 'date', 'month', 'year', 'decade') |
@@ -366,6 +372,12 @@ http://react-component.github.io/calendar/examples/index.html
|
range date input's placeholders |
+
+ | disableDateInput |
+ Boolean |
+ false |
+ disable range date input |
+
| disabledTime |
Function(current: moment[], type:'start'|'end'):Object |
diff --git a/examples/antd-calendar.js b/examples/antd-calendar.js
index 950e5c327..d929c65e3 100644
--- a/examples/antd-calendar.js
+++ b/examples/antd-calendar.js
@@ -78,6 +78,7 @@ class Demo extends React.Component {
showDateInput: true,
disabled: false,
value: props.defaultValue,
+ disableDateInput: false,
};
}
@@ -106,6 +107,12 @@ class Demo extends React.Component {
});
}
+ toggleDisableDateInput = () => {
+ this.setState({
+ disableDateInput: !this.state.disableDateInput,
+ });
+ }
+
render() {
const state = this.state;
const calendar = (
disabled
+
+