diff --git a/components/core/SlateLayout.js b/components/core/SlateLayout.js
index 524ec81a..f9b2f1fd 100644
--- a/components/core/SlateLayout.js
+++ b/components/core/SlateLayout.js
@@ -834,6 +834,15 @@ export class SlateLayout extends React.Component {
this.setState({ layout });
};
+ _handleDownloadFiles = async () => {
+ const selectedFiles = this.props.items.filter((_, i) => this.state.checked[i]);
+ UserBehaviors.compressAndDownloadFiles({
+ files: selectedFiles,
+ resourceURI: this.props.resources.download,
+ });
+ this.setState({ checked: {} });
+ };
+
_handleMouseUp = (e) => {
window.removeEventListener("mousemove", this._handleDrag);
window.removeEventListener("mouseup", this._handleMouseUp);
@@ -1783,6 +1792,13 @@ export class SlateLayout extends React.Component {
{/*
Download
*/}
+
+ download
+
this._handleSave(null, null, null, false, preview)}
items={objects}
+ resources={this.props.resources}
onSelect={this._handleSelect}
defaultLayout={layouts && layouts.ver === "2.0" ? layouts.defaultLayout : true}
onAction={this.props.onAction}