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
| <!--
| * @Author: 小明丶
| * @Date: 2019-08-23 09:54:25
| * @LastEditors: 小明丶
| * @LastEditTime: 2019-08-23 09:55:47
| * @Description: 公共横向滑动组件
| -->
| <template>
| <div class="cardsList">
| <slot></slot>
| </div>
| </template>
|
| <script>
| export default {
| name:'v-scroll-x'
| }
| </script>
|
| <style lang="less" scoped>
| .cardsList{
| display: -webkit-box;
| justify-content: flex-start;
| align-items: flex-start;
| overflow-x: scroll;
| overflow-y:hidden;
| &::-webkit-scrollbar{
| display: none;
| }
|
| }
| </style>
|
|