Commit 18aafc66 authored by 田翔's avatar 田翔

fix: 附件预览问题

parent 820ebea1
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.7.8", "version": "5.7.9",
"description": "5.7.8 计算属性参数优化", "description": "5.7.9 附件预览问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -325,6 +325,7 @@ const FileUpload = (props) => { ...@@ -325,6 +325,7 @@ const FileUpload = (props) => {
width={'70%'} width={'70%'}
title={showFile.name} title={showFile.name}
visible={visible} visible={visible}
destroyOnClose
onCancel={() => setVisible(false)} onCancel={() => setVisible(false)}
bodyStyle={{ height: 650, overflowY: showFile.fileType.includes('xlsx') ? 'none' : "auto" }} bodyStyle={{ height: 650, overflowY: showFile.fileType.includes('xlsx') ? 'none' : "auto" }}
> >
......
...@@ -35,6 +35,7 @@ const CalculateRule = (props) => { ...@@ -35,6 +35,7 @@ const CalculateRule = (props) => {
{ label: '求和', value: '$sql.sum()', disabled }, { label: '求和', value: '$sql.sum()', disabled },
{ label: '平均值', value: '$sql.avg()', disabled }, { label: '平均值', value: '$sql.avg()', disabled },
{ label: '时间差', value: '$sql.datediff()', disabled: false }, { label: '时间差', value: '$sql.datediff()', disabled: false },
{ label: '时间计算', value: '$sql.dateadd()', disabled: false },
{ label: '向下取整', value: '$sql.ceiling()', disabled: false }, { label: '向下取整', value: '$sql.ceiling()', disabled: false },
{ label: '向上取整', value: '$sql.floor()', disabled: false }, { label: '向上取整', value: '$sql.floor()', disabled: false },
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment