u-swipe-action-item.js 4.7 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item"],{347:function(t,e,n){"use strict";n.r(e);var i=n(348),o=n(350);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n(355);var s,r=n(36),a=n(357),c=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"353c51ae",null,!1,i["components"],s);"function"===typeof a["default"]&&Object(a["default"])(c),c.options.__file="uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue",e["default"]=c.exports},348:function(t,e,n){"use strict";n.r(e);var i=n(349);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"]}))},349:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return u})),n.d(e,"components",(function(){return i}));try{i={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,283))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.options,(function(e,n){var i=t.__get_orig(e),o=t.__get_style([{backgroundColor:e.style&&e.style.backgroundColor?e.style.backgroundColor:"#C7C6CD",borderRadius:e.style&&e.style.borderRadius?e.style.borderRadius:"0",padding:e.style&&e.style.borderRadius?"0":"0 15px"},e.style]),u=e.icon?{marginRight:e.text?"2px":0}:null,s=e.icon&&e.iconSize?t.$u.addUnit(e.iconSize):null,r=e.icon&&!e.iconSize&&e.style&&e.style.fontSize?t.$u.getPx(e.style.fontSize):null;return{$orig:i,s0:o,a0:u,g0:s,g1:r}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},u=!1,s=[];o._withStripped=!0},350:function(t,e,n){"use strict";n.r(e);var i=n(351),o=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"]=o.a},351:function(t,e,n){"use strict";(function(t){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,u=i(n(11)),s=i(n(352)),r=i(n(353)),a=i(n(354)),c=(o={name:"u-swipe-action-item",mixins:[t.$u.mpMixin,t.$u.mixin,r.default,s.default]},(0,u.default)(o,"mixins",[t.$u.mpMixin,t.$u.mixin,r.default,s.default,a.default]),(0,u.default)(o,"data",(function(){return{size:{},parentData:{autoClose:!0},status:"close"}})),(0,u.default)(o,"watch",{wxsInit:function(t,e){this.queryRect()}}),(0,u.default)(o,"computed",{wxsInit:function(){return[this.disabled,this.autoClose,this.threshold,this.options,this.duration]}}),(0,u.default)(o,"mounted",(function(){this.init()})),(0,u.default)(o,"methods",{init:function(){var e=this;this.updateParentData(),t.$u.sleep().then((function(){e.queryRect()}))},updateParentData:function(){this.getParentData("u-swipe-action")},queryRect:function(){var t=this;this.$uGetRect(".u-swipe-action-item__right__button",!0).then((function(e){t.size={buttons:e,show:t.show,disabled:t.disabled,threshold:t.threshold,duration:t.duration}}))},buttonClickHandler:function(t,e){this.$emit("click",{index:e,name:this.name})}}),o);e.default=c}).call(this,n(2)["default"])},355:function(t,e,n){"use strict";n.r(e);var i=n(356),o=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"]=o.a},356:function(t,e,n){},357:function(t,e,n){"use strict";n.r(e);var i=n(358);e["default"]=i["default"]},358:function(t,e,n){"use strict";n.r(e),e["default"]=function(t){t.options.wxsCallMethods||(t.options.wxsCallMethods=[]),t.options.wxsCallMethods.push("closeOther"),t.options.wxsCallMethods.push("setState")}}}]);
  2. //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item-create-component',
  5. {
  6. 'uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(347))
  8. })
  9. },
  10. [['uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item-create-component']]
  11. ]);