weex-flymeui
Version:
A Flyme Style UI library based on Weex for Creator.
3 lines (2 loc) • 3.1 kB
JavaScript
// { "framework": "Vue" }
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["npm/weex-flymeui/components/fm-text/index"]=t():e["npm/weex-flymeui/components/fm-text/index"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=21)}({21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(33);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(o).default}})},33:function(e,t,n){var o,i,r=[];r.push(n(34)),o=n(35);var s=n(36);i=o=o||{},"object"!=typeof o.default&&"function"!=typeof o.default||(Object.keys(o).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),i=o=o.default),"function"==typeof i&&(i=i.options),i.__file="/Users/suen/Documents/develop/project/weex-flymeui/packages/fm-text/index.vue",i.render=s.render,i.staticRenderFns=s.staticRenderFns,i._scopeId="data-v-5cfa2da2",i.style=i.style||{},r.forEach(function(e){for(var t in e)i.style[t]=e[t]}),"function"==typeof __register_static_styles__&&__register_static_styles__(i._scopeId,r),e.exports=o},34:function(e,t){e.exports={text:{fontSize:"42",lineHeight:"63",color:"#999999",fontFamily:'"Source Han Sans CN", Roboto, sans-serif'},medium:{fontFamily:"sans-serif-medium",fontWeight:"500"},bold:{fontWeight:"700"},light:{fontWeight:"400"},small:{fontSize:"36"},large:{fontSize:"48",fontWeight:"500",lineHeight:"72",color:"#000000"},huge:{fontSize:"54",lineHeight:"81",color:"#000000"},"margin-text":{marginRight:"9"}}},35:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"FmText",props:{value:String,fontWeight:{type:String,default:"normal"},size:{type:String,default:"normal"},textStyle:{type:Object,default:function(){return{}}},hasTextMargin:{type:Boolean,default:!0}},data:function(){return{inValue:""}},watch:{value:function(e){this.inValue=e}},computed:{textClz:function(){var e=["text"];return this.hasTextMargin&&e.push("margin-text"),"normal"!==this.size&&e.push(""+this.size),"normal"!==this.fontWeight&&e.push(""+this.fontWeight),e}},created:function(){this.value&&(this.inValue=this.value),this.$slots.default&&(this.inValue=this.$slots.default[0].text)}}},36:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("text",{class:e.textClz,style:e.textStyle},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.inValue))]],2)},staticRenderFns:[]},e.exports.render._withStripped=!0}})});