(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-dropdown/u-dropdown"],{1619:function(t,n,e){"use strict";e.r(n);var i=e("ceca"),o=e("577d");for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("c9a7");var c,r=e("f0c5"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"0a975a3d",null,!1,i["a"],c);n["default"]=a.exports},"3c52":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={name:"u-dropdown",props:{activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#606266"},closeOnClickMask:{type:Boolean,default:!0},closeOnClickSelf:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},height:{type:[Number,String],default:80},borderBottom:{type:Boolean,default:!1},titleSize:{type:[Number,String],default:28},borderRadius:{type:[Number,String],default:0}},data:function(){return{showDropdown:!0,menuList:[],active:!1,current:99999,contentStyle:{zIndex:-1,opacity:0},highlightIndex:99999,contentHeight:0}},computed:{popupStyle:function(){var t={};return t.transform="translateY(".concat(this.active?0:"-100%",")"),t["transition-duration"]=this.duration/1e3+"s",t.borderRadius="0 0 ".concat(this.$u.addUnit(this.borderRadius)," ").concat(this.$u.addUnit(this.borderRadius)),t}},created:function(){this.children=[]},mounted:function(){this.getContentHeight()},methods:{init:function(){this.menuList=[],this.children.map((function(t){t.init()}))},menuClick:function(t){var n=this;if(!this.menuList[t].disabled)return t===this.current&&this.closeOnClickSelf?(this.close(),void setTimeout((function(){n.children[t].active=!1}),this.duration)):void this.open(t)},open:function(t){this.contentStyle={zIndex:11},this.active=!0,this.current=t,this.children.map((function(n,e){n.active=t==e})),this.$emit("open",this.current)},close:function(){this.$emit("close",this.current),this.active=!1,this.current=99999,this.contentStyle={zIndex:-1,opacity:0}},maskClick:function(){this.closeOnClickMask&&this.close()},highlight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.highlightIndex=void 0!==t?t:99999},getContentHeight:function(){var t=this,n=this.$u.sys().windowHeight;this.$uGetRect(".u-dropdown__menu").then((function(e){t.contentHeight=n-e.bottom}))}}};n.default=i},"577d":function(t,n,e){"use strict";e.r(n);var i=e("3c52"),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},"711f":function(t,n,e){},c9a7:function(t,n,e){"use strict";var i=e("711f"),o=e.n(i);o.a},ceca:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,"f728"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.$u.addUnit(t.height)),i=t.$u.addUnit(t.titleSize),o=t.__get_style([t.contentStyle,{transition:"opacity "+t.duration/1e3+"s linear",top:t.$u.addUnit(t.height),height:t.contentHeight+"px"}]),u=t.__get_style([t.popupStyle]);t.$mp.data=Object.assign({},{$root:{g0:e,g1:i,s0:o,s1:u}})},u=[]}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'uview-ui/components/u-dropdown/u-dropdown-create-component', { 'uview-ui/components/u-dropdown/u-dropdown-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("1619")) }) }, [['uview-ui/components/u-dropdown/u-dropdown-create-component']] ]);