Comments (9)
@sqal - don't forget, VueJs 3 is still Alpha, it's far from finished and as far as I know, only contains what's needed to get it up to par with VueJs 3 (as it is a rewrite) - I'm also hoping for the implementation for this but I think we just have to wait for VueJs 3 to be finished
from core.
I fully understand that :) I was just playing with the alpha today and noticed that this feature is not implemented so I thought I'd open a new issue and maybe someone with free time who would like to contribute to vue 3 can add this feature.
from core.
@ysj16 I'm not yet fully convinced that this is the best syntax to go with. I think a proper RFC with more discussion around the use case would be needed.
from core.
How about v-slots="$slots"
like jsx?
Full passthrough would just be <SomeComponent v-bind="$attrs" v-slots="$slots" />
<SomeComponent v-slots="slots">
<template #foo>
...
equivalent to jsx
<SomeComponent>
{{
...slots,
foo: () => ...
}}
</SomeComponent>
from core.
Is this feature in progress? If not, I can try. @yyx990803
@ysj16 If you have no time, I'll do it for you. hahah
from core.
Is this feature in progress? If not, I can try. @yyx990803
from core.
@JasKang Come on!!
from core.
This last one seems more "correct" than the initially proposed one
from core.
I think the JSX-style syntax mentioned at #575 (comment) would be ideal.
I regularly find myself having to do
<template v-for="(_, name) in $slots" #[name]="slotData">
<slot :name="name" v-bind="slotData" />
</template>
to pass through slots to another component (especially when wrapping library components).
from core.
Related Issues (20)
- `defineModel` loses two way binding flow when parent adds event listeneres HOT 2
- CSS nesting inserts attribute selector at every level HOT 1
- can not resolve global component in h function when pass a render function HOT 7
- Unhandled error during execution of render function HOT 1
- Regression of multiselect integer form values (>=3.4.15) HOT 2
- v-model修饰符在初始化的时候不生效,只有当v-model绑定的值发生变化时才生效。 HOT 5
- Issues Regarding TransitionGroup HOT 4
- Vue 3 render function no class reactivity HOT 1
- withDefaults merge object union HOT 1
- Inconsistent production and runtime environments. HOT 3
- Not possible to use Symbol value for checkbox true-value HOT 6
- Not possible to use Symbol values for checkbox v-model values HOT 3
- Change in computed property behavior with Reactive objects in 3.4 HOT 3
- `app.provide` is not type safe
- UModal error when opened HOT 1
- Invalid bidirectional binding of subcomponent ref HOT 2
- Cannot read properties of null (reading 'insertBefore') HOT 2
- Vue compat with Jest: "TypeError: decode_js.EntityDecoder is not a constructor" HOT 2
- MutationObserver in defineCustomElement is disconnected if we move the custom element to another place, then lose attribute observation
- Input with type="number" does not update value after removing leading zeros from v-model binding HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.