2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
import{e,f as t,w as i,l as s,F as l,D as o,p as a,q as r,k as n,m as d,A as u,P as p,T as h,z as c,aB as f,j as m,t as y,bK as g,I as b,aN as F,by as x,bz as _,c as k,a2 as w,a3 as v}from"./index-RXP3BP3O.js";import{_ as P}from"./uni-icons.CInJK_LV.js";import{t as I}from"./uni-cloud.es.D8sVMAJa.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{u as S}from"./uploadFile.DQ-stcMT.js";const $="chooseAndUploadFile:fail";function M(e,t){return e.tempFiles.forEach((e,i)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+i+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function C(e,t=5,i){const s=(e=JSON.parse(JSON.stringify(e))).length;let l=0,o=this;return new Promise(a=>{for(;l<t;)r();function r(){let t=l++;if(t>=s)return void(!e.find(e=>!e.url&&!e.errMsg)&&a(e));const n=e[t],d=o.files.findIndex(e=>e.uuid===n.uuid);n.url="",delete n.errMsg,I.uploadFile({filePath:n.path,cloudPath:n.cloudPath,fileType:n.fileType,onUploadProgress:e=>{e.index=d,i&&i(e)}}).then(e=>{n.url=e.fileID,n.index=d,t<s&&r()}).catch(e=>{n.errMsg=e.errMsg||e.message,n.index=d,t<s&&r()})}})}function L(e,{onChooseFile:t,onUploadProgress:i}){return e.then(e=>{if(t){const i=t(e);if(void 0!==i)return Promise.resolve(i).then(t=>void 0===t?e:t)}return e}).then(e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e)}function j(e={type:"all"}){return"image"===e.type?L(function(e){const{count:t,sizeType:i=["original","compressed"],sourceType:s,extension:l}=e;return new Promise((e,o)=>{uni.chooseImage({count:t,sizeType:i,sourceType:s,extension:l,success(t){e(M(t,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",$)})}})})}(e),e):"video"===e.type?L(function(e){const{count:t,camera:i,compressed:s,maxDuration:l,sourceType:o,extension:a}=e;return new Promise((e,t)=>{uni.chooseVideo({camera:i,compressed:s,maxDuration:l,sourceType:o,extension:a,success(t){const{tempFilePath:i,duration:s,size:l,height:o,width:a}=t;e(M({errMsg:"chooseVideo:ok",tempFilePaths:[i],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:i,size:l,type:t.tempFile&&t.tempFile.type||"",width:a,height:o,duration:s,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",$)})}})})}(e),e):L(function(e){const{count:t,extension:i}=e;return new Promise((e,s)=>{let l=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(l=wx.chooseMessageFile),"function"!=typeof l)return s({errMsg:$+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});l({type:"all",count:t,extension:i,success(t){e(M(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",$)})}})})}(e),e)}const E=e=>{const t=e.lastIndexOf("."),i=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,i)}},O=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},B=async(e,t="image")=>{const i=E(e.name).ext.toLowerCase();let s={name:e.name,uuid:e.uuid,extname:i||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(l=e.path,new Promise((e,t)=>{uni.getImageInfo({src:l,success(t){e(t)},fail(e){t(e)}})}));delete s.video,s.image.width=t.width,s.image.height=t.height,s.image.location=t.path}else delete s.image;var l;return s};const V=T({name:"uniFilePicker",components:{uploadImage:T({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let i={};"auto"===t?"auto"!==e?(i.height=this.value2px(e),i["padding-top"]=0):i.height=0:(i.height=this.value2px(t),i["padding-top"]=0),i.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let s="";for(let l in i)s+=`${l}:${i[l]};`;return s},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let i=e&&e.width||1;i=this.value2px(i);let s=e&&e.radius||3;s=this.value2px(s),t={"border-width":i,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":s}}let i="";for(let s in t)i+=`${s}:${t[s]};`;return i}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.readonly||this.$emit("choose")},delFile(e){this.readonly||this.$emit("delFile",e)},prviewImage(e,t){if(this.readonly)return;let i=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach(e=>{i.push(e.url)}),uni.previewImage({urls:i,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(m,y,g,b,F,x){const _=h,k=c,w=f;return e(),t(k,{class:"uni-file-picker__container"},{default:i(()=>[(e(!0),s(l,null,o(g.filesList,(s,l)=>(e(),t(k,{class:"file-picker__box",key:l,style:a(x.boxStyle)},{default:i(()=>[r(k,{class:"file-picker__box-content",style:a(x.borderStyle)},{default:i(()=>[r(_,{class:"file-image",src:s.url,mode:"aspectFill",onClick:n(e=>x.prviewImage(s,l),["stop"])},null,8,["src","onClick"]),g.delIcon&&!g.readonly?(e(),t(k,{key:0,class:"icon-del-box",onClick:n(e=>x.delFile(l),["stop"])},{default:i(()=>[r(k,{class:"icon-del"}),r(k,{class:"icon-del rotate"})]),_:2},1032,["onClick"])):d("",!0),s.progress&&100!==s.progress||0===s.progress?(e(),t(k,{key:1,class:"file-picker__progress"},{default:i(()=>[r(w,{class:"file-picker__progress-item",percent:-1===s.progress?0:s.progress,"stroke-width":"4",backgroundColor:s.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])]),_:2},1024)):d("",!0),s.errMsg?(e(),t(k,{key:2,class:"file-picker__mask",onClick:n(e=>x.uploadFiles(s,l),["stop"])},{default:i(()=>[u(" 点击重试 ")]),_:2},1032,["onClick"])):d("",!0)]),_:2},1032,["style"])]),_:2},1032,["style"]))),128)),g.filesList.length<g.limit?(e(),t(k,{key:0,class:"file-picker__box",style:a(x.boxStyle)},{default:i(()=>[r(k,{class:"file-picker__box-content is-add",style:a(x.borderStyle),onClick:x.choose},{default:i(()=>[p(m.$slots,"default",{},void 0,!0)]),_:3},8,["style","onClick"])]),_:3},8,["style"])):d("",!0)]),_:3})}],["__scopeId","data-v-9b54ec1f"]]),uploadFile:T({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach(t=>{e.push(t)}),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,i={};if(t){let t=e&&e.width||1;t=this.value2px(t);let s=e&&e.radius||5;s=this.value2px(s),i={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":s}}else i.border="none";let s="";for(let l in i)s+=`${l}:${i[l]};`;return s},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let i=t&&t.width||1,s=t&&t.style||0;"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-width"]=i,"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-top-style"]=s}let i="";for(let s in e)i+=`${s}:${e[s]};`;return i}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(h,g,b,F,x,_){const k=c,w=f;return e(),t(k,{class:"uni-file-picker__files"},{default:i(()=>[b.readonly?d("",!0):(e(),t(k,{key:0,class:"files-button",onClick:_.choose},{default:i(()=>[p(h.$slots,"default",{},void 0,!0)]),_:3},8,["onClick"])),_.list.length>0?(e(),t(k,{key:1,class:"uni-file-picker__lists is-text-box",style:a(_.borderStyle)},{default:i(()=>[(e(!0),s(l,null,o(_.list,(s,l)=>(e(),t(k,{class:m(["uni-file-picker__lists-box",{"files-border":0!==l&&_.styles.dividline}]),key:l,style:a(0!==l&&_.styles.dividline&&_.borderLineStyle)},{default:i(()=>[r(k,{class:"uni-file-picker__item"},{default:i(()=>[r(k,{class:"files__name"},{default:i(()=>[u(y(s.name),1)]),_:2},1024),b.delIcon&&!b.readonly?(e(),t(k,{key:0,class:"icon-del-box icon-files",onClick:e=>_.delFile(l)},{default:i(()=>[r(k,{class:"icon-del icon-files"}),r(k,{class:"icon-del rotate"})]),_:2},1032,["onClick"])):d("",!0)]),_:2},1024),s.progress&&100!==s.progress||0===s.progress?(e(),t(k,{key:0,class:"file-picker__progress"},{default:i(()=>[r(w,{class:"file-picker__progress-item",percent:-1===s.progress?0:s.progress,"stroke-width":"4",backgroundColor:s.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])]),_:2},1024)):d("",!0),"error"===s.status?(e(),t(k,{key:1,class:"file-picker__mask",onClick:n(e=>_.uploadFiles(s,l),["stop"])},{default:i(()=>[u(" 点击重试 ")]),_:2},1032,["onClick"])):d("",!0)]),_:2},1032,["class","style"]))),128))]),_:1},8,["style"])):d("",!0)]),_:3})}],["__scopeId","data-v-8c4b47de"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""},dir:{type:String,default:""}},data:()=>({files:[],localValue:[],dirPath:""}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0},dir:{handler(e){this.dirPath=e},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach(t=>{e.push(t)}),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){I.config&&I.config.provider||(this.noSpace=!0,I.chooseAndUploadFile=j),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick(()=>{this.setEmit()})),this.$nextTick(()=>{this.setEmit()})},upload(){let e=[];return this.files.forEach((t,i)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))}),this.uploadFiles(e)},async setValue(e,t){const i=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await i(e):e={};else{e||(e=[]);for(let t=0;t<e.length;t++){let s=e[t];await i(s)}}this.localValue=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(this.localValue));let s=Object.keys(e).length>0?e:[];this.files=[].concat(s)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=O(this.fileExtname);I.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then(e=>{this.setSuccessAndError(e.tempFiles)}).catch(e=>{console.log("选择失败",e)})},async chooseFileCallback(e){const t=O(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:i,files:s}=((e,t)=>{let i=[],s=[];return t&&0!==t.length?(e.tempFiles.forEach(e=>{const l=E(e.name).ext.toLowerCase();-1!==t.indexOf(l)&&(s.push(e),i.push(e.path))}),s.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-s.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:i,files:s}):{filePaths:i,files:s}})(e,t);t&&t.length>0||(i=e.tempFilePaths,s=e.tempFiles);let l=[];for(let o=0;o<s.length&&!(this.limitLength-this.files.length<=0);o++){s[o].uuid=Date.now();let e=await B(s[o],this.fileMediatype);e.progress=0,e.status="ready";let t={...e,file:s[o]};this.files.push(t),l.push(t)}return this.$emit("select",{tempFiles:l,tempFilePaths:i}),e.tempFiles=s,this.autoUpload&&!this.noSpace||(e.tempFiles=[]),e.tempFiles.map((e,t)=>{this.provider&&(e.provider=this.provider);const i=e.name.split("."),s=i.pop(),l=i.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");let o=this.dirPath||"";return o&&"/"!==o[o.length-1]&&(o+="/"),e.cloudPath=o+l+"_"+Date.now()+"_"+t+"."+s,e.cloudPathAsRealPath=!0,e}),e},uploadFiles(e){return e=[].concat(e),C.call(this,e,5,e=>{this.setProgress(e,e.index,!0)}).then(e=>(this.setSuccessAndError(e),e)).catch(e=>{console.log(e)})},async setSuccessAndError(e,t){let i=[],s=[],l=[],o=[];for(let a=0;a<e.length;a++){const t=e[a],r=t.uuid?this.files.findIndex(e=>e.uuid===t.uuid):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,s.push(this.files[r]),o.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,i.push(this.files[r]),l.push(this.files[r].fileID)}}i.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(i),tempFilePaths:l})),s.length>0&&this.$emit("fail",{tempFiles:this.backObject(s),tempFilePaths:o})},setProgress(e,t,i){this.files.length;const s=Math.round(100*e.loaded/e.total);let l=t;i||(l=this.files.findIndex(t=>t.uuid===e.tempFile.uuid)),-1!==l&&this.files[l]&&(this.files[l].progress=s-1,this.$emit("progress",{index:l,progress:parseInt(s),tempFile:this.files[l]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick(()=>{this.setEmit()})},getFileExt(e){const t=e.lastIndexOf("."),i=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,i)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach(e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})}),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await I.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,i=t.$options.name;for(;i!==e;){if(t=t.$parent,!t)return!1;i=t.$options.name}return t}}},[["render",function(s,l,o,a,n,h){const f=b,m=c,x=g("upload-image"),_=F,k=g("upload-file");return e(),t(m,{class:"uni-file-picker"},{default:i(()=>[o.title?(e(),t(m,{key:0,class:"uni-file-picker__header"},{default:i(()=>[r(f,{class:"file-title"},{default:i(()=>[u(y(o.title),1)]),_:1}),r(f,{class:"file-count"},{default:i(()=>[u(y(h.filesList.length)+"/"+y(h.limitLength),1)]),_:1})]),_:1})):d("",!0),"image"===o.fileMediatype&&"grid"===h.showType?(e(),t(x,{key:1,readonly:o.readonly,"image-styles":o.imageStyles,"files-list":h.filesList,limit:h.limitLength,disablePreview:o.disablePreview,delIcon:o.delIcon,onUploadFiles:h.uploadFiles,onChoose:h.choose,onDelFile:h.delFile},{default:i(()=>[p(s.$slots,"default",{},()=>[r(m,{class:"icon-add"}),r(m,{class:"icon-add rotate"})],!0)]),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):d("",!0),"image"!==o.fileMediatype||"grid"!==h.showType?(e(),t(k,{key:2,readonly:o.readonly,"list-styles":o.listStyles,"files-list":h.filesList,showType:h.showType,delIcon:o.delIcon,onUploadFiles:h.uploadFiles,onChoose:h.choose,onDelFile:h.delFile},{default:i(()=>[p(s.$slots,"default",{},()=>[r(_,{type:"primary",size:"mini"},{default:i(()=>[u("选择文件")]),_:1})],!0)]),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):d("",!0)]),_:3})}],["__scopeId","data-v-63cb6c9a"]]),D=T({__name:"cb-file-picker",props:x({type:{type:String,default:"image"},isFront:{type:Boolean,default:!1},isBack:{type:Boolean,default:!1},limit:{type:String,default:"1"},readonly:{type:Boolean,default:!1}},{modelValue:{type:[String,Array],default:()=>[]},modelModifiers:{},list:{type:Array,default:()=>[]},listModifiers:{}}),emits:["update:modelValue","update:list"],setup(s){const l=s,o=_(s,"modelValue"),a=_(s,"list"),n=k(()=>l.isFront||l.isBack),p=k(()=>{let e={width:"200rpx",height:"200rpx",border:{color:"#00D993",style:"dashed"}};return n.value&&(e={width:"295rpx",height:"176rpx",border:{width:"0rpx"}}),e}),f=async e=>{if("1"===l.limit){const t=e.tempFiles.map(e=>e.path)[0];o.value=await S(t,{url:"/api/common/admin/upload/up/single"})}else e.tempFiles.forEach(e=>{(async e=>{const t=await S(e,{url:"/api/common/admin/upload/up/single"});o.value.push(t)})(e.path)})},g=e=>{"1"===l.limit?o.value="":o.value.splice(e.index,1)};return(s,o)=>{const F=h,x=c,_=w(v("uni-icons"),P),k=b,I=w(v("uni-file-picker"),V);return e(),t(x,{class:m([{"file_card-box":n.value},"cb-file-picker"])},{default:i(()=>[r(I,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e),readonly:l.readonly,"file-mediatype":l.type,"image-styles":p.value,limit:l.limit,onSelect:f,onDelete:g},{default:i(()=>[n.value?(e(),t(x,{key:0},{default:i(()=>[l.isFront?(e(),t(F,{key:0,src:"/assets/id-front-BFqKNK_5.png",mode:"widthFix",class:"card-img"})):d("",!0),l.isBack?(e(),t(F,{key:1,src:"/assets/id-opposite-Do348ERT.png",mode:"widthFix",class:"card-img"})):d("",!0)]),_:1})):(e(),t(x,{key:1,class:"img-box"},{default:i(()=>[r(_,{type:"plusempty",size:"18",color:"#00D993"}),r(k,{class:"name"},{default:i(()=>[u("上传")]),_:1})]),_:1}))]),_:1},8,["modelValue","readonly","file-mediatype","image-styles","limit"]),n.value?(e(),t(k,{key:0,class:"bottom-text"},{default:i(()=>[u(" 身份证"+y(l.isFront?"人像面":"国徽面"),1)]),_:1})):d("",!0)]),_:1},8,["class"])}}},[["__scopeId","data-v-bfa0a290"]]);export{D as _};
|