@kengic/vue 0.6.13 → 0.6.14
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -11212,6 +11212,8 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11212
11212
|
},
|
11213
11213
|
setTableWidth(e, t) {
|
11214
11214
|
this.tableWidthMap.set(e, unref(t));
|
11215
|
+
},
|
11216
|
+
clearDatas(e) {
|
11215
11217
|
}
|
11216
11218
|
}
|
11217
11219
|
}).bind(null, pinia())), store$4);
|
@@ -11449,6 +11451,7 @@ const getProps$m = () => ({
|
|
11449
11451
|
o.store.setSelectedRows(n.formID, []);
|
11450
11452
|
}
|
11451
11453
|
function s() {
|
11454
|
+
o.store.clearDatas(n.formID);
|
11452
11455
|
}
|
11453
11456
|
function l() {
|
11454
11457
|
}
|
@@ -12002,6 +12005,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12002
12005
|
}
|
12003
12006
|
}
|
12004
12007
|
break;
|
12008
|
+
case "clearDatas":
|
12009
|
+
U[0] === s.formID && ($.value = [], O.total = 0, B(), v.value = []);
|
12010
|
+
break;
|
12005
12011
|
}
|
12006
12012
|
});
|
12007
12013
|
const m = ref(!1), v = ref([]), {
|
@@ -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;
|