@kengic/vue 0.22.1-beta.0 → 0.23.0

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +58 -22
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +4192 -3968
  4. package/dist/project/build/script/postBuild.ts +1 -1
  5. package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
  6. package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
  7. package/dist/src/apis/WMS/models.d.ts +8 -0
  8. package/dist/src/components/KgButton/index.hooks.d.ts +66 -67
  9. package/dist/src/components/KgButton/index.store.d.ts +43 -182
  10. package/dist/src/components/KgForm/index.hooks.d.ts +22 -28
  11. package/dist/src/components/KgForm/index.store.d.ts +22 -15
  12. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
  13. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -2
  14. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -4
  15. package/dist/src/components/KgSearch/index.hooks.d.ts +31 -136
  16. package/dist/src/components/KgSearch/index.store.d.ts +59 -175
  17. package/dist/src/components/KgSubmit/index.hooks.d.ts +80 -279
  18. package/dist/src/components/KgSubmit/index.store.d.ts +40 -225
  19. package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
  20. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
  21. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
  22. package/dist/src/components/KgTable/index.hooks.d.ts +65 -428
  23. package/dist/src/components/KgTable/index.store.d.ts +87 -621
  24. package/dist/src/components/KgVar/index.hooks.d.ts +105 -3468
  25. package/dist/src/components/KgVar/index.store.d.ts +129 -3213
  26. package/dist/src/config/index.hooks.d.ts +31 -38
  27. package/dist/src/config/index.store.d.ts +74 -52
  28. package/dist/src/consts/i18n/en.d.ts +1 -0
  29. package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
  30. package/dist/src/consts/index.d.ts +20 -13
  31. package/dist/src/consts/index.vm.d.ts +78 -51
  32. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
  33. package/dist/src/utils/kg.util.d.ts +2 -2
  34. package/package.json +1 -1
  35. /package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +0 -0
  36. /package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +0 -0
  37. /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
  38. /package/dist/src/components/KgSearch/{KgSearch.hooks.d.ts → KgSearch.service.d.ts} +0 -0
  39. /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
  40. /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # 0.23.0
2
+
3
+ ### 1. 修改组件 API 的获取方式, 由方法改为属性,
4
+
5
+ ```typescript
6
+ // 旧
7
+ // --------------------------------------------------
8
+ const kgVar = useKgVar();
9
+
10
+ kgVar.xxx;
11
+ kgVar.kgButton().xxx;
12
+ kgVar.kgForm().xxx;
13
+ kgVar.kgSearch().xxx;
14
+ kgVar.kgSubmit().xxx;
15
+ kgVar.kgTable().xxx;
16
+
17
+ // 新
18
+ // --------------------------------------------------
19
+ const kgVar = useKgVar();
20
+
21
+ kgVar.xxx;
22
+ kgVar.kgButton.xxx;
23
+ kgVar.kgForm.xxx;
24
+ kgVar.kgSearch.xxx;
25
+ kgVar.kgSubmit.xxx;
26
+ kgVar.kgTable.xxx;
27
+ ```
28
+
1
29
  # 0.22.0
2
30
 
3
31
  ### 1. 重命名类
@@ -38,59 +66,67 @@
38
66
  // 旧
39
67
  // --------------------------------------------------
40
68
  const kgVar = useKgVar();
41
- const kgSearch = useKgSearch();
42
69
  const kgButton = usekgButton();
43
- // ...
70
+ const kgForm = usekgForm();
71
+ const kgSearch = useKgSearch();
72
+ const kgSubmit = useKgSubmit();
73
+ const kgTable = useKgTable();
44
74
 
45
- kgVar.onRetrieve();
46
- kgSearch.onSearch();
47
- kgButton.onClick();
48
- // ...
75
+ kgVar.xxx;
76
+ kgButton.xxx;
77
+ kgForm.xxx;
78
+ kgSearch.xxx;
79
+ kgSubmit.xxx;
80
+ kgTable.xxx;
49
81
 
50
82
  // 新
51
83
  // --------------------------------------------------
52
84
  const kgVar = useKgVar();
53
85
 
54
- kgVar.onRetrieve();
55
- kgVar.kgSearch().onSearch();
56
- kgVar.kgButton().onClick();
57
- // ...
86
+ kgVar.xxx;
87
+ kgVar.kgButton().xxx;
88
+ kgVar.kgForm().xxx;
89
+ kgVar.kgSearch().xxx;
90
+ kgVar.kgSubmit().xxx;
91
+ kgVar.kgTable().xxx;
58
92
  ```
59
93
 
60
94
  ### 4. `kgVar` 中的部分方法移到对应的组件的 API 中并且重命名:
61
95
 
62
96
  #### 4.1. kgButton
63
97
 
64
- `kgVar.setIsCreating(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.CREATE });`
98
+ `kgVar.setIsCreating(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.CREATE });`
65
99
 
66
- `kgVar.setIsUpdating(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.UPDATE });`
100
+ `kgVar.setIsUpdating(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.UPDATE });`
67
101
 
68
- `kgVar.setIsCopying(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.COPY });`
102
+ `kgVar.setIsCopying(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.COPY });`
69
103
 
70
- `kgVar.setIsDeleting(true)` 变更为 `kgVar.kgButton().setCurrentButton({ type: KG_BUTTON_TYPE.DELETE });`
104
+ `kgVar.setIsDeleting(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.DELETE });`
71
105
 
72
- `kgVar.setIsCreating(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
106
+ `kgVar.setIsCreating(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
73
107
 
74
- `kgVar.setIsUpdating(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
108
+ `kgVar.setIsUpdating(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
75
109
 
76
- `kgVar.setIsCopying(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
110
+ `kgVar.setIsCopying(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
77
111
 
78
- `kgVar.setIsDeleting(false)` 变更为 `kgVar.kgButton().setCurrentButton(null);`
112
+ `kgVar.setIsDeleting(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
79
113
 
80
114
  #### 4.2. kgSubmit
81
115
 
82
- `kgVar.patchVarSubmitField()` 变更为 `kgVar.kgSubmit().patchVarSubmitDetail()`
116
+ `kgVar.patchVarSubmitField()` 变更为 `kgVar.kgSubmit.patchVarSubmitDetail()`
117
+
118
+ `kgButton.onDeleteOk()` 变更为 `kgVar.kgSubmit.onOk()`
83
119
 
84
- ### 5. kgVar.kgButton().onClick() 事件回调函数参数类型变更,
120
+ ### 5. kgVar.kgButton.onClick() 事件回调函数参数类型变更,
85
121
 
86
122
  ```typescript
87
123
  // 旧
88
124
  // --------------------------------------------------
89
- kgVar.kgButton().onClick(async (button) => {});
125
+ kgVar.kgButton.onClick(async (button) => {});
90
126
 
91
127
  // 新
92
128
  // --------------------------------------------------
93
- kgVar.kgButton().onClick(async ({ button }) => {});
129
+ kgVar.kgButton.onClick(async ({ button }) => {});
94
130
  ```
95
131
 
96
132
  # 0.21.0