UNPKG

vue-sailor-icons

Version:

Nice open source icons as Vue functional components.

49 lines 1.57 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'RefreshIcon', 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-refresh" }, ctx.data]), [h("path", { attrs: { d: "M12 4.73a7.28 7.28 0 0 0-6.32 3.68h.26A7 7 0 1 1 5 12h-.27A7.27 7.27 0 1 0 12 4.73z", fill: ctx.props.color } }), h("path", { attrs: { d: "M12 20a8 8 0 0 1-8-8 .73.73 0 0 1 .73-.73H5a.73.73 0 0 1 .73.73 6.34 6.34 0 1 0 .89-3.22.73.73 0 0 1-.63.36h-.31a.73.73 0 0 1-.63-1.09 8 8 0 1 1 7 12z", fill: ctx.props.color } }), h("path", { attrs: { d: "M7.6 9.55H5.05a.72.72 0 0 1-.72-.73V6.29a.73.73 0 0 1 1.45 0V8.1H7.6a.73.73 0 1 1 0 1.45z", fill: ctx.props.color } })]); } };