-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest vue
More file actions
41 lines (41 loc) · 914 Bytes
/
Copy pathtest vue
File metadata and controls
41 lines (41 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template>
<div>
<div>儿子呀儿子呀</div>
<p>{{names}}</p>
<el-button>{{names}}</el-button>
</div>
</template>
<script>
import ElButton from '../../../node_modules/element-ui/packages/button/src/button'
export default {
components: { ElButton },
porps: {
names: String
},
beforeCreate () {
console.log('我是子组件的beforeCreat啊')
},
created () {
console.log('儿子中的mount啦啦啦啦!!!!', this.names)
},
beforeMount () {
console.log('儿子中的beforeMountlallalal!!!', this.names)
},
mounted () {
console.log('儿子中的mount')
},
beforeUpdate () {
console.log('儿子中的beforeupdate')
},
updated () {
console.log('儿子中的update')
}
}
</script>
<style scoped>
div {
width: 100px;
height: 100px;
background: darkgreen;
}
</style>