quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
60 lines (55 loc) • 1.31 kB
JavaScript
import Vue from 'vue'
import mixin from './spinner-mixin.js'
export default Vue.extend({
name: 'QSpinnerOval',
mixins: [mixin],
render (h) {
return h('svg', {
staticClass: 'q-spinner',
class: this.classes,
on: { ...this.qListeners },
attrs: {
focusable: 'false' /* needed for IE11 */,
'stroke': 'currentColor',
'width': this.cSize,
'height': this.cSize,
'viewBox': '0 0 38 38',
'xmlns': 'http://www.w3.org/2000/svg'
}
}, [
h('g', {
attrs: {
'transform': 'translate(1 1)',
'stroke-width': '2',
'fill': 'none',
'fill-rule': 'evenodd'
}
}, [
h('circle', {
attrs: {
'stroke-opacity': '.5',
'cx': '18',
'cy': '18',
'r': '18'
}
}),
h('path', {
attrs: {
'd': 'M36 18c0-9.94-8.06-18-18-18'
}
}, [
h('animateTransform', {
attrs: {
'attributeName': 'transform',
'type': 'rotate',
'from': '0 18 18',
'to': '360 18 18',
'dur': '1s',
'repeatCount': 'indefinite'
}
})
])
])
])
}
})