Browse Source

fixed Authorized Demo & Ellipsis tooltip #615

pull/632/head
nikogu 9 years ago
parent
commit
a17f543fd4
  1. 10
      package.json
  2. 4
      src/components/Authorized/demo/basic.md
  3. 2
      src/components/Ellipsis/index.js
  4. 2
      src/components/GlobalFooter/demo/basic.md

10
package.json

@ -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"

4
src/components/Authorized/demo/basic.md

@ -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
);
```

2
src/components/Ellipsis/index.js

@ -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>);
}

2
src/components/GlobalFooter/demo/basic.md

@ -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,

Loading…
Cancel
Save