v-simple-icons
Version:
Simply beautiful open source icons as Vue functional components.
32 lines • 1.32 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'TMobileIcon',
props: {
size: {
type: String,
default: '24',
validator: function validator(s) {
return !isNaN(s) || s.length >= 2 && !isNaN(s.slice(0, s.length - 1)) && s.slice(-1) === 'x';
}
}
},
functional: true,
render: function render(h, ctx) {
var size = ctx.props.size.slice(-1) === 'x' ? ctx.props.size.slice(0, ctx.props.size.length - 1) + 'em' : parseInt(ctx.props.size) + 'px';
var attrs = ctx.data.attrs || {};
attrs.width = attrs.width || size;
attrs.height = attrs.height || size;
ctx.data.attrs = attrs;
return h("svg", _mergeJSXProps([{
attrs: {
role: "img",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}
}, ctx.data]), [h("title", ["T-Mobile icon"]), h("path", {
attrs: {
d: "M13.722 1.154h.58c3.74 0 5.483 1.957 6.211 7.174l1.159-.05L21.517 0H2.484l-.187 8.278 1.114.05c.193-1.956.425-3.01.927-4.064.888-1.956 2.742-3.11 5.02-3.11h.811v18.01c0 1.907-.116 2.509-.579 2.96-.386.351-1.158.502-2.047.502h-.888v1.204h10.581v-1.204h-.893c-.883 0-1.66-.151-2.041-.502-.464-.451-.58-1.054-.58-2.96V1.154M2 10.875h4.88v4.87H2zM16.932 10.875h4.88v4.87h-4.88z"
}
})]);
}
};