From a17f543fd478c45499d22d3613437c9fc4ef4aa9 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Tue, 9 Jan 2018 15:10:21 +0800 Subject: [PATCH] fixed Authorized Demo & Ellipsis tooltip #615 --- package.json | 10 ---------- src/components/Authorized/demo/basic.md | 4 ++-- src/components/Ellipsis/index.js | 2 +- src/components/GlobalFooter/demo/basic.md | 2 +- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 7c0ad688..a77d20d3 100755 --- a/package.json +++ b/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": [ "/tests/setupTests.js" diff --git a/src/components/Authorized/demo/basic.md b/src/components/Authorized/demo/basic.md index c9694ad2..48eb7c44 100644 --- a/src/components/Authorized/demo/basic.md +++ b/src/components/Authorized/demo/basic.md @@ -36,7 +36,7 @@ ReactDOM.render( - - mountNode, + , + mountNode ); ``` diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index 3ddbc8e5..ae4019ce 100644 --- a/src/components/Ellipsis/index.js +++ b/src/components/Ellipsis/index.js @@ -171,7 +171,7 @@ export default class Ellipsis extends Component {
{ - tooltip ? ({children}) : children + tooltip ? ({children}) : children }
); } diff --git a/src/components/GlobalFooter/demo/basic.md b/src/components/GlobalFooter/demo/basic.md index 7662fa9f..9a06bade 100644 --- a/src/components/GlobalFooter/demo/basic.md +++ b/src/components/GlobalFooter/demo/basic.md @@ -15,7 +15,7 @@ const links = [{ title: '帮助', href: '', }, { - key: 'github' + key: 'github', title: , href: 'https://github.com/ant-design/ant-design-pro', blankTarget: true, -- GitLab