ll-package
Version:
2 lines (1 loc) • 1.21 kB
JavaScript
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../hooks/useDesign.js"),l=require("./assets/empty.svg.js"),u=o=>(e.pushScopeId("data-v-74c75ff0"),o=o(),e.popScopeId(),o),a=["src"],p={class:"title"},h=u(()=>e.createElementVNode("p",{class:"prompt-text"},"暂无数据,请先去新增内容",-1)),m=e.defineComponent({name:"LlEmpty"}),g=e.defineComponent({...m,props:{width:{default:"100%"},height:{default:"100%"},imageWidth:{default:"20%"}},setup(o){const t=o,{prefixCls:i}=d.useDesign("empty"),n=e.computed(()=>typeof t.width=="string"?t.width:`${t.width}px`),s=e.computed(()=>typeof t.height=="string"?t.height:`${t.height}px`),c=e.computed(()=>typeof t.imageWidth=="string"?t.imageWidth:`${t.imageWidth}px`);return(r,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i)),style:e.normalizeStyle({width:n.value,height:s.value})},[e.renderSlot(r.$slots,"image",{},()=>[e.createElementVNode("img",{style:e.normalizeStyle({width:c.value}),src:e.unref(l.default)},null,12,a)],!0),e.createElementVNode("div",p,[e.renderSlot(r.$slots,"content",{},()=>[h],!0)])],6))}});exports.default=g;
;