Property or method "slotKey" is not defined on the instance at #975
Labels
has workaround
Has a workaround
type: bug
Something isn't working
type: enhancement
Request to enhance an existing feature
Bug report
Version
vuepress 1.0.0-alpha.18
Steps to reproduce
I used a "ui-input" component binded v-model in ui-input.md as below:
<div class="demo-section">
<ui-input placeholder="请输入内容" v-model="formData.ipt1"></ui-input><span class="tip-error"><i class="ui-icon-warning"></i>不能为空</span>
</div>
<script type="text/javascript">
export default {
data () {
return {
formData: {
ipt1: ''
}
}
},
mounted() {
},
methods: {
postData() {
console.log(this.formData)
},
cancel() {}
},
created() {
}
}
</script>
However, it tells me "Property or method "slotKey" is not defined", until I removed all the scripts.
What is actually happening?
[Vue warn]: Property or method "slotKey" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
Other relevant information
The text was updated successfully, but these errors were encountered: