easy3wmui 0.0.33 → 0.0.35

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
@@ -275,9 +275,23 @@
275
275
  border-top: var(--border-top);
276
276
  padding-top: 12px;
277
277
  }
278
+ #Easy3wMLogin .adm-input-element {
279
+ height: 40px;
280
+ border-radius: 4px;
281
+ padding: 0 12px;
282
+ }
283
+ #Easy3wMLogin .adm-list-item-content-extra {
284
+ padding-left: 0;
285
+ width: 56px;
286
+ }
278
287
  #Easy3wMLogin .errorMsgReal {
279
288
  background: #fff1f0;
280
289
  border: 1px solid #ffa39e;
281
290
  padding-top: 3px;
282
291
  padding-bottom: 3px;
283
292
  }
293
+ #Easy3wMLogin .adm-button {
294
+ height: 40px;
295
+ border-left: 0;
296
+ --adm-button-border-color: #d9d9d9;
297
+ }
package/assets/mLogin.css CHANGED
@@ -1,6 +1,20 @@
1
+ #Easy3wMLogin .adm-input-element {
2
+ height: 40px;
3
+ border-radius: 4px;
4
+ padding: 0 12px;
5
+ }
6
+ #Easy3wMLogin .adm-list-item-content-extra {
7
+ padding-left: 0;
8
+ width: 56px;
9
+ }
1
10
  #Easy3wMLogin .errorMsgReal {
2
11
  background: #fff1f0;
3
12
  border: 1px solid #ffa39e;
4
13
  padding-top: 3px;
5
14
  padding-bottom: 3px;
6
15
  }
16
+ #Easy3wMLogin .adm-button {
17
+ height: 40px;
18
+ border-left: 0;
19
+ --adm-button-border-color: #d9d9d9;
20
+ }
@@ -38,12 +38,12 @@ var _antdMobile = require('antd-mobile');
38
38
 
39
39
  var _antdMobileIcons = require('antd-mobile-icons');
40
40
 
41
- var _Easy3wMCaptcha = require('../Easy3wMCaptcha');
42
-
43
- var _Easy3wMCaptcha2 = _interopRequireDefault(_Easy3wMCaptcha);
41
+ var _easy3wmui = require('easy3wmui');
44
42
 
45
43
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
46
44
 
45
+ // import styles from './index.less';
46
+
47
47
  var Tab = _tabs2['default'].Tab;
48
48
 
49
49
  var FormItem = _form2['default'].Item;
@@ -86,9 +86,11 @@ var Easy3wMLogin = function (_Component) {
86
86
  });
87
87
  };
88
88
 
89
- _this.touchSetPassword = function (visible) {
89
+ _this.touchSetPassword = function () {
90
+ var visible = _this.state.visible;
91
+
90
92
  _this.setState({
91
- visible: visible // 密码显示隐藏
93
+ visible: !visible // 密码显示隐藏
92
94
  });
93
95
  };
94
96
 
@@ -112,8 +114,6 @@ var Easy3wMLogin = function (_Component) {
112
114
 
113
115
 
114
116
  Easy3wMLogin.prototype.render = function render() {
115
- var _this2 = this;
116
-
117
117
  var _props = this.props,
118
118
  form = _props.form,
119
119
  status = _props.status,
@@ -169,13 +169,13 @@ var Easy3wMLogin = function (_Component) {
169
169
  name: 'password',
170
170
  required: true,
171
171
  extra: _react2['default'].createElement(
172
- 'div',
173
- null,
174
- visible ? _react2['default'].createElement(_antdMobileIcons.EyeOutline, { onClick: function onClick() {
175
- return _this2.touchSetPassword(false);
176
- } }) : _react2['default'].createElement(_antdMobileIcons.EyeInvisibleOutline, { onClick: function onClick() {
177
- return _this2.touchSetPassword(true);
178
- } })
172
+ _button2['default'],
173
+ {
174
+ size: 'small',
175
+ onClick: this.touchSetPassword,
176
+ htmlType: 'button'
177
+ },
178
+ visible ? _react2['default'].createElement(_antdMobileIcons.EyeOutline, null) : _react2['default'].createElement(_antdMobileIcons.EyeInvisibleOutline, null)
179
179
  )
180
180
  },
181
181
  _react2['default'].createElement(_input2['default'], { placeholder: '\u8BF7\u8F93\u5165\u5BC6\u7801', type: visible ? 'text' : 'password' })
@@ -185,7 +185,7 @@ var Easy3wMLogin = function (_Component) {
185
185
  {
186
186
  name: 'piccaptcha',
187
187
  rules: [{ required: true, message: '请输入验证码 不区分大小写' }, { validator: this.checkCaptcha }],
188
- extra: _react2['default'].createElement(_Easy3wMCaptcha2['default'], { touchCaptchaResult: this.touchCaptchaResult })
188
+ extra: _react2['default'].createElement(_easy3wmui.Easy3wMCaptcha, { touchCaptchaResult: this.touchCaptchaResult })
189
189
  },
190
190
  _react2['default'].createElement(_input2['default'], { placeholder: '\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801 \u4E0D\u533A\u5206\u5927\u5C0F\u5199' })
191
191
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wmui",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "easy3wmui components for react",
5
5
  "keywords": [
6
6
  "react",