增加模板测试用例用法
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user