u-button.js 4.7 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-button/u-button"],{292:function(t,n,e){"use strict";e.r(n);var o=e(293),i=e(295);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e(300);var u,c=e(36),s=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"2bf0e569",null,!1,o["components"],u);s.options.__file="uni_modules/uview-ui/components/u-button/u-button.vue",n["default"]=s.exports},293:function(t,n,e){"use strict";e.r(n);var o=e(294);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},294:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return u})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return o}));try{o={uLoadingIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-loading-icon/u-loading-icon")]).then(e.bind(null,473))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,283))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__get_style([t.baseColor,t.$u.addStyle(t.customStyle)])),o=Number(t.hoverStartTime),i=Number(t.hoverStayTime);t.$mp.data=Object.assign({},{$root:{s0:e,m0:o,m1:i}})},r=!1,u=[];i._withStripped=!0},295:function(t,n,e){"use strict";e.r(n);var o=e(296),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},296:function(t,n,e){"use strict";(function(t){var o=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e(297)),r=o(e(298)),u=o(e(299)),c={name:"u-button",mixins:[t.$u.mpMixin,t.$u.mixin,i.default,r.default,u.default],data:function(){return{}},computed:{bemClass:function(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor:function(){return this.plain?this.color?this.color:t.$u.config.color["u-".concat(this.type)]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom:function(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor:function(){var t={};return this.color&&(t.color=this.plain?this.color:"white",this.plain||(t["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(t.borderTopWidth=0,t.borderRightWidth=0,t.borderBottomWidth=0,t.borderLeftWidth=0,this.plain||(t.backgroundImage=this.color)):(t.borderColor=this.color,t.borderWidth="1px",t.borderStyle="solid")),t},nvueTextStyle:function(){var t={};return"info"===this.type&&(t.color="#323233"),this.color&&(t.color=this.plain?this.color:"white"),t.fontSize=this.textSize+"px",t},textSize:function(){var t=14,n=this.size;return"large"===n&&(t=16),"normal"===n&&(t=14),"small"===n&&(t=12),"mini"===n&&(t=10),t}},methods:{clickHandler:function(){var n=this;this.disabled||this.loading||t.$u.throttle((function(){n.$emit("click")}),this.throttleTime)},getphonenumber:function(t){this.$emit("getphonenumber",t)},getuserinfo:function(t){this.$emit("getuserinfo",t)},error:function(t){this.$emit("error",t)},opensetting:function(t){this.$emit("opensetting",t)},launchapp:function(t){this.$emit("launchapp",t)}}};n.default=c}).call(this,e(2)["default"])},300:function(t,n,e){"use strict";e.r(n);var o=e(301),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},301:function(t,n,e){}}]);
  2. //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-button/u-button.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uni_modules/uview-ui/components/u-button/u-button-create-component',
  5. {
  6. 'uni_modules/uview-ui/components/u-button/u-button-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(292))
  8. })
  9. },
  10. [['uni_modules/uview-ui/components/u-button/u-button-create-component']]
  11. ]);