Commit Graph

328 Commits

Author SHA1 Message Date
lijianan
768ab54426
fix: delete defaultprops () 2022-10-12 11:39:06 +08:00
lijianan
ddaead6777
fix: delete defaultprops ()
* fix: delete defaultprops

* fix: delete defaultprops
2022-09-30 17:44:24 +08:00
二货爱吃白萝卜
09b6032ec4
fix: Table column.title missing filters prop ()
* fix: Table title missing filter data

* test: add test case
2022-09-19 15:29:26 +08:00
yykoypj
f0e4963187
feat: switch filterDropdownVisible to filterDropdownOpen for Table ()
* feat: table filterDropdownVisible to filterDropdownOpen

* chore: adjust prosp pass

* test: Update test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-22 11:19:53 +08:00
MadCcc
0124f24595 Revert "fix(Table): onChange sorter param types ()"
This reverts commit 9e7e32b60c.
2022-08-17 10:13:25 +08:00
kalykun
9e7e32b60c
fix(Table): onChange sorter param types ()
* fix(types): fixes `sorter` param types

* chore: add test case

* Update type.test.tsx

* Update type.test.tsx
2022-08-04 11:16:24 +08:00
二货机器人
2c2c631bfd
chore: prettier components () 2022-06-22 14:57:09 +08:00
二货机器人
3d21ec54e2
refactor: reduce empty cycling deps ()
* chore: rm in root

* chore: fix ts

* test: Update snapshot

* chore: ignore part
2022-05-16 16:34:42 +08:00
Karott
338ec7dad7
perf: refactor devWarning for production code size ()
* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ()
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 ()
* chore: bump types def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: free --legacy-peer-deps

* chore: ignore peer

* chore: fix ts logic

* chore: use fork docsearch

* chore: fix demo ts
2022-04-08 22:55:42 +08:00
二货机器人
9f602aa710
fix: Table render twice on first mount ()
* fix: Table render twice

* chore: clean up

* test: Fix test case
2022-02-17 18:11:33 +08:00
二货机器人
2b152b0c22
feat: Support Table.EXPAND_COLUMN & Table.SELECTION_COLUMN ()
* feat: Table support Table.EXPAND_COLUMN & Table.SELECTION_COLUMN

* docs: Update docs
2021-11-26 17:50:41 +08:00
二货机器人
ec9ecde052
fix: Table ts definition ()
* fix: Table ts definition

* fix: backof default rowKey
2021-09-30 11:43:42 +08:00
JounQin
15d55bc3e9
feat: support ref for Table ()
* feat: support ref/prefix/suffix for Table

close 

* docs: documentat Table prefix/suffix props

* chore: fix lint error

* refactor: remove prefix/suffix props
2021-09-17 11:17:29 +08:00
JounQin
b5fffcab87
feat: inherit rc-pagination props, more customizable ()
* feat: inherit rc-pagination props, more customizable

close , 

* chore: CustomSelect.Option is required by rc-pagination

* fix: LocaleReceivier types issue

* fix: lint issue, pageSize must be presented
2021-09-13 12:15:18 +08:00
JounQin
a9951d8421
fix: preserve table pagination className ()
close 
2021-09-11 21:44:03 +08:00
wadezhan
d9c67cec59
fix(Table): Add warning when Table current is negative number 2021-04-21 13:47:05 +08:00
afc163
76434a15df
chore(🆙): upgrade devDeps ()
* chore(🆙): upgrade devDeps

* prettier code

* fix dnd demo

* fix react-dnd demo

* fix npm start and demo tsx compile

* fix snapshot
2021-02-23 10:45:11 +08:00
mumiao
dc100b17c5
fix(table): optimize type declaration about filter () 2021-02-20 16:32:59 +08:00
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ()
* refactor: use optional chaining instead of if

* revert some code
2021-02-19 18:26:53 +08:00
mumiao
d83e5fdd0a
fix: pagination componnet is not displayed at the position is none of… ()
* fix: pagination componnet is not displayed at the position is none of array

* docs: update table/pagination position column typeValue

* fix: named invalid column

* fix: delete unless code

* refactor: refactor pagination position logic

* ci: fix lint error

* ci: fix lint error

* test: update snapshot
2021-02-07 20:23:40 +08:00
陈帅
a4f0957576
docs: add 4.12.0 changelog ()
* docs: add 4.11.3 changelog

* update docs

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* update docs

* add 4.12.0 changelog

* update docs

* fix typo

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* fix changelog

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* update docs

* Update CHANGELOG.zh-CN.md

Co-authored-by: xrkffgg <xrkffgg@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: einq7 <50612752+AlanCutFlim@users.noreply.github.com>

