vue-sailor-icons
Version:
Nice open source icons as Vue functional components.
54 lines • 1.87 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'SoundOffIcon',
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-sound-off"
}, ctx.data]), [h("path", {
attrs: {
d: "M13.81 18.89a.66.66 0 0 1-.35-.11l-4.81-3.31.71-1 3.82 2.63V6.94L9.36 9.53l-.71-1 4.74-3.29a.62.62 0 0 1 1 .51l.07 12.53a.61.61 0 0 1-.33.56.73.73 0 0 1-.32.05z",
fill: ctx.props.color
}
}), h("path", {
attrs: {
d: "M9 15.58H7.59a3.59 3.59 0 0 1 0-7.18H9a.62.62 0 0 1 .63.6v6a.62.62 0 0 1-.63.58zM7.59 9.64a2.35 2.35 0 1 0 0 4.7h.79v-4.7z",
fill: ctx.props.color
}
}), h("path", {
attrs: {
d: "M19.57 14.21a.43.43 0 0 1-.3-.13l-3.55-3.55a.43.43 0 0 1 0-.61.42.42 0 0 1 .6 0l3.55 3.55a.43.43 0 0 1 0 .61.43.43 0 0 1-.3.13z",
fill: ctx.props.color
}
}), h("path", {
attrs: {
d: "M16 14.21a.43.43 0 0 0 .3-.13l3.55-3.55a.43.43 0 0 0 0-.61.42.42 0 0 0-.6 0l-3.55 3.55a.43.43 0 0 0 0 .61.43.43 0 0 0 .3.13z",
fill: ctx.props.color
}
})]);
}
};