@aplus-frontend/ui
Version:
2 lines (1 loc) • 1.66 kB
JavaScript
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@aplus-frontend/antdv");require("./item.vue.js");const l=require("./item.vue2.js"),i={style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:"16px"}},r=e.defineComponent({name:"ApSkeletonTable",__name:"index",props:{active:{type:Boolean},size:{default:4},actions:{type:Boolean,default:void 0}},setup(o){return(t,c)=>(e.openBlock(),e.createBlock(e.unref(a.Card),{variant:"borderless"},{default:e.withCtx(()=>[t.actions!==!1?(e.openBlock(),e.createBlock(e.unref(a.Flex),{key:0,justify:"space-between"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(a.Skeleton).Button,{active:t.active,size:"small",style:{width:"100px",marginBlockEnd:"16px",marginInlineEnd:"16px"}},null,8,["active"]),e.createVNode(e.unref(a.Skeleton).Button,{active:t.active,size:"small",style:{width:"100px",marginBlockEnd:"16px"}},null,8,["active"])]),e.createVNode(e.unref(a.Skeleton).Button,{active:t.active,size:"small",style:{width:"22px",marginBlockEnd:"16px"}},null,8,["active"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(l.default,{header:"",active:t.active},null,8,["active"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(new Array(t.size).fill(null),(u,n)=>(e.openBlock(),e.createBlock(l.default,{key:n,active:t.active},null,8,["active"]))),128)),e.createElementVNode("div",i,[e.createVNode(e.unref(a.Skeleton),{active:t.active,paragraph:!1,title:{style:{margin:0,height:"24px",float:"right",maxWidth:"630px"}}},null,8,["active"])])]),_:1}))}});exports.default=r;