Browse Source

style: Fix jsx self close, #3966 (#3968)

pull/3997/head
Wei Zhu 8 years ago
committed by Benjy Cui
parent
commit
52f6f992b3
  1. 2
      components/progress/progress.tsx
  2. 2
      components/transfer/list.tsx
  3. 2
      components/tree-select/index.tsx
  4. 2
      components/tree/index.tsx

2
components/progress/progress.tsx

@ -79,7 +79,7 @@ export default class Progress extends React.Component<ProgressProps, any> {
<div>
<div className={`${prefixCls}-outer`}>
<div className={`${prefixCls}-inner`}>
<div className={`${prefixCls}-bg`} style={percentStyle}></div>
<div className={`${prefixCls}-bg`} style={percentStyle} />
</div>
</div>
{progressInfo}

2
components/transfer/list.tsx

@ -178,7 +178,7 @@ export default class TransferList extends React.Component<TransferListProps, any
prefixCls: outerPrefixCls,
checked: checkStatus === 'all',
checkPart: checkStatus === 'part',
checkable: <span className={`${outerPrefixCls}-checkbox-inner`}></span>,
checkable: <span className={`${outerPrefixCls}-checkbox-inner`} />,
filteredDataSource,
disabled: false,
})}

2
components/tree-select/index.tsx

@ -44,7 +44,7 @@ export default class TreeSelect extends React.Component<TreeSelectProps, any> {
let checkable = props.treeCheckable;
if (checkable) {
checkable = <span className={`${prefixCls}-tree-checkbox-inner`}></span>;
checkable = <span className={`${prefixCls}-tree-checkbox-inner`} />;
}
return (

2
components/tree/index.tsx

@ -100,7 +100,7 @@ export default class Tree extends React.Component<TreeProps, any> {
return (
<RcTree
{...props}
checkable={checkable ? (<span className={`${props.prefixCls}-checkbox-inner`}></span>) : checkable }
checkable={checkable ? (<span className={`${props.prefixCls}-checkbox-inner`} />) : checkable }
>
{this.props.children}
</RcTree>

Loading…
Cancel
Save