1 line
8.8 KiB
JavaScript
1 line
8.8 KiB
JavaScript
|
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[1],{1001:function(e,l,i){i.r(l),i.d(l,{default:function(){return $}});var t=i(6808);function a(e,l,i,a,s,o){const u=(0,t.up)("el-button"),n=(0,t.up)("x-file-select"),r=(0,t.up)("el-card"),c=(0,t.up)("el-main"),d=(0,t.up)("el-container");return(0,t.wg)(),(0,t.j4)(d,null,{default:(0,t.w5)((()=>[(0,t.Wm)(c,null,{default:(0,t.w5)((()=>[(0,t.Wm)(r,{shadow:"never",style:{height:"100%"}},{default:(0,t.w5)((()=>[(0,t.Wm)(n,{modelValue:s.file,"onUpdate:modelValue":l[0]||(l[0]=e=>s.file=e),multiple:s.multiple,hideUpload:s.hideUpload,max:99,onSubmit:o.submit},{do:(0,t.w5)((()=>[(0,t.Wm)(u,null,{default:(0,t.w5)((()=>[(0,t.Uk)("自定义插槽")])),_:1})])),_:1},8,["modelValue","multiple","hideUpload","onSubmit"])])),_:1})])),_:1})])),_:1})}var s=i(9511),o=i(1441);const u=e=>((0,t.dD)("data-v-632818a0"),e=e(),(0,t.Cn)(),e),n={class:"x-file-select"},r={class:"x-file-select__side"},c=u((()=>(0,t._)("div",{class:"x-file-select__side-menu"},null,-1))),d={key:0,class:"x-file-select__side-msg"},p={class:"x-file-select__files"},m={class:"x-file-select__top"},f={key:0,class:"upload"},g={class:"tips"},h={class:"keyword"},_={class:"x-file-select__list"},x={class:"x-file-select__item__file"},w={class:"x-file-select__item__upload"},y=["onClick"],v={class:"x-file-select__item__file"},k={key:0,class:"x-file-select__item__checkbox"},P={key:1,class:"x-file-select__item__select"},b=u((()=>(0,t._)("div",{class:"x-file-select__item__box"},null,-1))),C={key:3,class:"item-file item-file-doc"},D={key:1,class:"x-icon-file-list-fill",style:{color:"#999"}},S=["title"],z={class:"x-file-select__pagination"},U={class:"x-file-select__do"};function W(e,l,i,a,u,W){const I=(0,t.up)("el-button"),L=(0,t.up)("el-upload"),N=(0,t.up)("el-icon-warning"),q=(0,t.up)("el-icon"),j=(0,t.up)("el-input"),O=(0,t.up)("el-empty"),V=(0,t.up)("el-progress"),$=(0,t.up)("el-image"),B=(0,t.up)("el-icon-check"),E=(0,t.up)("el-scrollbar"),K=(0,t.up)("el-pagination"),F=(0,t.Q2)("loading");return(0,t.wg)(),(0,t.iD)("div",n,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",r,[c,i.multiple?((0,t.wg)(),(0,t.iD)("div",d,[(0,t.Uk)(" 已选择 "),(0,t._)("b",null,(0,s.zw)(u.value.length),1),(0,t.Uk)(" / "),(0,t._)("b",null,(0,s.zw)(i.max),1),(0,t.Uk)(" 项 ")])):(0,t.kq)("",!0)])),[[F,u.menuLoading]]),(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",p,[(0,t._)("div",m,[i.hideUpload?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",f,[(0,t.Wm)(L,{class:"x-file-select__upload",action:"",multiple:"","show-file-list":!1,accept:u.accept,"on-change":W.uploadChange,"before-upload":W.uploadBefore,"on-progress":W.uploadProcess,"on-success":W.uploadSuccess,"on-error":W.uploadError,"http-request":W.uploadRequest},{default:(0,t.w5)((()=>[(0,t.Wm)(I,{type:"primary",icon:"el-icon-upload"},{default:(0,t.w5)((()=>[(0,t.Uk)("本地上传")])),_:1})])),_:1},8,["accept","on-change","before-upload","on-progress","on-success","on-error","http-request"]),(0,t._)("span",g,[(0,t.Wm)(q,null,{default:(0,t.w5)((()=>[(0,t.Wm)(N)])),_:1}),(0,t.Uk)("大小不超过"+(0,s.zw)(i.maxSize)+"MB",1)])])),(0,t._)("div",h,[(0,t.Wm)(j,{modelValue:u.keyword,"onUpdate:modelValue":l[0]||(l[0]=e=>u.keyword=e),"prefix-icon":"el-icon-search",placeholder:"文件名搜索",clearable:"",onKeyup:(0,o.D2)(W.search,["enter"]),onClear:W.search},null,8,["modelValue","onKeyup","onClear"])])]),(0,t._)("div",_,[(0,t.Wm)(E,{ref:"scrollbar"},{default:(0,t.w5)((()=>[0==u.fileList.length&&0==u.data.length?((0,t.wg)(),(0,t.j4)(O,{key:0,description:"无数据","image-size":80})):(0,t.kq)("",!0),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(u.fileList,((e,l)=>((0,t.wg)(),(0,t.iD)("div",{key:l,class:"x-file-select__item"},[(0,t._)("div",x,[(0,t._)("div",w,[(0,t.Wm)(V,{type:"circle",percentage:e.progress,width:70},null,8,["percentage"])]),(0,t.Wm)($,{src:e.tempImg,fit:"contain"},null,8,["src"])]),(0,t._)("p",null,(0,s.zw)(e.name),1)])))),128)),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(u.data,(e=>((0,t.wg)(),(0,t.iD)("div",{key:e[u.fileProps.key],class:(0,s.C_)(["x-file-select__item",{active:u.value.includ
|