提交 ef618dd1 编写于 作者: Shine-zwj's avatar Shine-zwj

add:新增文件上传组件上传个数与类型白名单的相关参数

上级 8f63d652
<#if editor?? && editor.render??> <#if editor?? && editor.render??>
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-image-upload :multiple="true" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='${editor.name}' :value="data.${editor.name}" :disabled="detailsModel.${editor.name}.disabled" :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-upload> <app-image-upload
</#if> :multiple="true"
\ No newline at end of file :limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>"
:formState="formState"
:ignorefieldvaluechange="ignorefieldvaluechange"
@formitemvaluechange="onFormItemValueChange"
:data="JSON.stringify(this.data)"
name='${editor.name}'
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
: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-upload>
</#if>
\ No newline at end of file
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-file-upload <app-file-upload
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="viewState" :formState="viewState"
:ignorefieldvaluechange="false" :ignorefieldvaluechange="false"
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}" @formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}"
......
<#if editor?? && editor.render??> <#if editor?? && editor.render??>
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-image-upload :multiple="false" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='${editor.name}' :value="data.${editor.name}" :disabled="detailsModel.${editor.name}.disabled" :uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>' :exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>' ></app-image-upload> <app-image-upload
</#if> :multiple="false"
\ No newline at end of file :limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>"
:formState="formState"
:ignorefieldvaluechange="ignorefieldvaluechange"
@formitemvaluechange="onFormItemValueChange"
:data="JSON.stringify(this.data)"
name='${editor.name}'
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
:uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>'
:exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>'>
</app-image-upload>
</#if>
\ No newline at end of file
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-file-upload <app-file-upload
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="viewState" :formState="viewState"
:ignorefieldvaluechange="false" :ignorefieldvaluechange="false"
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}" @formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}"
......
<#if editor?? && editor.render??> <#if editor?? && editor.render??>
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-file-upload :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='${editor.name}' :value="data.${editor.name}" :disabled="detailsModel.${editor.name}.disabled" :uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>' :exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>' :multiple='<#if editor.getEditorParam('multiple','') != ''>${editor.getEditorParam('multiple','')}<#else>true</#if>' style="${editor.getEditorCssStyle()}overflow: auto;"></app-file-upload> <app-file-upload
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="formState"
:ignorefieldvaluechange="ignorefieldvaluechange"
@formitemvaluechange="onFormItemValueChange"
:data="JSON.stringify(this.data)"
name='${editor.name}'
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
:uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>'
:exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>'
:multiple='<#if editor.getEditorParam('multiple','') != ''>${editor.getEditorParam('multiple','')}<#else>true</#if>'
style="${editor.getEditorCssStyle()}overflow: auto;">
</app-file-upload>
</#if> </#if>
\ No newline at end of file
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-file-upload <app-file-upload
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="viewState" :formState="viewState"
:ignorefieldvaluechange="false" :ignorefieldvaluechange="false"
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}" @formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}"
......
<app-file-upload :isdrag="true" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange" :data="JSON.stringify(this.data)" name='${editor.name}' :value="data.${editor.name}" :disabled="detailsModel.${editor.name}.disabled" :uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>' :exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>' :multiple='<#if editor.getEditorParam('multiple','') != ''>${editor.getEditorParam('multiple','')}<#else>true</#if>' style="${editor.getEditorCssStyle()}overflow: auto;"></app-file-upload> <app-file-upload
\ No newline at end of file :isdrag="true"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="formState"
:ignorefieldvaluechange="ignorefieldvaluechange"
@formitemvaluechange="onFormItemValueChange"
:data="JSON.stringify(this.data)"
name='${editor.name}'
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
:uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>'
:exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>'
:multiple='<#if editor.getEditorParam('multiple','') != ''>${editor.getEditorParam('multiple','')}<#else>true</#if>'
style="${editor.getEditorCssStyle()}overflow: auto;">
</app-file-upload>
\ No newline at end of file
<app-file-upload <app-file-upload
:isdrag="true" :isdrag="true"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="viewState" :formState="viewState"
:ignorefieldvaluechange="false" :ignorefieldvaluechange="false"
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}" @formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册