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

add:新增文件上传数量限制及文件类型白名单

上级 36444413
<app-mob-picture
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="false"
:multiple="false"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>1</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>"
:formState="formState"
:ignorefieldvaluechange="ignorefieldvaluechange"
:data="JSON.stringify(this.data)"
......
<app-mob-picture
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="false"
:multiple="false"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>1</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>"
:data="JSON.stringify(this.data)"
:value="data.${editor.name}"
:readOnly="true"
......
<app-mob-picture
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="true"
:multiple="true"
: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"
:data="JSON.stringify(this.data)"
......
<app-mob-picture
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="true"
:multiple="true"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>image/*</#if>"
:data="JSON.stringify(this.data)"
:value="data.${editor.name}"
:readOnly="true"
......
<app-mob-file-upload
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="false"
:multiple="false"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>1</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:formState="formState"
:ignorefieldvaluechange="ignorefieldvaluechange"
:data="JSON.stringify(this.data)"
......
<app-mob-file-upload
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="false"
:multiple="false"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>1</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:data="JSON.stringify(this.data)"
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
......
<app-mob-file-upload
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="true"
:multiple="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"
:data="JSON.stringify(this.data)"
......
<app-mob-file-upload
name='${editor.name}'
style="${editor.getEditorCssStyle()}overflow: auto;"
:multiple="true"
:multiple="true"
:limit="<#if editor.getEditorParam('limit','') != ''>${editor.getEditorParam('limit','')}<#else>9999</#if>"
:accept="<#if editor.getEditorParam('accept','') != ''>${editor.getEditorParam('accept','')}<#else>*</#if>"
:data="JSON.stringify(this.data)"
:value="data.${editor.name}"
:disabled="detailsModel.${editor.name}.disabled"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册