Description
- I confirm that this is a issue rather than a question.
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
- Your OS: windows 10
- Node.js version: v11.0.0
- Browser version: chrome 71.0.3559.6
- Is this a global or local install? local
- Which package manager did you use for the install? yarn