component-shipinlv 1.1.5 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  productType: string;
4
- clientUniqueKey: string;
4
+ clientUniqueKeyList: string[];
5
5
  loginTypeList: Global.AuthClientLoginType[];
6
6
  domain?: string;
7
7
  env?: Global.Env;
@@ -26,7 +26,7 @@ var FromWhere = 'web';
26
26
  // 逐渐弃用 AuthClient ,使用 本函数
27
27
  var Auth = function Auth(_ref) {
28
28
  var productType = _ref.productType,
29
- clientUniqueKey = _ref.clientUniqueKey,
29
+ clientUniqueKeyList = _ref.clientUniqueKeyList,
30
30
  loginTypeList = _ref.loginTypeList,
31
31
  env = _ref.env,
32
32
  _ref$domain = _ref.domain,
@@ -322,7 +322,7 @@ var Auth = function Auth(_ref) {
322
322
  children: /*#__PURE__*/_jsx(AuthLoginReg, {
323
323
  env: env,
324
324
  productType: productType,
325
- clientUniqueKey: clientUniqueKey,
325
+ clientUniqueKeyList: clientUniqueKeyList,
326
326
  accountRegDisabled: !loginTypeList.includes('account-reg'),
327
327
  onSuccess: function onSuccess() {
328
328
  return onLoginSuccess();
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  productType: string;
4
- clientUniqueKey: string;
4
+ clientUniqueKeyList: string[];
5
5
  defaultLoginType: Global.AuthClientLoginType;
6
6
  wechatDisabled?: boolean;
7
7
  accountDisabled?: boolean;
@@ -4,7 +4,7 @@ import Tool from "../lib/Tool";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  var Auth = function Auth(_ref) {
6
6
  var productType = _ref.productType,
7
- clientUniqueKey = _ref.clientUniqueKey,
7
+ clientUniqueKeyList = _ref.clientUniqueKeyList,
8
8
  defaultLoginType = _ref.defaultLoginType,
9
9
  wechatDisabled = _ref.wechatDisabled,
10
10
  accountDisabled = _ref.accountDisabled,
@@ -18,7 +18,7 @@ var Auth = function Auth(_ref) {
18
18
  };
19
19
  return /*#__PURE__*/_jsx(LoginQr, {
20
20
  productType: productType,
21
- clientUniqueKey: clientUniqueKey,
21
+ clientUniqueKeyList: clientUniqueKeyList,
22
22
  defaultLoginType: defaultLoginType,
23
23
  wechatDisabled: wechatDisabled,
24
24
  accountDisabled: accountDisabled,
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
4
  productType: string;
5
- clientUniqueKey: string;
5
+ clientUniqueKeyList: string[];
6
6
  activeKeyDefault?: 'login' | 'reg' | string;
7
7
  accountRegDisabled?: boolean;
8
8
  onSuccess: () => void;
@@ -10,7 +10,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  var AuthLoginReg = function AuthLoginReg(_ref) {
11
11
  var env = _ref.env,
12
12
  productType = _ref.productType,
13
- clientUniqueKey = _ref.clientUniqueKey,
13
+ clientUniqueKeyList = _ref.clientUniqueKeyList,
14
14
  _ref$activeKeyDefault = _ref.activeKeyDefault,
15
15
  activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
16
16
  accountRegDisabled = _ref.accountRegDisabled,
@@ -48,7 +48,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
48
48
  children: /*#__PURE__*/_jsx(AuthLogin, {
49
49
  env: env,
50
50
  productType: productType,
51
- clientUniqueKey: clientUniqueKey,
51
+ clientUniqueKeyList: clientUniqueKeyList,
52
52
  onSuccess: function onSuccess() {
53
53
  return _onSuccess();
54
54
  }
@@ -58,7 +58,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
58
58
  children: /*#__PURE__*/_jsx(Reg, {
59
59
  env: env,
60
60
  productType: productType,
61
- clientUniqueKey: clientUniqueKey,
61
+ clientUniqueKeyList: clientUniqueKeyList,
62
62
  onSuccess: function onSuccess() {
63
63
  return _onSuccess();
64
64
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
4
  productType: string;
5
- clientUniqueKey: string;
5
+ clientUniqueKeyList: string[];
6
6
  onSuccess: () => void;
7
7
  }
8
8
  declare const AuthReg: React.FC<Props>;
@@ -46,7 +46,7 @@ var tailFormItemLayout = {
46
46
  var AuthReg = function AuthReg(_ref) {
47
47
  var env = _ref.env,
48
48
  productType = _ref.productType,
49
- clientUniqueKey = _ref.clientUniqueKey,
49
+ clientUniqueKeyList = _ref.clientUniqueKeyList,
50
50
  _ref$onSuccess = _ref.onSuccess,
51
51
  onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
52
52
  var _useState = useState(false),
@@ -60,7 +60,7 @@ var AuthReg = function AuthReg(_ref) {
60
60
  var unbind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
61
61
  return AuthController.login(_objectSpread(_objectSpread({
62
62
  productType: productType,
63
- clientUniqueKey: clientUniqueKey,
63
+ clientUniqueKeyList: clientUniqueKeyList,
64
64
  from: "web"
65
65
  }, data), {}, {
66
66
  unbind: unbind,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  productType: string;
4
- clientUniqueKey: string;
4
+ clientUniqueKeyList: string[];
5
5
  defaultLoginType: Global.AuthClientLoginType;
6
6
  wechatDisabled?: boolean;
7
7
  accountDisabled?: boolean;
@@ -24,7 +24,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
24
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
25
25
  var LoginQr = function LoginQr(_ref) {
26
26
  var productType = _ref.productType,
27
- clientUniqueKey = _ref.clientUniqueKey,
27
+ clientUniqueKeyList = _ref.clientUniqueKeyList,
28
28
  defaultLoginType = _ref.defaultLoginType,
29
29
  wechatDisabled = _ref.wechatDisabled,
30
30
  accountDisabled = _ref.accountDisabled,
@@ -324,7 +324,7 @@ var LoginQr = function LoginQr(_ref) {
324
324
  disabled: accountDisabled,
325
325
  children: /*#__PURE__*/_jsx(AuthLoginReg, {
326
326
  productType: productType,
327
- clientUniqueKey: clientUniqueKey,
327
+ clientUniqueKeyList: clientUniqueKeyList,
328
328
  accountRegDisabled: accountRegDisabled,
329
329
  onSuccess: function onSuccess() {
330
330
  return onLoginSuccess();
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface Props {
3
3
  env?: Global.Env;
4
4
  productType: string;
5
- clientUniqueKey: string;
5
+ clientUniqueKeyList: string[];
6
6
  onSuccess: () => void;
7
7
  }
8
8
  declare const Reg: React.FC<Props>;
@@ -43,7 +43,7 @@ var tailFormItemLayout = {
43
43
  var Reg = function Reg(_ref) {
44
44
  var env = _ref.env,
45
45
  productType = _ref.productType,
46
- clientUniqueKey = _ref.clientUniqueKey,
46
+ clientUniqueKeyList = _ref.clientUniqueKeyList,
47
47
  _ref$onSuccess = _ref.onSuccess,
48
48
  onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
49
49
  var _Form$useForm = Form.useForm(),
@@ -52,7 +52,7 @@ var Reg = function Reg(_ref) {
52
52
  var _useRequest = useRequest(function (data) {
53
53
  return AuthController.reg(_objectSpread(_objectSpread({
54
54
  productType: productType,
55
- clientUniqueKey: clientUniqueKey
55
+ clientUniqueKeyList: clientUniqueKeyList
56
56
  }, data), {}, {
57
57
  inviteUserId: Tool.getInviteUserId()
58
58
  }), {
@@ -82,15 +82,19 @@ var VideoPublishCreateTaskBase = function VideoPublishCreateTaskBase(_ref) {
82
82
  key: "account-".concat(items.id)
83
83
  });
84
84
  });
85
- var treeData = [{
86
- key: 'all',
87
- value: 'all',
88
- title: /*#__PURE__*/_jsx(Tag, {
89
- color: "blue",
90
- children: "\u5168\u90E8"
91
- }),
92
- children: Object.values(dict)
93
- }];
85
+ var list = Object.values(dict);
86
+ var treeData = [];
87
+ if (list.length > 0) {
88
+ treeData.push({
89
+ key: 'all',
90
+ value: 'all',
91
+ title: /*#__PURE__*/_jsx(Tag, {
92
+ color: "blue",
93
+ children: "\u5168\u90E8"
94
+ }),
95
+ children: list
96
+ });
97
+ }
94
98
  setTreeVideoAccountData(treeData);
95
99
  }
96
100
  }),
@@ -1,5 +1,5 @@
1
1
  // 业务服务器 api
2
- export var currentEnv = 'local';
2
+ export var currentEnv = 'prod';
3
3
  var ApiUrls = {
4
4
  local: {
5
5
  api: 'http://localhost:9999/',
@@ -3,6 +3,7 @@ export declare function login(body: {
3
3
  accountName: string;
4
4
  password: string;
5
5
  from: "web";
6
+ clientUniqueKeyList?: string[];
6
7
  inviteUserId: number;
7
8
  }, options?: ServicesApi.RequestOptions): Promise<UserAuth.LoginSuccessData>;
8
9
  export declare function weMiniLoginQr(body: {
@@ -18,4 +19,5 @@ export declare function reg(body: {
18
19
  accountName: string;
19
20
  password: string;
20
21
  inviteUserId: number;
22
+ clientUniqueKeyList?: string[];
21
23
  }, options?: ServicesApi.RequestOptions): Promise<UserAuth.LoginSuccessData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",