@dao42/d42paas-front 0.9.190 → 0.9.191

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.
package/README.md CHANGED
@@ -1,4 +1,37 @@
1
1
  # 更新日志
2
+ ## v0.9.191
3
+ ### 新增
4
+ + 新增配置参数`customImagePreview` 参数, 业务方可控制MD图片预览的操作行为
5
+ ```ts
6
+ const dao = new DaoPaaS({
7
+ paasDomain: process.env.PAAS_MANAGER_API_ORIGIN,
8
+ tenantId: '3',
9
+ ticket: dataRes?.ticket,
10
+ customImagePreview: true,
11
+ userInfo: {
12
+ username: DemoUserInfo.name,
13
+ },
14
+ });
15
+ ```
16
+ + 新增监听`previewImage` 事件, 用于业务方自定义监听处理MD图片点击事件
17
+ ```ts
18
+ dao.onMessage((message: Message) => {
19
+ const { name, payload } = message;
20
+ let status: PlaygroundStatus;
21
+ let dockerStatus: DockerStatus;
22
+ let lspStatus: LspStatusEnum;
23
+ switch (name) {
24
+ case Messages.PreviewImage: {
25
+ messageBox.info('PreviewImage:' + JSON.stringify(payload));
26
+ break;
27
+ }
28
+ ...
29
+ ```
30
+ ### 优化
31
+ + 优化`Editor`协同操作逻辑
32
+ ### 修复
33
+ + 修复文件树存在文件打开失败问题
34
+ + 修复`Codemirror` JS 报错问题
2
35
  ## v0.9.190
3
36
  ### 修复
4
37
  + 修复回放时打开文件可能存在文件不存在的问题