@regenbio/regenbio-components-react 1.3.9 → 1.3.11

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.
@@ -5,6 +5,14 @@ declare enum EventEnum {
5
5
  /**
6
6
  * 全局主题改变事件
7
7
  */
8
- THEME_MODE = "REGENBIO_EVENT_THEME_MODE"
8
+ THEME_MODE = "REGENBIO_EVENT_THEME_MODE",
9
+ /**
10
+ * 全局消息
11
+ */
12
+ MESSAGE = "REGENBIO_EVENT_MESSAGE",
13
+ /**
14
+ * 全局通知
15
+ */
16
+ NOTIFICATION = "REGENBIO_EVENT_NOTIFICATION"
9
17
  }
10
18
  export default EventEnum;
@@ -6,6 +6,10 @@ declare enum StorageEnum {
6
6
  * 全局主题
7
7
  */
8
8
  THEME_MODE = "REGENBIO_STORAGE_THEME_MODE",
9
+ /**
10
+ * 快捷方式
11
+ */
12
+ QUICK_METHOD = "REGENBIO_STORAGE_QUICK_METHOD",
9
13
  /**
10
14
  * 本地语言
11
15
  */
@@ -0,0 +1,28 @@
1
+ /**
2
+ * 基础实体类
3
+ */
4
+ export interface BaseDO extends BaseRelativeDO {
5
+ /** 逻辑删除(1:删除,0:未删除) */
6
+ deleted: 0 | 1;
7
+ }
8
+ /**
9
+ * 基础关系表实体类
10
+ */
11
+ export interface BaseRelativeDO {
12
+ /** 主键ID */
13
+ guid: string;
14
+ /** 状态(1:启用,0:停用) */
15
+ status: 0 | 1;
16
+ /** 乐观锁 */
17
+ version: number;
18
+ /** 创建人 */
19
+ creator: string;
20
+ /** 创建时间 */
21
+ createTime: Date;
22
+ /** 更新人 */
23
+ modifier: string;
24
+ /** 更新时间 */
25
+ modifyTime: Date;
26
+ /** 是否禁止修改(1:是,0:否) */
27
+ forbidModify: number;
28
+ }
@@ -40,3 +40,27 @@ export type ConstantListItem = {
40
40
  */
41
41
  status?: 'Success' | 'Error' | 'Processing' | 'Warning' | 'Default';
42
42
  };
43
+ /**
44
+ * 字典列表单项
45
+ */
46
+ export type DictListItem = {
47
+ /** 字典名称 */
48
+ label: string;
49
+ /** ID */
50
+ id?: number;
51
+ /** 值 */
52
+ value: any;
53
+ /** 类型 */
54
+ type: string;
55
+ /** 标签颜色 */
56
+ color?: string;
57
+ /** 排序 */
58
+ sort: number;
59
+ };
60
+ /**
61
+ * 分页参数
62
+ */
63
+ export type PageParams = {
64
+ current?: number;
65
+ pageSize?: number;
66
+ };
@@ -1,6 +1,22 @@
1
+ /**
2
+ * 设置快捷方式
3
+ *
4
+ * @param menuList 菜单列表
5
+ * @param clientId 客户端ID
6
+ */
7
+ export declare const setQuickMethod: (menuList: string[], clientId: string) => void;
8
+ /**
9
+ * 获取快捷方式
10
+ *
11
+ * @return 菜单列表
12
+ * @param clientId 客户端ID
13
+ */
14
+ export declare const getQuickMethod: (clientId: string) => string[] | undefined;
1
15
  declare const _default: {
2
16
  setThemeMode: (darkMode: "realDark" | "light") => void;
3
17
  getThemeMode: () => "realDark" | "light";
4
18
  getLocale: () => string;
19
+ setQuickMethod: (menuList: string[], clientId: string) => void;
20
+ getQuickMethod: (clientId: string) => string[] | undefined;
5
21
  };
6
22
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regenbio/regenbio-components-react",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },