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