| | |
| | | box-sizing: border-box; |
| | | .layout-header__title { |
| | | font-size: 38px; |
| | | line-height: 46px; |
| | | } |
| | | } |
| | | .layout-body { |
| | |
| | | |
| | | <template> |
| | | <view class="c-content"> |
| | | <view |
| | | class="c-content-inner" |
| | | v-if="scroll==='off'" |
| | | > |
| | | <slot /> |
| | | </view> |
| | | <scroll-view |
| | | class="c-content-scroll" |
| | | v-if="scroll==='on'" |
| | | :scrollY="true" |
| | | > |
| | | <slot /> |
| | | </scroll-view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'CContent', |
| | | props: { |
| | | // 开启滚动,off / on |
| | | scroll: { |
| | | type: String, |
| | | default: 'off', |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | .c-content-scroll { |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |