import{d as _,cq as g,r as d,a as f,c as j,o as v,w as n,j as a,W as U,l as p,X as h}from"./index-9PRMimni.js";import"./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";import{_ as k}from"./ImageUpload-DUsnro3W.js";import"./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./componentSetting-DVhNDBTO.js";const x=_({__name:"upload",setup(y){const s=g(),t=d(["https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png","https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png","https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"]),{uploadUrl:l}=s,r=f({platform:"miniPrograms",timestamp:new Date().getTime(),token:"56vqtCMih/jw1g4n4CsYHwc6mQsI/SiZYtQUXxVr9uI="});function i(o){console.log(o),t.value=o}return(o,e)=>{const m=U,c=h;return v(),j(c,{title:"上传",content:"用于向用户收集图片/文件等信息"},{default:n(()=>[a(m,{bordered:!1,class:"mt-3 proCard",title:"多图上传","content-style":"padding-top: 0;"},{default:n(()=>[a(p(k),{action:`${p(l)}/v1.0/upload`,headers:r,data:{type:"0"},helpText:"图片支持 jpg / png / gif / bmp 格式，大小不超过 2M",value:t.value,"onUpdate:value":e[0]||(e[0]=u=>t.value=u),onUploadChange:i},null,8,["action","headers","value"])]),_:1})]),_:1})}}});export{x as default};
