Commit Graph

2442 Commits

Author SHA1 Message Date
vagusX
38cf5e8a75
docs: unify component export file as index.tsx (#50013)
* docs: unify component export file as index.tsx

* docs: compatible with old anchors

* chore: clean

* test: update snapshot

* fix: window env

---------

Co-authored-by: Peach <scdzwyxst@gmail.com>
2024-07-23 22:22:24 +08:00
Mikola
55cfeef56f
docs: Update link to english Mozilla Docs in Table index.en-US.md (#50029)
Signed-off-by: Mikola <34740585+ptaberg@users.noreply.github.com>
2024-07-23 17:28:23 +08:00
zyf
ebc3a999bd
fix(table):sorter value exception (#49533)
* fix(module:table):列属性为动态时,onchange函数sorter值异常问题

* 测试用例补充

* Update components/table/hooks/useSorter.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>

* Update Sorter.value.test.tsx

去除当前测试用例中的window.requestAnimationFrame和window.cancelAnimationFrame

Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>

* 格式调整

* 格式调整

* 格式调整

* button增加type适配lint规范

* 重新调整过滤条件,修复sorter值异常问题

* 去除无用参数

* 格式修改

* Update components/table/__tests__/Sorter.value.test.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>

* 去除无用注释,代码优化

* 去除无用注释,代码优化

---------

Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-07-18 21:38:17 +08:00
lijianan
8a090c951c
Revert "type(token): height / width support string | number" (#49836)
This reverts commit e4c31231ee.
2024-07-12 10:12:56 +08:00
thinkasany
e4c31231ee
type(token): height / width support string | number (#49810)
* type(token): height / width support string | number

* rever
2024-07-10 23:15:06 +08:00
thinkasany
3f9e711d3b
type(demo): improve type by GetProps util (#49805)
* type(demo): improve type by GetProps util

* fix lint
2024-07-10 18:28:11 +08:00
thinkasany
80a71b14f4
demo(table): use TableColumnsType instead of ColumnsType] (#49787) 2024-07-09 17:35:10 +08:00
love-life
512fa21125
fix: table expandable descriptions auto style (#49727)
* fix: table expandable descriptions auto style

* feat: width edit
2024-07-09 16:28:58 +08:00
lijianan
117dcd3395
demo: update Table demo (#49756) 2024-07-07 17:42:52 +08:00
照明胧
cc54bef826
fix: The emptyText field of the table (#49599)
* fix: The emptyText field of the table
when emptyText is null

* test: update test case(#49599)
2024-06-26 14:19:22 +08:00
afc163
ff7fea18f3
Revert "bug: fix-table-bug ref filters" (#49600)
This reverts commit 7790934b0b.
2024-06-26 12:40:24 +08:00
duqigit
7790934b0b
fix: Table empty node in filter dropdown not following ConfigProvider renderEmpty (#49548)
* 修复自定义全局组件,过滤里面没有生效

* 新增测试用例

* 重新提交测试用例

* 测试用例添加断言判断

* update Table.filter.test.tsx

* commit snapshot

* update Table.filter.test.tsx

* update Table.filter.test.tsx

* update Table.filter.test.tsx
2024-06-25 10:44:43 +08:00
afc163
59ad48476b
refactor: add boime lint and fix lint errrors (#49536)
* chore: add boime lint

* fix lint

* use files ignore

* revert change

* ignore clarity.js

* fix some errors

* fix some errors

* fix some errors

* fix some errors

* add yml file

* Update clarity.js

Signed-off-by: afc163 <afc163@gmail.com>

* add npm run lint:biome

* add npm run lint:biome

* fix test case

* fix ts errors

* fix ts errors

* fix lint and add .lintstagedrc

* shorten prop name

* chore: update package.json

* update biome.json

* chore: remove stylelint

* chore: useOptionalChain

* fix lint

* biome format

* prettier all code

* prettier all code

* fix site test

---------

Signed-off-by: afc163 <afc163@gmail.com>
2024-06-22 21:59:12 +08:00
叶枫
5e4019f90d
chore: fix table ajax demo (#49513)
* chroe: fix table ajax demo

* chroe: demo

* feat: deps 写法

* feat: add filters

* feat: remvoe console

* Update components/table/demo/ajax.tsx

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-06-20 15:07:32 +08:00
afc163
627af0ce89
Revert "fix(Table): fix Table sorter argument of onChange unexpected value (#…" (#49487)
This reverts commit 21224d7b5b.
2024-06-19 11:35:09 +08:00
zyf
21224d7b5b
fix(Table): fix Table sorter argument of onChange unexpected value (#49289)
* fix(module:table):列属性为动态时,onchange函数sorter值异常问题

* 测试用例补充

* Update components/table/hooks/useSorter.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>

* Update Sorter.value.test.tsx

去除当前测试用例中的window.requestAnimationFrame和window.cancelAnimationFrame

Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>

* 格式调整

* 格式调整

* 格式调整

* button增加type适配lint规范

---------

Signed-off-by: zyf <81416635+Zyf665@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-06-13 15:16:04 +08:00
二货爱吃白萝卜
0352b2fd2e
feat: Spin support percent (#48657)
* feat: spin support ptg

* chore: ptg

* chore: update demo

* chore: popout component

* chore: adjust logic

* test: update snapshot

* test: update snapshot

* docs: update docs

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: back of snapshot

* chore: clean up

* test: fix test case

* chore: fix types

* test: update snapshot

* chore: opt

* test: update testcase

* test: coverage

* test: update snapshot
2024-06-03 11:30:27 +08:00
二货爱吃白萝卜
b62b81958b
test: Fix React 18.3 findDOMNode warning (#48958)
* fix: try to fix React 18.3 warning

* chore: back of ci

* chore: fix type

* chore: fix lint

* chore: update deps

* fix: component error

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update deps

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update deps

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: bump version
2024-05-18 15:07:26 +08:00
lijianan
8b1f79c1f5
demo: update demo type { children: React.ReactNode } => React.PropsWithChildren (#48771)
* demo: update demo type React.ReactNode => React.PropsWithChildren

* fix: fix
2024-05-06 12:04:27 +08:00
栗嘉男
20f183cf6f chore: merge master into feature 2024-05-01 16:33:46 +08:00
daisy
5fc3618aad
docs: update Table onExpand docs (#48706) 2024-04-30 12:21:12 +08:00
George H
786dfc0339
docs: add drag column sorting demo (#48434)
* docs(table): add drag column sorting demo

* update test snap

* chore: add script to adapt os memory

* Revert "update test snap"

This reverts commit be1a30e7ec722a45d210e78a0d3c8f217f61a581.

revert commit#

* revert

* revert

* snap

* add more column data

* update snap

* chore: column drag style

* update snap

* chore: optimize code

---------

Co-authored-by: afc163 <afc163@gmail.com>
2024-04-29 11:08:51 +08:00
lijianan
bf330cbedb
demo: code optimization (#48621) 2024-04-26 09:40:25 +08:00
lijianan
8f1808dae7
type: add miss generic of Upload prop (#48614)
* type: add miss generic of Upload prop

* test: add type test case

* test: add test case
2024-04-25 14:22:35 +08:00
daisy
11a160cb25
demo: Table drag handle use useContext (#48588) 2024-04-24 11:48:15 +08:00
thinkasany
f6db43b090
fix(demo): optimize fetchData for table (#48560) 2024-04-20 21:51:29 +08:00
叶枫
502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00
daisy
c152c58116
docs: update table faq (#48245) 2024-04-03 18:11:00 +08:00
叶枫
14a1e6bd51
feat: tsconfig enable strict (#47998)
* feat: tsconfig enable strict

* feat: add no-explicit-any

* feat: strict

* feat: as THEME

* feat: 优化 keys 类型写法

* feat: demo remove any

* feat: as number

* feat: this any

* feat: add eslint

* feat: cascader

* feat: props any

* feat: remove any

* feat: remove any

* feat: any 提示错误

* feat: remove any

* feat: add eslint

* feat: 允许 T = any 存在

* feat: color funciton

* feat: 恢复 lint

* feat: merge master

* feat: as ReactElement

* feat: type
2024-04-01 15:49:45 +08:00
LingJinT
15553f54a3
test: update table.filter test case (#48202)
* fix: 表格列在搜索情况下,国际化失效 #48110

* Update components/table/hooks/useFilter/FilterDropdown.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>

* fix: 补充测试用例

* fix: update table.filter test case

---------

Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>
Co-authored-by: l2015 <lingjt@dtdream.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-04-01 10:46:05 +08:00
MadCcc
7b280d307b
chore: bump rc-table to v7.45.0 (#48190)
* chore: bump rc-table to v7.45.0

* feat: 补充类型

* feat: 补充类型

---------

Co-authored-by: 叶枫 <645381995@qq.com>
2024-03-31 16:04:36 +08:00
lijianan
1b36fd22e5
Merge pull request #48172 from ant-design/master
chore: merge master into feature
2024-03-29 20:10:12 +08:00
章鱼怪
fe83792754
feat: Table add rowHoverable to disable hover interaction (#48112) 2024-03-29 15:29:49 +08:00
LingJinT
5a9dca2ae7
fix: Fixed the problem that internationalization of table columns fails when searching (#48126)
* fix: 表格列在搜索情况下,国际化失效 #48110

* Update components/table/hooks/useFilter/FilterDropdown.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>

* fix: 补充测试用例

---------

Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>
Co-authored-by: l2015 <lingjt@dtdream.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-03-29 13:19:52 +08:00
lijianan
405394a8e4
Merge pull request #48133 from ant-design/master
chore: merge master into feature
2024-03-28 10:54:52 +08:00
yoshinyan
5e65463566
docs: typo in order-column.md (#48079)
Signed-off-by: yoshinyan <hai_hai_hai_1229@yahoo.co.jp>
2024-03-25 20:26:58 +08:00
lijianan
87debac578
chore: rename variables merge => merged (#48048) 2024-03-24 10:56:28 +08:00
github-actions[bot]
80f49bfcf2
chore: auto merge branches (#48020)
chore: merge master into feature
2024-03-23 16:15:34 +00:00
lijianan
611993b0a8
type: fix master CI fail again (#48045)
* TEST: DO NOT MERGE

* fix: fix type
2024-03-23 23:27:59 +08:00
lijianan
212b1eef12
type: fix master CI fail (#48044) 2024-03-23 21:59:55 +08:00
叶枫
e17cd4ae27
test: keep spaces (#47024)
* feat: snap

* feat: up snap
2024-03-22 20:49:55 +08:00
二货爱吃白萝卜
20561d6f9d
docs: Fix component doc alignment & support import usage (#48004)
* docs: init ref

* docs all support

* docs: fix link show
2024-03-22 14:22:42 +08:00
二货爱吃白萝卜
0b00db48bd
feat: Table support onScroll event (#47986) 2024-03-21 10:07:10 +08:00
Alina Andrieieva
1bd8fbc5f3
feat: support showSorterTooltip.target for Table sorters (#47409)
* Added `sorterTooltipTarget` prop for table sorters

* demo updated

* updated snapshot

* updated snapshot

* moved table tooltip target to `showSorterTooltip`

* fix

* updated docs

* empty commit

* updated version in docs

---------

Co-authored-by: Alina Andrieieva <Alina_Andrieieva@epam.com>
2024-03-18 18:45:31 +08:00
lijianan
630f4d9cfb
demo: Tag demo update (#47751)
* demo: Tag demo update

* fix: fix

* fix: fix
2024-03-08 10:51:31 +08:00
MadCcc
0652c32830
fix: sibling Tags should have margin (#47736)
* fix: sibling Tag should have margin

* chore: update snapshot

* chore: revert

* chore: link issue

* docs: update demo

* Revert "demo: update Grid、Table、Select demo (#47709)"

This reverts commit c01c1b505b.

* chore: update snapshot

* chore: update demo
2024-03-06 21:51:17 +08:00
lijianan
c01c1b505b
demo: update Grid、Table、Select demo (#47709)
* demo: update demo

* fix: fix test

* feat: table snap

---------

Co-authored-by: 叶枫 <645381995@qq.com>
2024-03-05 17:23:47 +08:00
Amumu
2156ed4c07
fix: virtual list prefixCls not working (#47639)
* fix: virtual list prefixCls not working

* update test case
2024-02-29 09:45:27 +08:00
Amumu
6c824b7dbf
Merge pull request #47521 from ant-design/master
chore: merge master into feature
2024-02-21 15:54:37 +08:00
SuperYY
ac9cd5c8de
fix table's scrollbar background color in dark mode (#47487) 2024-02-20 11:10:22 +08:00