增加模板测试用例用法

This commit is contained in:
尹吉欢
2018-04-08 16:11:16 +08:00
parent 6e98e11d2a
commit f59f7cf214
2 changed files with 36 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
Vue.component('my-component', {
template: `
<div class="head">
<h1 @click="show">ddd{{message}}</h1>
</div>
`,
data: function(){
return {message: 'helloa'}
},
methods: {
show() {
alert();
}
}
})