Change scoped field slots name syntax
See original GitHub issueDue to new Dynamic Arguments feature of Vue when we want to define new field slot in table, should add two \
to field name :
e.g
<template #\[field_name\]="row">Some thing...</template>
I think field slots name syntax can be better, something like __field_name
or _field_name_
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Slots - Vue.js
Slot content has access to the data scope of the parent component, ... To pass a named slot, we need to use a...
Read more >[feature request] new `v-slot` syntax does not support ... - GitHub
So the scoped slot names (which are dynamic based on the fields present in the data) are in the format of cell[<field key>]...
Read more >A Guide to Vue Slots - LearnVue
Simply put, scoped slots allow our slot content in our parent component to have access to data that's only found in the child...
Read more >Vue 2.6 Slots - Basic, Named, and Scoped Slots - YouTube
The Vue 3.0 syntax may have some minor changes, but should be fairly similar. 0:00 Start 0:57 Slots vs Props 5:00 Basic Slots...
Read more >How To Use Scoped Component Slots in Vue.js - DigitalOcean
Add an attribute to the <template> element and set it to the name that you wish to access the scope properties from. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When used in document DOM templates there can be issues with
\
. But not when using Vue-loaderYou got it wrong, I don’t using
\
as attribute name, just escaping[
&]
in attribute name and Vue allow this.