|
1 | 1 | <template>
|
2 |
| - <section class='main-container' :class='{full: index === 2, "width-full": index === 3}'> |
| 2 | + <section class='main-container' :class='{full: index === 2, "width-full": index === 1}'> |
3 | 3 | <div class='sidebar'>
|
4 | 4 | <div class='inner'>
|
5 | 5 | <div class="root-menu" @click='index = 1' :class='{active: index === 1}'>
|
6 |
| - 全局滚动 |
| 6 | + 垂直方向全局滚动/水平方向局部滚动 |
7 | 7 | </div>
|
8 | 8 | <div class="root-menu" @click='index = 2' :class='{active: index === 2}'>
|
9 | 9 | 局部滚动
|
10 | 10 | </div>
|
11 |
| - <div class="root-menu" @click='index = 3' :class='{active: index === 3}'> |
12 |
| - 垂直方向全局滚动/水平方向局部滚动 |
13 |
| - </div> |
14 | 11 | </div>
|
15 | 12 | </div>
|
16 |
| - <div class='main-wraper' :class='{full: index === 2, "width-full": index === 3}'> |
| 13 | + <div class='main-wraper' :class='{full: index === 2, "width-full": index === 1}'> |
17 | 14 | <div class='view'>
|
18 | 15 | <div class='view-title' v-if='index === 1'>
|
19 |
| - 表格一:全局滚动.滚动时固定顶部/左侧/右侧 |
| 16 | + 表格一:高度跟随全局,宽度自适应且x轴滚动. 出现虚拟x滚动条.解决滚动条太下无法拖动问题.同时固定顶部/左侧/右侧 |
20 | 17 | </div>
|
21 | 18 | <div class='view-title' v-if='index === 2'>
|
22 | 19 | 表格二:容器内局部滚动,滚动时在容器内固定顶部/左侧/右侧
|
23 | 20 | </div>
|
24 |
| - <div class='view-title' v-if='index === 3'> |
25 |
| - 表格三:高度跟随全局,宽度自适应且x轴滚动. 出现虚拟x滚动条.解决滚动条太下无法拖动问题.同时固定顶部/左侧/右侧 |
26 |
| - </div> |
27 | 21 | <components class='markdown-body' :is='code'></components>
|
28 |
| - <!-- <div class='code markdown-body' v-html='html'></div> --> |
29 | 22 | <div class='view-content' v-loading='!load'>
|
30 | 23 | <template v-if='load'>
|
31 |
| - <demo :data='data' v-if='index === 1' :offsetTop='50'></demo> |
| 24 | + <demo :data='data' self-scroll v-if='index === 1' :offsetTop='50'></demo> |
32 | 25 | <div id='scroll' class='scroll-container border' v-if='index === 2'>
|
33 | 26 | <demo :data='data' scrollTarget='#scroll'></demo>
|
34 | 27 | </div>
|
35 |
| - <demo :data='data' self-scroll v-if='index === 3' :offsetTop='50'></demo> |
36 | 28 | </template>
|
37 | 29 | </div>
|
38 | 30 | </div>
|
|
0 commit comments