easy3wmui 0.0.41 → 0.0.42-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/index.css CHANGED
@@ -72,6 +72,14 @@
72
72
  border-top: 0;
73
73
  border-bottom: 0;
74
74
  }
75
+ :root:root .adm-form .adm-list-item-content-extra {
76
+ padding: 12px 0;
77
+ }
78
+ :root:root .adm-form .adm-form-item.adm-form-item-horizontal .adm-list-item-content-extra {
79
+ -ms-flex-item-align: auto;
80
+ -ms-grid-row-align: auto;
81
+ align-self: auto;
82
+ }
75
83
  :root:root .adm-form .adm-form-footer {
76
84
  padding: 12px;
77
85
  }
@@ -75,15 +75,14 @@ var Easy3wMLogin = function (_Component) {
75
75
  });
76
76
  };
77
77
 
78
- _this.submitAccountLogin = function (e) {
79
- e.preventDefault();
78
+ _this.submitAccountLogin = function (values) {
80
79
  var handleOk = _this.props.handleOk;
80
+ // this.props.form.validateFields().then((values) => {
81
81
 
82
- _this.props.form.validateFields().then(function (values) {
83
- if (handleOk && typeof handleOk === 'function') {
84
- handleOk(values);
85
- }
86
- });
82
+ if (handleOk && typeof handleOk === 'function') {
83
+ handleOk(values);
84
+ }
85
+ // });
87
86
  };
88
87
 
89
88
  _this.touchSetPassword = function () {
@@ -135,6 +134,7 @@ var Easy3wMLogin = function (_Component) {
135
134
  _form2['default'],
136
135
  {
137
136
  // ref={this.formRef}
137
+ onFinish: this.submitAccountLogin,
138
138
  form: form,
139
139
  layout: 'horizontal' // 字段与
140
140
  , name: 'login',
@@ -144,7 +144,7 @@ var Easy3wMLogin = function (_Component) {
144
144
  null,
145
145
  _react2['default'].createElement(
146
146
  _button2['default'],
147
- { color: 'primary', fill: 'solid', block: true, onClick: this.submitAccountLogin },
147
+ { color: 'primary', fill: 'solid', block: true, type: 'primary', htmlType: 'submit' },
148
148
  '\u767B\u5F55'
149
149
  )
150
150
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wmui",
3
- "version": "0.0.41",
3
+ "version": "0.0.42-beta2",
4
4
  "description": "easy3wmui components for react",
5
5
  "keywords": [
6
6
  "react",