index-legacy.3373b1d3.js 1.2 KB

1
  1. System.register(["./index-legacy.48c8d62c.js","./index-legacy.b7e8815a.js"],(function(e){"use strict";var t,n,o,c,r;return{setters:[function(e){t=e.d,n=e.r,o=e.Z,c=e.c},function(e){r=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 u=t.emit,a=n({oPopover:e.show});return o((function(){return a.oPopover}),(function(){u("update:show",a.oPopover)})),o((function(){return e.show}),(function(){a.oPopover=e.show})),function(){return c(r,{show:a.oPopover,"onUpdate:show":function(e){return a.oPopover=e},teleport:e.teleport},{default:function(){return[c("div",{class:["van-sheet_content van-hairline--bottom"]},[e.actions.map((function(e){return c("div",{class:["van-sheet-item",e.selected&&"van-sheet-item-active"],onClick:function(){return function(e){u("select",e),u("update:show",!1)}(e)}},[e.name])}))]),c("button",{type:"button",class:"van-action-sheet__cancel van-action-sheet_bottom__cancel",onClick:function(){return u("update:show",!1)}},[e.cancelText])]}})}}}))}}}));