UNPKG

vue-sailor-icons

Version:

Nice open source icons as Vue functional components.

39 lines 1.38 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'CourseDownIcon', 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-down" }, ctx.data]), [h("path", { attrs: { d: "M12 20.8a1.37 1.37 0 0 1-1.2-.8L3.46 5.83A1.85 1.85 0 0 1 3.43 4a1.81 1.81 0 0 1 1.62-.8H19a1.81 1.81 0 0 1 1.57.8 1.85 1.85 0 0 1 0 1.82L13.2 20a1.37 1.37 0 0 1-1.2.8zm-.2-1.54h-.05l.74.32zM5.05 4.8a.56.56 0 0 0-.26 0 1.31 1.31 0 0 0 .09.24L12 18.82l7.12-13.73a.55.55 0 0 0 .08-.26 1 1 0 0 0-.25 0z", fill: ctx.props.color } })]); } };