* fix typo

* fix typo

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: einq7 <50612752+AlanCutFlim@users.noreply.github.com>
2021-02-02 22:05:31 +08:00
陈帅
40f9be9417
megre Feature into master ()
* feat: Allow user to configure the Tooltip in the Table header ()

* feat: Table header supports tooltipPlacement

* docs: add Table tooltipPlacement

* feat: Allow user to configure the Tooltip in the Table header

* fix: fix jsx and use old code style

* fix: replace if blocks with ternary operator

* docs: fix url

Co-authored-by: 偏右 <afc163@gmail.com>

* docs: fix url

Co-authored-by: harrisoff <john@smith.kyon>
Co-authored-by: 偏右 <afc163@gmail.com>

* fix: Row with gutter has additional gap ()

* chore: init gutter

* feat: col support gap

* chore: Update playground

* fix: Safari padding

* test: fix test case

* test: More test case

* docs: Update demo

* test: Update coverage

* test: Update test hack

* feat(input-number): add keyboard prop to support disable keyboard ()

Co-authored-by: Ant Design GitHub Bot <yesmeck+ant-design-bot@gmail.com>
Co-authored-by: Harrison <stlebea@foxmail.com>
Co-authored-by: harrisoff <john@smith.kyon>
Co-authored-by: 偏右 <afc163@gmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: Kermit <kermitlx@outlook.com>
2021-02-01 10:15:39 +08:00
二货机器人
08f25f0c8f
chore: Update Table ts definition ()
* chore: bump rc-table ver

* chore: Fix ts definition

* docs: fix doc
2021-01-28 01:21:58 +08:00
二货机器人
4315ac567c
chore: replace omit ()
* chore: Replace omit.js with rc-util omit

* chore: Replace omit.js with rc-util omit

* fix ts

* fix ts

* fix ts
2021-01-13 21:00:30 +08:00
不吃猫的鱼
5119d2a9e1
feat: add select none functionality () 2020-12-29 10:38:43 +08:00
Hossein Mohammadi
04bfa3c54f
chore: add prettier-plugin-jsdoc () 2020-12-28 15:30:18 +08:00
dependabot[bot]
775d1800bb
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 ()
* chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint style

* chore: prettier code style

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2020-12-09 17:12:32 +08:00
Meowu
b3354d4581
fix: Table filter value type ()
* fix: onChange event receives correct type of filters value.

* fix: related checkbox should be checked if any filters set as filterValue.

* fix: typing.
2020-12-09 14:34:49 +08:00
Alex
bf45c4c1b0
style: 💄 className prop ordering ()
close 
2020-09-06 13:07:39 +08:00
zhangchen
c47bfb0c91
fix: Table topPaginationNode display logic should same with bottomPaginationNode ()
* fix: Tree bottomPaginationNode display logic should same with bottomPaginationNode

* update: test
2020-08-28 15:48:19 +08:00
QoVoQ
f65013994f
fix: use mergedData instead of pageData to decide if render bottom pagination ()
Co-authored-by: Zhongxian Liang <zhongxian.liang@shopee.com>
2020-08-11 16:18:34 +08:00
偏右
9a67f3571d
fix: Table crash when dataSource contains number ()
close 
2020-08-05 22:29:38 +08:00
Omri Grossman
8800b56e47
fix: The 'indentSize' in the Table component couldn't be zero value ()
* - Fixed the indentSize prop of Table.tsx to also accept 0 values

* - Undo Cascader component test snapshots

* - Added test case
- Used check with typeof === number instead of `undefined` and `null`

Co-authored-by: omri.g <omri.g@alibaba-inc.com>
2020-07-30 10:16:44 +08:00
陈帅
523b74e3b6
merge master into Feature ()
* feat: add successColor for Progress ()

* feat: add successColor for Progress

* feat: update

* fix: update test

* remove snap

* feat: add test case

* refactor success

* feat: adjust styyle

* feat: add DevWarning

* feat: Support rowSelection.dirty ()

* feat: Support rowSelection.dirty

* rename to reserveKeys

* preserveKeys will keep record also

* to preserveSelectedRowKeys

* feat: add ghost prop for collapse ()

* feat: add ghost prop for collapse

* doc: version of collapse's ghost prop

* refactor: make ghost collapse's less code to a nested style

* chore: remove redundant codes in ghost collapse's less & doc

* doc: add a background wrapper for ghost collapse demo

* doc: dark-theme wrapper bg-color for ghost collapse demo

* test: update snapshot of ghost collapse

* doc: use softer bg-color on ghost collapse demo

