Vue 3 Migration Guide
This guide is primarily for users of Kongponents v6/v7
(for Vue 2) who want to browse the breaking changes they may encounter when upgrading to Kongponents v8
for Vue 3.
This is not something you have to read from top to bottom before trying out the new version of Kongponents.
Breaking Changes
If you notice other breaking changes we missed, we invite you to open an issue.
KBreadcrumbs
- New component name; previously known as
Krumbs
KCheckbox
v-model
is now mapped tomodelValue
prop instead ofvalue
prop- Emits
input
,change
, andupdate:modelValue
events
KComponent
- New component name; previously known as
Komponent
Krumbs
- Renamed to
KBreadcrumbs
KInput
v-model
is now mapped tomodelValue
prop instead ofvalue
prop- Emits
input
andupdate:modelValue
events - Default font size is now
16px
for accessibility and to prevent page zoom in some browsers .k-input-medium + .has-error
font-size is now11px
.k-input-small + .has-error
font-size is now11px
KInputSwitch
v-model
is now mapped tomodelValue
prop instead ofvalue
prop- Emits
input
,change
, andupdate:modelValue
events - Added the following CSS rule for label alignmentscss
&.has-label-left { margin-right: 0; margin-left: 16px; }
KMenu
- Added type interface for
items
prop
KMenuItem
- Added type interface for
items
prop
Komponent
- Renamed to
KComponent
Kooltip
- Renamed to
KTooltip
KPagination
Added new CSS theming variables
Variable Purpose --KPaginationColor
KPagination button text color --KPaginationBackgroundColor
KPagination button background color --KPaginationBorderColor
KPagination button border color --KPaginationPageSizeColor
KPagination page size button text color --KPaginationActiveColor
KPagination active button text color --KPaginationActiveBackgroundColor
KPagination active button background color --KPaginationActiveBorderColor
KPagination active button border color --KPaginationDisabledColor
KPagination disabled button text color
KPrompt
- Added
autcomplete="off"
andautocapitalize="off"
to the confirmation text input
KRadio
v-model
is now mapped tomodelValue
prop instead ofvalue
propvalue
prop has been renamed toselectedValue
- Emits
change
andupdate:modelValue
events
KSegmentedControl
v-model
is now mapped tomodelValue
prop instead ofselected
prop- Added type interface for
options
prop
KSelect
v-model
is now mapped tomodelValue
prop instead ofvalue
prop- Emits
input
,change
, andupdate:modelValue
events positionFixed
now defaults totrue
KSkeleton
- Renamed internal component from
Skeleton
toSkeletonBase
delayMilliseconds
prop now defaults to0
KSlideout
- Changed
isVisible
class tois-visible
KTable
fetcher
is now a required prop
KTabs
v-model
is now mapped tomodelValue
prop instead ofvalue
prop- Added type interface for
tabs
prop
KTextArea
v-model
is now mapped tomodelValue
prop instead ofvalue
prop- Emits
input
,update:modelValue
, andchar-limit-exceeded
events - Default font size is now
16px
for accessibility and to prevent page zoom in some browsers
KToggle
- In your template, you now need to reference
isToggled.value
when getting/setting the value instead ofisToggled
KTooltip
- New component name; previously known as
Kooltip