@etsoo/materialui 1.2.81 → 1.2.83

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,7 +7,7 @@ export interface IServiceUser extends IUser {
7
7
  * Global user id
8
8
  * 全局用户编号
9
9
  */
10
- readonly uid?: string;
10
+ readonly uid: string;
11
11
  /**
12
12
  * Organization name
13
13
  */
@@ -4,10 +4,10 @@ import { IActionResult, IUser } from "@etsoo/appscript";
4
4
  */
5
5
  export interface ISmartERPUser extends IUser {
6
6
  /**
7
- * Global user id
8
- * 全局用户编号
7
+ * Global user GUID
8
+ * 全局用户GUID编号
9
9
  */
10
- readonly uid?: string;
10
+ readonly uid: string;
11
11
  /**
12
12
  * Service refresh token
13
13
  * 服务刷新令牌
@@ -22,7 +22,9 @@ export function OperationMessageContainer(props) {
22
22
  const [types, callback, id] = handler;
23
23
  if (id == null || id === message.id) {
24
24
  // Check types & isSelf
25
- if (isSelf || !types.includes(message.operationType))
25
+ if (isSelf ||
26
+ !types.includes(message.operationType) ||
27
+ !refs.current.mounted)
26
28
  return;
27
29
  resetSeed();
28
30
  refs.current.seed = window.setTimeout(callback, timeout);
@@ -18,4 +18,9 @@ export type OperationMessageDto = {
18
18
  * 目标对象编号
19
19
  */
20
20
  id?: number;
21
+ /**
22
+ * Related fields to pass more data
23
+ * 相关字段,便于传递更多数据
24
+ */
25
+ fields?: unknown[];
21
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.81",
3
+ "version": "1.2.83",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -8,7 +8,7 @@ export interface IServiceUser extends IUser {
8
8
  * Global user id
9
9
  * 全局用户编号
10
10
  */
11
- readonly uid?: string;
11
+ readonly uid: string;
12
12
 
13
13
  /**
14
14
  * Organization name
@@ -5,10 +5,10 @@ import { IActionResult, IUser } from "@etsoo/appscript";
5
5
  */
6
6
  export interface ISmartERPUser extends IUser {
7
7
  /**
8
- * Global user id
9
- * 全局用户编号
8
+ * Global user GUID
9
+ * 全局用户GUID编号
10
10
  */
11
- readonly uid?: string;
11
+ readonly uid: string;
12
12
 
13
13
  /**
14
14
  * Service refresh token
@@ -51,7 +51,12 @@ export function OperationMessageContainer(
51
51
  const [types, callback, id] = handler;
52
52
  if (id == null || id === message.id) {
53
53
  // Check types & isSelf
54
- if (isSelf || !types.includes(message.operationType)) return;
54
+ if (
55
+ isSelf ||
56
+ !types.includes(message.operationType) ||
57
+ !refs.current.mounted
58
+ )
59
+ return;
55
60
 
56
61
  resetSeed();
57
62
 
@@ -20,4 +20,10 @@ export type OperationMessageDto = {
20
20
  * 目标对象编号
21
21
  */
22
22
  id?: number;
23
+
24
+ /**
25
+ * Related fields to pass more data
26
+ * 相关字段,便于传递更多数据
27
+ */
28
+ fields?: unknown[];
23
29
  };