| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <template>
- <div class="card-wrap">
- <div class="header">
- <div class="h-c-wrap">
- <slot name="title"/>
- </div>
- </div>
- <div class="content">
- <slot name="content" class="slot"/>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'CardWrap',
- data() {
- return {}
- },
- watch: {},
- created() {
- },
- methods: {}
- }
- </script>
- <style scoped lang="scss">
- .card-wrap {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- //border: 1px solid teal;
- .header {
- height: 4vh;
- width: 100%;
- flex-shrink: 0;
- background-image: url("/static/images/biaoti_short@2x.png");
- background-repeat: no-repeat;
- background-size: auto 2vw;
- background-position: left bottom;
- font-size: 1vw;
- color: white;
- padding-left: 2vw;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- & > .h-c-wrap {
- line-height: 1;
- cursor: pointer;
- }
- }
- .content {
- flex-grow: 1;
- width: 100%;
- & > div {
- height: 100%;
- }
- }
- }
- /*控制整个滚动条*/
- ::-webkit-scrollbar {
- background-color: transparent;
- width: 8px;
- height: 8px;
- background-clip: padding-box;
- }
- /*滚动条两端方向按钮*/
- ::-webkit-scrollbar-button {
- height: 0px;
- width: 0px;
- }
- /*滚动条中间滑动部分*/
- ::-webkit-scrollbar-thumb {
- background-color: #dbdbdb;
- border-radius: 4px;
- }
- /*滚动条右下角区域*/
- ::-webkit-scrollbar-corner {
- background-color: transparent;
- }
- </style>
|