SettingPC.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div class="pc-setting" app-border dir-left>
  3. <slot></slot>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: "pc-setting",
  9. props: {
  10. scrollbar: {
  11. type: Boolean,
  12. default: true
  13. }
  14. },
  15. mounted() {
  16. // 添加滚动条
  17. this.scrollbar &&
  18. this.$nextTick(() =>
  19. $(this.$el).mCustomScrollbar({
  20. axis: "y",
  21. scrollInertia: 200,
  22. autoHideScrollbar: false
  23. })
  24. );
  25. },
  26. activated() {
  27. this.scrollbar &&
  28. this.$nextTick(() => {
  29. $(this.$el).mCustomScrollbar("update");
  30. $(this.$el).mCustomScrollbar("scrollTo", "top", 0);
  31. });
  32. }
  33. };
  34. </script>
  35. <style lang="less" scoped>
  36. .pc-setting {
  37. // width: 100%;
  38. .view-setting {
  39. padding: 10px;
  40. > li {
  41. padding: 10px;
  42. font-size: 14px;
  43. .title {
  44. display: flex;
  45. justify-content: space-between;
  46. margin-bottom: 10px;
  47. label {
  48. color: #ababab;
  49. font-size: 12px;
  50. }
  51. }
  52. .remark {
  53. display: block;
  54. white-space: normal;
  55. font-size: 12px;
  56. line-height: 1.5;
  57. color: #ababab;
  58. }
  59. }
  60. .title {
  61. display: flex;
  62. justify-content: space-between;
  63. margin-bottom: 10px;
  64. label {
  65. color: #ababab;
  66. font-size: 12px;
  67. }
  68. }
  69. .remark {
  70. display: block;
  71. white-space: normal;
  72. font-size: 12px;
  73. line-height: 1.5;
  74. color: #ababab;
  75. }
  76. }
  77. /deep/ .vue-slider {
  78. padding: 7px 10px !important;
  79. }
  80. /deep/ .vue-slider-process {
  81. background-color: @color;
  82. }
  83. /deep/ .vue-slider-dot-tooltip-inner {
  84. border-color: @color;
  85. background-color: @color;
  86. }
  87. }
  88. </style>