Closed (fixed)
Project:
Custom Elements
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2021 at 13:50 UTC
Updated:
5 Mar 2021 at 09:29 UTC
Jump to comment: Most recent
Vue has a new slot syntax since 2.6 - the usual web component syntax is deprecated and unsupported in Vue3.
Let's add support for the new syntax, but allow selecting the web component syntax as well
New syntax: https://vuejs.org/v2/guide/components-slots.html
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fagoI've implemented this by following https://vuejs.org/v2/guide/components-slots.html#Named-Slots-Shorthand
For that - I made the markup style configurable. The previous web-component style stays default, the new one is configurable. TODO is documentation.
The config has no UI yet, but that could be added later on anyway.
Comment #5
fagoWe need to add a test case covering the new vue-3 style syntax.
Comment #8
mostepaniukvm@fago your changes look good
added test coverage for new vue3 slot syntax, needs review
Comment #10
fagothx, test looks great and works fine! Thus, this is ready to go - merged!