|
1 | 1 | <template> |
2 | 2 | <splitpanes |
3 | 3 | :horizontal="mobile" |
4 | | - class="default-theme webclient-showcase" |
| 4 | + :class="{'default-theme': true, 'webclient-showcase': true, 'webclient-showcase-mobile': mobile}" |
5 | 5 | > |
6 | | - <pane size="60"> |
| 6 | + <pane :size="mobile ? 60 :60"> |
7 | 7 | <el-row |
8 | 8 | v-loading="loading" |
9 | | - class="webclient-showcase-content" |
| 9 | + :class="{'webclient-showcase-content':true}" |
10 | 10 | > |
11 | 11 | <!-- <el-button |
12 | 12 | v-show="full" |
|
30 | 30 | </pane> |
31 | 31 | <pane |
32 | 32 | min-size="0" |
33 | | - size="40" |
| 33 | + :size="mobile ? 40 :40" |
34 | 34 | > |
35 | 35 | <el-button-group class="toolbar-showcase-group"> |
36 | 36 | <el-tooltip |
37 | 37 | class="item" |
38 | 38 | effect="dark" |
| 39 | + v-show="!mobile" |
39 | 40 | :content="fullscreen ? '关闭全屏': '开启全屏'" |
40 | 41 | placement="top" |
41 | 42 | > |
@@ -343,7 +344,10 @@ export default { |
343 | 344 | markdownContent[markdownContent.length - 1].style.height = window.innerHeight - 92 + "px"; |
344 | 345 | } else { |
345 | 346 | if (this.mobile) { |
| 347 | + window.console.log('scoll', demoContent, markdownContent); |
346 | 348 | codeContent[0].style.height = window.innerHeight / 2 - 162 + "px"; |
| 349 | + // demoContent[0].style.height = window.innerHeight - 102 + "px"; |
| 350 | + // markdownContent[markdownContent.length - 1].style.height = window.innerHeight - 242 + "px"; |
347 | 351 | } else { |
348 | 352 | codeContent[0].style.height = window.innerHeight - 295 + "px"; |
349 | 353 | demoContent[0].style.height = window.innerHeight - 230 + "px"; |
@@ -474,6 +478,12 @@ export default { |
474 | 478 | .splitpanes__pane { |
475 | 479 | background-color: #ffffff !important; |
476 | 480 | } |
| 481 | +.webclient-showcase-mobile { |
| 482 | + .element-scroll-content { |
| 483 | + height: calc(100vh - 45vh - 150px) !important; |
| 484 | + overflow-x: hidden; |
| 485 | + } |
| 486 | +} |
477 | 487 | .webclient-showcase { |
478 | 488 | .showcase-exit-fullscreen { |
479 | 489 | position: absolute; |
@@ -508,7 +518,7 @@ export default { |
508 | 518 | } |
509 | 519 |
|
510 | 520 | .iframemobile { |
511 | | - height: calc(50vh - 80px); |
| 521 | + height: 100%; |
512 | 522 | } |
513 | 523 |
|
514 | 524 | .editer-codemirror-content { |
|
0 commit comments