

<script>
/* eslint-disable */
// sd-skip-auto-import
import sdAttachment from"@/common/components/sd-attachment.vue";import components from"./_import-components/sd-attachment-picture-import";export const metaInfo={caption:"上传图片",component:{props:["designerData"],render(){const t=arguments[0];return t(sdAttachment,{attrs:{groupId:"-1",listType:"picture-card"}})}},icon:"upload",order:1700,excludeFormTypes:[3]};export const fieldProps={dataType:"attachment",attrFD:{columns:4,formItemProps:{inputProps:{listType:"picture-card",rejectMessage:"请上传图片"}}},attr:{maxLength:"",allowType:".xbm,.tif,pjp,.svgz,.jpg,.jpeg,ico,tiff,.gif,svg,.jfif,.webp,.png,.bmp,pjpeg,.avif"}};export function updateOnPreview(t){t.value='{"value":"-1"}'}var _render=function t(){var e=this,n=e._self._c;return n("div",[n("a-form-model-item",{attrs:{label:"最大上传数量"}},[n("sd-ugly-number",{attrs:{min:1},model:{value:e.component.attr.maxLength,callback:function(t){e.$set(e.component.attr,"maxLength",t)},expression:"component.attr.maxLength"}})],1),n("a-form-model-item",{attrs:{label:"单个文件大小不超过(MB)"}},[n("sd-ugly-number",{attrs:{min:1},model:{value:e.component.attr.maxFileSize,callback:function(t){e.$set(e.component.attr,"maxFileSize",t)},expression:"component.attr.maxFileSize"}})],1)],1)};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdAttachmentPicture",components:components,data(){return{}},created(){this.component.attr.allowType=".xbm,.tif,pjp,.svgz,.jpg,.jpeg,ico,tiff,.gif,svg,.jfif,.webp,.png,.bmp,pjpeg,.avif"},methods:{},render:_render,staticRenderFns:staticRenderFns};</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
