UNPKG

vue-sailor-icons

Version:

Nice open source icons as Vue functional components.

39 lines 1.35 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'CourseUpIcon', 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-course-up" }, ctx.data]), [h("path", { attrs: { d: "M19 20.8H5a1.85 1.85 0 0 1-1.58-.8 1.85 1.85 0 0 1 0-1.82L10.8 4a1.31 1.31 0 0 1 2.4 0l7.35 14.15A1.7 1.7 0 0 1 19 20.8zM4.79 19.17a1.17 1.17 0 0 0 .25 0H19a.56.56 0 0 0 .26-.05 1.31 1.31 0 0 0-.09-.24L12 5.18 4.87 18.91a.55.55 0 0 0-.08.26zm6.72-14.78l.69.36a.11.11 0 0 0 .05 0z", fill: ctx.props.color } })]); } };