* doc: remove disabled panel in ghost collapse demo

* feat: form instance support getFieldInstance ()

* support getFieldInstance

* update doc

* fix lint

* move func

* move into hooks

* update ref logic

* fix lint

* rm only

* fix docs

* feat: dropdown support arrow ()

* feat: dropdown support arrow prop

close 

* test: update snapshot

* fix: fix dropdown cls names

* test: update snapshot

* test: update snapshot

* doc: update demo

* test: update demo snapshot

* demo

* fix: snapshot

* chore: change the style of ghost collapse & demo modified ()

* refactor: reduce content padding in ghost collapse

* doc: remove the wrapper outside ghost collapse

Designer want the demo differs from other demos

* refactor: remove redundant .less code in collapse

* feat: cascader dropdown-render prop ()

* feat: cascader dropdown-render prop

* fix: update Cascader dropdownRender type annotation

* fix: set rc-cascader semver from ^ to ~

* docs: fix coding style in cascader/custom-dropdown

* feat: 🆕 support Drawer closeIcon ()

* feat: 🆕 support Drawer closeIcon

close 
close 

* add test case

* update docs

* feat: 🆕 Cascader expandIcon ()

* feat: cascader expandIcon

* fix: snap

* refactor: reduce CSS size ()

* refactor: reduce button css size

* refactor: remove redundant button .less code

* feat: add Table onChange an action param ()

* Working on tests

* created TableAction type

* changed TableActions to tuple

* removed chinese documentation line

* refactor TableActions

* fix documentation

* Moved action into extra param

* minor doc change

* feat: add closeIcon customize tag close ()

* feat: add closeIcon customize tag close

* docs fix

* update snap

* fix: css name

* update snapshot

* snapshot

* feat: add radio `optionType` api to set radio option type ()

* feat: radio component

* docs: update md

* fix: snap

* test components

* fix: use optionType

* fix name

* add warning

* fix

* feat: expand rate character ()

* feat: expand rate character

* fix: demo

* fix: snap

* Update components/rate/index.zh-CN.md

Co-authored-by: 偏右 <afc163@gmail.com>

* fix

Co-authored-by: 偏右 <afc163@gmail.com>

* Refactor demo code box actions ()

* refactor: refine the styling of actions part of demo code-box

* fix: lint style

* refactor: move Result children to end ()

* feat: remove content max-width on dot-step ()

* feat: add Skeleton-Image ()

* feat: add Skeleton-Image

* feat: add docs

* fix: adjust skeleton

* feat: adjust Image Component

* feat: rebase

* feat: adjust style

* fix: lint

* feat: remove size

* feat: delete md

* feat: fix style

*  feat: Mentions support autoSize ()

close 

* chore: replace textarea with rc-textarea ()

* feat: update pagination@2.3.0 support onChange called when pageSize change ()

* feat: update pagination@2.5.0 and add test case to relative component

* fix: lint

* delete

* feat: add test case for pagination

* adjust test case

* feat: Implement centered prop in Tabs ()

* Implement centered in Tabs along with its tests and docs

* Fix build error

* Add Chinese translations and remove test case

Co-authored-by: Ashkan Pourghasem <ashkan.pourghasem@gmail.com>

* feat: Add modal style parameter ()

* add some paramters in default.less

* Update components/style/themes/default.less

Co-authored-by: Amumu <yoyo837@hotmail.com>

* change parameter in compact.less

Co-authored-by: Crystal Gao <jinggao@ebay.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>

* feat: export Tabs addIcon ()

* feat: export Tabs addIcon

* update snapshot

* feat: showNow on timepicker and datetimepicker ()

* feat: update rc-picker@1.7.1 and fix icons of month and quarter picker in DatePicker Component ()

* feat: update rc-picker@1.7.1

* delete

* add

* feat: expand rate support props ()

* docs: 📝 Add Form.Item hidden in doc ()

close 

* fix: ⌨️ Improve Pagination accessibility issue ()

* ⌨️ Improve Pagination a11y by fixing a W3C error

https://github.com/react-component/pagination/issues/280

* update snapshot

* 🆙 rc-pagination to 2.4.1

* feat: support triggerSubMenuAction for <Menu /> ()

* feat(menu): add triggerSubMenuAction for Menu

* feat(menu): test cases

* chore: Adjust picker logic ()

* chore: update rc-picker 1.10.0 ()

* feat: table row check strictly ()

* feat: add checkStrictly on Table.rowSelection

* fix: LGTM warnings

* test: table rowSelection.checkStrictly

* test: add cov [wip]

