forked from JavaScript/bee-table
fix: remove loading
This commit is contained in:
parent
7c9066da5b
commit
87ed08a724
|
@ -709,15 +709,8 @@ var TableRow = function (_Component) {
|
|||
// key={hoverKey}
|
||||
, ref: this.bindElement
|
||||
},
|
||||
cells.length > 0 ? cells : isEmptyTr ? _react2["default"].createElement(
|
||||
'td',
|
||||
{ className: 'loading-td ' + (isPre ? 'pre-td' : 'suf-td'), style: { width: tdStyle.width || 1200, height: tdStyle.height || 100 } },
|
||||
_react2["default"].createElement(
|
||||
'div',
|
||||
{ style: { left: (containerWidth || 1200) / 2 - 23 }, className: 'loading-div ' + (isPre ? 'pre' : 'suf') },
|
||||
'\u52A0\u8F7D\u4E2D...'
|
||||
)
|
||||
) : _react2["default"].createElement('td', { style: { width: 0, padding: 0 } })
|
||||
cells.length > 0 ? cells : isEmptyTr ? // loading暂时去掉
|
||||
_react2["default"].createElement('td', { style: { width: 0, padding: 0 } }) : _react2["default"].createElement('td', { style: { width: 0, padding: 0 } })
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bee-table",
|
||||
"version": "2.3.15-beta.19",
|
||||
"version": "2.3.15-beta.20",
|
||||
"description": "Table ui component for react",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
|
|
@ -580,11 +580,8 @@ class TableRow extends Component{
|
|||
// key={hoverKey}
|
||||
ref={this.bindElement}
|
||||
>
|
||||
{cells.length > 0 ? cells : isEmptyTr ?
|
||||
<td className={`loading-td ${ isPre ? 'pre-td' : 'suf-td' }`} style={{ width: tdStyle.width || 1200, height: tdStyle.height || 100 }}>
|
||||
<div style={{ left: (containerWidth || 1200) / 2 - 23 }} className={`loading-div ${ isPre ? 'pre' : 'suf' }`}>
|
||||
加载中...
|
||||
</div>
|
||||
{cells.length > 0 ? cells : isEmptyTr ? // loading暂时去掉
|
||||
<td style={{width: 0,padding: 0}}>
|
||||
</td> : <td style={{width: 0,padding: 0}}>
|
||||
</td>}
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue