@kengic/vue 0.19.1 → 0.19.2-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +36 -2
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +5219 -5216
- package/dist/src/components/KgForm/index.hooks.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +3 -6
- package/dist/src/components/KgSearch/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSubmit/index.hooks.d.ts +50 -34
- package/dist/src/components/KgTable/index.hooks.d.ts +468 -33
- package/dist/src/components/KgVar/index.hooks.d.ts +47 -72
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/components/util.d.ts +4 -4
- package/dist/src/consts/index.vm.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -18,9 +18,43 @@
|
|
18
18
|
kgTable.store.setDatas({ frmId: frmId, datas: datas });
|
19
19
|
```
|
20
20
|
|
21
|
-
2. 移除 `
|
21
|
+
2. 移除 `kgTable.onBeforeSetDatas()` 事件回调函数参数中的 `setDatas` 方法, 改为直接调用 `kgTable.store.setDatas()` 方法,
|
22
22
|
|
23
|
-
|
23
|
+
```typescript
|
24
|
+
// 旧
|
25
|
+
// --------------------------------------------------
|
26
|
+
kgTable.onBeforeSetDatas(async ({ datas, setDatas }) => {
|
27
|
+
setDatas([]);
|
28
|
+
});
|
29
|
+
|
30
|
+
// 新
|
31
|
+
// --------------------------------------------------
|
32
|
+
kgTable.onBeforeSetDatas(async ({ datas }) => {
|
33
|
+
kgTable.store.setDatas({
|
34
|
+
frmId: '',
|
35
|
+
datas: [],
|
36
|
+
});
|
37
|
+
});
|
38
|
+
```
|
39
|
+
|
40
|
+
3. 移除 `kgTable.onAfterSearch()` 事件回调函数参数中的 `setDatas` 方法, 改为直接调用 `kgTable.store.setDatas()` 方法,
|
41
|
+
|
42
|
+
```typescript
|
43
|
+
// 旧
|
44
|
+
// --------------------------------------------------
|
45
|
+
kgTable.onAfterSearch(async ({ datas, setDatas }) => {
|
46
|
+
setDatas([]);
|
47
|
+
});
|
48
|
+
|
49
|
+
// 新
|
50
|
+
// --------------------------------------------------
|
51
|
+
kgTable.onAfterSearch(async ({ datas }) => {
|
52
|
+
kgTable.store.setDatas({
|
53
|
+
frmId: '',
|
54
|
+
datas: [],
|
55
|
+
});
|
56
|
+
});
|
57
|
+
```
|
24
58
|
|
25
59
|
---
|
26
60
|
|