The original project it's only available to vue 1 and 2, so i decided rewrite it to 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>
<radial-progress-bar
:diameter="200"
:completed-steps="completedSteps"
:total-steps="totalSteps">
</radial-progress-bar>
</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