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-modelis now mapped tomodelValueprop instead ofvalueprop- Emits
input,change, andupdate:modelValueevents
KComponent
- New component name; previously known as
Komponent
Krumbs
- Renamed to
KBreadcrumbs
KInput
v-modelis now mapped tomodelValueprop instead ofvalueprop- Emits
inputandupdate:modelValueevents - Default font size is now
16pxfor accessibility and to prevent page zoom in some browsers .k-input-medium + .has-errorfont-size is now11px.k-input-small + .has-errorfont-size is now11px
KInputSwitch
v-modelis now mapped tomodelValueprop instead ofvalueprop- Emits
input,change, andupdate:modelValueevents - Added the following CSS rule for label alignmentscss
&.has-label-left { margin-right: 0; margin-left: 16px; }
KMenu
- Added type interface for
itemsprop
KMenuItem
- Added type interface for
itemsprop
Komponent
- Renamed to
KComponent
Kooltip
- Renamed to
KTooltip
KPagination
Added new CSS theming variables
Variable Purpose --KPaginationColorKPagination button text color --KPaginationBackgroundColorKPagination button background color --KPaginationBorderColorKPagination button border color --KPaginationPageSizeColorKPagination page size button text color --KPaginationActiveColorKPagination active button text color --KPaginationActiveBackgroundColorKPagination active button background color --KPaginationActiveBorderColorKPagination active button border color --KPaginationDisabledColorKPagination disabled button text color
KPrompt
- Added
autcomplete="off"andautocapitalize="off"to the confirmation text input
KRadio
v-modelis now mapped tomodelValueprop instead ofvaluepropvalueprop has been renamed toselectedValue- Emits
changeandupdate:modelValueevents
KSegmentedControl
v-modelis now mapped tomodelValueprop instead ofselectedprop- Added type interface for
optionsprop
KSelect
v-modelis now mapped tomodelValueprop instead ofvalueprop- Emits
input,change, andupdate:modelValueevents positionFixednow defaults totrue
KSkeleton
- Renamed internal component from
SkeletontoSkeletonBase delayMillisecondsprop now defaults to0
KSlideout
- Changed
isVisibleclass tois-visible
KTable
fetcheris now a required prop
KTabs
v-modelis now mapped tomodelValueprop instead ofvalueprop- Added type interface for
tabsprop
KTextArea
v-modelis now mapped tomodelValueprop instead ofvalueprop- Emits
input,update:modelValue, andchar-limit-exceededevents - Default font size is now
16pxfor accessibility and to prevent page zoom in some browsers
KToggle
- In your template, you now need to reference
isToggled.valuewhen getting/setting the value instead ofisToggled
KTooltip
- New component name; previously known as
Kooltip
Kongponents