diff --git a/package.json b/package.json index 75d84303f8d3997323bee0c1b2990bb095271f65..a8614a908ee84c21b9f4e0dfc9acbe04000a421e 100644 --- a/package.json +++ b/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", diff --git a/src/components/Login/LoginItem.js b/src/components/Login/LoginItem.js index 762964c2fb041f002613e83c9a5e2ee010e647b5..a1d216a3e9fa31a70291c152c94194e8d4748c9d 100644 --- a/src/components/Login/LoginItem.js +++ b/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 = { diff --git a/src/global.js b/src/global.js new file mode 100644 index 0000000000000000000000000000000000000000..c3030bdd628038a33047a39943510259d14395a9 --- /dev/null +++ b/src/global.js @@ -0,0 +1 @@ +import '@babel/polyfill';