Props of dynamic slots in one component #8979
Unanswered
ValeronAI
asked this question in
Help/Questions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a problem with dynamic slots in Vue 3 (latest version) with TS. In case using few dynamic slots with different slot props there is TS compiling error, because TS “thinking” that all slots have the same props as last slot. Is this a bug or feature? Below reproduction links:
Static slots: https://play.vuejs.org/#eNp9UrFuwjAQ/RXLHVgoUcVGXaS2YmiHFhVGL2lygKljW7ZDqaL8e88OCQEBnnz37j2f715Fn40Z7UqgE8pcZoXxxIEvzZQrURhtPVmC8wupPVlZXZDBKGkTgTZ45IolDREpGHgojEw9YEQI2zxMFz71IiMOGSzBOOZbjRiF0/HI3QbSHOwTpxVprnOrDak57YrDqU7RuhNKTjo40/7W+V9UDpdrukfsmirrhoBhD6ND6l2m1UqsR1unFU61CvWcZrowQoL9NF5o5TidkIgELJVS/77HnLclDNt8toHs50J+6/Yhx+ncggO7A047zKd2Db6BZ4sP2OO9AwudlxKrb4Bf4LQsQ49N2Uupcmy7Vxe7fYveEGq9dLO9B+XaT4VGQ2Ud6zlFj7ze+Pqx3fFoHHlc1TjFvseCNc92ynKxI5lMncNlNjY4WSMLbiMqLaCHH/xyb3C1fRr69+hElqD0pVeCKa6/0aDROa3+gXBRvW+Z+h/FTSK7
Dynamic slots:
https://play.vuejs.org/#eNp9Uj1vwjAQ/SuWO7DQRBUbTZH6wdAOLSqMXtLkAFPHtmyHgqL8954dEgICssR37727s+9V9FnraFsCHdPEZoZrRyy4Uk+Y5IVWxpEFWDcXypGlUQUZRHGb8LLBI5NJ3AhRgoGDQovUAUaEJOuHydtepgXPiEVJEmMiAG2REPmvE5K7NaQ5mCdGK9IcZ0ZpUjPakf1XnaJ1Vyg+GeGs9o/K96GyP1yre8SuVU26V8Cwh9EhdTZTcslX0cYqic9aeT6jmSo0F2C+tONKWkbHJCAeS4VQfx8h50wJwzafrSH7vZDf2J3PMTozYMFsgdEOc6lZgWvg6fwTdnjuwELlpUD2DfAbrBKln7GhvZQyx7F7vDDtezAHl6uFne4cSNteyg/qmXXgM4omeb1x9eO4o2gUdEzW+Ip9k3lvnu00yfmWZCK1FpfZ2OBkjYl3Gxmj8wAJg4YxYPRgmXuN2+0r0cNHMyYxVr/UyPviVhuP+yb+37Y4aC426Bun/geBqCQo
Beta Was this translation helpful? Give feedback.
All reactions