12 lines
3.8 KiB
JavaScript
12 lines
3.8 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-code-input/u-code-input"],{387:function(t,e,n){"use strict";n.r(e);var i=n(388),r=n(390);for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);n(393);var o,c=n(33),d=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"0fd0e400",null,!1,i["components"],o);d.options.__file="uview-ui/components/u-code-input/u-code-input.vue",e["default"]=d.exports},388:function(t,e,n){"use strict";n.r(e);var i=n(389);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},389:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return u})),n.d(e,"components",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,"line"===t.mode?t.__get_style([t.lineStyle]):null),i=t.__map(t.codeLength,(function(e,n){var i=t.__get_orig(e),r=t.__get_style([t.itemStyle(n)]),u=t.dot&&t.codeArray.length>n,o=u?null:t.$u.addUnit(t.fontSize),c=t.isFocus&&t.codeArray.length===n;return{$orig:i,s0:r,g0:u,g1:o,g2:c}})),r=t.$u.addUnit(t.size);t._isMounted||(t.e0=function(e){t.isFocus=!0},t.e1=function(e){t.isFocus=!1}),t.$mp.data=Object.assign({},{$root:{s1:n,l0:i,g3:r}})},u=!1,o=[];r._withStripped=!0},390:function(t,e,n){"use strict";n.r(e);var i=n(391),r=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=r.a},391:function(t,e,n){"use strict";(function(t){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(392)),u={name:"u-code-input",mixins:[t.$u.mpMixin,t.$u.mixin,r.default],data:function(){return{inputValue:"",isFocus:this.focus}},watch:{value:{immediate:!0,handler:function(t){this.inputValue=String(t).substring(0,this.maxlength)}}},computed:{codeLength:function(){return new Array(Number(this.maxlength))},itemStyle:function(){var e=this;return function(n){var i=t.$u.addUnit,r={width:i(e.size),height:i(e.size)};return"box"===e.mode&&(r.border="".concat(e.hairline?.5:1,"px solid ").concat(e.borderColor),0===t.$u.getPx(e.space)&&(0===n&&(r.borderTopLeftRadius="3px",r.borderBottomLeftRadius="3px"),n===e.codeLength.length-1&&(r.borderTopRightRadius="3px",r.borderBottomRightRadius="3px"),n!==e.codeLength.length-1&&(r.borderRight="none"))),n!==e.codeLength.length-1?r.marginRight=i(e.space):r.marginRight=0,r}},codeArray:function(){return String(this.inputValue).split("")},lineStyle:function(){var e={};return e.height=this.hairline?"2px":"4px",e.width=t.$u.addUnit(this.size),e.backgroundColor=this.borderColor,e}},methods:{inputHandler:function(t){var e=this,n=t.detail.value;this.inputValue=n,this.disabledDot&&this.$nextTick((function(){e.inputValue=n.replace(".","")})),this.$emit("change",n),this.$emit("input",n),String(n).length>=Number(this.maxlength)&&this.$emit("finish",n)}}};e.default=u}).call(this,n(2)["default"])},393:function(t,e,n){"use strict";n.r(e);var i=n(394),r=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=r.a},394:function(t,e,n){}}]);
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-code-input/u-code-input.js.map
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'uview-ui/components/u-code-input/u-code-input-create-component',
|
|
{
|
|
'uview-ui/components/u-code-input/u-code-input-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('2')['createComponent'](__webpack_require__(387))
|
|
})
|
|
},
|
|
[['uview-ui/components/u-code-input/u-code-input-create-component']]
|
|
]);
|