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.
11 lines
2.5 KiB
11 lines
2.5 KiB
8 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-segmented-control"],{"11f5":function(t,e,r){"use strict";var n=r("307d"),o=r.n(n);o.a},"307d":function(t,e,r){},4371:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},o=[]},aa5d:function(t,e,r){"use strict";r.r(e);var n=r("4371"),o=r("af40");for(var c in o)["default"].indexOf(c)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(c);r("11f5");var a=r("828b"),u=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},af40:function(t,e,r){"use strict";r.r(e);var n=r("cfe4"),o=r.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(c);e["default"]=o.a},cfe4:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"uni-segmented-control",props:{current:{type:Number,default:0},values:{type:Array,default:function(){return[]}},activeColor:{type:String,default:"#007aff"},styleType:{type:String,default:"button"},haveBorder:{type:Boolean,default:function(){return!1}},lockTap:{type:Boolean,default:function(){return!0}}},data:function(){return{currentIndex:this.current}},watch:{current:function(t){t!==this.currentIndex&&(this.currentIndex=t)}},computed:{wrapStyle:function(){var t="";switch(this.styleType){case"text":t="border:0;";break;default:t=this.haveBorder?"border: 1rpx solid ".concat(this.activeColor,";"):"";break}return t},itemStyle:function(){var t="";switch(this.styleType){case"text":t="color:#000;border-left:0;";break;default:t="color:#222;background:#eddbba;border-color:#fff;";break}return t},activeStyle:function(){var t="";switch(this.styleType){case"text":t="color:".concat(this.activeColor,";border-left:0;border-bottom-style:solid;");break;default:t="color:#fff;border-color:".concat(this.activeColor,";background-color:").concat(this.activeColor);break}return t}},methods:{onClick:function(t){var e=this.lockTap,r=this.currentIndex;console.log(e,r),r===t&&e||(this.currentIndex=t,this.$emit("clickItem",t))}}};e.default=n}}]);
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'components/uni-segmented-control-create-component',
|
||
|
{
|
||
|
'components/uni-segmented-control-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("aa5d"))
|
||
|
})
|
||
|
},
|
||
|
[['components/uni-segmented-control-create-component']]
|
||
|
]);
|