form:fileupload 组件 preview 参数优化,默认使用 file.preview 配置文件参数,方便全局设置。

This commit is contained in:
thinkgem
2025-08-07 18:14:57 +08:00
parent fd3a334e32
commit fc37b649b1

View File

@@ -178,7 +178,7 @@ $(function() {
},
extendParams: {"#{p.extendParams}"},
isLazy: "#{p.isLazy}",
preview: "${__info_type=='0'?'':p.preview!=''?p.preview:@Global.getConfig('file.preview','true')}",
preview: "${__info_type=='0'?'':isBlank(p.preview)||p.preview=='true'?@Global.getConfig('file.preview','true'):p.preview}",
callback: function(id, act, $this, fileUploadId, fileUrl, fileName, fileUpload){
if(typeof "#{p.callbackFuncName}" == 'function'){
"#{p.callbackFuncName}"(id, act, $this, fileUploadId, fileUrl, fileName, fileUpload);