-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
Vue.js version
2.1.7
Reproduction Link
https://jsfiddle.net/jkin8010/j7s5prkv/5/
Steps to reproduce
Icon.vue
<template>
<i :class="className"></i>
</template>
<script>
export default {
props: {
type: String
},
computed: {
className () {
return `c-icon c-icon-${this.type}`
}
}
}
</script>
Hello.vue
<template>
<div class="hello">
<icon type="clear"></icon>
<slot name="right"><slot>
</div>
</template>
<script>
import Icon from './icon.vue';
export default {
components: {
Icon
}
}
</script>
App.vue
<template>
<div id="app">
<hello>
test2
</hello>
</div>
</template>
<script>
import Hello from './Hello'
export default {
components: {
Hello
}
}
</script>
What is Expected?
What is actually happening?
Metadata
Metadata
Assignees
Labels
No labels