keli-ui 0.3.11 → 0.3.12
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeButton
|
|
1
|
+
import { KeButton } from '../types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 单条数据上的按钮
|
|
@@ -6,4 +6,4 @@ import { KeButton, TableRenderApiDTO } from '../types';
|
|
|
6
6
|
* @param button 按钮配置
|
|
7
7
|
* @param rowIndex 行索引
|
|
8
8
|
*/
|
|
9
|
-
export declare function useButtonExec(data:
|
|
9
|
+
export declare function useButtonExec(data: any, button: KeButton, rowIndex?: number): Promise<void>;
|
package/dist/keli-ui.js
CHANGED
|
@@ -7505,8 +7505,11 @@ function Ui(e, t, n) {
|
|
|
7505
7505
|
t.webFunction(e, t.params, n, r);
|
|
7506
7506
|
}
|
|
7507
7507
|
async function Wi(e, t) {
|
|
7508
|
-
|
|
7509
|
-
|
|
7508
|
+
console.error(t);
|
|
7509
|
+
let n = null;
|
|
7510
|
+
typeof t.params.pageId == "number" ? n = t.params.pageId : t.params.getPageId && Z(t.params.getPageId()) ? n = t.params.getPageId() : e.pageId?.value && (n = e.pageId.value);
|
|
7511
|
+
let r = t.params.dataId || null, i = await ie(n, r, t.id);
|
|
7512
|
+
i.code === 0 && Array.isArray(i.data) && i.data.length > 0 && i.data.forEach((e) => Q.tips({
|
|
7510
7513
|
msg: e,
|
|
7511
7514
|
type: "info",
|
|
7512
7515
|
duration: 5e3
|