set q-table cell slot dynamically #16288
-
I want to based on column type, on the fly set custom slot for some cell in q-table something like this :
PROBLEM is in I would appreciate any help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
would be something like |
Beta Was this translation helpful? Give feedback.
-
hi,
I engaged to the new project , and give up that project (VUE.js)
temporarily, So, I do not have any idea about this BUG
…On Wed, Aug 21, 2024 at 1:29 AM tomvdk ***@***.***> wrote:
Hi there,
We were using this as well. But since the upgrade of the Volar Official
Extension <https://marketplace.visualstudio.com/items?itemName=Vue.volar>
to 2.0.28 and the vue-tsc dev package to 2.0.28 we got the following IDE
error.
image.png (view on web)
<https://github.com/user-attachments/assets/2935329f-21e0-4e2c-b1f1-829eb87fae16>
Also, when we run vue-tsc to do type checking we got:
image.png (view on web)
<https://github.com/user-attachments/assets/aeb08371-0ce6-4b8c-b6a1-38a0fb45a97b>
This was not happening on version <= 2.0.22 (released on 6/23/2024).
I filled an issue on github and it appears it should already be fixed but
not released yet: Dynamic slot name Template error: Type 'QTableSlots'
has no matching index signature for type 'string'.ts-plugin(2537) #4668
<vuejs/language-tools#4668>
However I cannot yet verify if this issue is fixed in a next release, I
thought it might save someone a bit of time troubleshooting.
—
Reply to this email directly, view it on GitHub
<#16288 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6OD3VKAZPFGCXSWVK4BHWDZSRFYHAVCNFSM6AAAAABM3QAHJKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBQGQ3DQNQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
After Vue Offical 2.1.0 release this is now fixed. No need for the workaround above anymore.
Update the extension and vue-tsc package to the latest version. Also see issue: 4668 |
Beta Was this translation helpful? Give feedback.
would be something like
v-slot:[name]
where name would resolve tobody-cell-yourSlotName
.