* refactor: tree.rowSelection.checkStrictly [wip]

* test: table.rowSelection.checkStrictly basic case

* feat: support rowKey on checkStrictly table

* feat: Table checkStrictly support getCheckboxProps

* docs: Table checkStrictly

* chore: typo

* chore: remove useless comment

* chore: update snapshot

* chore: update snapshot

* fix: fire selectAll on selection dropdown menu & changeRows incorrect in selectAll callback

* docs: typo

* chore

* chore

* fix: expand buttons of leaf rows in tree data are not hidden

* feat: Table warning about rowKey index parameter

* perf: only generate keyEntities when not checkStrictly

* refactor: remove useless parseCheckedKeys

* refactor: get derived selected & half selected keys from selectedRowKeys

* chore: remove env condition stmt

* chore: revert index usage & code formatting

* chore: rerun ci

* docs: table tree-data checkstrictly

* test: update snapshots

* refactor: use useMergedState hook

* chore: rerun ci

* chore: rerun ci 2

* chore: revert selection select all behavior

* refactor: refactor code based on feature

* chore: revert table code format

* chore: revert table code format

* fix: useMemo deps

* fix: useMemo deps

* fix: useMemo deps

* feat: support preserve ()

* docs: add responsibly order for Col ()

* feat: add type

* feat: add responsibly order cols

* feat: add docs

* feat: add test case

* fix test

Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: 偏右 <afc163@gmail.com>
Co-authored-by: zoomdong <1344492820@qq.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
Co-authored-by: wendellhu <wendellhu95@gmail.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: Neto Braghetto <netow93@gmail.com>
Co-authored-by: Kermit Xuan <kermitlx@outlook.com>
Co-authored-by: Ashkan Pourghasem <64011067+ashkan-pm@users.noreply.github.com>
Co-authored-by: Ashkan Pourghasem <ashkan.pourghasem@gmail.com>
Co-authored-by: hicrystal <295247343@qq.com>
Co-authored-by: Crystal Gao <jinggao@ebay.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: Li Ming <armyiljfe@gmail.com>
2020-06-28 22:41:59 +08:00
hehe
ae49280ca0
chore: rm incorrect table props (emptyText) () 2020-06-13 02:29:20 +08:00
xrkffgg
ce78029933
fix: empty in cascader/select/table/treeSelect ()
* fix: empty in cascader\select\table\treeSelect

* fix: snap
2020-05-19 14:45:57 +08:00
二货机器人
2e284aa017
chore: small bundle size ()
* update warning

* rm warning

* replace with dev warning

* fix test

* fix site

* Update webpack.config.js

Co-authored-by: 偏右 <afc163@gmail.com>

* Update webpack.config.js

* fix sytax

* adjust

* move into function

Co-authored-by: 偏右 <afc163@gmail.com>
2020-05-14 15:57:04 +08:00
sorteam
b73e84da9b
Fix Table type ()
Co-authored-by: soroka_av <soroka_av@st.by>
2020-05-13 16:03:07 +08:00
二货机器人
e1299bfcc9
Merge pull request from ant-design/feature
chore: Merge feature into master
2020-04-29 20:42:52 +08:00
xrkffgg
6391df163b
fix: table pagination position in rtl () 2020-04-29 12:12:54 +08:00
二货机器人
2da7e29198
feat: Table summary support fixed columns ()
* feat: Summary support fixed column

* update snapshot

* update demo
2020-04-27 15:08:54 +08:00
Vitaly Budovski
f09686d3df
feat: Responsive table columns () 2020-04-24 12:17:42 +08:00
二货机器人
8c11676afa
fix: Table selection childrenColumnName not work ()
* fix childrenPropName

* test case

* update test case
2020-04-13 22:56:26 +08:00
二货机器人
d968fce4dc
chore: Add warning for async () 2020-04-10 14:13:14 +08:00
二货机器人
f9713bf988
chore: Remove uesless event handler () 2020-04-08 16:52:37 +08:00
二货机器人
75524df190
fix jsx filter not work () 2020-04-03 16:32:50 +08:00
Michael Shing
06f29d0caa
fix: support table getPopupContainer on row selections ()
* fix: support table getPopupContainer on row selections

* move top to before right

* Add cursor to dropdown arrow

* Feedback suggestion

Co-Authored-By: 偏右 <afc163@gmail.com>

Co-authored-by: Michael Shing <mshing@datto.com>
Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-01 17:14:53 +08:00
偏右
faa71fd7bd
fix: Table loading compatibility ()
* 🐛 Fix Table loading not working when no spinning field

close 

*  improve table test case
2020-03-30 15:45:14 +08:00