mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
import{useColumns as g}from"./columns-Ax71ghBL.js";import{k as s,e as a,g as c,a1 as w,d as x,f as t,h as l,w as n,t as k,u as e,j as y,_ as C}from"./index-DI6gHrBb.js";import{u as d}from"./hooks-CCgmh5KY.js";import{D as b}from"./delete-BLpOXDSB.js";import"./data-Dd4sCrbk.js";const L={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",class:"empty-icon",viewBox:"0 0 1024 1024"};function V(r,o){return a(),s("svg",L,o[0]||(o[0]=[c("path",{d:"M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18M673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4zm146.5-486.1c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8m-444.5 51.6L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4M512 239.3h2.5c19.5.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1z"},null,-1)]))}const B={render:V},D={viewBox:"0 0 1024 1024",width:"1em",height:"1em"};function H(r,o){return a(),s("svg",D,o[0]||(o[0]=[c("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"},null,-1)]))}const M=w({name:"ep-plus",render:H}),$={class:"flex"},z={class:"w-[400px]"},N=x({__name:"index",setup(r){const{columns:o,dataList:i,onAdd:u,onDel:_}=g();return(A,m)=>{const h=l("el-scrollbar"),p=l("el-button"),f=l("pure-table");return a(),s("div",$,[t(h,{height:"540px"},{default:n(()=>[c("code",null,[c("pre",z," "+k(e(i)),1)])]),_:1}),t(f,{"row-key":"id","align-whole":"center","header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},data:e(i),columns:e(o)},{empty:n(()=>[t(e(B),{fill:"var(--el-svg-monochrome-grey)",class:"m-auto"})]),append:n(()=>[t(p,{plain:"",class:"w-full my-2!",icon:e(d)(e(M)),onClick:e(u)},{default:n(()=>m[0]||(m[0]=[y(" 添加一行数据 ")])),_:1},8,["icon","onClick"])]),operation:n(({row:v})=>[t(p,{class:"reset-margin",link:"",type:"primary",icon:e(d)(e(b)),onClick:E=>e(_)(v)},null,8,["icon","onClick"])]),_:1},8,["data","columns"])])}}}),T=C(N,[["__scopeId","data-v-215044a7"]]);export{T as default};
|