App.vue 787 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div id="app">
  3. <Layout />
  4. </div>
  5. </template>
  6. <script>
  7. // import HelloWorld from './components/HelloWorld.vue'
  8. // import { Button } from 'ant-design-vue'
  9. import Layout from './views/Layout'
  10. export default {
  11. name: 'App',
  12. components: {
  13. Layout
  14. },
  15. data() {
  16. return {
  17. current: ['mail'],
  18. openKeys: ['sub1']
  19. };
  20. },
  21. watch: {
  22. openKeys(val) {
  23. console.log('openKeys', val);
  24. },
  25. },
  26. methods: {
  27. handleClick(e) {
  28. console.log('click', e);
  29. },
  30. titleClick(e) {
  31. console.log('titleClick', e);
  32. },
  33. }
  34. }
  35. </script>
  36. <style>
  37. #app {
  38. font-family: Avenir, Helvetica, Arial, sans-serif;
  39. -webkit-font-smoothing: antialiased;
  40. -moz-osx-font-smoothing: grayscale;
  41. text-align: center;
  42. color: #2c3e50;
  43. }
  44. </style>