Register.vue 920 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div class="register">
  3. <div>
  4. <h4 style="color:orange;">注册页面</h4>
  5. </div>
  6. <div>
  7. <label>用户名</label>
  8. <input type="text" placeholder="请输入用户名"/>
  9. </div>
  10. <div>
  11. <label>密码</label>
  12. <input type="password" placeholder="请输入密码"/>
  13. </div>
  14. <div>
  15. <label>确认密码</label>
  16. <input type="password" placeholder="确认密码"/>
  17. </div>
  18. <div>
  19. <button>注册</button>
  20. </div>
  21. </div>
  22. </template>
  23. <script type="module">
  24. import "../../style/common.css";
  25. export default {
  26. methods:{
  27. add_number(){
  28. }
  29. },
  30. setup(){
  31. console.log("about vue component setup");
  32. },
  33. mounted(el){
  34. console.log("about vue under mounted ---");
  35. }
  36. }
  37. </script>
  38. <style scoped>
  39. /* @import url(../../style/common.css); */
  40. .register{
  41. color:var(--font-color);
  42. width:80%;
  43. display: flex;
  44. justify-content: center;
  45. align-items: center;
  46. }
  47. </style>