forked from p96170835/amis
样式调整
This commit is contained in:
parent
db9edb72b8
commit
a6f0a5a72a
|
@ -15,6 +15,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
.#{$ns}Form-static {
|
||||
min-height: $Form-input-height;
|
||||
padding-top: $Form-label-paddingTop;
|
||||
padding-bottom: $Form-label-paddingTop;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.#{$ns}Form-label {
|
||||
font-weight: $fontWeightNormal;
|
||||
margin-bottom: px2rem(5px);
|
||||
|
|
|
@ -7,7 +7,7 @@ export interface ListGroupProps
|
|||
expand?: boolean;
|
||||
items?: Array<any>;
|
||||
itemClassName?: string;
|
||||
itemRender: (item: any) => JSX.Element;
|
||||
itemRender: (item: any, index: number) => JSX.Element;
|
||||
placeholder?: JSX.Element;
|
||||
getItemProps?: (props: {item: any; index: number}) => any;
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ export class ListGroup extends React.Component<ListGroupProps> {
|
|||
itemClassName,
|
||||
itemRender,
|
||||
getItemProps,
|
||||
classPrefix,
|
||||
...rest
|
||||
} = this.props;
|
||||
|
||||
|
@ -54,7 +55,7 @@ export class ListGroup extends React.Component<ListGroupProps> {
|
|||
itemProps.className
|
||||
)}
|
||||
>
|
||||
{itemRender(item)}
|
||||
{itemRender(item, index)}
|
||||
</div>
|
||||
);
|
||||
})
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import React from 'react';
|
||||
import {FormItem, FormControlProps} from './Item';
|
||||
import cx from 'classnames';
|
||||
import {TableCell} from '../Table';
|
||||
import PopOver from '../PopOver';
|
||||
import QuickEdit from '../QuickEdit';
|
||||
|
@ -50,6 +49,7 @@ export default class StaticControl extends React.Component<StaticProps, any> {
|
|||
render,
|
||||
children,
|
||||
data,
|
||||
classnames: cx,
|
||||
...rest
|
||||
} = this.props;
|
||||
|
||||
|
@ -63,7 +63,7 @@ export default class StaticControl extends React.Component<StaticProps, any> {
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="form-control-static">
|
||||
<div className={cx('Form-static')}>
|
||||
{render(
|
||||
'field',
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue