component-shipinlv 2.2.11 → 2.2.12

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.
@@ -7,6 +7,9 @@ interface Props {
7
7
  domain?: string;
8
8
  env?: Global.Env;
9
9
  roleType?: UserAuth.RoleType;
10
+ postData: {
11
+ [name: string]: any;
12
+ };
10
13
  onLoginSuccess: () => void;
11
14
  }
12
15
  declare const Auth: React.FC<Props>;
@@ -30,6 +30,7 @@ var Auth = function Auth(_ref) {
30
30
  clientUniqueKeyList = _ref.clientUniqueKeyList,
31
31
  loginTypeList = _ref.loginTypeList,
32
32
  env = _ref.env,
33
+ postData = _ref.postData,
33
34
  roleType = _ref.roleType,
34
35
  _ref$domain = _ref.domain,
35
36
  domain = _ref$domain === void 0 ? document.location.hostname : _ref$domain,
@@ -330,6 +331,7 @@ var Auth = function Auth(_ref) {
330
331
  env: env,
331
332
  apiUrl: apiUrl,
332
333
  roleType: roleType,
334
+ postData: postData,
333
335
  productType: productType,
334
336
  clientUniqueKeyList: clientUniqueKeyList,
335
337
  accountRegDisabled: !loginTypeList.includes('account-reg'),
@@ -7,6 +7,9 @@ interface Props {
7
7
  clientUniqueKeyList: string[];
8
8
  activeKeyDefault?: 'login' | 'reg' | string;
9
9
  accountRegDisabled?: boolean;
10
+ postData?: {
11
+ [name: string]: any;
12
+ };
10
13
  onSuccess: () => void;
11
14
  }
12
15
  declare const AuthLoginReg: React.FC<Props>;
@@ -12,6 +12,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
12
12
  productType = _ref.productType,
13
13
  apiUrl = _ref.apiUrl,
14
14
  roleType = _ref.roleType,
15
+ postData = _ref.postData,
15
16
  clientUniqueKeyList = _ref.clientUniqueKeyList,
16
17
  _ref$activeKeyDefault = _ref.activeKeyDefault,
17
18
  activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
@@ -51,6 +52,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
51
52
  roleType: roleType,
52
53
  env: env,
53
54
  apiUrl: apiUrl,
55
+ postData: postData,
54
56
  productType: productType,
55
57
  clientUniqueKeyList: clientUniqueKeyList,
56
58
  onSuccess: function onSuccess() {
@@ -63,6 +65,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
63
65
  env: env,
64
66
  roleType: roleType,
65
67
  productType: productType,
68
+ postData: postData,
66
69
  clientUniqueKeyList: clientUniqueKeyList,
67
70
  onSuccess: function onSuccess() {
68
71
  return _onSuccess();
@@ -2,6 +2,9 @@ import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
4
  apiUrl?: string;
5
+ postData?: {
6
+ [name: string]: any;
7
+ };
5
8
  roleType?: UserAuth.RoleType;
6
9
  productType: string;
7
10
  clientUniqueKeyList: string[];
@@ -48,6 +48,7 @@ var AuthReg = function AuthReg(_ref) {
48
48
  apiUrl = _ref.apiUrl,
49
49
  roleType = _ref.roleType,
50
50
  productType = _ref.productType,
51
+ postData = _ref.postData,
51
52
  clientUniqueKeyList = _ref.clientUniqueKeyList,
52
53
  _ref$onSuccess = _ref.onSuccess,
53
54
  onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
@@ -60,12 +61,13 @@ var AuthReg = function AuthReg(_ref) {
60
61
  form = _Form$useForm2[0];
61
62
  var _useRequest = useRequest(function (data) {
62
63
  var unbind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
63
- return AuthController.login(_objectSpread(_objectSpread({
64
+ return AuthController.login(_objectSpread(_objectSpread(_objectSpread({
64
65
  productType: productType,
65
66
  clientUniqueKeyList: clientUniqueKeyList,
66
67
  from: "web"
67
68
  }, data), {}, {
68
- unbind: unbind,
69
+ unbind: unbind
70
+ }, postData), {}, {
69
71
  inviteUserId: Tool.getInviteUserId()
70
72
  }), {
71
73
  env: env,
@@ -3,6 +3,9 @@ interface Props {
3
3
  env?: Global.Env;
4
4
  roleType?: UserAuth.RoleType;
5
5
  productType: string;
6
+ postData?: {
7
+ [name: string]: any;
8
+ };
6
9
  clientUniqueKeyList: string[];
7
10
  onSuccess: () => void;
8
11
  }
@@ -44,6 +44,7 @@ var Reg = function Reg(_ref) {
44
44
  var env = _ref.env,
45
45
  roleType = _ref.roleType,
46
46
  productType = _ref.productType,
47
+ postData = _ref.postData,
47
48
  clientUniqueKeyList = _ref.clientUniqueKeyList,
48
49
  _ref$onSuccess = _ref.onSuccess,
49
50
  onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
@@ -51,10 +52,10 @@ var Reg = function Reg(_ref) {
51
52
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
52
53
  form = _Form$useForm2[0];
53
54
  var _useRequest = useRequest(function (data) {
54
- return AuthController.reg(_objectSpread(_objectSpread({
55
+ return AuthController.reg(_objectSpread(_objectSpread(_objectSpread({
55
56
  productType: productType,
56
57
  clientUniqueKeyList: clientUniqueKeyList
57
- }, data), {}, {
58
+ }, data), postData), {}, {
58
59
  inviteUserId: Tool.getInviteUserId()
59
60
  }), {
60
61
  env: env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.2.11",
3
+ "version": "2.2.12",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",