s-empty.82a09d24.js 1.3 KB

1
  1. import{D as t,e,f as s,w as a,j as o,t as n,u as i,g as l,A as c,s as r,x as p,i as u,E as d,G as _}from"./index-6e8d75c6.js";/* empty css */import{_ as f}from"./_plugin-vue_export-helper.1b428a4d.js";const y=f({__name:"s-empty",props:{icon:{type:String,default:""},text:{type:String,default:""},showAction:{type:Boolean,default:!1},actionText:{type:String,default:""},actionUrl:{type:String,default:""},paddingTop:{type:String,default:"260"},buttonColor:{type:String,default:"var(--ui-BG-Main)"}},emits:["clickAction"],setup(f,{emit:y}){t((t=>({"353aa77b":f.buttonColor})));const m=f,x=y;function g(){""!==m.actionUrl&&r.$router.go(m.actionUrl),x("clickAction")}return(t,r)=>{const y=p,m=u,x=d,b=_;return e(),s(m,{class:"ss-flex-col ss-col-center ss-row-center empty-box",style:c([{paddingTop:f.paddingTop+"rpx"}])},{default:a((()=>[o(m,{class:""},{default:a((()=>[o(y,{class:"empty-icon",src:f.icon,mode:"widthFix"},null,8,["src"])])),_:1}),o(m,{class:"empty-text ss-m-t-28 ss-m-b-40"},{default:a((()=>[""!==f.text?(e(),s(x,{key:0},{default:a((()=>[n(i(f.text),1)])),_:1})):l("",!0)])),_:1}),f.showAction?(e(),s(b,{key:0,class:"ss-reset-button empty-btn",onClick:g},{default:a((()=>[n(i(f.actionText),1)])),_:1})):l("",!0)])),_:1},8,["style"])}}},[["__scopeId","data-v-4198cfab"]]);export{y as _};