v-simple-icons
Version:
Simply beautiful open source icons as Vue functional components.
32 lines • 1.81 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'MicrosoftOneNoteIcon',
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';
}
}
},
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: {
role: "img",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}
}, ctx.data]), [h("title", ["Microsoft OneNote icon"]), h("path", {
attrs: {
d: "M23.947 10.184v3.593c0 .139-.05.258-.149.359-.1.098-.22.15-.357.15h-.779V9.674h.779c.138 0 .258.05.357.149.099.102.149.219.149.361zm-.507 4.634c.138 0 .258.05.357.149s.149.22.149.357v3.607c0 .14-.05.258-.149.36-.1.097-.22.146-.357.146h-.779v-4.621h.779zm0-10.29c.138 0 .267.051.384.15.117.102.176.221.176.36v3.594c0 .147-.061.271-.176.365-.117.09-.246.135-.384.135h-1.289v11.084c0 .135-.053.24-.157.331-.105.075-.224.12-.364.12h-6.704v-2.265h5.207v-1.081h-5.207v-1.273h5.207v-1.021h-5.207v-1.305h5.207v-1.005h-5.207v-1.274h5.207v-1.006h-5.207V9.132h5.207v-1.02h-5.207V6.837h5.207V5.772h-5.207V3.239h6.887c.016 0 .075.044.169.135.095.094.152.209.17.344v.811h1.288zM13.646.664v22.672L0 20.98V3.081L13.647.665l-.001-.001zm-3.893 6.72l-1.601.105v2.979c-.018 1.745-.018 2.753 0 3.021L4.962 7.67l-1.629.064v8.256l1.274.104v-6.092l3.44 6.265 1.705.104V7.384z"
}
})]);
}
};