

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

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