index-legacy.b9c4417f.js 1.2 KB

1
  1. System.register(["./index-legacy.57a461ad.js","./index-legacy.a9944503.js"],(function(e){"use strict";var t,n,o,r,c;return{setters:[function(e){t=e.A},function(e){n=e.d,o=e.r,r=e.Z,c=e.c}],execute:function(){e("O",n({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,n){var u=n.emit,a=o({oPopover:e.show});return r((function(){return a.oPopover}),(function(){u("update:show",a.oPopover)})),r((function(){return e.show}),(function(){a.oPopover=e.show})),function(){return c(t,{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])]}})}}}))}}}));