陈帅
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
3 deletions
-
components/descriptions/index.tsx
-
components/descriptions/style/index.less
|
|
@ -10,12 +10,13 @@ import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; |
|
|
|
|
|
|
|
export interface DescriptionsItemProps { |
|
|
|
prefixCls?: string; |
|
|
|
label: React.ReactNode; |
|
|
|
children: JSX.Element; |
|
|
|
label?: React.ReactNode; |
|
|
|
children: React.ReactNode; |
|
|
|
span?: number; |
|
|
|
} |
|
|
|
|
|
|
|
const DescriptionsItem: React.SFC<DescriptionsItemProps> = ({ children }) => children; |
|
|
|
const DescriptionsItem: React.SFC<DescriptionsItemProps> = ({ children }) => |
|
|
|
children as JSX.Element; |
|
|
|
|
|
|
|
export interface DescriptionsProps { |
|
|
|
prefixCls?: string; |
|
|
|
|
|
@ -22,6 +22,7 @@ |
|
|
|
border-radius: @border-radius-base; |
|
|
|
table { |
|
|
|
width: 100%; |
|
|
|
table-layout: fixed; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -90,6 +91,9 @@ |
|
|
|
&.bordered { |
|
|
|
.@{descriptions-prefix-cls}-view { |
|
|
|
border: 1px solid @border-color-split; |
|
|
|
> table { |
|
|
|
table-layout: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
.@{descriptions-prefix-cls}-item-label, |
|
|
|
.@{descriptions-prefix-cls}-item-content { |
|
|
|