@kengic/vue 0.27.2-beta.5 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,78 @@
1
+ # 0.28.0
2
+
3
+ ### 1. 事件回调函数参数名称变更
4
+
5
+ ```typescript
6
+ // 旧
7
+ // --------------------------------------------------
8
+ kgVar.kgForm.onLookupBeforeOk(async ({ var_nam }) => {});
9
+
10
+ // 旧
11
+ // --------------------------------------------------
12
+ kgVar.kgForm.onLookupBeforeOk(async ({ varNam }) => {});
13
+
14
+ // 新
15
+ // --------------------------------------------------
16
+ kgVar.kgForm.onLookupBeforeOk(async ({ varName }) => {});
17
+ ```
18
+
19
+ ```typescript
20
+ // 旧
21
+ // --------------------------------------------------
22
+ kgVar.kgForm.onLookupOk(async ({ var_nam }) => {});
23
+
24
+ // 旧
25
+ // --------------------------------------------------
26
+ kgVar.kgForm.onLookupOk(async ({ varNam }) => {});
27
+
28
+ // 新
29
+ // --------------------------------------------------
30
+ kgVar.kgForm.onLookupOk(async ({ varName }) => {});
31
+ ```
32
+
33
+ ### 2. 部分方法和对象提取到组件库
34
+
35
+ ```typescript
36
+ // 旧
37
+ // --------------------------------------------------
38
+ import { getValueType } from '/@/utils';
39
+ import { propTypes } from '/@/utils/propTypes';
40
+ import { useGlobSetting } from '/@/hooks/setting';
41
+ import { useGo } from '/@/hooks/web/usePage';
42
+ import { isEmpty } from '/@/utils/is';
43
+
44
+ // 新
45
+ // --------------------------------------------------
46
+ import { getValueType } from '@kengic/vue';
47
+ import { propTypes } from '@kengic/vue';
48
+ import { useGlobSetting } from '@kengic/vue';
49
+ import { useGo } from '@kengic/vue';
50
+ import { isEmpty } from '@kengic/vue';
51
+ ```
52
+
53
+ ### 3. 消息提示由 message 改成 notification
54
+
55
+ ```typescript
56
+ // 旧
57
+ // --------------------------------------------------
58
+ import { useMessage } from '/@/hooks/web/useMessage';
59
+
60
+ const { createMessage } = useMessage();
61
+
62
+ createMessage.success('消息');
63
+ createMessage.error('消息');
64
+ createMessage.warn('消息');
65
+ createMessage.warning('消息');
66
+
67
+ // 新
68
+ // --------------------------------------------------
69
+ import { notification } from 'ant-design-vue';
70
+
71
+ notification.success({ message: '消息' });
72
+ notification.error({ message: '消息' });
73
+ notification.warn({ message: '消息' });
74
+ ```
75
+
1
76
  # 0.27.0
2
77
 
3
78
  ### 1. DDA 的所有表都添加了一个 props 列, 用于存放额外的配置属性