You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
15 KiB
1 line
15 KiB
|
1 year ago
|
(self["webpackChunkuview2_0_cli"]=self["webpackChunkuview2_0_cli"]||[]).push([[1753],{38314:function(e,t,a){var o=a(48620);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var n=a(56).Z;n("ad53e3ae",o,!0,{sourceMap:!1,shadowMode:!1})},44150:function(e,t,a){"use strict";a.d(t,{Z:function(){return m}});var o,n={uPopup:a(64606).Z,uIcon:a(38275).Z,uLine:a(36083).Z,uLoadingIcon:a(20289).Z,uGap:a(70296).Z},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("u-popup",{attrs:{show:e.show,mode:"bottom",safeAreaInsetBottom:e.safeAreaInsetBottom,round:e.round},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeHandler.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"u-action-sheet"},[e.title?a("v-uni-view",{staticClass:"u-action-sheet__header"},[a("v-uni-text",{staticClass:"u-action-sheet__header__title u-line-1"},[e._v(e._s(e.title))]),a("v-uni-view",{staticClass:"u-action-sheet__header__icon-wrap",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)}}},[a("u-icon",{attrs:{name:"close",size:"17",color:"#c8c9cc",bold:!0}})],1)],1):e._e(),e.description?a("v-uni-text",{staticClass:"u-action-sheet__description",style:[{marginTop:""+(e.title&&e.description?0:"18px")}]},[e._v(e._s(e.description))]):e._e(),e._t("default",[e.description?a("u-line"):e._e(),a("v-uni-view",{staticClass:"u-action-sheet__item-wrap"},[e._l(e.actions,(function(t,o){return[a("v-uni-view",{staticClass:"u-action-sheet__item-wrap__item",attrs:{"hover-class":t.disabled||t.loading?"":"u-action-sheet--hover","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectHandler(o)}}},[t.loading?a("u-loading-icon",{attrs:{"custom-class":"van-action-sheet__loading",size:"18",mode:"circle"}}):[a("v-uni-text",{staticClass:"u-action-sheet__item-wrap__item__name",style:[e.itemStyle(o)]},[e._v(e._s(t.name))]),t.subname?a("v-uni-text",{staticClass:"u-action-sheet__item-wrap__item__subname"},[e._v(e._s(t.subname))]):e._e()]],2),o!==e.actions.length-1?a("u-line"):e._e()]}))],2)]),e.cancelText?a("u-gap",{attrs:{bgColor:"#eaeaec",height:"6"}}):e._e(),a("v-uni-view",{attrs:{"hover-class":"u-action-sheet--hover"}},[e.cancelText?a("v-uni-text",{staticClass:"u-action-sheet__cancel-text",attrs:{"hover-stay-time":150},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)},click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)}}},[e._v(e._s(e.cancelText))]):e._e()],1)],2)],1)},r=[],s=a(93194),l=a(39567),c=(a(82526),a(41817),a(9653),{props:{show:{type:Boolean,default:uni.$u.props.actionSheet.show},title:{type:String,default:uni.$u.props.actionSheet.title},description:{type:String,default:uni.$u.props.actionSheet.description},actions:{type:Array,default:uni.$u.props.actionSheet.actions},cancelText:{type:String,default:uni.$u.props.actionSheet.cancelText},closeOnClickAction:{type:Boolean,default:uni.$u.props.actionSheet.closeOnClickAction},safeAreaInsetBottom:{type:Boolean,default:uni.$u.props.actionSheet.safeAreaInsetBottom},openType:{type:String,default:uni.$u.props.actionSheet.openType},closeOnClickOverlay:{type:Boolean,default:uni.$u.props.actionSheet.closeOnClickOverlay},round:{type:[Boolean,String,Number],default:uni.$u.props.actionSheet.round}}}),u={name:"u-action-sheet",mixins:[s.Z,l.Z,uni.$u.mixin,c],data:function(){return{}},computed:{itemStyle:function(){var e=this;return function(t){var a={};return e.actions[t].color&&(a.color=e.actions[t].color),e.actions[t].fontSize&&(a.fontSize=uni.$u.addUnit(e.actions[t].fontSize)),e.actions[t].disabled&&(a.color="#c0c4cc"),a}}},methods:{closeHandler:function(){this.closeOnClickOverlay&&this.$emit("close")},cancel:function(){this.$emit("close")},selectHandler:function(e){var t=this.actions[e];!t||t.disabled||t.loading||(this.$emit("select",t),this.closeOnClickAction&&this.$emit("close"))}}},d=u,h=(a(38314),a(69453)),f=(0,h.Z)(d,i,r,!1,null,"5a6c3da4",null,!1,n,o),m=f.exports},40245:functio
|