/
home
/
henzagold
/
apps
/
export
/
assets
/
File Upload :
llllll
Current File: /home/henzagold/apps/export/assets/NotifyVant.c82b6694.js
import{d,r as c,M as m,b as f,f as l,i as p,y,u as _,h,o as w,e as s,I as v,K as V,z as x,t as N,a8 as k}from"./index.beb31eb7.js";const B={key:0,class:"flex"},g={class:"w-full text-white my-2"},z={class:"w-full flex content-end"},O=d({__name:"NotifyVant",props:{modelValue:{type:Boolean},timeOut:{},text:{},color:{}},emits:["update:modelValue"],setup(n,{emit:i}){const t=n,o=c(!0);m(()=>t.modelValue,e=>{t.timeOut!==-1&&u()});const u=()=>{console.log("notify",o.value),setTimeout(()=>{i("update:modelValue",!1)},t.timeOut)};return(e,a)=>e.modelValue?(w(),f("div",B,[l(_(k),{show:o.value,"onUpdate:show":a[0]||(a[0]=r=>o.value=r),style:y(e.color)},{default:p(()=>[s("div",g,[s("div",z,[l(v,{icon:"vuesax-linear:info-circle",class:"ml-[20px] text-white",size:"25","stroke-width":"2"}),s("div",null,[V(e.$slots,"default",{},()=>[x(N(e.text),1)])])])])]),_:3},8,["show","style"])])):h("",!0)}});export{O as _};
Copyright ©2k19 -
Hexid
|
Tex7ure