Skip to content

Commit

Permalink
修改的上传
Browse files Browse the repository at this point in the history
  • Loading branch information
sunww committed Apr 19, 2019
1 parent ea009f0 commit 8824e2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div id="app">
<img src="./assets/logo.png">
<router-link to=/foo>aa</router-link>
<router-link to=/foo></router-link>
<router-view></router-view>
</div>
</template>
Expand Down
8 changes: 4 additions & 4 deletions testhtml/vuework.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ <h1>aaa</h1>
Vue.component('child', {
// 声明 props
props: ['message'],
data: function () {
data: function () {
return { counter: 0 }
},
methods: {
methods: {
increment: function () {
this.counter += 1
this.$emit('increment')
}
},
},
// 就像 data 一样,prop 可以用在模板内
// 同样也可以在 vm 实例中像“this.message”这样使用
template: '<div v-on:click="increment">{{ message }} <slot name="footer"></slot> <slot></slot> </div>'
template: '<div v-on:click="increment">{{ message }} <slot name="footer"></slot> <slot></slot> </div>'

})

Expand Down
4 changes: 2 additions & 2 deletions testhtml/vuex.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<!-- Your custom script here -->
<div id="app">
<p>{{ count }}</p>
<p>{{ count1 }}</p>
<p>
<button @click="increment">+</button>
<button @click="decrement">-</button>
Expand All @@ -27,7 +27,7 @@
new Vue({
el: '#app',
computed: {
count () {
count1 () {
return store.state.count
}
},
Expand Down

0 comments on commit 8824e2a

Please sign in to comment.