Skip to content

Commit 55e4bfb

Browse files
authored
New table (#380)
* basic init * Cell render * add flatten logic * refactor of memo component * support merge title * add simple example * add fixHedaer * sticky header * supoor ref * support scroll * fix right * sticky width * fixed support merged column * box-shadow of fixed * fix scroll crash * update ts * add basic expanded * expandable support style update * add addtional column of scroll bar * make fix more beauti * row click expand * support `rowExpandable` * fix click support row expandable * limit size * clean up * add word break * add colWidth to force use table width * re-onScroll if size changed * update demo * fix scroll class missing * support render span * fix support row expand * expandable support fix * fix header should minus width of component * feat: add summary support * add indent demo * add border-width * add TableLayout support * support col className * support intend nest expandable * support nest expanded * adjust style * support animation * update demo * support rowClassName * tmp refactor * mv body related commomn code into context * support table header customize * support customize table component * ellipsis will add title * hide showHeader * table support id * add key demo * add nested demo * move expanded row to a new component * render empty * Header support fix when no data * empty demo * add more style * clean up * fix table lint * update ts define * init test * basic part of test * more test case * test case of rows * customize components * basic test coverage * init expand test * support expandColumnIndex * udpate test case * done of expand test * done of Fixed test * init grouping test * finish group test * skip test of suger * add warning test * add without data fixed test * full test * clean uo * doc it * test ci * fix ignore
1 parent 04de08d commit 55e4bfb

File tree

103 files changed

+6198
-8793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+6198
-8793
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ module.exports = {
77
'react/no-array-index-key': 0,
88
'react/sort-comp': 0,
99
'@typescript-eslint/no-explicit-any': 1,
10+
'@typescript-eslint/no-empty-interface': 1,
11+
'@typescript-eslint/no-inferrable-types': 0,
1012
'react/no-find-dom-node': 1,
1113
'react/require-default-props': 0,
1214
'no-confusing-arrow': 0,
15+
'import/no-named-as-default-member': 0,
1316
'jsx-a11y/label-has-for': 0,
1417
'jsx-a11y/label-has-associated-control': 0,
1518
},

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.storybook
2+
.doc
23
*.iml
34
*.log
45
.idea/
@@ -30,3 +31,4 @@ yarn.lock
3031
es/
3132
.storybook
3233
.doc
34+
!tests/__mocks__/rc-util/lib

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"singleQuote": true,
33
"trailingComma": "all",
4+
"proseWrap": "never",
45
"printWidth": 100
56
}

.travis.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
language: node_js
22

3-
sudo: false
4-
5-
notifications:
6-
email:
7-
8-
9-
10-
113
node_js:
12-
- 10
4+
- 10
135

146
script:
15-
- |
7+
- |
168
if [ "$TEST_TYPE" = test ]; then
179
npm test -- --coverage && \
1810
bash <(curl -s https://codecov.io/bash)
@@ -21,5 +13,5 @@ script:
2113
fi
2214
env:
2315
matrix:
24-
- TEST_TYPE=lint
25-
- TEST_TYPE=test
16+
- TEST_TYPE=lint
17+
- TEST_TYPE=test

0 commit comments

Comments
 (0)