UNPKG

vuikit

Version:

A Vuejs component library based on UIkit

36 lines (32 loc) 717 B
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic * @license MIT */ // icon-spinner export default { functional: true, render: function (h, ctx) { var props = ctx.props var ratio = props.ratio || 1 var width = props.width || 30 var height = props.height || 30 var viewBox = props.viewBox || '0 0 30 30' if (ratio !== 1) { width = width * ratio height = height * ratio } return h('svg', { attrs: { version: '1.1', meta: 'icon-spinner ratio-' + ratio, width: width, height: height, viewBox: viewBox }, domProps: { innerHTML: '<circle fill="none" stroke="#000" cx="15" cy="15" r="14"/>' } }) } }