vue-sailor-icons
Version:
Nice open source icons as Vue functional components.
39 lines • 2.56 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'SettingsIcon',
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-settings"
}, ctx.data]), [h("path", {
attrs: {
d: "M12.44 20h-1.21a1.4 1.4 0 0 1-1.36-1l-.32-1.12a5.65 5.65 0 0 1-2-1l-1.14.25a1.45 1.45 0 0 1-1.55-.62l-.61-1a1.32 1.32 0 0 1 .21-1.68l.71-.67A5.92 5.92 0 0 1 5 12a5.42 5.42 0 0 1 .16-1.32l-.69-.62a1.33 1.33 0 0 1-.24-1.69l.51-.8A1.45 1.45 0 0 1 6.31 7l1.06.27a7.18 7.18 0 0 1 2.2-1.17l.3-1.1a1.4 1.4 0 0 1 1.36-1h1.21a1.41 1.41 0 0 1 1.37 1l.32 1.13a5.78 5.78 0 0 1 2.08 1.06l1.42-.31a1.44 1.44 0 0 1 1.55.62l.61 1a1.32 1.32 0 0 1-.21 1.68l-1 .95a6.82 6.82 0 0 1 .07.9 6.2 6.2 0 0 1-.1 1l1 .9a1.33 1.33 0 0 1 .24 1.69l-.51.8a1.45 1.45 0 0 1-1.57.61l-1.34-.34a7.11 7.11 0 0 1-2.24 1.23L13.81 19a1.41 1.41 0 0 1-1.37 1zM7.5 15.41a1.47 1.47 0 0 1 .89.3 5.37 5.37 0 0 0 1.63.84 1.43 1.43 0 0 1 .93.94l.31 1.11 1.18-.06.3-1.07a1.38 1.38 0 0 1 .92-.93 5.45 5.45 0 0 0 1.76-.95 1.47 1.47 0 0 1 1.29-.3l1.33.34.44-.68-1-.87a1.33 1.33 0 0 1-.42-1.26 4.56 4.56 0 0 0 .08-.82 4.37 4.37 0 0 0-.06-.72 1.36 1.36 0 0 1 .4-1.19l1-.93-.48-.89-1.4.35a1.51 1.51 0 0 1-1.23-.28 5.29 5.29 0 0 0-1.66-.88 1.38 1.38 0 0 1-.92-.93l-.38-1.13-1.18.06L11 6.52a1.44 1.44 0 0 1-.93.93 5.41 5.41 0 0 0-1.73.91A1.49 1.49 0 0 1 7 8.64l-1-.27-.44.68.66.6A1.32 1.32 0 0 1 6.58 11a4.68 4.68 0 0 0-.12 1 4.33 4.33 0 0 0 .1.93 1.31 1.31 0 0 1-.38 1.26l-.69.65.56.89 1.12-.28a1.24 1.24 0 0 1 .33-.04zm11-2.41zm-6.67 2.52A3.66 3.66 0 0 1 8 12a3.66 3.66 0 0 1 3.78-3.52A3.66 3.66 0 0 1 15.6 12a3.66 3.66 0 0 1-3.78 3.52zm0-5.58A2.21 2.21 0 0 0 9.49 12a2.21 2.21 0 0 0 2.33 2.06A2.21 2.21 0 0 0 14.15 12a2.21 2.21 0 0 0-2.33-2.06z",
fill: ctx.props.color
}
})]);
}
};