Commit bf0203db3d617862f66a0ea4b75f53f9dc3c35e5
1 parent
967e8e43
update Transfer
update Transfer
Showing
5 changed files
with
22 additions
and
5 deletions
Show diff stats
src/components/transfer/list.vue
| 1 | 1 | <template> |
| 2 | - <div :class="prefixCls" :style="style"> | |
| 2 | + <div :class="classes" :style="style"> | |
| 3 | 3 | <div :class="prefixCls + '-header'"> |
| 4 | 4 | <Checkbox :checked.sync="checkedAll" :disabled="checkedAllDisabled" @on-change="toggleSelectAll"></Checkbox> |
| 5 | 5 | <span>{{ title }}</span> |
| ... | ... | @@ -53,6 +53,14 @@ |
| 53 | 53 | } |
| 54 | 54 | }, |
| 55 | 55 | computed: { |
| 56 | + classes () { | |
| 57 | + return [ | |
| 58 | + `${this.prefixCls}`, | |
| 59 | + { | |
| 60 | + [`${this.prefixCls}-with-footer`]: this.showFooter | |
| 61 | + } | |
| 62 | + ] | |
| 63 | + }, | |
| 56 | 64 | bodyClasses () { |
| 57 | 65 | return [ |
| 58 | 66 | `${this.prefixCls}-body`, | ... | ... |
src/styles/common/article.less
src/styles/common/index.less
src/styles/components/transfer.less
| ... | ... | @@ -14,6 +14,10 @@ |
| 14 | 14 | position: relative; |
| 15 | 15 | padding-top: 35px; |
| 16 | 16 | |
| 17 | + &-with-footer{ | |
| 18 | + padding-bottom: 35px; | |
| 19 | + } | |
| 20 | + | |
| 17 | 21 | &-header { |
| 18 | 22 | padding: 8px 16px; |
| 19 | 23 | background: @head-bg; |
| ... | ... | @@ -97,6 +101,10 @@ |
| 97 | 101 | border: 1px solid @border-color-base; |
| 98 | 102 | border-top: none; |
| 99 | 103 | border-radius: 0 0 @border-radius-base @border-radius-base; |
| 104 | + position: absolute; | |
| 105 | + bottom: 0; | |
| 106 | + left: 0; | |
| 107 | + right: 0; | |
| 100 | 108 | |
| 101 | 109 | .clearfix(); |
| 102 | 110 | } | ... | ... |