1 |
- System.register(["./index-legacy.eb062188.js"],(function(e){"use strict";var t,n,c,s,o,a,l,i,r,d,u,p,m,b,v,f,g;return{setters:[function(e){t=e.t,n=e.N,c=e.b4,s=e.v,o=e.av,a=e.u,l=e.b5,i=e.d,r=e.c,d=e.E,u=e.am,p=e.P,m=e.a5,b=e.au,v=e.L,f=e._,g=e.D}],execute:function(){const[k,x]=t("action-sheet"),h=n({},c,{title:String,round:s,actions:o(),closeIcon:a("cross"),closeable:s,cancelText:String,description:String,closeOnPopstate:s,closeOnClickAction:Boolean,safeAreaInsetBottom:s}),y=[...l,"round","closeOnPopstate","safeAreaInsetBottom"];var A=i({name:k,props:h,emits:["select","cancel","update:show"],setup(e,{slots:t,emit:n}){const c=e=>n("update:show",e),s=()=>{c(!1),n("cancel")},o=()=>{if(e.title)return r("div",{class:x("header")},[e.title,e.closeable&&r(m,{name:e.closeIcon,class:[x("close"),b],onClick:s},null)])},a=()=>{if(t.cancel||e.cancelText)return[r("div",{class:x("gap")},null),r("button",{type:"button",class:x("cancel"),onClick:s},[t.cancel?t.cancel():e.cancelText])]},l=(e,n)=>e.loading?r(v,{class:x("loading-icon")},null):t.action?t.action({action:e,index:n}):[r("span",{class:x("name")},[e.name]),e.subname&&r("div",{class:x("subname")},[e.subname])],i=(t,s)=>{const{color:o,loading:a,callback:i,disabled:d,className:u}=t;return r("button",{type:"button",style:{color:o},class:[x("item",{loading:a,disabled:d}),u],onClick:()=>{d||a||(i&&i(t),e.closeOnClickAction&&c(!1),f((()=>n("select",t,s))))}},[l(t,s)])},g=()=>{if(e.description||t.description){const n=t.description?t.description():e.description;return r("div",{class:x("description")},[n])}};return()=>r(p,d({class:x(),position:"bottom","onUpdate:show":c},u(e,y)),{default:()=>{var n;return[o(),g(),r("div",{class:x("content")},[e.actions.map(i),null==(n=t.default)?void 0:n.call(t)]),a()]}})}});e("A",g(A))}}}));
|