component-shipinlv 0.0.1 → 0.0.3

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.
@@ -3,6 +3,7 @@ interface Props {
3
3
  defaultLoginType: Global.AuthClientLoginType;
4
4
  wechatDisabled?: boolean;
5
5
  accountDisabled?: boolean;
6
+ accountHidden?: boolean;
6
7
  accountRegDisabled?: boolean;
7
8
  onSuccess: () => void;
8
9
  }
@@ -6,6 +6,7 @@ var Auth = function Auth(_ref) {
6
6
  var defaultLoginType = _ref.defaultLoginType,
7
7
  wechatDisabled = _ref.wechatDisabled,
8
8
  accountDisabled = _ref.accountDisabled,
9
+ accountHidden = _ref.accountHidden,
9
10
  accountRegDisabled = _ref.accountRegDisabled,
10
11
  _ref$onSuccess = _ref.onSuccess,
11
12
  onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
@@ -17,6 +18,7 @@ var Auth = function Auth(_ref) {
17
18
  defaultLoginType: defaultLoginType,
18
19
  wechatDisabled: wechatDisabled,
19
20
  accountDisabled: accountDisabled,
21
+ accountHidden: accountHidden,
20
22
  accountRegDisabled: accountRegDisabled,
21
23
  onLoginSuccess: onLoginSuccess
22
24
  });
@@ -141,7 +141,7 @@ var LoginQr = function LoginQr(_ref) {
141
141
  env: getApiEnv()
142
142
  });
143
143
  }, {
144
- manual: true,
144
+ manual: defaultLoginType !== 'wechat',
145
145
  onSuccess: function onSuccess(result) {
146
146
  setWeQrUrl(Tool.makeQrUrl(result.url, '#0bc160'));
147
147
  onRunCheck();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",