提交 6e245517 编写于 作者: Cano1997's avatar Cano1997

update: 图片控件添加参数

上级 6f4e2991
......@@ -2,6 +2,8 @@
${editor.render.code}
<#else>
<app-image-upload
:appEntityService="appEntityService"
:context="context"
:multiple="true"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="'<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>'"
......@@ -12,6 +14,7 @@
name='${editor.name}'
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
:ownerid="<#if item.getEditorParam("ownerid",'') != ''>'${item.getEditorParam("ownerid",'')}'<#else>data.srfkey</#if>"
:uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>'
:exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>'
style="${editor.getEditorCssStyle()}overflow: auto;">
......
<app-image-preview :formState="formState" name='${editor.name}' :value="data.${editor.name}" style="${editor.getEditorCssStyle()}"></app-image-preview>
\ No newline at end of file
<app-image-preview
:appEntityService="appEntityService"
:context="context"
:formState="formState"
name='${editor.name}'
:value="data.${editor.name}"
:ownerid="<#if item.getEditorParam("ownerid",'') != ''>'${item.getEditorParam("ownerid",'')}'<#else>data.srfkey</#if>"
style="${editor.getEditorCssStyle()}">
</app-image-preview>
\ No newline at end of file
<#if editor?? && editor.render??>
${editor.render.code}
<#else>
<app-image-upload
<app-image-upload
:appEntityService="appEntityService"
:context="context"
:multiple="false"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="'<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>'"
......@@ -12,6 +14,7 @@
name='${editor.name}'
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
:ownerid="<#if item.getEditorParam("ownerid",'') != ''>'${item.getEditorParam("ownerid",'')}'<#else>data.srfkey</#if>"
:uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>'
:exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>'>
</app-image-upload>
......
<disk-image-upload
:appEntityService="appEntityService"
:context="context"
:data="data"
formItemName="${item.name}"
:value="data.${item.name}"
:formState="formState"
:ownerid="<#if item.getEditorParam("ownerid",'') != ''>'${item.getEditorParam("ownerid",'')}'<#else>data.srfkey</#if>"
folder=<#if item.getEditorParam("folder",'') != ''>"${item.getEditorParam("folder",'')}"<#else>"${ctrl.getPSDataEntity().getCodeName()?lower_case}"</#if>
ownertype=<#if item.getEditorParam("ownerType",'') != ''>"${item.getEditorParam("ownerType",'')}"<#else>"${item.name}"</#if>
:ownerid=<#if item.getEditorParam("ownerid",'') != ''>"'${item.getEditorParam("ownerid",'')}'"<#else>"data.srfkey"</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册