@kengic/vue 0.6.13 → 0.6.15
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.
- package/dist/kengic-vue.js +533 -504
- package/dist/src/components/KgButton/index.store.d.ts +3 -0
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +2 -1
- package/dist/src/components/KgTable/index.store.d.ts +10 -0
- package/dist/src/components/KgVar/index.store.d.ts +11 -4
- package/package.json +1 -1
@@ -12,6 +12,9 @@ import { IKgTableRow } from '../KgTable';
|
|
12
12
|
*/
|
13
13
|
export declare type IKgButtonEvent = 'click' | 'updateBeforeClick' | 'deleteOk' | 'submitSave' | 'submitCancel';
|
14
14
|
/** 事件监听函数: click. */
|
15
|
+
export declare type IKgButtonClickCbParam = {
|
16
|
+
button: VarButton;
|
17
|
+
};
|
15
18
|
export declare type IKgButtonClickCb = ((button: VarButton) => Promise<boolean>) & IKgEventCb;
|
16
19
|
/** 事件监听函数: updateBeforeClick. */
|
17
20
|
export declare type IKgButtonUpdateBeforeClickCbParam = {
|
@@ -33,5 +33,6 @@ export declare function _useCommon(): {
|
|
33
33
|
minHeight: import("vue").ComputedRef<1 | 42>;
|
34
34
|
};
|
35
35
|
export declare function _useFormModel(formRef: Ref<FormInstance | null>, kgResizableProps: Ref<IKgResizableProps>): {
|
36
|
-
|
36
|
+
/** 设置表单的初始值. */
|
37
|
+
initFormModel(): void;
|
37
38
|
};
|
@@ -82,6 +82,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
|
|
82
82
|
addEventListener(formID: string, event: IKgTableEvent, cb: IKgTableCb): void;
|
83
83
|
removeEventListener(formID: string, event: IKgTableEvent, cb?: IKgTableCb): void;
|
84
84
|
emit(formID: string, event: IKgTableEvent, param: IKgTableCbParam): Promise<boolean>;
|
85
|
+
/**
|
86
|
+
* 设置勾选的行.
|
87
|
+
* @param formID 界面标识.
|
88
|
+
* @param selectedRows 勾选的行.
|
89
|
+
*/
|
85
90
|
setSelectedRows(formID: string, selectedRows: Array<IKgTableRow>): void;
|
86
91
|
/**
|
87
92
|
* 设置某行的勾选状态.
|
@@ -93,6 +98,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
|
|
93
98
|
setIsRetrieved(formID: string, value: boolean): void;
|
94
99
|
setIsRetrieving(formID: string, value: boolean): void;
|
95
100
|
setTableWidth(formID: string, value: number): void;
|
101
|
+
/**
|
102
|
+
* 清空表格数据.
|
103
|
+
* @param formID 界面标识.
|
104
|
+
*/
|
105
|
+
clearDatas(formID: string): void;
|
96
106
|
}>;
|
97
107
|
export declare type IKgTableStore = ReturnType<IKgTableStoreDefinition>;
|
98
108
|
export declare const useKgTableStore: () => IKgTableStoreDefinition;
|
@@ -233,9 +233,16 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
233
233
|
* 修改 VarGridDetail 的部分属性.
|
234
234
|
* @param frm_id 界面标识.
|
235
235
|
* @param var_nam 变量名称.
|
236
|
-
* @param properties
|
236
|
+
* @param properties 要修改的部分属性.
|
237
237
|
*/
|
238
|
-
patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: VarGridDetail): void
|
238
|
+
patchVarGridDetail(frm_id: string, var_nam: string | null | undefined, properties: VarGridDetail): Promise<void>;
|
239
|
+
/**
|
240
|
+
* 修改 VarProfileDetail 的部分属性.
|
241
|
+
* @param frm_id 界面标识.
|
242
|
+
* @param var_nam 变量名称.
|
243
|
+
* @param properties 要修改的部分属性.
|
244
|
+
*/
|
245
|
+
patchVarProfileDetail(frm_id: string, var_nam: string | null | undefined, properties: VarProfileDetail): Promise<void>;
|
239
246
|
/**
|
240
247
|
* 设置某个 VarPossibility 配置.
|
241
248
|
* @param frm_id 界面标识.
|
@@ -247,14 +254,14 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
247
254
|
* 修改 VarSubmitField 的部分属性.
|
248
255
|
* @param frm_id 界面标识.
|
249
256
|
* @param var_nam 变量名称
|
250
|
-
* @param properties
|
257
|
+
* @param properties 要修改的部分属性.
|
251
258
|
*/
|
252
259
|
patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField): void;
|
253
260
|
/**
|
254
261
|
* 修改 VarPossibility 的接口参数 cmd_prm 的部分属性.
|
255
262
|
* @param frm_id 界面标识.
|
256
263
|
* @param var_nam 变量名称
|
257
|
-
* @param properties
|
264
|
+
* @param properties 要修改的部分属性.
|
258
265
|
*/
|
259
266
|
patchVarPossibilityCommandParameter(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): void;
|
260
267
|
}>;
|