提交 a17f543f 编写于 作者: N nikogu

fixed Authorized Demo & Ellipsis tooltip #615

上级 f6109021
......@@ -87,16 +87,6 @@
"optionalDependencies": {
"nightmare": "^2.10.0"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"transform-decorators-legacy",
"transform-class-properties"
]
},
"jest": {
"setupFiles": [
"<rootDir>/tests/setupTests.js"
......
......@@ -36,7 +36,7 @@ ReactDOM.render(
<Authorized authority={havePermissionAsync} noMatch={noMatch}>
<Alert message="Use Promise as a parameter passed!" type="success" showIcon />
</Authorized>
</div>
mountNode,
</div>,
mountNode
);
```
......@@ -171,7 +171,7 @@ export default class Ellipsis extends Component {
<div id={id} className={cls} {...restProps}>
<style>{style}</style>
{
tooltip ? (<Tooltip title={text}>{children}</Tooltip>) : children
tooltip ? (<Tooltip title={children}>{children}</Tooltip>) : children
}
</div>);
}
......
......@@ -15,7 +15,7 @@ const links = [{
title: '帮助',
href: '',
}, {
key: 'github'
key: 'github',
title: <Icon type="github" />,
href: 'https://github.com/ant-design/ant-design-pro',
blankTarget: true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册