The original project only works with Vue 1 and 2, so I decided to rewrite it for Vue 3.
🚚 Install
yarn add vue3-radial-progress // npm install --save vue3-radial-progress
🚀 Usage
Global
import { createApp } from 'vue';
import RadialProgress from "vue3-radial-progress";
const app = createApp(App);
app.use(RadialProgress);
Local
import RadialProgress from "vue3-radial-progress";
export default {
components: {
RadialProgress
},
};
📌 Examples
<template>
<RadialProgress
:diameter="200"
:completed-steps="completedSteps"
:total-steps="totalSteps">
</RadialProgress>
</template>
<script>
import { ref, defineComponent } from "vue";
export default defineComponent({
setup(){
const completedSteps = ref(0);
const totalSteps = ref(10);
return {
completedSteps,
totalSteps
}
}
})
</script>
Props
Slots
Name | Description |
---|
default | Sets the default slot inner the radial progress |
🔖 License
MIT