Преглед изворни кода

fix buttonText is null in LoginItem

陈帅 пре 7 година
родитељ
комит
02e811083b
3 измењених фајлова са 6 додато и 0 уклоњено
  1. 1 0
      package.json
  2. 4 0
      src/components/Login/LoginItem.js
  3. 1 0
      src/global.js

+ 1 - 0
package.json

@@ -24,6 +24,7 @@
   },
   "dependencies": {
     "@antv/data-set": "^0.9.0",
+    "@babel/polyfill": "^7.0.0",
     "@babel/runtime": "^7.0.0",
     "antd": "^3.9.0",
     "bizcharts": "^3.1.10",

+ 4 - 0
src/components/Login/LoginItem.js

@@ -8,6 +8,10 @@ import LoginContext from './loginContext';
 const FormItem = Form.Item;
 
 class WarpFormItem extends Component {
+  static defaultProps = {
+    buttonText: '获取验证码',
+  };
+
   constructor(props) {
     super(props);
     this.state = {

+ 1 - 0
src/global.js

@@ -0,0 +1 @@
+import '@babel/polyfill';