Commit a17f543f authored by nikogu's avatar nikogu

fixed Authorized Demo & Ellipsis tooltip #615

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