前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
<template> <div class="hello" v-text="msg"></div> </template> <script> export default { name: "HelloWorld", props: { msg: String, }, }; </script> <!-- Add "scoped" attribute to limit CSS to this component only --> <style scoped> .hello { margin: 10px 0; } </style>