Skip to content

Commit f6d0ba1

Browse files
al1maheramaher
andauthored
docs(migration): update changed components (#5655)
Co-authored-by: amaher <[email protected]>
1 parent 450cb96 commit f6d0ba1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/content/1.getting-started/2.migration.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,31 @@ This change affects the following components: `Modal`, `Popover`, `Slideover`, `
448448
This change affects the following components: `Modal`, `Slideover`.
449449
::
450450

451+
- The `prevent-close` prop in `Modal` and `Slideover` has been removed in favor of the `dismissible` prop that takes a boolean value:
452+
```diff
453+
<template>
454+
- <UModal prevent-close />
455+
+ <UModal :dismissible="false" />
456+
</template>
457+
```
458+
459+
- The `v-model` directive in `Pagination` has been renamed to `v-model:page` to control current page:
460+
461+
```diff
462+
<template>
463+
- <UPagination v-model="page" />
464+
+ <UPagination v-model:page="page" />
465+
</template>
466+
```
467+
468+
- The `change` event in `Select`, `SelectMenu` and `RadioGroup` now emits the native `change` event, not the new chnage value, which is now emitted in the `update:modelValue` event:
469+
470+
```diff
471+
<template></template>
472+
- <USelectMenu v-model="country" :items="countries" @change="console.log(newVal)" />
473+
+ <USelectMenu v-model="country" :items="countries" @update:modelValue="console.log(newVal)" />
474+
```
475+
451476
### Changed composables
452477

453478
- The `useToast()` composable `timeout` prop has been renamed to `duration`:

0 commit comments

Comments
 (0)