Преглед на файлове

fixed Authorized Demo & Ellipsis tooltip #615

nikogu преди 8 години
родител
ревизия
a17f543fd4
променени са 4 файла, в които са добавени 4 реда и са изтрити 14 реда
  1. 0 10
      package.json
  2. 2 2
      src/components/Authorized/demo/basic.md
  3. 1 1
      src/components/Ellipsis/index.js
  4. 1 1
      src/components/GlobalFooter/demo/basic.md

+ 0 - 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"

+ 2 - 2
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
 );
 ```

+ 1 - 1
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>);
     }

+ 1 - 1
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,