Migrate from v1
The plugin version 1.x is only compatible with Vue 2 and now considered as deprecated. Following the End of Life for Vue 2, the v1 will not receive any updates, probably only critical bug fixes.
Vue 3 compatible version v2 is the default version and actively maintained. For the v3 release, new features are planned, and the whole code base rewrite with modern Vue 3 syntax and TypeScript for better modularization and customization possibilities.
v2.0.0 - Vue 3 release
Vue 3 compatible release with new features, fixes, a lot of internal code refactorings and usability improvements. Following the current Vue 3 ecosystem, v2 initially has been released as next
tag. Since v2.2.0 the v2 is distributed as latest
.
The release contains several breaking changes, introduces new options to provide more customization possibilities and makes with 150+ new tests the code base more reliable.
⚠️ Breaking Changes and migration
Build with Vue 3: Release is not compatible with Vue 2.x. The initialization process has changed.
You have to import and initialize the component in Vue 3 manner:
jsimport { createApp } from "vue"; import veProgress from "vue-ellipse-progress"; createApp(App).use(veProgress);
Please note that the default plugin name has changed and you use the component like follows:
vue<ve-progress :progress="50" />
You will find more details in the installation guide.
Removed
legendValue
option: It is nowlegend
. The optionlegendValue
just has to be renamed tolegend
. The old usage oflegend
must be renamed tohideLegend
. The following code from v1:vue<vue-ellipse-progress :legend="true" :legendValue="123.56" />
should be converted to:
vue<ve-progress :hideLegend="false" :legend="123.56" />
Old
legend
option renamed tohideLegend
: Just renamelegend
tohideLegend
. Also note that you have to revert the Boolean value.lineMode
default modenormal
renamed tocenter
.Slot
legend-value
renamed tolegend
.
✅ New features
- Added options
linePosition
,emptyLinePosition
,loader
. - Improved simple legend formatting with
legend
. - Improved animated counter properties that can be used in
legendFormatter
anddefault slot
. - Component can be imported directly, no more restricted to the usage as a plugin.