First.vue.bak
752 字节
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 class="first-app">
{{msg}}
<confirm text="ע" @message="getMeaasge"></confirm>
<p class="link">
<router-link to="/second">ȥڶҳ</router-link>
</p>
</div>
</template>
<script>
import Confirm from "../sub/Confirm";
export default {
name: "First",
components: {
Confirm
},
data() {
return {
msg: "Welcome to FirstApp"
};
},
methods: {
getMeaasge(val) {
console.log(val);
}
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less">
.first-app {
font-size: 30px;
.link {
a {
color: red;
}
}
}
</style>