vue-contrib/vuese
The issue has been closed
Parser result contains slots more than once if present in template + script #83
ChristianKienle posted onGitHub
Describe the bug
If the template contains a named slot <slot name="back" />
is will be part of the slot-parser result. That is fine. However, if your script contains $slots.back
it will appear twice.
To Reproduce Steps to reproduce the behavior: Paste the following snippet into the explorer:
<template>
<div>
<slot name="back" />
</div>
</template>
<script>
export default {
name: 'MyComponent',
computed: {
hasBack() {
return this.$slots.back != null;
}
}
}
</script>
Expected behavior I expect the slots-array to only contain a single entry.
Which version do you use: latest
Additional information FYI: I have noticed that the unit tests don't fail because the count is not checked...
Btw: Fundamental Vue is adopting Vuese right now. :) We will slowly transition to Vuese in order to make our manually managed API-documentation obsolete.