index-legacy.4deb87c9.js 1.2 KB

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