The named slot with dialog toolbar items works with Vue2, but it doesn't with Vue3 #8033
Unanswered
tesicg
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Could you provide a runnable demo with sfc-playground ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We used in our app Vue2 with DevExtreme components, and decided to migrate to Vue3. The code looks as following:
1) Vue2
v-modal-dialog.vue (base component):
v-app-types-modal.vue (extended component from base component through named slots):
The key parts of package.json look as following:
The dialog looks as following:
As you can see there are 2 buttons (DevExtreme's
DxToolbarItem
component) displayed from base component as default content of named slot.2) Vue3
The comnponents' code is the same, except for v-on="$listeners", which is not needed in Vue3 and this block of code:
The key parts of package.json look as following:
The dialog looks as following:
As you can see there are NOT 2 buttons from base component as default content of named slot.
The interesting thing is when I uncomment this block of code:
It's displayed on dialog, but NOT on the right place.
I've tried a lot of things to make it work, but no luck.
What's the issue and could I fix it?
Beta Was this translation helpful? Give feedback.
All reactions