From e0d486bbe660d71ade264825137050f3f73f2981 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 29 Mar 2016 19:50:05 +0800 Subject: [PATCH] Mark QueueAnim deperated --- components/queue-anim/index.jsx | 13 +++++++++++-- components/queue-anim/index.md | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/components/queue-anim/index.jsx b/components/queue-anim/index.jsx index d94d1c4ea3..cff6e95d3c 100644 --- a/components/queue-anim/index.jsx +++ b/components/queue-anim/index.jsx @@ -1,3 +1,12 @@ -import QueueAnim from 'rc-queue-anim'; +import React from 'react'; +import RcQueueAnim from 'rc-queue-anim'; +import warning from 'warning'; -export default QueueAnim; +export default class QueueAnim extends React.Component { + render() { + warning(false, '`QueueAnim` is deperated, ' + + 'you can import QueueAnim from \'rc-queue-anim\' directly.' + + 'The Demo will be moved to http://motion.ant.design/#/component/queue-anim'); + return ; + } +} diff --git a/components/queue-anim/index.md b/components/queue-anim/index.md index f2852196dc..f608c6b46f 100644 --- a/components/queue-anim/index.md +++ b/components/queue-anim/index.md @@ -19,7 +19,7 @@ ## API -> 此组件取代了 0.9.x 版本的 [enter-animation](http://09x.ant.design/components/enter-animation/)。 +> 此组件 `antd@1.0.0+` 后标记为废弃,您可以直接使用 `import QueueAnim from 'rc-queue-anim'` 来代替。文档后续会移到 [ant-motioin](http://motion.ant.design/#/component/queue-anim)。 元素依次进场。