

<script>
/* eslint-disable */
// sd-skip-auto-import
import sdAttachment from"@/common/components/sd-attachment.vue";import components from"./_import-components/sd-attachment-import";export const metaInfo={caption:"附件",component:{props:["designerData"],render(){const t=arguments[0];return t(sdAttachment,{attrs:{groupId:"-1",listType:this.designerData.attrFD.formItemProps.inputProps.listType}})}},icon:"upload",order:1e3,excludeFormTypes:[3]};export const fieldProps={dataType:"attachment",attrFD:{columns:4,formItemProps:{inputProps:{listType:""}}},attr:{maxLength:"",allowType:""}};export function updateOnPreview(t){t.value='{"value":"-1"}'}var _render=function t(){var e=this,o=e._self._c;return o("div",[o("a-form-model-item",{attrs:{label:"最大上传数量"}},[o("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),o("a-form-model-item",{attrs:{label:"单个文件大小不超过(MB)"}},[o("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),o("a-form-model-item",{attrs:{prop:"attr.allowType",rules:[{pattern:/^\.[a-z|0-9]+(,\.[a-z|0-9]+)*$/,message:"请参考提示输入正确的文件后缀"}]}},[o("div",{attrs:{slot:"label"},slot:"label"},[e._v(" 上传文件类型 "),o("a-tooltip",{attrs:{title:"请输入【.文件后缀】例如：.doc多个类型用逗号分隔"}},[o("a-icon",{attrs:{type:"question-circle"}})],1)],1),o("a-input",{model:{value:e.component.attr.allowType,callback:function(t){e.$set(e.component.attr,"allowType",t)},expression:"component.attr.allowType"}})],1),o("a-form-model-item",{attrs:{label:"展示样式"}},[o("a-select",{attrs:{options:[{value:"",label:"拖拽上传"},{value:"text",label:"点击上传"}]},model:{value:e.component.attrFD.formItemProps.inputProps.listType,callback:function(t){e.$set(e.component.attrFD.formItemProps.inputProps,"listType",t)},expression:"component.attrFD.formItemProps.inputProps.listType"}})],1)],1)};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdAttachment",components:components,data(){return{}},methods:{},render:_render,staticRenderFns:staticRenderFns};</script>

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