UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

2 lines (1 loc) 1.35 kB
"use strict";const e=require("vue"),o=require("@vuux/icons"),r={class:"app-result"},a={key:0,class:"is-title"},l={key:1,class:"is-content"},u=e.defineComponent({name:"Result",__name:"index",props:{title:{},content:{},status:{default:"success"}},setup(c){const t=c,n=e.useSlots();return(s,i)=>(e.openBlock(),e.createElementBlock("div",r,[t.status=="success"?(e.openBlock(),e.createBlock(e.unref(o.Icon),{key:0,name:"Icon5524835",size:32,color:"var(--app-success)"})):e.createCommentVNode("",!0),t.status=="warning"?(e.openBlock(),e.createBlock(e.unref(o.Icon),{key:1,name:"Icon7903790",size:32,color:"var(--app-warning)"})):e.createCommentVNode("",!0),t.status=="error"?(e.openBlock(),e.createBlock(e.unref(o.Icon),{key:2,name:"Icon5212574",size:32,color:"var(--app-danger)"})):e.createCommentVNode("",!0),t.status=="empty"?(e.openBlock(),e.createBlock(e.unref(o.Icon),{key:3,name:"Icon4835048",size:32,opacity:.9,color:"var(--app-text-color)"})):e.createCommentVNode("",!0),e.unref(n).default?e.renderSlot(s.$slots,"default",{key:4}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[t.title?(e.openBlock(),e.createElementBlock("div",a,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.content?(e.openBlock(),e.createElementBlock("div",l,e.toDisplayString(t.content),1)):e.createCommentVNode("",!0)],64))]))}});module.exports=u;