This commit is contained in:
wanghaoo 2019-02-25 15:39:56 +08:00
parent e5c300075e
commit ae1eaa03f3
5 changed files with 312 additions and 99 deletions

View File

@ -185,8 +185,6 @@
color: rgb(66,165,245); } color: rgb(66,165,245); }
.u-table td a:active { .u-table td a:active {
color: rgb(21,101,192); } color: rgb(21,101,192); }
.u-table tr:hover {
background: rgb(227,242,253); }
.u-table tr:hover td .uf-eye { .u-table tr:hover td .uf-eye {
visibility: visible !important; } visibility: visible !important; }
.u-table tr tr a { .u-table tr tr a {

View File

@ -204,7 +204,7 @@ var TableRow = function (_Component) {
fixedIndex = _props7.fixedIndex, fixedIndex = _props7.fixedIndex,
syncHover = _props7.syncHover; syncHover = _props7.syncHover;
if (!syncHover) { if (syncHover) {
this.setState({ hovered: true }); this.setState({ hovered: true });
} }
onHover(true, hoverKey, e, fixedIndex); onHover(true, hoverKey, e, fixedIndex);
@ -217,7 +217,7 @@ var TableRow = function (_Component) {
fixedIndex = _props8.fixedIndex, fixedIndex = _props8.fixedIndex,
syncHover = _props8.syncHover; syncHover = _props8.syncHover;
if (!syncHover) { if (syncHover) {
this.setState({ hovered: false }); this.setState({ hovered: false });
} }
onHover(false, hoverKey, e, fixedIndex); onHover(false, hoverKey, e, fixedIndex);

365
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,9 @@ export default function filterColumn(Table, Popover) {
columnFilterAble: true, columnFilterAble: true,
scroll: {} scroll: {}
}; };
static contextTypes = {
beeLocale: PropTypes.object
}
constructor(props) { constructor(props) {
super(props); super(props);
const { columns } = props; const { columns } = props;
@ -142,12 +144,8 @@ export default function filterColumn(Table, Popover) {
const { data, prefixCls, scroll: scrollPro } = this.props; const { data, prefixCls, scroll: scrollPro } = this.props;
const { columns, showModal } = this.state; const { columns, showModal } = this.state;
let locale = getComponentLocale(
this.props, let locale = getComponentLocale(this.props, this.context, 'Table', () => i18n);
this.context,
"Table",
() => i18n
);
let _columns = [], let _columns = [],
widthState = 0, widthState = 0,