Blame view

admin-web-master/src/views/aaa/components/toolBar/toolPanel.vue 983 Bytes
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  <template>
    <div class="toolWarp">
      <div class="toolPanel">
        <component :is="componentMap.get(activeComponent.type)"></component>
      </div>
    </div>
  </template>
  <script>
  import componentMap from './componentMap'
  import { mapGetters } from 'vuex'
    export default {
      name: 'toolPanel',
      data () {
        return {
          componentMap: componentMap
        }
      },
      computed: {
        ...mapGetters([
          'activeComponent',
          'typeId'
        ])
      }
    }
  </script>
  
  <style lang="scss" scoped>
    .toolWarp{
      width: 320px;
    }
    .toolPanel {
      width: 320px;
    }
    .toolPanel::-webkit-scrollbar {
      width: 4px;
      height: 1px;
    }
  
    .toolPanel::-webkit-scrollbar-thumb {
      border-radius: 4px;
      -webkit-box-shadow: inset 0 0 5px rgba(156, 148, 148, 0.2);
      background: #cdcdcd;
    }
    .toolPanel::-webkit-scrollbar-track {
      -webkit-box-shadow: inset 0 0 5px rgba(158, 150, 150, 0.2);
      border-radius: 4px;
      background: #EDEDED;
    }
  </style>