| | |
| | | <template> |
| | | <div class="content-box" :class="{'no-border': noborder}"> |
| | | <div class="content-box" :class="{'no-border': noborder, 'footer': footer}"> |
| | | <div class="content-box-title" :class="getTitlePos"> |
| | | <slot name="title">{{title}}</slot> |
| | | </div> |
| | | <div class="content-box-content"> |
| | | <slot></slot> |
| | | </div> |
| | | <div class="content-box-footer" v-if="footer"> |
| | | <slot name="footer"></slot> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | footer: { |
| | | type: Boolean, |
| | | default: false, |
| | | } |
| | | }, |
| | | computed: { |
| | | getTitlePos: function() { |
| | |
| | | bottom: 0; |
| | | overflow-y: auto; |
| | | } |
| | | .footer .content-box-content { |
| | | bottom: 0.32rem; |
| | | } |
| | | .content-box-footer { |
| | | position: absolute; |
| | | bottom: 0; |
| | | left: 0.04rem; |
| | | right: 0.04rem; |
| | | padding-left: 0.1rem; |
| | | border-radius: 0.06rem; |
| | | font-size: 0.14rem; |
| | | text-align: center; |
| | | line-height: 0.32rem; |
| | | font-weight: bold; |
| | | z-index: 1; |
| | | } |
| | | </style> |
| | | |
| | | |