示例修改

This commit is contained in:
wanghaoo 2019-02-25 20:22:55 +08:00
parent f86ffe19b4
commit 69fea0aec5
8 changed files with 82 additions and 328 deletions

View File

@ -14,7 +14,7 @@ const columns23 = [
title: "名字",
dataIndex: "a",
key: "a",
width: '800',
width: '200',
fixed:'left'
},
{

View File

@ -11,7 +11,7 @@
import React, { Component } from 'react';
import Table from '../../src';
import multiSelect from '../../src/lib/MultiSelect';
import multiSelect from '../../src/lib/multiSelect';
import sort from '../../src/lib/sort';
import Checkbox from 'bee-checkbox';
import Icon from 'bee-icon';

View File

@ -12,7 +12,7 @@ import Icon from 'bee-icon';
import Popover from 'bee-popover';
import Table from "../../src";
import BigData from "../../src/lib/bigData";
import multiSelect from '../../src/lib/MultiSelect';
import multiSelect from '../../src/lib/multiSelect';
import filterColumn from '../../src/lib/filterColumn';
let ComplexTable = filterColumn(multiSelect(BigData(Table), Checkbox), Popover, Icon);

File diff suppressed because one or more lines are too long

395
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

@ -778,7 +778,7 @@ class Table extends Component {
//显示表头滚动条
if(headerScroll){
if(fixed){
//内容少,不用显示滚动条
if(this.domWidthDiff <= 0){
headStyle.marginBottom = `${scrollbarWidth}px`;
bodyStyle.marginBottom = `-${scrollbarWidth}px`;

View File

@ -201,7 +201,8 @@ class TableHeader extends Component {
contentTableHeader.style.overflowX = 'scroll';
fixedLeftHeaderTable && (fixedLeftHeaderTable.style.marginBottom = scrollbarWidth + "px");
fixedRighHeadertTable && (fixedRighHeadertTable.style.marginBottom = scrollbarWidth + "px");
}else{
//todo inner scroll-x去掉outer marginbottom 设置成-15px】
}else{
contentTableHeader.style.overflowX = 'hidden';
fixedLeftHeaderTable && (fixedLeftHeaderTable.style.marginBottom = '0px');
fixedRighHeadertTable && (fixedRighHeadertTable.style.marginBottom = '0px');