onchain-uikit 3.9.4-alpha83 → 3.9.4-alpha85
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.
|
@@ -160014,6 +160014,18 @@ const waitUserSelectExcelFile = ($3) => {
|
|
|
160014
160014
|
},
|
|
160015
160015
|
onCancel: $3
|
|
160016
160016
|
});
|
|
160017
|
+
}), exportExcel = async ({ copyData: $3, fileName: t3 }) => new Promise((h3, k3) => {
|
|
160018
|
+
LuckyExcel.transformUniverToExcel({
|
|
160019
|
+
snapshot: $3,
|
|
160020
|
+
fileName: t3,
|
|
160021
|
+
getBuffer: !1,
|
|
160022
|
+
success: () => {
|
|
160023
|
+
console.log("success");
|
|
160024
|
+
},
|
|
160025
|
+
error: (A3) => {
|
|
160026
|
+
console.log("error", A3), self.postMessage({ error: A3 });
|
|
160027
|
+
}
|
|
160028
|
+
});
|
|
160017
160029
|
}), OperationId$1 = "custom-menu.operation.import", ImportButtonOperation = ($3) => ({
|
|
160018
160030
|
id: OperationId$1,
|
|
160019
160031
|
type: Fr$7.OPERATION,
|
|
@@ -284557,5 +284569,6 @@ const univerConfig = {
|
|
|
284557
284569
|
});
|
|
284558
284570
|
export {
|
|
284559
284571
|
OnChainUniverExcel as default,
|
|
284572
|
+
exportExcel,
|
|
284560
284573
|
getExportExcel
|
|
284561
284574
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FRange } from '@univerjs/sheets/facade';
|
|
3
|
-
import { getExportExcel } from './plugins/controllers/menu/import';
|
|
3
|
+
import { getExportExcel, exportExcel } from './plugins/controllers/menu/import';
|
|
4
4
|
export interface OnChainUniverExcelProps {
|
|
5
5
|
dragDataRef?: any;
|
|
6
6
|
onDragEnd?: (range: FRange) => void;
|
|
7
7
|
onSaveDataBase?: (data: any) => void;
|
|
8
8
|
onGetInitData?: () => any;
|
|
9
9
|
}
|
|
10
|
-
export { getExportExcel };
|
|
10
|
+
export { getExportExcel, exportExcel };
|
|
11
11
|
declare const OnChainUniverExcel: React.ForwardRefExoticComponent<OnChainUniverExcelProps & React.RefAttributes<any>>;
|
|
12
12
|
export default OnChainUniverExcel;
|
|
@@ -10,6 +10,10 @@ export declare const waitUserSelectExcelFile: (params: {
|
|
|
10
10
|
export declare const getExportExcel: ({ onCancel }: {
|
|
11
11
|
onCancel: any;
|
|
12
12
|
}) => Promise<unknown>;
|
|
13
|
+
export declare const exportExcel: ({ copyData, fileName }: {
|
|
14
|
+
copyData: any;
|
|
15
|
+
fileName: any;
|
|
16
|
+
}) => Promise<unknown>;
|
|
13
17
|
declare function CustomMenuItemImportButtonFactory(): IMenuButtonItem<string>;
|
|
14
18
|
declare const CustomImportMenu: (config?: ICustomMenuPulginParams) => {
|
|
15
19
|
operation: ICommand<object, boolean>;
|