import{h as _,H as u}from"./element-plus-z3MwpXC9.js";import{U as l}from"./index-DywnEBie.js";import{d as c,o as f,c as y,V as o,M as t,a as s,S as n}from"./@vue-TMcuEboY.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./@element-plus-DRBc1Xzw.js";import"./dayjs-CMfar2R3.js";import"./balanced-match-mNcR6oh4.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./index-DXEGVToZ.js";import"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";const g={class:"flex flex-wrap"},v={class:"m-4"},h={class:"m-4"},w={class:"m-4"},x={class:"m-4"},to=c({__name:"upload",setup(B){const p=e=>{console.log("上传文件的状态发生改变",e)},i=e=>{console.log("上传文件成功",e)},m=e=>{console.log("上传文件失败",e)};return(e,r)=>{const a=_,d=u;return f(),y("div",null,[o(d,{header:"基础使用",shadow:"never",class:"!border-none"},{default:t(()=>[s("div",g,[s("div",v,[o(l,{onChange:p,onSuccess:i,onError:m,"show-progress":!0},{default:t(()=>[o(a,{type:"primary"},{default:t(()=>r[0]||(r[0]=[n("上传图片")])),_:1})]),_:1})]),s("div",h,[o(l,{type:"video",onChange:p,onSuccess:i,onError:m,"show-progress":!0},{default:t(()=>[o(a,{type:"primary"},{default:t(()=>r[1]||(r[1]=[n("上传视频")])),_:1})]),_:1})]),s("div",w,[o(l,{multiple:!1,onChange:p,onSuccess:i,onError:m,"show-progress":!0},{default:t(()=>[o(a,{type:"primary"},{default:t(()=>r[2]||(r[2]=[n("取消多选")])),_:1})]),_:1})]),s("div",x,[o(l,{limit:2,onChange:p,onSuccess:i,onError:m,"show-progress":!0},{default:t(()=>[o(a,{type:"primary"},{default:t(()=>r[3]||(r[3]=[n("一次最多上传2张")])),_:1})]),_:1})])])]),_:1})])}}});export{to as default};
