@kengic/vue 0.26.8 → 0.27.1-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -1
- package/dist/kengic-vue.js +31 -13
- package/dist/src/component/KgButton/index.event.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
# 0.27.0
|
2
2
|
|
3
|
-
### 1.
|
3
|
+
### 1. DDA 的所有表都添加了一个 props 列, 用于存放额外的配置属性
|
4
|
+
|
5
|
+
### 2. 移除 var_profile_detail 中的多个列
|
6
|
+
|
7
|
+
- 移除 `var_profile_detail.vis_flg` 列, 由 `var_submit_detail.visible_flag` 代替,
|
8
|
+
- 移除 `var_profile_detail.ena_flg` 列, 由 `var_submit_detail.enable_flag` 代替,
|
9
|
+
- 移除 `var_profile_detail.rqr_flg` 列, 由 `var_submit_detail.required_flag` 代替,
|
10
|
+
- 移除 `var_profile_detail.dft_val` 列, 由 `var_submit_detail.default_value` 代替,
|
11
|
+
- 移除 `var_profile_detail.width` 列, 由 `var_submit_detail.width` 代替,
|
12
|
+
- 移除 `var_profile_detail.placeholder` 列, 由 `var_submit_detail.placeholder` 代替,
|
13
|
+
|
14
|
+
### 3. kgVar.onRetrieve() 事件回调函数返回类型变更
|
4
15
|
|
5
16
|
```typescript
|
6
17
|
// 旧
|
package/dist/kengic-vue.js
CHANGED
@@ -70071,7 +70071,7 @@ function fi(e) {
|
|
70071
70071
|
})
|
70072
70072
|
);
|
70073
70073
|
}
|
70074
|
-
const version = "0.
|
70074
|
+
const version = "0.27.1-beta.0", en$1 = {
|
70075
70075
|
kg: {
|
70076
70076
|
KgAppSelect: {
|
70077
70077
|
businessManager: "Business Manager",
|
@@ -103659,12 +103659,15 @@ const KgVar2 = KgVarFactory(), getProps$c = () => ({
|
|
103659
103659
|
}, ha = {};
|
103660
103660
|
if (await a.kgButton.store.emit(a.formID, "onBeforeRequest", {
|
103661
103661
|
requestConfig: ba,
|
103662
|
-
requestOptions: ha
|
103662
|
+
requestOptions: ha,
|
103663
|
+
varButton: o.value
|
103663
103664
|
}))
|
103664
103665
|
return;
|
103665
103666
|
const $a = await httpClient().request(ba, ha);
|
103666
103667
|
if (await a.kgButton.store.emit(a.formID, "onAfterRequest", {
|
103667
|
-
|
103668
|
+
requestConfig: ba,
|
103669
|
+
result: $a,
|
103670
|
+
varButton: o.value
|
103668
103671
|
}))
|
103669
103672
|
return;
|
103670
103673
|
((la = e.kgButton) == null ? void 0 : la.reload_all_after_done_flg) === 1 ? (((ua = e.kgButton) == null ? void 0 : ua.show_success_message_flg) !== 0 && message.success(n.t("kg.executeSuccess")), a.kgSearch.search({
|
@@ -108128,18 +108131,33 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
108128
108131
|
return !1;
|
108129
108132
|
}), r.kgButton.onBeforeRequest(async ({
|
108130
108133
|
requestConfig: l,
|
108131
|
-
requestOptions: u
|
108132
|
-
|
108133
|
-
result: l
|
108134
|
+
requestOptions: u,
|
108135
|
+
varButton: p
|
108134
108136
|
}) => {
|
108135
|
-
|
108136
|
-
|
108137
|
-
|
108138
|
-
|
108139
|
-
|
108140
|
-
|
108137
|
+
switch (p.var_nam) {
|
108138
|
+
case "EXPORT-SQL":
|
108139
|
+
return l.responseType = "blob", u.isTransformResponse = !1, !1;
|
108140
|
+
}
|
108141
|
+
return !1;
|
108142
|
+
}), r.kgButton.onAfterRequest(async ({
|
108143
|
+
result: l,
|
108144
|
+
varButton: u,
|
108145
|
+
requestConfig: p
|
108146
|
+
}) => {
|
108147
|
+
var C, w, N, U;
|
108148
|
+
switch (u.var_nam) {
|
108149
|
+
case "EXPORT-SQL": {
|
108150
|
+
const ne = (N = (w = (C = p.data) == null ? void 0 : C.map((oe) => oe.frm_id)) == null ? void 0 : w.join(",")) != null ? N : "";
|
108151
|
+
if (l instanceof Blob && l.type === "application/json") {
|
108152
|
+
const oe = await l.text();
|
108153
|
+
return message.error({
|
108154
|
+
content: (U = JSON.parse(oe).message) != null ? U : ""
|
108155
|
+
}), !0;
|
108156
|
+
}
|
108157
|
+
return h.downloadFile(l, `${ne}.sql`, "text/plain"), !0;
|
108158
|
+
}
|
108141
108159
|
}
|
108142
|
-
return
|
108160
|
+
return !1;
|
108143
108161
|
}), r.kgSubmit.onOpen(async () => {
|
108144
108162
|
switch (!0) {
|
108145
108163
|
case r.isCopying.value: {
|
@@ -29,13 +29,16 @@ export declare type IKgButtonOnSubmitCancelEventListener = ((param: IKgButtonOnS
|
|
29
29
|
export declare type IKgButtonOnBeforeRequestEventListenerParameter = {
|
30
30
|
requestConfig: IRequestConfig;
|
31
31
|
requestOptions: IRequestOptions;
|
32
|
+
varButton: VarButton;
|
32
33
|
};
|
33
34
|
export declare type IKgButtonOnBeforeRequestEventListener = ((param: IKgButtonOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
34
35
|
export declare type IKgButtonOnAfterRequestEventListenerParameter = {
|
36
|
+
requestConfig: IRequestConfig;
|
35
37
|
/**
|
36
38
|
* 请求返回结果.
|
37
39
|
*/
|
38
40
|
result: any;
|
41
|
+
varButton: VarButton;
|
39
42
|
};
|
40
43
|
export declare type IKgButtonOnAfterRequestEventListener = ((param: IKgButtonOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
41
44
|
export declare type IKgButtonEventListenerParameter = IKgButtonOnClickEventListenerParameter | IKgButtonOnImportOkEventListenerParameter | IKgButtonOnSubmitSaveEventListenerParameter | IKgButtonOnSubmitCancelEventListenerParameter | IKgButtonOnBeforeRequestEventListenerParameter | IKgButtonOnAfterRequestEventListenerParameter;
|
package/package.json
CHANGED