App.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. <theme-picker />
  5. </div>
  6. </template>
  7. <script>
  8. import ThemePicker from "@/components/ThemePicker";
  9. import { initDingH5RemoteDebug } from "dingtalk-h5-remote-debug";
  10. initDingH5RemoteDebug();
  11. export default {
  12. name: "App",
  13. components: { ThemePicker },
  14. metaInfo() {
  15. return {
  16. title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
  17. titleTemplate: title => {
  18. return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
  19. }
  20. }
  21. }
  22. };
  23. </script>
  24. <style>
  25. #app .theme-picker {
  26. display: none;
  27. }
  28. ::-webkit-scrollbar-track {
  29. background: rgba(0, 0, 0, 0.1);
  30. border-radius: 0;
  31. }
  32. ::-webkit-scrollbar {
  33. -webkit-appearance: none;
  34. width: 5px;
  35. height: 6px;
  36. }
  37. ::-webkit-scrollbar-thumb {
  38. cursor: pointer;
  39. border-radius: 5px;
  40. background: rgba(0, 0, 0, 0.15);
  41. transition: color 0.2s ease;
  42. }
  43. /* 全局设置 element ui dialog水平垂直居中 */
  44. .el-dialog {
  45. left: 50%;
  46. /* top: 5%; */
  47. transform: translate(-50%, -5%);
  48. margin: 0px !important;
  49. }
  50. .el-dialog {
  51. border-radius: 8px;
  52. }
  53. .el-dialog__header {
  54. /* border-bottom: 1px solid #D7D9DC; */
  55. box-shadow: 0 1px 4px 0 rgba(31, 45, 61, .12);
  56. }
  57. .el-dialog__footer{
  58. border-top: 1px solid #D7D9DC;
  59. }
  60. /* 自定义Message 消息提示最小宽度 */
  61. .myBox {
  62. min-width: 30px !important;
  63. }
  64. </style>