update List
This commit is contained in:
parent
bc56534b90
commit
fb7f36f91b
4 changed files with 81 additions and 5 deletions
|
@ -16,7 +16,7 @@
|
|||
export default {
|
||||
name: 'List',
|
||||
props: {
|
||||
bordered: {
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
@ -70,7 +70,7 @@
|
|||
`${prefixCls}-${this.size}`,
|
||||
`${prefixCls}-${this.itemLayout}`,
|
||||
{
|
||||
[`${prefixCls}-bordered`]: this.bordered,
|
||||
[`${prefixCls}-bordered`]: this.border,
|
||||
[`${prefixCls}-split`]: this.split
|
||||
}
|
||||
];
|
||||
|
|
|
@ -105,6 +105,9 @@
|
|||
&-split &-header {
|
||||
border-bottom: 1px solid @border-color-split;
|
||||
}
|
||||
&-split &-footer{
|
||||
border-top: 1px solid @border-color-split;
|
||||
}
|
||||
|
||||
&-large &-item {
|
||||
padding-top: 16px;
|
||||
|
@ -152,3 +155,45 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{list-prefix-cls}-bordered {
|
||||
border: 1px solid @border-color-base;
|
||||
border-radius: @border-radius-base;
|
||||
.@{list-prefix-cls}-header {
|
||||
padding-right: 24px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.@{list-prefix-cls}-footer {
|
||||
padding-right: 24px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.@{list-prefix-cls}-item {
|
||||
padding-right: 24px;
|
||||
padding-left: 24px;
|
||||
border-bottom: 1px solid @border-color-split;
|
||||
}
|
||||
|
||||
.@{list-prefix-cls}-pagination {
|
||||
margin: 16px 24px;
|
||||
}
|
||||
|
||||
&.@{list-prefix-cls}-small {
|
||||
.@{list-prefix-cls}-item {
|
||||
padding-right: 16px;
|
||||
padding-left: 16px;
|
||||
}
|
||||
.@{list-prefix-cls}-header,
|
||||
.@{list-prefix-cls}-footer {
|
||||
padding: 8px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{list-prefix-cls}-large {
|
||||
.@{list-prefix-cls}-header,
|
||||
.@{list-prefix-cls}-footer {
|
||||
padding: 16px 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue