Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 年前
123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="panel">
  3. <side-bar :role="user.status">
  4. </side-bar>
  5. <div v-if="loading">
  6. </div>
  7. <div v-else-if="!loading"></div>
  8. </div>
  9. </template>
  10. <script>
  11. import SideBar from "./sidebar.vue"
  12. const user = {
  13. firstName: "test",
  14. lastName: "user",
  15. id: 12,
  16. status: 1,
  17. }
  18. export default {
  19. components: {SideBar},
  20. data() {
  21. return {
  22. loading: true, user: user
  23. }
  24. }
  25. }
  26. </script>