First.vue.bak 752 字节
<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>