crm_second_opening_mini/uview-ui/components/u-icon/u-icon.js

11 lines
4.5 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-icon/u-icon"],{"3ff7":function(t,i,e){"use strict";e.r(i);var n=e("6dac"),o=e("9dd49");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(u);e("e0af");var l=e("f0c5"),s=Object(l["a"])(o["default"],n["b"],n["c"],!1,null,"9e9bab12",null,!1,n["a"],void 0);i["default"]=s.exports},"6dac":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=(t._self._c,t.__get_style([t.customStyle])),n=t.isImg?t.__get_style([t.imgStyle]):null,o=t.isImg?null:t.__get_style([t.iconStyle]),u=!t.isImg&&t.showDecimalIcon?t.__get_style([t.decimalIconStyle]):null,l=""!==t.label?t.$u.addUnit(t.labelSize):null,s=""!==t.label&&"right"==t.labelPos?t.$u.addUnit(t.marginLeft):null,r=""!==t.label&&"bottom"==t.labelPos?t.$u.addUnit(t.marginTop):null,c=""!==t.label&&"left"==t.labelPos?t.$u.addUnit(t.marginRight):null,a=""!==t.label&&"top"==t.labelPos?t.$u.addUnit(t.marginBottom):null;t.$mp.data=Object.assign({},{$root:{s0:e,s1:n,s2:o,s3:u,g0:l,g1:s,g2:r,g3:c,g4:a}})},o=[]},"7a6b":function(t,i,e){},"9dd49":function(t,i,e){"use strict";e.r(i);var n=e("f046"),o=e.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(u);i["default"]=o.a},e0af:function(t,i,e){"use strict";var n=e("7a6b"),o=e.n(n);o.a},f046:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={name:"u-icon",props:{name:{type:String,default:""},color:{type:String,default:""},size:{type:[Number,String],default:"inherit"},bold:{type:Boolean,default:!1},index:{type:[Number,String],default:""},hoverClass:{type:String,default:""},customPrefix:{type:String,default:"uicon"},label:{type:[String,Number],default:""},labelPos:{type:String,default:"right"},labelSize:{type:[String,Number],default:"28"},labelColor:{type:String,default:"#606266"},marginLeft:{type:[String,Number],default:"6"},marginTop:{type:[String,Number],default:"6"},marginRight:{type:[String,Number],default:"6"},marginBottom:{type:[String,Number],default:"6"},imgMode:{type:String,default:"widthFix"},customStyle:{type:Object,default:function(){return{}}},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""},top:{type:[String,Number],default:0},showDecimalIcon:{type:Boolean,default:!1},inactiveColor:{type:String,default:"#ececec"},percent:{type:[Number,String],default:"50"}},computed:{customClass:function(){var t=[];return t.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?t.push("u-iconfont"):t.push(this.customPrefix),this.showDecimalIcon&&this.inactiveColor&&this.$u.config.type.includes(this.inactiveColor)?t.push("u-icon__icon--"+this.inactiveColor):this.color&&this.$u.config.type.includes(this.color)&&t.push("u-icon__icon--"+this.color),t},iconStyle:function(){var t={};return t={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top)},this.showDecimalIcon&&this.inactiveColor&&!this.$u.config.type.includes(this.inactiveColor)?t.color=this.inactiveColor:this.color&&!this.$u.config.type.includes(this.color)&&(t.color=this.color),t},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var t={};return t.width=this.width?this.$u.addUnit(this.width):this.$u.addUnit(this.size),t.height=this.height?this.$u.addUnit(this.height):this.$u.addUnit(this.size),t},decimalIconStyle:function(){var t={};return t={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top),width:this.percent+"%"},this.color&&!this.$u.config.type.includes(this.color)&&(t.color=this.color),t},decimalIconClass:function(){var t=[];return t.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?t.push("u-iconfont"):t.push(this.customPrefix),this.color&&this.$u.config.type.includes(this.color)?t.push("u-icon__icon--"+this.color):t.push("u-icon__icon--primary"),t}},methods:{click:function(){this.$emit("click",this.index)},touchstart:function(){this.$emit("touchstart",this.index)}}};i.default=n}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-icon/u-icon-create-component',
{
'uview-ui/components/u-icon/u-icon-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("3ff7"))
})
},
[['uview-ui/components/u-icon/u-icon-create-component']]
]);