Skip to content

Commit

Permalink
New table (#380)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zombieJ authored Oct 30, 2019
1 parent 04de08d commit 55e4bfb
Show file tree
Hide file tree
Showing 103 changed files with 6,198 additions and 8,793 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ module.exports = {
'react/no-array-index-key': 0,
'react/sort-comp': 0,
'@typescript-eslint/no-explicit-any': 1,
'@typescript-eslint/no-empty-interface': 1,
'@typescript-eslint/no-inferrable-types': 0,
'react/no-find-dom-node': 1,
'react/require-default-props': 0,
'no-confusing-arrow': 0,
'import/no-named-as-default-member': 0,
'jsx-a11y/label-has-for': 0,
'jsx-a11y/label-has-associated-control': 0,
},
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.storybook
.doc
*.iml
*.log
.idea/
Expand Down Expand Up @@ -30,3 +31,4 @@ yarn.lock
es/
.storybook
.doc
!tests/__mocks__/rc-util/lib
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "never",
"printWidth": 100
}
16 changes: 4 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
language: node_js

sudo: false

notifications:
email:
- yiminghe@gmail.com
- afc163@gmail.com
- yesmeck@gmail.com

node_js:
- 10
- 10

script:
- |
- |
if [ "$TEST_TYPE" = test ]; then
npm test -- --coverage && \
bash <(curl -s https://codecov.io/bash)
Expand All @@ -21,5 +13,5 @@ script:
fi
env:
matrix:
- TEST_TYPE=lint
- TEST_TYPE=test
- TEST_TYPE=lint
- TEST_TYPE=test
Loading

1 comment on commit 55e4bfb

@vercel
Copy link

@vercel vercel bot commented on 55e4bfb Oct 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.