@ibiz-template/vue3-components 0.7.41-alpha.164 → 0.7.41-alpha.165

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.
@@ -30,6 +30,81 @@ class AIChatUtil {
30
30
  const chatInstance = module.chat || module.default.chat;
31
31
  return chatInstance;
32
32
  }
33
+ /**
34
+ * @description 获取AI聊天工具(防止全屏模式下消息弹框、确认弹框、通知弹框被隐藏,添加appendTo参数)
35
+ * @returns {*} {IData}
36
+ * @memberof AIChatUtil
37
+ */
38
+ getAIChatUtils() {
39
+ return {
40
+ message: {
41
+ info: (msg, duration, closable, options) => ibiz.message.info(msg, duration, closable, {
42
+ appendTo: document.fullscreenElement,
43
+ ...options
44
+ }),
45
+ success: (msg, duration, closable, options) => ibiz.message.success(msg, duration, closable, {
46
+ appendTo: document.fullscreenElement,
47
+ ...options
48
+ }),
49
+ warning: (msg, duration, closable, options) => ibiz.message.warning(msg, duration, closable, {
50
+ appendTo: document.fullscreenElement,
51
+ ...options
52
+ }),
53
+ error: (msg, duration, closable, options) => ibiz.message.error(msg, duration, closable, {
54
+ appendTo: document.fullscreenElement,
55
+ ...options
56
+ })
57
+ },
58
+ confirm: {
59
+ info: (args) => ibiz.confirm.info({
60
+ options: {
61
+ appendTo: document.fullscreenElement
62
+ },
63
+ ...args
64
+ }),
65
+ success: (args) => ibiz.confirm.success({
66
+ options: {
67
+ appendTo: document.fullscreenElement
68
+ },
69
+ ...args
70
+ }),
71
+ warning: (args) => ibiz.confirm.warning({
72
+ options: {
73
+ appendTo: document.fullscreenElement
74
+ },
75
+ ...args
76
+ }),
77
+ error: (args) => ibiz.confirm.error({
78
+ options: {
79
+ appendTo: document.fullscreenElement
80
+ },
81
+ ...args
82
+ })
83
+ },
84
+ notification: {
85
+ default: (args) => ibiz.notification.default({
86
+ appendTo: document.fullscreenElement || "",
87
+ ...args
88
+ }),
89
+ info: (args) => ibiz.notification.info({
90
+ appendTo: document.fullscreenElement || "",
91
+ ...args
92
+ }),
93
+ success: (args) => ibiz.notification.success({
94
+ appendTo: document.fullscreenElement || "",
95
+ ...args
96
+ }),
97
+ warning: (args) => ibiz.notification.warning({
98
+ appendTo: document.fullscreenElement || "",
99
+ ...args
100
+ }),
101
+ error: (args) => ibiz.notification.error({
102
+ appendTo: document.fullscreenElement || "",
103
+ ...args
104
+ })
105
+ }
106
+ };
107
+ }
33
108
  /**
34
109
  * 获取编辑器扩展AI聊天参数
35
110
  * @param editorParams
@@ -111,7 +186,10 @@ class AIChatUtil {
111
186
  topicOptions.beforeDelete = async (title, description) => {
112
187
  const result = await ibiz.confirm.warning({
113
188
  title,
114
- desc: description
189
+ desc: description,
190
+ options: {
191
+ appendTo: document.fullscreenElement
192
+ }
115
193
  });
116
194
  return result;
117
195
  };
@@ -828,11 +906,7 @@ class AIChatUtil {
828
906
  );
829
907
  }
830
908
  };
831
- chatOptions.utils = {
832
- message: ibiz.message,
833
- notification: ibiz.notification,
834
- confirm: ibiz.confirm
835
- };
909
+ chatOptions.utils = this.getAIChatUtils();
836
910
  return { containerOptions, topicOptions, chatOptions };
837
911
  }
838
912
  /**
@@ -936,7 +1010,10 @@ class AIChatUtil {
936
1010
  topicOptions.beforeDelete = async (title, description) => {
937
1011
  const result = await ibiz.confirm.warning({
938
1012
  title,
939
- desc: description
1013
+ desc: description,
1014
+ options: {
1015
+ appendTo: document.fullscreenElement
1016
+ }
940
1017
  });
941
1018
  return result;
942
1019
  };
@@ -1684,11 +1761,7 @@ class AIChatUtil {
1684
1761
  );
1685
1762
  }
1686
1763
  };
1687
- chatOptions.utils = {
1688
- message: ibiz.message,
1689
- notification: ibiz.notification,
1690
- confirm: ibiz.confirm
1691
- };
1764
+ chatOptions.utils = this.getAIChatUtils();
1692
1765
  return { containerOptions, topicOptions, chatOptions };
1693
1766
  }
1694
1767
  /**
@@ -2106,6 +2179,15 @@ class AIChatUtil {
2106
2179
  );
2107
2180
  return response.data;
2108
2181
  };
2182
+ fileSystemOptions.unZipFile = async (ctx, param, other) => {
2183
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
2184
+ const response = await deService.aiChatProject(
2185
+ ctx,
2186
+ { srfactag: param.srfactag },
2187
+ { action: "UNZIP", ...other }
2188
+ );
2189
+ return response.data;
2190
+ };
2109
2191
  fileSystemOptions.readFile = async (ctx, param, other) => {
2110
2192
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
2111
2193
  const response = await deService.aiChatProject(
@@ -13,32 +13,36 @@ class MessageUtil {
13
13
  constructor() {
14
14
  __publicField(this, "ns", useNamespace("message"));
15
15
  }
16
- info(msg, duration, closable) {
16
+ info(msg, duration, closable, options = {}) {
17
17
  ElMessage.info({
18
18
  message: msg,
19
19
  duration: duration ? duration * 1e3 : duration,
20
- showClose: closable
20
+ showClose: closable,
21
+ ...options
21
22
  });
22
23
  }
23
- success(msg, duration, closable) {
24
+ success(msg, duration, closable, options = {}) {
24
25
  ElMessage.success({
25
26
  message: msg,
26
27
  duration: duration ? duration * 1e3 : duration,
27
- showClose: closable
28
+ showClose: closable,
29
+ ...options
28
30
  });
29
31
  }
30
- warning(msg, duration, closable) {
32
+ warning(msg, duration, closable, options = {}) {
31
33
  ElMessage.warning({
32
34
  message: msg,
33
35
  duration: duration ? duration * 1e3 : duration,
34
- showClose: closable
36
+ showClose: closable,
37
+ ...options
35
38
  });
36
39
  }
37
- error(msg, duration, closable) {
40
+ error(msg, duration, closable, options = {}) {
38
41
  ElMessage.error({
39
42
  message: msg,
40
43
  duration: duration ? duration * 1e3 : duration,
41
- showClose: closable
44
+ showClose: closable,
45
+ ...options
42
46
  });
43
47
  }
44
48
  /**
@@ -70,6 +70,7 @@ class NotificationUtil {
70
70
  position: params.position || "top-right",
71
71
  duration,
72
72
  customClass: params.class,
73
+ appendTo: params.appendTo,
73
74
  onClick: params.onClick
74
75
  });
75
76
  }
@@ -32,6 +32,81 @@ class AIChatUtil {
32
32
  const chatInstance = module.chat || module.default.chat;
33
33
  return chatInstance;
34
34
  }
35
+ /**
36
+ * @description 获取AI聊天工具(防止全屏模式下消息弹框、确认弹框、通知弹框被隐藏,添加appendTo参数)
37
+ * @returns {*} {IData}
38
+ * @memberof AIChatUtil
39
+ */
40
+ getAIChatUtils() {
41
+ return {
42
+ message: {
43
+ info: (msg, duration, closable, options) => ibiz.message.info(msg, duration, closable, {
44
+ appendTo: document.fullscreenElement,
45
+ ...options
46
+ }),
47
+ success: (msg, duration, closable, options) => ibiz.message.success(msg, duration, closable, {
48
+ appendTo: document.fullscreenElement,
49
+ ...options
50
+ }),
51
+ warning: (msg, duration, closable, options) => ibiz.message.warning(msg, duration, closable, {
52
+ appendTo: document.fullscreenElement,
53
+ ...options
54
+ }),
55
+ error: (msg, duration, closable, options) => ibiz.message.error(msg, duration, closable, {
56
+ appendTo: document.fullscreenElement,
57
+ ...options
58
+ })
59
+ },
60
+ confirm: {
61
+ info: (args) => ibiz.confirm.info({
62
+ options: {
63
+ appendTo: document.fullscreenElement
64
+ },
65
+ ...args
66
+ }),
67
+ success: (args) => ibiz.confirm.success({
68
+ options: {
69
+ appendTo: document.fullscreenElement
70
+ },
71
+ ...args
72
+ }),
73
+ warning: (args) => ibiz.confirm.warning({
74
+ options: {
75
+ appendTo: document.fullscreenElement
76
+ },
77
+ ...args
78
+ }),
79
+ error: (args) => ibiz.confirm.error({
80
+ options: {
81
+ appendTo: document.fullscreenElement
82
+ },
83
+ ...args
84
+ })
85
+ },
86
+ notification: {
87
+ default: (args) => ibiz.notification.default({
88
+ appendTo: document.fullscreenElement || "",
89
+ ...args
90
+ }),
91
+ info: (args) => ibiz.notification.info({
92
+ appendTo: document.fullscreenElement || "",
93
+ ...args
94
+ }),
95
+ success: (args) => ibiz.notification.success({
96
+ appendTo: document.fullscreenElement || "",
97
+ ...args
98
+ }),
99
+ warning: (args) => ibiz.notification.warning({
100
+ appendTo: document.fullscreenElement || "",
101
+ ...args
102
+ }),
103
+ error: (args) => ibiz.notification.error({
104
+ appendTo: document.fullscreenElement || "",
105
+ ...args
106
+ })
107
+ }
108
+ };
109
+ }
35
110
  /**
36
111
  * 获取编辑器扩展AI聊天参数
37
112
  * @param editorParams
@@ -113,7 +188,10 @@ class AIChatUtil {
113
188
  topicOptions.beforeDelete = async (title, description) => {
114
189
  const result = await ibiz.confirm.warning({
115
190
  title,
116
- desc: description
191
+ desc: description,
192
+ options: {
193
+ appendTo: document.fullscreenElement
194
+ }
117
195
  });
118
196
  return result;
119
197
  };
@@ -830,11 +908,7 @@ class AIChatUtil {
830
908
  );
831
909
  }
832
910
  };
833
- chatOptions.utils = {
834
- message: ibiz.message,
835
- notification: ibiz.notification,
836
- confirm: ibiz.confirm
837
- };
911
+ chatOptions.utils = this.getAIChatUtils();
838
912
  return { containerOptions, topicOptions, chatOptions };
839
913
  }
840
914
  /**
@@ -938,7 +1012,10 @@ class AIChatUtil {
938
1012
  topicOptions.beforeDelete = async (title, description) => {
939
1013
  const result = await ibiz.confirm.warning({
940
1014
  title,
941
- desc: description
1015
+ desc: description,
1016
+ options: {
1017
+ appendTo: document.fullscreenElement
1018
+ }
942
1019
  });
943
1020
  return result;
944
1021
  };
@@ -1686,11 +1763,7 @@ class AIChatUtil {
1686
1763
  );
1687
1764
  }
1688
1765
  };
1689
- chatOptions.utils = {
1690
- message: ibiz.message,
1691
- notification: ibiz.notification,
1692
- confirm: ibiz.confirm
1693
- };
1766
+ chatOptions.utils = this.getAIChatUtils();
1694
1767
  return { containerOptions, topicOptions, chatOptions };
1695
1768
  }
1696
1769
  /**
@@ -2108,6 +2181,15 @@ class AIChatUtil {
2108
2181
  );
2109
2182
  return response.data;
2110
2183
  };
2184
+ fileSystemOptions.unZipFile = async (ctx, param, other) => {
2185
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
2186
+ const response = await deService.aiChatProject(
2187
+ ctx,
2188
+ { srfactag: param.srfactag },
2189
+ { action: "UNZIP", ...other }
2190
+ );
2191
+ return response.data;
2192
+ };
2111
2193
  fileSystemOptions.readFile = async (ctx, param, other) => {
2112
2194
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
2113
2195
  const response = await deService.aiChatProject(
@@ -15,32 +15,36 @@ class MessageUtil {
15
15
  constructor() {
16
16
  __publicField(this, "ns", vue3Util.useNamespace("message"));
17
17
  }
18
- info(msg, duration, closable) {
18
+ info(msg, duration, closable, options = {}) {
19
19
  ElementPlus.ElMessage.info({
20
20
  message: msg,
21
21
  duration: duration ? duration * 1e3 : duration,
22
- showClose: closable
22
+ showClose: closable,
23
+ ...options
23
24
  });
24
25
  }
25
- success(msg, duration, closable) {
26
+ success(msg, duration, closable, options = {}) {
26
27
  ElementPlus.ElMessage.success({
27
28
  message: msg,
28
29
  duration: duration ? duration * 1e3 : duration,
29
- showClose: closable
30
+ showClose: closable,
31
+ ...options
30
32
  });
31
33
  }
32
- warning(msg, duration, closable) {
34
+ warning(msg, duration, closable, options = {}) {
33
35
  ElementPlus.ElMessage.warning({
34
36
  message: msg,
35
37
  duration: duration ? duration * 1e3 : duration,
36
- showClose: closable
38
+ showClose: closable,
39
+ ...options
37
40
  });
38
41
  }
39
- error(msg, duration, closable) {
42
+ error(msg, duration, closable, options = {}) {
40
43
  ElementPlus.ElMessage.error({
41
44
  message: msg,
42
45
  duration: duration ? duration * 1e3 : duration,
43
- showClose: closable
46
+ showClose: closable,
47
+ ...options
44
48
  });
45
49
  }
46
50
  /**
@@ -72,6 +72,7 @@ class NotificationUtil {
72
72
  position: params.position || "top-right",
73
73
  duration,
74
74
  customClass: params.class,
75
+ appendTo: params.appendTo,
75
76
  onClick: params.onClick
76
77
  });
77
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.164",
3
+ "version": "0.7.41-alpha.165",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -31,16 +31,16 @@
31
31
  "dependencies": {
32
32
  "@amap/amap-jsapi-loader": "^1.0.1",
33
33
  "@floating-ui/dom": "^1.5.3",
34
- "@ibiz-template-plugin/ai-chat": "^0.0.131",
34
+ "@ibiz-template-plugin/ai-chat": "^0.0.132",
35
35
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
36
36
  "@ibiz-template-plugin/bi-report": "0.0.32",
37
37
  "@ibiz-template-plugin/data-view": "0.0.8",
38
38
  "@ibiz-template/core": "0.7.41-alpha.152",
39
39
  "@ibiz-template/devtool": "0.0.18",
40
- "@ibiz-template/model-helper": "0.7.41-alpha.155",
41
- "@ibiz-template/runtime": "0.7.41-alpha.155",
40
+ "@ibiz-template/model-helper": "0.7.41-alpha.156",
41
+ "@ibiz-template/runtime": "0.7.41-alpha.156",
42
42
  "@ibiz-template/theme": "0.7.39",
43
- "@ibiz-template/vue3-util": "0.7.41-alpha.155",
43
+ "@ibiz-template/vue3-util": "0.7.41-alpha.156",
44
44
  "@ibiz-template/web-theme": "3.16.0",
45
45
  "@ibiz/model-core": "^0.1.89",
46
46
  "@imengyu/vue3-context-menu": "^1.3.5",
@@ -28,6 +28,8 @@ import {
28
28
  IControlController,
29
29
  OpenAppViewCommand,
30
30
  CodeListItem,
31
+ ConfirmParams,
32
+ NotificationParams,
31
33
  } from '@ibiz-template/runtime';
32
34
  import {
33
35
  StringUtil,
@@ -63,6 +65,115 @@ export class AIChatUtil implements IApiAIChatUtil {
63
65
  return chatInstance;
64
66
  }
65
67
 
68
+ /**
69
+ * @description 获取AI聊天工具(防止全屏模式下消息弹框、确认弹框、通知弹框被隐藏,添加appendTo参数)
70
+ * @returns {*} {IData}
71
+ * @memberof AIChatUtil
72
+ */
73
+ getAIChatUtils(): IData {
74
+ return {
75
+ message: {
76
+ info: (
77
+ msg: string,
78
+ duration?: number | undefined,
79
+ closable?: boolean | undefined,
80
+ options?: object,
81
+ ) =>
82
+ ibiz.message.info(msg, duration, closable, {
83
+ appendTo: document.fullscreenElement,
84
+ ...options,
85
+ }),
86
+ success: (
87
+ msg: string,
88
+ duration?: number | undefined,
89
+ closable?: boolean | undefined,
90
+ options?: object,
91
+ ) =>
92
+ ibiz.message.success(msg, duration, closable, {
93
+ appendTo: document.fullscreenElement,
94
+ ...options,
95
+ }),
96
+ warning: (
97
+ msg: string,
98
+ duration?: number | undefined,
99
+ closable?: boolean | undefined,
100
+ options?: object,
101
+ ) =>
102
+ ibiz.message.warning(msg, duration, closable, {
103
+ appendTo: document.fullscreenElement,
104
+ ...options,
105
+ }),
106
+ error: (
107
+ msg: string,
108
+ duration?: number | undefined,
109
+ closable?: boolean | undefined,
110
+ options?: object,
111
+ ) =>
112
+ ibiz.message.error(msg, duration, closable, {
113
+ appendTo: document.fullscreenElement,
114
+ ...options,
115
+ }),
116
+ },
117
+ confirm: {
118
+ info: (args: ConfirmParams) =>
119
+ ibiz.confirm.info({
120
+ options: {
121
+ appendTo: document.fullscreenElement,
122
+ },
123
+ ...args,
124
+ }),
125
+ success: (args: ConfirmParams) =>
126
+ ibiz.confirm.success({
127
+ options: {
128
+ appendTo: document.fullscreenElement,
129
+ },
130
+ ...args,
131
+ }),
132
+ warning: (args: ConfirmParams) =>
133
+ ibiz.confirm.warning({
134
+ options: {
135
+ appendTo: document.fullscreenElement,
136
+ },
137
+ ...args,
138
+ }),
139
+ error: (args: ConfirmParams) =>
140
+ ibiz.confirm.error({
141
+ options: {
142
+ appendTo: document.fullscreenElement,
143
+ },
144
+ ...args,
145
+ }),
146
+ },
147
+ notification: {
148
+ default: (args: NotificationParams) =>
149
+ ibiz.notification.default({
150
+ appendTo: (document.fullscreenElement as HTMLElement) || '',
151
+ ...args,
152
+ }),
153
+ info: (args: NotificationParams) =>
154
+ ibiz.notification.info({
155
+ appendTo: (document.fullscreenElement as HTMLElement) || '',
156
+ ...args,
157
+ }),
158
+ success: (args: NotificationParams) =>
159
+ ibiz.notification.success({
160
+ appendTo: (document.fullscreenElement as HTMLElement) || '',
161
+ ...args,
162
+ }),
163
+ warning: (args: NotificationParams) =>
164
+ ibiz.notification.warning({
165
+ appendTo: (document.fullscreenElement as HTMLElement) || '',
166
+ ...args,
167
+ }),
168
+ error: (args: NotificationParams) =>
169
+ ibiz.notification.error({
170
+ appendTo: (document.fullscreenElement as HTMLElement) || '',
171
+ ...args,
172
+ }),
173
+ },
174
+ };
175
+ }
176
+
66
177
  /**
67
178
  * 获取编辑器扩展AI聊天参数
68
179
  * @param editorParams
@@ -184,6 +295,9 @@ export class AIChatUtil implements IApiAIChatUtil {
184
295
  const result = await ibiz.confirm.warning({
185
296
  title,
186
297
  desc: description,
298
+ options: {
299
+ appendTo: document.fullscreenElement,
300
+ },
187
301
  });
188
302
  return result;
189
303
  };
@@ -1086,11 +1200,7 @@ export class AIChatUtil implements IApiAIChatUtil {
1086
1200
  }
1087
1201
  };
1088
1202
  // 消息通知工具类
1089
- chatOptions.utils = {
1090
- message: ibiz.message,
1091
- notification: ibiz.notification,
1092
- confirm: ibiz.confirm,
1093
- };
1203
+ chatOptions.utils = this.getAIChatUtils();
1094
1204
  return { containerOptions, topicOptions, chatOptions };
1095
1205
  }
1096
1206
 
@@ -1233,6 +1343,9 @@ export class AIChatUtil implements IApiAIChatUtil {
1233
1343
  const result = await ibiz.confirm.warning({
1234
1344
  title,
1235
1345
  desc: description,
1346
+ options: {
1347
+ appendTo: document.fullscreenElement,
1348
+ },
1236
1349
  });
1237
1350
  return result;
1238
1351
  };
@@ -2162,12 +2275,7 @@ export class AIChatUtil implements IApiAIChatUtil {
2162
2275
  }
2163
2276
  };
2164
2277
  // 消息通知工具类
2165
- chatOptions.utils = {
2166
- message: ibiz.message,
2167
- notification: ibiz.notification,
2168
- confirm: ibiz.confirm,
2169
- };
2170
-
2278
+ chatOptions.utils = this.getAIChatUtils();
2171
2279
  return { containerOptions, topicOptions, chatOptions };
2172
2280
  }
2173
2281
 
@@ -2739,6 +2847,22 @@ export class AIChatUtil implements IApiAIChatUtil {
2739
2847
  );
2740
2848
  return response.data;
2741
2849
  };
2850
+ // 解压文件
2851
+ fileSystemOptions.unZipFile = async (
2852
+ ctx: IContext,
2853
+ param: IParams,
2854
+ other: IParams,
2855
+ ): Promise<IData> => {
2856
+ const deService = await ibiz.hub
2857
+ .getApp(ctx.srfappid)
2858
+ .deService.getService(ctx, param.appDataEntityId);
2859
+ const response = await deService.aiChatProject(
2860
+ ctx,
2861
+ { srfactag: param.srfactag },
2862
+ { action: 'UNZIP', ...other },
2863
+ );
2864
+ return response.data;
2865
+ };
2742
2866
  // 读取文件内容
2743
2867
  fileSystemOptions.readFile = async (
2744
2868
  ctx: IContext,
@@ -19,11 +19,13 @@ export class MessageUtil implements IMessageUtil {
19
19
  msg: string,
20
20
  duration?: number | undefined,
21
21
  closable?: boolean | undefined,
22
+ options: IParams = {},
22
23
  ): void {
23
24
  ElMessage.info({
24
25
  message: msg,
25
26
  duration: duration ? duration * 1000 : duration,
26
27
  showClose: closable,
28
+ ...options,
27
29
  });
28
30
  }
29
31
 
@@ -31,11 +33,13 @@ export class MessageUtil implements IMessageUtil {
31
33
  msg: string,
32
34
  duration?: number | undefined,
33
35
  closable?: boolean | undefined,
36
+ options: IParams = {},
34
37
  ): void {
35
38
  ElMessage.success({
36
39
  message: msg,
37
40
  duration: duration ? duration * 1000 : duration,
38
41
  showClose: closable,
42
+ ...options,
39
43
  });
40
44
  }
41
45
 
@@ -43,11 +47,13 @@ export class MessageUtil implements IMessageUtil {
43
47
  msg: string,
44
48
  duration?: number | undefined,
45
49
  closable?: boolean | undefined,
50
+ options: IParams = {},
46
51
  ): void {
47
52
  ElMessage.warning({
48
53
  message: msg,
49
54
  duration: duration ? duration * 1000 : duration,
50
55
  showClose: closable,
56
+ ...options,
51
57
  });
52
58
  }
53
59
 
@@ -55,11 +61,13 @@ export class MessageUtil implements IMessageUtil {
55
61
  msg: string,
56
62
  duration?: number | undefined,
57
63
  closable?: boolean | undefined,
64
+ options: IParams = {},
58
65
  ): void {
59
66
  ElMessage.error({
60
67
  message: msg,
61
68
  duration: duration ? duration * 1000 : duration,
62
69
  showClose: closable,
70
+ ...options,
63
71
  });
64
72
  }
65
73
 
@@ -80,6 +80,7 @@ export class NotificationUtil implements INotificationUtil {
80
80
  position: params.position || 'top-right',
81
81
  duration,
82
82
  customClass: params.class,
83
+ appendTo: params.appendTo,
83
84
  onClick: params.onClick,
84
85
  } as NotificationParams);
85
86
  }