App.vue 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style>
  15. /*每个页面公共css */
  16. uni-app {
  17. font-size: 14px !important;
  18. }
  19. @media screen and (min-width: 960px) {
  20. html * {
  21. box-sizing: border-box !important;
  22. }
  23. uni-app {
  24. height: calc(100% + 46px);
  25. transform: translateY(-46px);
  26. }
  27. button {
  28. cursor: pointer;
  29. }
  30. }
  31. uni-input {
  32. width: 240px;
  33. height: 32px;
  34. border: 1px solid #d8d8d8;
  35. border-radius: 4px;
  36. padding: 0 8px;
  37. }
  38. page {
  39. height: 100%;
  40. }
  41. .el-table--border {
  42. overflow-x: scroll;
  43. }
  44. .el-pagination {
  45. width: 100%;
  46. overflow-x: scroll;
  47. }
  48. </style>