Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

antd

Package Overview
Dependencies
Maintainers
4
Versions
850
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd - npm Package Compare versions

Comparing version 0.8.0-beta7 to 0.8.0

lib/common/openAnimation.js

8

CHANGELOG.md
## 0.8.0 (2015-08-25)
这个版本是第一个正式的稳定版,有大量改进和变化,不向下兼容。
这个版本是第一个稳定版,组件经过三期迭代,基本到齐,并有大量改进和变化,不向下兼容。
* 新增九个组件 `menu`、`upload`、`carousel`、`tree`、`notification`、`validation`、`affix`、`alert`、`enterAnimation`。目前共有组件 34 个,基本能满足后台类项目的组件需求。
* 新增设计文档部分,包括文字、色彩、动画。
* 重新梳理了设计和 React 实现部分的关系,并更新了网站的信息结构。
* 重新梳理了设计和 React 实现部分的关系,强调了 Ant Design 的设计属性,并更新了网站的信息结构。
* 构建工具 `antd-bin` 升级到 `0.4.0` 版本,支持合并 webpack 配置,热替换(HMR)等特性,[详见](https://github.com/ant-design/antd-bin)。
* 组件动画优化和补充,体验更加流畅动感时尚。
* 修复了 IE 和 safari 等浏览器的兼容问题。
* 组件动画优化和补充,体验更加流畅动感。
* 排查并修复 IE 和 safari 等浏览器的兼容问题。
* 大量代码重构,演示代码补充,文档更新、以及样式上的优化。

@@ -12,0 +12,0 @@

@@ -49,2 +49,2 @@ require('./index.css');

antd.version = '0.8.0-beta7';
antd.version = '0.8.0';

@@ -23,36 +23,6 @@ 'use strict';

var animation = {
enter: function enter(node, done) {
this.animate(node, 'slideDown', done);
},
leave: function leave(node, done) {
this.animate(node, 'slideUp', done);
},
appear: function appear() {
return this.enter.apply(this, arguments);
},
animate: function animate(node, transitionName, done) {
var ok = undefined;
function complete() {
if (!ok) {
ok = true;
done();
}
}
// Fix safari flash bug
node.style.display = 'none';
(0, _velocityAnimate2['default'])(node, transitionName, {
duration: 240,
complete: complete,
easing: 'easeInOutQuad'
});
return {
stop: function stop() {
(0, _velocityAnimate2['default'])(node, 'finish');
complete();
}
};
}
};
var _commonOpenAnimation = require('../common/openAnimation');
var _commonOpenAnimation2 = _interopRequireDefault(_commonOpenAnimation);
var AntMenu = _react2['default'].createClass({

@@ -76,3 +46,3 @@ displayName: 'AntMenu',

case 'inline':
openAnimation = animation;
openAnimation = _commonOpenAnimation2['default'];
break;

@@ -79,0 +49,0 @@ }

@@ -33,3 +33,6 @@ 'use strict';

onOk: noop,
onCancel: noop
onCancel: noop,
width: 520,
transitionName: 'zoom',
maskAnimation: 'fade'
};

@@ -109,4 +112,3 @@ },

var visible = this.state.visible;
return _react2['default'].createElement(_rcDialog2['default'], _extends({ transitionName: 'zoom', onClose: this.handleCancel,
maskAnimation: 'fade', width: '500', footer: footer }, props, {
return _react2['default'].createElement(_rcDialog2['default'], _extends({ onClose: this.handleCancel, footer: footer }, props, {
visible: visible, mousePosition: mousePosition }));

@@ -113,0 +115,0 @@ }

@@ -23,53 +23,6 @@ 'use strict';

var animation = {
enter: function enter(node, done) {
var ok = false;
var _commonOpenAnimation = require('../common/openAnimation');
function complete() {
if (!ok) {
ok = 1;
done();
}
}
var _commonOpenAnimation2 = _interopRequireDefault(_commonOpenAnimation);
node.style.display = 'none';
(0, _velocityAnimate2['default'])(node, 'slideDown', {
duration: 150,
complete: complete
});
return {
stop: function stop() {
(0, _velocityAnimate2['default'])(node, 'finish');
// velocity complete is async
complete();
}
};
},
leave: function leave(node, done) {
var ok = false;
node.style.display = 'block';
function complete() {
if (!ok) {
ok = 1;
done();
}
}
(0, _velocityAnimate2['default'])(node, 'slideUp', {
duration: 150,
complete: complete
});
return {
stop: function stop() {
(0, _velocityAnimate2['default'])(node, 'finish');
// velocity complete is async
complete();
}
};
}
};
var AntTree = _react2['default'].createClass({

@@ -93,3 +46,3 @@ displayName: 'AntTree',

_rcTree2['default'],
_extends({ openAnimation: animation }, props, { checkable: checkable }),
_extends({ openAnimation: _commonOpenAnimation2['default'] }, props, { checkable: checkable }),
this.props.children

@@ -96,0 +49,0 @@ );

{
"name": "antd",
"version": "0.8.0-beta7",
"stableVersion": "0.7.3",
"version": "0.8.0",
"stableVersion": "0.8.0",
"title": "Ant Design",

@@ -39,3 +39,3 @@ "description": "一个 UI 设计语言",

"gregorian-calendar-format": "~3.0.1",
"object-assign": "3.x",
"object-assign": "~4.0.1",
"rc-animate": "~1.2.0",

@@ -61,7 +61,6 @@ "rc-calendar": "~3.15.0",

"rc-tooltip": "~2.6.4",
"rc-tree": "~0.15.2",
"rc-tree": "~0.15.4",
"rc-upload": "~1.3.1",
"rc-util": "~2.0.3",
"react-slick2": "~0.6.6",
"velocity-animate": "~1.2.2",
"reqwest": "~2.0.2",

@@ -68,0 +67,0 @@ "velocity-animate": "^1.2.2",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc