You cannot 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.3 KiB
JavaScript
11 lines
2.3 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/helang-moveVerify/helang-moveVerify"],{"293c":function(t,n,i){},"4d65":function(t,n,i){"use strict";var e=i("293c"),c=i.n(e);c.a},"504c":function(t,n,i){"use strict";i.r(n);var e=i("cd70"),c=i.n(e);for(var o in e)"default"!==o&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=c.a},bd07:function(t,n,i){"use strict";var e;i.d(n,"b",(function(){return c})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return e}));var c=function(){var t=this,n=t.$createElement;t._self._c},o=[]},cd70:function(t,n,i){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={name:"move-verify",data:function(){return{x:0,oldx:0,isOk:!1,size:{},count:0,isMove:!1}},mounted:function(){var n=this,i=function(i){return new Promise((function(e,c){var o=t.createSelectorQuery().in(n).select(i);o.fields({size:!0},(function(t){e(t.width)})).exec()}))};this.$nextTick((function(){i(".on-pathway").then((function(t){n.size.pathway=t,i(".on-track").then((function(t){n.size.track=t}))}))}))},methods:{onMove:function(t){this.oldx=t.detail.x},onEnd:function(){var t=this;this.isOk||this.oldx<1||(this.count++,this.x=this.oldx,this.oldx+3>this.size.pathway-this.size.track?(this.isOk=!0,this.$emit("result",{flag:!0,count:this.count})):(this.$nextTick((function(){setTimeout((function(){t.x=0,t.oldx=0}),100)})),this.$emit("result",{flag:!1,count:this.count})))},reset:function(){this.x=0,this.oldx=0,this.count=0,this.isOk=!1}}};n.default=i}).call(this,i("543d")["default"])},ced2:function(t,n,i){"use strict";i.r(n);var e=i("bd07"),c=i("504c");for(var o in c)"default"!==o&&function(t){i.d(n,t,(function(){return c[t]}))}(o);i("4d65");var u,s=i("f0c5"),r=Object(s["a"])(c["default"],e["b"],e["c"],!1,null,"2c3a0d01",null,!1,e["a"],u);n["default"]=r.exports}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/helang-moveVerify/helang-moveVerify-create-component',
|
|
{
|
|
'components/helang-moveVerify/helang-moveVerify-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("ced2"))
|
|
})
|
|
},
|
|
[['components/helang-moveVerify/helang-moveVerify-create-component']]
|
|
]);
|