@kengic/vue 0.22.1-beta.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +62 -22
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +7709 -6673
- package/dist/project/build/script/buildConf.ts +1 -2
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/project/src/api/sys/model/userModel.ts +1 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +28 -4
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
- package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
- package/dist/src/components/KgButton/KgButton.d.ts +18 -12
- package/dist/src/components/KgButton/index.d.ts +4 -4
- package/dist/src/components/KgButton/index.hooks.d.ts +68 -67
- package/dist/src/components/KgButton/index.store.d.ts +57 -193
- package/dist/src/components/KgForm/index.hooks.d.ts +37 -30
- package/dist/src/components/KgForm/index.store.d.ts +88 -41
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
- package/dist/src/components/KgForm.Item/{KgForm.Item.hooks.d.ts → KgForm.Item.service.d.ts} +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -5
- package/dist/src/components/KgForm.Item/components/{KgForm.Item.Select.hooks.d.ts → KgForm.Item.Select.service.d.ts} +16 -13
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
- package/dist/src/components/KgForm.Item/index.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
- package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
- package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +32 -0
- package/dist/src/components/KgSearch/index.hooks.d.ts +57 -138
- package/dist/src/components/KgSearch/index.store.d.ts +84 -193
- package/dist/src/components/KgSubmit/index.hooks.d.ts +112 -278
- package/dist/src/components/KgSubmit/index.store.d.ts +71 -257
- package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
- package/dist/src/components/KgTable/{KgTable.hooks.d.ts → KgTable.service.d.ts} +8 -16
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -1
- package/dist/src/components/KgTable/components/setting/{KgTable.Setting.hooks.d.ts → KgTable.Setting.service.d.ts} +1 -1
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -2
- package/dist/src/components/KgTable/index.hooks.d.ts +79 -427
- package/dist/src/components/KgTable/index.store.d.ts +127 -647
- package/dist/src/components/KgTable/index.vm.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +103 -3468
- package/dist/src/components/KgVar/index.store.d.ts +136 -3229
- package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
- package/dist/src/components/KgVar/index.vm.d.ts +7 -7
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
- package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
- package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
- package/dist/src/components/util.d.ts +7 -7
- package/dist/src/config/index.hooks.d.ts +31 -38
- package/dist/src/config/index.store.d.ts +74 -52
- package/dist/src/consts/i18n/en.d.ts +10 -6
- package/dist/src/consts/i18n/zh_CN.d.ts +10 -6
- package/dist/src/consts/index.d.ts +0 -277
- package/dist/src/consts/index.vm.d.ts +503 -75
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +7 -1
- package/dist/src/utils/kg-var.util.d.ts +4 -3
- package/dist/src/utils/kg.util.d.ts +13 -16
- package/package.json +2 -2
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -28
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
- /package/dist/src/components/KgModal/{KgModal.hooks.d.ts → KgModal.service.d.ts} +0 -0
- /package/dist/src/components/KgSubmit/{KgSubmit.hooks.d.ts → KgSubmit.service.d.ts} +0 -0
- /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,35 @@
|
|
1
|
+
# 0.24.0
|
2
|
+
|
3
|
+
### 添加 IUseKgTable.onBeforeParseParameter() 事件
|
4
|
+
|
5
|
+
# 0.23.0
|
6
|
+
|
7
|
+
### 1. 修改组件 API 的获取方式, 由方法改为属性,
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
// 旧
|
11
|
+
// --------------------------------------------------
|
12
|
+
const kgVar = useKgVar();
|
13
|
+
|
14
|
+
kgVar.xxx;
|
15
|
+
kgVar.kgButton().xxx;
|
16
|
+
kgVar.kgForm().xxx;
|
17
|
+
kgVar.kgSearch().xxx;
|
18
|
+
kgVar.kgSubmit().xxx;
|
19
|
+
kgVar.kgTable().xxx;
|
20
|
+
|
21
|
+
// 新
|
22
|
+
// --------------------------------------------------
|
23
|
+
const kgVar = useKgVar();
|
24
|
+
|
25
|
+
kgVar.xxx;
|
26
|
+
kgVar.kgButton.xxx;
|
27
|
+
kgVar.kgForm.xxx;
|
28
|
+
kgVar.kgSearch.xxx;
|
29
|
+
kgVar.kgSubmit.xxx;
|
30
|
+
kgVar.kgTable.xxx;
|
31
|
+
```
|
32
|
+
|
1
33
|
# 0.22.0
|
2
34
|
|
3
35
|
### 1. 重命名类
|
@@ -38,59 +70,67 @@
|
|
38
70
|
// 旧
|
39
71
|
// --------------------------------------------------
|
40
72
|
const kgVar = useKgVar();
|
41
|
-
const kgSearch = useKgSearch();
|
42
73
|
const kgButton = usekgButton();
|
43
|
-
|
74
|
+
const kgForm = usekgForm();
|
75
|
+
const kgSearch = useKgSearch();
|
76
|
+
const kgSubmit = useKgSubmit();
|
77
|
+
const kgTable = useKgTable();
|
44
78
|
|
45
|
-
kgVar.
|
46
|
-
|
47
|
-
|
48
|
-
|
79
|
+
kgVar.xxx;
|
80
|
+
kgButton.xxx;
|
81
|
+
kgForm.xxx;
|
82
|
+
kgSearch.xxx;
|
83
|
+
kgSubmit.xxx;
|
84
|
+
kgTable.xxx;
|
49
85
|
|
50
86
|
// 新
|
51
87
|
// --------------------------------------------------
|
52
88
|
const kgVar = useKgVar();
|
53
89
|
|
54
|
-
kgVar.
|
55
|
-
kgVar.
|
56
|
-
kgVar.
|
57
|
-
|
90
|
+
kgVar.xxx;
|
91
|
+
kgVar.kgButton().xxx;
|
92
|
+
kgVar.kgForm().xxx;
|
93
|
+
kgVar.kgSearch().xxx;
|
94
|
+
kgVar.kgSubmit().xxx;
|
95
|
+
kgVar.kgTable().xxx;
|
58
96
|
```
|
59
97
|
|
60
98
|
### 4. `kgVar` 中的部分方法移到对应的组件的 API 中并且重命名:
|
61
99
|
|
62
100
|
#### 4.1. kgButton
|
63
101
|
|
64
|
-
`kgVar.setIsCreating(true)` 变更为 `kgVar.kgButton
|
102
|
+
`kgVar.setIsCreating(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.CREATE });`
|
65
103
|
|
66
|
-
`kgVar.setIsUpdating(true)` 变更为 `kgVar.kgButton
|
104
|
+
`kgVar.setIsUpdating(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.UPDATE });`
|
67
105
|
|
68
|
-
`kgVar.setIsCopying(true)` 变更为 `kgVar.kgButton
|
106
|
+
`kgVar.setIsCopying(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.COPY });`
|
69
107
|
|
70
|
-
`kgVar.setIsDeleting(true)` 变更为 `kgVar.kgButton
|
108
|
+
`kgVar.setIsDeleting(true)` 变更为 `kgVar.kgButton.setCurrentButton({ type: KG_BUTTON_TYPE.DELETE });`
|
71
109
|
|
72
|
-
`kgVar.setIsCreating(false)` 变更为 `kgVar.kgButton
|
110
|
+
`kgVar.setIsCreating(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
|
73
111
|
|
74
|
-
`kgVar.setIsUpdating(false)` 变更为 `kgVar.kgButton
|
112
|
+
`kgVar.setIsUpdating(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
|
75
113
|
|
76
|
-
`kgVar.setIsCopying(false)` 变更为 `kgVar.kgButton
|
114
|
+
`kgVar.setIsCopying(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
|
77
115
|
|
78
|
-
`kgVar.setIsDeleting(false)` 变更为 `kgVar.kgButton
|
116
|
+
`kgVar.setIsDeleting(false)` 变更为 `kgVar.kgButton.setCurrentButton(null);`
|
79
117
|
|
80
118
|
#### 4.2. kgSubmit
|
81
119
|
|
82
|
-
`kgVar.patchVarSubmitField()` 变更为 `kgVar.kgSubmit
|
120
|
+
`kgVar.patchVarSubmitField()` 变更为 `kgVar.kgSubmit.patchVarSubmitDetail()`
|
121
|
+
|
122
|
+
`kgButton.onDeleteOk()` 变更为 `kgVar.kgSubmit.onOk()`
|
83
123
|
|
84
|
-
### 5. kgVar.kgButton
|
124
|
+
### 5. kgVar.kgButton.onClick() 事件回调函数参数类型变更,
|
85
125
|
|
86
126
|
```typescript
|
87
127
|
// 旧
|
88
128
|
// --------------------------------------------------
|
89
|
-
kgVar.kgButton
|
129
|
+
kgVar.kgButton.onClick(async (button) => {});
|
90
130
|
|
91
131
|
// 新
|
92
132
|
// --------------------------------------------------
|
93
|
-
kgVar.kgButton
|
133
|
+
kgVar.kgButton.onClick(async ({ button }) => {});
|
94
134
|
```
|
95
135
|
|
96
136
|
# 0.21.0
|