[Feature]去掉Table重复的id
This commit is contained in:
parent
a6f6523101
commit
b3a4d95ef5
|
@ -3,11 +3,11 @@
|
||||||
/* Navlayout */
|
/* Navlayout */
|
||||||
/* FormGroup */
|
/* FormGroup */
|
||||||
/* Navlayout */
|
/* Navlayout */
|
||||||
/**
|
/**
|
||||||
* 加载背景
|
* 加载背景
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* 文字
|
* 文字
|
||||||
*/
|
*/
|
||||||
.u-loading-desc {
|
.u-loading-desc {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -18,8 +18,8 @@
|
||||||
color: #212121;
|
color: #212121;
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* default样式 单个圆圈加载
|
* default样式 单个圆圈加载
|
||||||
*/
|
*/
|
||||||
.u-loading.u-loading-rotate > div {
|
.u-loading.u-loading-rotate > div {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -153,6 +153,13 @@
|
||||||
.u-loading.u-loading-line.u-loading-line-warning > div {
|
.u-loading.u-loading-line.u-loading-line-warning > div {
|
||||||
background-color: #ff9800; }
|
background-color: #ff9800; }
|
||||||
|
|
||||||
|
.u-loading.u-loading-custom > div {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translate(-50%, -50%);
|
||||||
|
transform: translate(-50%, -50%); }
|
||||||
|
|
||||||
@keyframes line-scale {
|
@keyframes line-scale {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: scaley(1);
|
-webkit-transform: scaley(1);
|
||||||
|
|
|
@ -1089,7 +1089,7 @@ var Table = function (_Component) {
|
||||||
var _drag_class = _this4.props.dragborder ? "table-drag-bordered" : "";
|
var _drag_class = _this4.props.dragborder ? "table-drag-bordered" : "";
|
||||||
return _react2["default"].createElement(
|
return _react2["default"].createElement(
|
||||||
'table',
|
'table',
|
||||||
{ id: 'bee-table-uid', className: ' ' + tableClassName + ' table-bordered ' + _drag_class + ' ', style: tableStyle },
|
{ className: ' ' + tableClassName + ' table-bordered ' + _drag_class + ' ', style: tableStyle },
|
||||||
_this4.getColGroup(columns, fixed),
|
_this4.getColGroup(columns, fixed),
|
||||||
hasHead ? _this4.getHeader(columns, fixed) : null,
|
hasHead ? _this4.getHeader(columns, fixed) : null,
|
||||||
tableBody
|
tableBody
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3,11 +3,11 @@
|
||||||
/* Navlayout */
|
/* Navlayout */
|
||||||
/* FormGroup */
|
/* FormGroup */
|
||||||
/* Navlayout */
|
/* Navlayout */
|
||||||
/**
|
/**
|
||||||
* 加载背景
|
* 加载背景
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* 文字
|
* 文字
|
||||||
*/
|
*/
|
||||||
.u-loading-desc {
|
.u-loading-desc {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -18,8 +18,8 @@
|
||||||
color: #212121;
|
color: #212121;
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* default样式 单个圆圈加载
|
* default样式 单个圆圈加载
|
||||||
*/
|
*/
|
||||||
.u-loading.u-loading-rotate > div {
|
.u-loading.u-loading-rotate > div {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -142,6 +142,12 @@
|
||||||
.u-loading.u-loading-line.u-loading-line-warning > div {
|
.u-loading.u-loading-line.u-loading-line-warning > div {
|
||||||
background-color: #ff9800; }
|
background-color: #ff9800; }
|
||||||
|
|
||||||
|
.u-loading.u-loading-custom > div {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%); }
|
||||||
|
|
||||||
@keyframes line-scale {
|
@keyframes line-scale {
|
||||||
0% {
|
0% {
|
||||||
transform: scaley(1); }
|
transform: scaley(1); }
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
10
docs/api.md
10
docs/api.md
|
@ -449,11 +449,11 @@ const CheckboxRender = renderCheckbox(Checkbox, Icon);
|
||||||
|
|
||||||
| 快捷键 | 快捷键说明 | 类型 | 默认值 |
|
| 快捷键 | 快捷键说明 | 类型 | 默认值 |
|
||||||
| --- | :--- | --- |--- |
|
| --- | :--- | --- |--- |
|
||||||
| focusable | 是否开启快捷键功能 | bool | -
|
| focusable | 是否开启快捷键功能 | bool | false
|
||||||
| onKeyTab | tab快捷键,可以处理默认选中第一条数据 | function| -
|
| onKeyTab | tab快捷键,可以处理默认选中第一条数据 | function| () => {}
|
||||||
| onKeyUp | ↑(上箭) 快捷键,可以处理table的上一条数据 | function| -
|
| onKeyUp | ↑(上箭) 快捷键,可以处理table的上一条数据 | function| () => {}
|
||||||
| onKeyDown | ↓(下箭)快捷键,可以处理table的下一条数据 | function| -
|
| onKeyDown | ↓(下箭)快捷键,可以处理table的下一条数据 | function| () => {}
|
||||||
| onTableKeyDown | 触发table的所有快捷键 | function| -
|
| onTableKeyDown | 触发table的所有快捷键 | function| () => {}
|
||||||
| tabIndex | 设置焦点顺序 | number | 0
|
| tabIndex | 设置焦点顺序 | number | 0
|
||||||
|
|
||||||
## 注意事项
|
## 注意事项
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
"bee-form-control": "latest",
|
"bee-form-control": "latest",
|
||||||
"bee-icon": "latest",
|
"bee-icon": "latest",
|
||||||
"bee-input-number": "^2.0.7",
|
"bee-input-number": "^2.0.7",
|
||||||
"bee-loading": "^1.0.9",
|
"bee-loading": "1.1.2",
|
||||||
"bee-locale": "0.0.14",
|
"bee-locale": "0.0.14",
|
||||||
"bee-menus": "^2.0.6",
|
"bee-menus": "^2.0.6",
|
||||||
"bee-radio": "2.0.10",
|
"bee-radio": "2.0.10",
|
||||||
|
|
|
@ -940,7 +940,7 @@ class Table extends Component {
|
||||||
) : null;
|
) : null;
|
||||||
let _drag_class = this.props.dragborder ? "table-drag-bordered" : ""
|
let _drag_class = this.props.dragborder ? "table-drag-bordered" : ""
|
||||||
return (
|
return (
|
||||||
<table id="bee-table-uid" className={` ${tableClassName} table-bordered ${_drag_class} `} style={tableStyle} >
|
<table className={` ${tableClassName} table-bordered ${_drag_class} `} style={tableStyle} >
|
||||||
{/* {this.props.dragborder?null:this.getColGroup(columns, fixed)} */}
|
{/* {this.props.dragborder?null:this.getColGroup(columns, fixed)} */}
|
||||||
{this.getColGroup(columns, fixed)}
|
{this.getColGroup(columns, fixed)}
|
||||||
{hasHead ? this.getHeader(columns, fixed) : null}
|
{hasHead ? this.getHeader(columns, fixed) : null}
|
||||||
|
|
Loading…
Reference in New Issue