App.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <!--
  2. * @Author: wt 1241351815@qq.com
  3. * @Date: 2022-04-25 10:00:04
  4. * @LastEditors: wt 1241351815@qq.com
  5. * @LastEditTime: 2022-05-13 10:35:28
  6. * @FilePath: \deviceManager\src\App.vue
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. -->
  9. <template>
  10. <div id="app">
  11. <router-view />
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. name: 'App',
  17. metaInfo() {
  18. return {
  19. title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
  20. titleTemplate: title => {
  21. return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
  22. }
  23. }
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. ::v-deep {
  29. .el-table__body-wrapper::-webkit-scrollbar {
  30. /*width: 0;宽度为0隐藏*/
  31. width: 4px;
  32. height:4px;
  33. }
  34. .el-table__body-wrapper::-webkit-scrollbar-thumb {
  35. border-radius: 6px;
  36. height: 50px;
  37. background: rgba(40, 190, 252, .6);//滚动条颜色
  38. }
  39. .el-table__body-wrapper::-webkit-scrollbar-track {
  40. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  41. border-radius: 6px;
  42. background: #eee;//滚动条背景色
  43. }
  44. }
  45. </style>
  46. <style>
  47. /* input 样式 */
  48. .el-input__inner{
  49. height:28px !important;
  50. line-height: 28px !important;
  51. }
  52. .el-input-number--small{
  53. height:26px !important;
  54. line-height: 26px !important;
  55. }
  56. .el-textarea .el-input__count,.el-input .el-input__count .el-input__count-inner{
  57. font-size: 8px;
  58. height: 12px;
  59. line-height: 12px;
  60. background: transparent !important
  61. }
  62. .el-input-number--medium{
  63. width:auto;
  64. line-height:28px;
  65. }
  66. .el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease] {
  67. line-height: 13px;
  68. }
  69. .el-table::before{
  70. height:0;
  71. bottom: none !important;
  72. }
  73. /* 部门框高度 */
  74. .vue-treeselect--searchable .vue-treeselect__input-container{
  75. height:28px !important;
  76. line-height: 20px !important;
  77. }
  78. .vue-treeselect__control{
  79. height:28px !important;
  80. margin-top:4px;
  81. }
  82. .vue-treeselect__placeholder, .vue-treeselect__single-value{
  83. top:-4px !important;
  84. }
  85. /* 时间搜托图标位置 */
  86. .el-range-editor--small .el-range__icon, .el-range-editor--small .el-range__close-icon{
  87. margin-top:-4px;
  88. }
  89. .el-range-editor--small .el-range-separator{
  90. margin-top:-6px;
  91. }
  92. /* 部门框高度 */
  93. .vue-treeselect--searchable .vue-treeselect__input-container{
  94. height:28px !important;
  95. line-height: 20px !important;
  96. }
  97. .vue-treeselect__control{
  98. height:28px !important;
  99. margin-top:4px;
  100. }
  101. .vue-treeselect__placeholder, .vue-treeselect__single-value{
  102. top:-4px !important;
  103. }
  104. /* 数字加减图标位置 */
  105. .el-input-number{
  106. line-height: 28px !important;
  107. }
  108. .el-input-number.is-controls-right .el-input-number__increase, .el-input-number.is-controls-right .el-input-number__decrease{
  109. line-height:10px;
  110. }
  111. .el-input-number--small{
  112. height:28px !important;
  113. line-height: 26px !important;
  114. }
  115. .el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease]{
  116. line-height: 13px;
  117. }
  118. .el-textarea .el-input__count,.el-input .el-input__count .el-input__count-inner{
  119. font-size: 8px;
  120. height: 12px;
  121. line-height: 12px;
  122. background: transparent !important
  123. }
  124. .el-input-number--medium{
  125. width:auto;
  126. line-height:28px;
  127. }
  128. .el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease] {
  129. line-height: 13px;
  130. }
  131. /* 时间input */
  132. .el-date-editor.el-input, .el-date-editor.el-input__inner{
  133. width:100% !important;
  134. }
  135. .time .el-form-item__label{
  136. width:auto !important;
  137. }
  138. .el-form-item__content span{
  139. font-weight: 700;
  140. /* color:#1890ff; */
  141. }
  142. </style>