UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

2 lines (1 loc) 974 B
import e from"primevue/basecomponent";import r from"primevue/progressspinner/style";import{openBlock as t,createElementBlock as n,mergeProps as i,createElementVNode as s}from"vue";var o={name:"ProgressSpinner",extends:{name:"BaseProgressSpinner",extends:e,props:{strokeWidth:{type:String,default:"2"},fill:{type:String,default:"none"},animationDuration:{type:String,default:"2s"}},style:r,provide:function(){return{$parentInstance:this}}},computed:{svgStyle:function(){return{"animation-duration":this.animationDuration}}}},a=["fill","stroke-width"];o.render=function(e,r,o,p,l,c){return t(),n("div",i({class:e.cx("root"),role:"progressbar"},e.ptm("root"),{"data-pc-name":"progressspinner"}),[(t(),n("svg",i({class:e.cx("spinner"),viewBox:"25 25 50 50",style:c.svgStyle},e.ptm("spinner")),[s("circle",i({class:e.cx("circle"),cx:"50",cy:"50",r:"20",fill:e.fill,"stroke-width":e.strokeWidth,strokeMiterlimit:"10"},e.ptm("circle")),null,16,a)],16))],16)};export{o as default};