@dao42/d42paas-front 0.9.174 → 0.9.175

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,28 @@
1
1
  # 更新日志
2
+ ## v0.9.175
3
+ ### 新增
4
+ + 新增支持业务方定义`Editor`插件功能,配置属性`editorPlugins`
5
+ > 1. 可以参考[插件Demo]([插件Demo](https://showmbug-filestore-1258723534.cos.ap-guangzhou.myqcloud.com/plugins.ts)) 示范
6
+ > 2. `CodeMirror`[插件开发文档](https://codemirror.net/examples/decoration/)
7
+ ```ts
8
+ const dao = new DaoPaaS({
9
+ paasDomain:
10
+ process.env.PAAS_MANAGER_API_ORIGIN + (mockSdkInitFail ? '1' : ''),
11
+ tenantId: '3',
12
+ ...
13
+ editorPlugins: [ // 自定义插件,数组形式
14
+ hilightKeyWord(/\[\[(\w+)\]\]/g), // 具体插件
15
+ hilightKeyWord(/(Dear)/g),
16
+ hilightKeyWord(/(\d{2,})/g),
17
+ underlineKeymap,
18
+ ],
19
+ });
20
+ ```
21
+ ### 优化
22
+ + 优化告警群中相关错误信息
23
+ ### 修复
24
+ + 修复`Tabsize` 配置设置为`auto`不生效问题
25
+
2
26
  ## v0.9.174
3
27
  ### 修复
4
28
  + 修复编辑器出现非法字符`0`