Preview Shared Storage File
Overview
Preview shared storage files on the client side preview page, and you can set whether to allow file editing. Supports preview and editing of Excel, Word, Ppt and other files.
Parameter Configuration
| Parameter | Description |
|---|---|
| Dialog Title | The title content of the window. Expressions can be used to obtain context variables for dynamic content. |
| File List Type | Specify the data source type of the preview file list, supports Default and Use Expression Calculation. |
| File List | Preview file list data, can be dynamically specified using expressions or manually specified by adding. |
Return Value
| Return Value | Type | Description |
|---|---|---|
| File List | Array<PreviewFile> | Previewed file data. |
Notes
File List: The file path must be a file in shared storage.
File Item Structure for Expression Calculation
ts
declare interface OutputOpenFile {
/**
* File name
*/
fileName: string;
/**
* File path
*/
filePath: string;
/**
* Allow editing
*/
enableEdit: boolean;
/**
* Allow downloading
*/
enableDownload: boolean;
}Example of Expression Calculation
text
${
[
{
"enableDownload": false,
"enableEdit": false,
"fileName": "dataExport.xlsx",
"filePath": "automatic/da6253b86a464f669142008f0a5cfb85.xlsx"
}
]
}
