vue-sailor-icons
Version:
Nice open source icons as Vue functional components.
49 lines • 1.65 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'FaqIcon',
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-faq"
}, ctx.data]), [h("path", {
attrs: {
d: "M13 19.93A8 8 0 1 1 19.93 13 8 8 0 0 1 13 19.93zm.11-14.6a6.77 6.77 0 1 0 5.52 5.52 6.77 6.77 0 0 0-5.48-5.52z",
fill: ctx.props.color
}
}), h("path", {
attrs: {
d: "M11 11.58a.26.26 0 0 1 .26-.26H12a1 1 0 0 0 1-1.06 1 1 0 0 0-1.09-1 1 1 0 0 0-.95 1H9.22a.08.08 0 0 1-.08-.08 2.78 2.78 0 0 1 1.66-2.57 2.87 2.87 0 1 1 2 5.35v.65a.26.26 0 0 1-.26.26h-1.31a.26.26 0 0 1-.26-.26z",
fill: ctx.props.color
}
}), h("path", {
attrs: {
d: "M12.29 14.88a.76.76 0 0 1 .45.46.92.92 0 0 1-1 1.29.91.91 0 0 1-.77-.76.93.93 0 0 1 1.32-.99z",
fill: ctx.props.color
}
})]);
}
};