@kengic/vue 0.27.2-beta.5 → 0.28.1-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +85 -0
- package/dist/kengic-vue.js +3967 -3965
- package/dist/src/component/KgForm/KgForm.event.d.ts +11 -24
- package/dist/src/component/KgForm.Item/KgForm.Item.vm.d.ts +2 -8
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +1 -5
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +1 -4
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +4 -12
- package/dist/src/util/kg.util.d.ts +1 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,88 @@
|
|
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
|
+
```typescript
|
34
|
+
// 旧
|
35
|
+
// --------------------------------------------------
|
36
|
+
kgVar.kgForm.onSelectChange(async ({ var_nam }) => {});
|
37
|
+
|
38
|
+
// 新
|
39
|
+
// --------------------------------------------------
|
40
|
+
kgVar.kgForm.onSelectChange(async ({ varName }) => {});
|
41
|
+
```
|
42
|
+
|
43
|
+
### 2. 部分方法和对象提取到组件库
|
44
|
+
|
45
|
+
```typescript
|
46
|
+
// 旧
|
47
|
+
// --------------------------------------------------
|
48
|
+
import { getValueType } from '/@/utils';
|
49
|
+
import { propTypes } from '/@/utils/propTypes';
|
50
|
+
import { useGlobSetting } from '/@/hooks/setting';
|
51
|
+
import { useGo } from '/@/hooks/web/usePage';
|
52
|
+
import { isEmpty } from '/@/utils/is';
|
53
|
+
|
54
|
+
// 新
|
55
|
+
// --------------------------------------------------
|
56
|
+
import { getValueType } from '@kengic/vue';
|
57
|
+
import { propTypes } from '@kengic/vue';
|
58
|
+
import { useGlobSetting } from '@kengic/vue';
|
59
|
+
import { useGo } from '@kengic/vue';
|
60
|
+
import { isEmpty } from '@kengic/vue';
|
61
|
+
```
|
62
|
+
|
63
|
+
### 3. 消息提示由 message 改成 notification
|
64
|
+
|
65
|
+
```typescript
|
66
|
+
// 旧
|
67
|
+
// --------------------------------------------------
|
68
|
+
import { useMessage } from '/@/hooks/web/useMessage';
|
69
|
+
|
70
|
+
const { createMessage } = useMessage();
|
71
|
+
|
72
|
+
createMessage.success('消息');
|
73
|
+
createMessage.error('消息');
|
74
|
+
createMessage.warn('消息');
|
75
|
+
createMessage.warning('消息');
|
76
|
+
|
77
|
+
// 新
|
78
|
+
// --------------------------------------------------
|
79
|
+
import { notification } from 'ant-design-vue';
|
80
|
+
|
81
|
+
notification.success({ message: '消息' });
|
82
|
+
notification.error({ message: '消息' });
|
83
|
+
notification.warn({ message: '消息' });
|
84
|
+
```
|
85
|
+
|
1
86
|
# 0.27.0
|
2
87
|
|
3
88
|
### 1. DDA 的所有表都添加了一个 props 列, 用于存放额外的配置属性
|