antd-import-export 1.0.9 → 1.0.10
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.
|
@@ -13,8 +13,8 @@ export interface ImportButtonProps {
|
|
|
13
13
|
importRows: (rows: Record<string, unknown>[]) => Promise<ImportRowErrorBody[]>;
|
|
14
14
|
/** 解析完成、打开预览前触发, 拿到解析并校验过的行; 可做条数校验或准入判断, 抛错则中止 */
|
|
15
15
|
beforeImport?: (rows: ImportRow[]) => void | Promise<void>;
|
|
16
|
-
/** 导入任务结束(成功/失败/取消)
|
|
17
|
-
afterImport
|
|
16
|
+
/** 导入任务结束(成功/失败/取消)时回调一次; 用 onModalClose 刷新时可以不传 */
|
|
17
|
+
afterImport?: () => void;
|
|
18
18
|
/** 弹窗关闭后触发, 无论是导入完成、取消还是中途关闭 */
|
|
19
19
|
onModalClose?: () => void;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-import-export",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.10",
|
|
5
5
|
"description": "Schema-driven Excel import and export for Ant Design: template generation, client-side validation, batched submission, row-level error feedback and cursor-based export",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|