jgy-public-component 0.0.14 → 0.0.16
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/components/JImportExcel copy/index.d.ts +2 -0
- package/dist/components/JImportExcel copy/types.d.ts +12 -0
- package/dist/index.js +303 -320
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/router/guards copy.d.ts +6 -0
- package/dist/style.css +1 -1
- package/package.json +73 -73
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** API 函数类型:接收任意参数,返回 Promise */
|
|
2
|
+
export type ApiFn = (...args: any[]) => Promise<any>;
|
|
3
|
+
export interface JImportExcelProps {
|
|
4
|
+
/** 获取字段列表的 API 函数,返回格式需包含 res.data.tableFieldsInfo: { key: label } */
|
|
5
|
+
getFieldListApi: ApiFn;
|
|
6
|
+
/** 导入数据的 API 函数,接收 Record<string, any>[] */
|
|
7
|
+
importApi: (data: Record<string, any>[]) => Promise<any>;
|
|
8
|
+
/** 要排除的字段名数组 */
|
|
9
|
+
excludeFields?: string[];
|
|
10
|
+
/** 弹窗标题 */
|
|
11
|
+
title?: string;
|
|
12
|
+
}
|