index-legacy.d552a2f3.js 1.0 KB

1
  1. System.register(["./index-legacy.eb062188.js","./index-legacy.8c254533.js"],(function(e){"use strict";var t,o,n,s,a;return{setters:[function(e){t=e.d,o=e.r,n=e.Z,s=e.c},function(e){a=e.A}],execute:function(){e("O",t({name:"o-action-sheet",props:{show:{type:Boolean,default:!1},actions:{type:Array,required:!0,default:()=>[]},cancelText:{type:String,default:"取消"},teleport:{type:[String,Element],default:""}},emits:["update:show","select"],setup(e,{emit:t}){const c=o({oPopover:e.show});return n((()=>c.oPopover),(()=>{t("update:show",c.oPopover)})),n((()=>e.show),(()=>{c.oPopover=e.show})),()=>s(a,{show:c.oPopover,"onUpdate:show":e=>c.oPopover=e,teleport:e.teleport},{default:()=>[s("div",{class:["van-sheet_content van-hairline--bottom"]},[e.actions.map((e=>s("div",{class:["van-sheet-item",e.selected&&"van-sheet-item-active"],onClick:()=>(e=>{t("select",e),t("update:show",!1)})(e)},[e.name])))]),s("button",{type:"button",class:"van-action-sheet__cancel van-action-sheet_bottom__cancel",onClick:()=>t("update:show",!1)},[e.cancelText])]})}}))}}}));