UNPKG

vue-sailor-icons

Version:

Nice open source icons as Vue functional components.

44 lines 1.56 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'MarkIcon', 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'; } }, color: { type: String, default: '#000' } }, 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: { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24" }, "class": "sailor sailor-mark" }, ctx.data]), [h("path", { attrs: { d: "M15 19a.63.63 0 0 1-.34-.1l-9-5.2a.71.71 0 0 1-.32-.44L4 7.55a.69.69 0 0 1 .46-.81L10.09 5a.66.66 0 0 1 .55.06l9 5.2a.69.69 0 0 1 .25.94l-4.29 7.43a.7.7 0 0 1-.6.37zm-8.4-6.33l8.17 4.71 3.61-6.24-8.17-4.72L5.5 7.87z", fill: ctx.props.color } }), h("path", { attrs: { d: "M9.13 11.87a2 2 0 0 1-1.05-.29 2.11 2.11 0 0 1-.78-2.89 2.12 2.12 0 0 1 2.89-.77 2.12 2.12 0 0 1-1.06 3.95zm0-2.87a.74.74 0 0 0-.64.37.73.73 0 0 0-.08.56.78.78 0 0 0 .35.46A.75.75 0 1 0 9.13 9z", fill: ctx.props.color } })]); } };