diff --git a/components/locale-provider/demo/all.md b/components/locale-provider/demo/all.md index 5210db2561..844668f288 100644 --- a/components/locale-provider/demo/all.md +++ b/components/locale-provider/demo/all.md @@ -36,12 +36,6 @@ const columns = [{ dataIndex: 'age', }]; -const customLocale = { - timezoneOffset: 8 * 60, - firstDayOfWeek: 1, - minimalDaysInFirstWeek: 1, -}; - const Page = React.createClass({ getInitialState() { return { @@ -127,10 +121,6 @@ const App = React.createClass({ } }, render() { - const locale = { ...this.state.locale }; - if (locale.DatePicker) { - locale.DatePicker = { ...locale.DatePicker, ...customLocale }; - } return (
@@ -140,7 +130,7 @@ const App = React.createClass({ 中文
- +
); },