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.
10 lines
2.5 KiB
10 lines
2.5 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-switch/u-switch"],{"4e57":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uLoading:function(){return n.e("uview-ui/components/u-loading/u-loading").then(n.bind(null,"1712"))}},u=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.switchStyle])),i=t.$u.addUnit(this.size),u=t.$u.addUnit(this.size);t.$mp.data=Object.assign({},{$root:{s0:n,g0:i,g1:u}})},a=[]},"76d8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-switch",props:{openText:{type:Object,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:50},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#ffffff"},value:{type:Boolean,default:!1},vibrateShort:{type:Boolean,default:!1},activeValue:{type:[Number,String,Boolean],default:!0},inactiveValue:{type:[Number,String,Boolean],default:!1}},data:function(){return{}},computed:{switchStyle:function(){var t={};return t.fontSize=this.size+"rpx",t.backgroundColor=this.value?this.activeColor:this.inactiveColor,t},loadingColor:function(){return this.value?this.activeColor:null}},methods:{onClick:function(){var e=this;this.disabled||this.loading||(this.vibrateShort&&t.vibrateShort(),this.$emit("input",!this.value),this.$nextTick((function(){e.$emit("change",e.value?e.activeValue:e.inactiveValue)})))}}};e.default=n}).call(this,n("543d")["default"])},b102:function(t,e,n){},d0ff:function(t,e,n){"use strict";n.r(e);var i=n("4e57"),u=n("e30d");for(var a in u)"default"!==a&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("d283");var o,l=n("f0c5"),r=Object(l["a"])(u["default"],i["b"],i["c"],!1,null,"58b2197e",null,!1,i["a"],o);e["default"]=r.exports},d283:function(t,e,n){"use strict";var i=n("b102"),u=n.n(i);u.a},e30d:function(t,e,n){"use strict";n.r(e);var i=n("76d8"),u=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=u.a}}]); |
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ |
|
'uview-ui/components/u-switch/u-switch-create-component', |
|
{ |
|
'uview-ui/components/u-switch/u-switch-create-component':(function(module, exports, __webpack_require__){ |
|
__webpack_require__('543d')['createComponent'](__webpack_require__("d0ff")) |
|
}) |
|
}, |
|
[['uview-ui/components/u-switch/u-switch-create-component']] |
|
]);
|
|
|