From c876a71a546037cb1b9a57bf70be70f0855c56e0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 1 Jul 2015 20:50:12 +0800 Subject: [PATCH] default motion for datepicker --- components/datepicker/demo/transitionName.md | 17 ----------------- components/datepicker/index.jsx | 4 ++-- 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 components/datepicker/demo/transitionName.md diff --git a/components/datepicker/demo/transitionName.md b/components/datepicker/demo/transitionName.md deleted file mode 100644 index 8be56917a1..0000000000 --- a/components/datepicker/demo/transitionName.md +++ /dev/null @@ -1,17 +0,0 @@ -# 基本 - -- order: 0 - -启用动画。 - ---- - -````jsx -var Datepicker = antd.Datepicker; - -React.render( - -, document.getElementById('components-datepicker-demo-transitionname')); -```` diff --git a/components/datepicker/index.jsx b/components/datepicker/index.jsx index 6e69cb028b..08c27b581f 100644 --- a/components/datepicker/index.jsx +++ b/components/datepicker/index.jsx @@ -43,8 +43,8 @@ export default React.createClass({ return { format: 'yyyy-MM-dd', placeholder: '请选择日期', - onSelect: function () { - } + transitionName: 'slide-up', + onSelect: function () {} }; }, handleChange(v) {