Commit Graph

2461 Commits

Author SHA1 Message Date
daisy
7bcb6ca49a
fix(Table): fixed empty and shadow issues when virtual mode (#50416) 2024-08-16 10:07:52 +08:00
叶枫
7d66a8e5cf
type: revert Table generic with any (#50372)
* fix: table generic default any

* feat: = AnyObject
2024-08-13 10:34:52 +08:00
lijianan
5aa5c3d591
fix(Table): set z-index unit to false (#50357) 2024-08-11 16:18:49 +08:00
lijianan
dab9ab69d0
fix(Table): style value should support CSS var (#50355)
* fix(Table): zIndex value should support CSS var

* fix: fix
2024-08-11 15:05:47 +08:00
lijianan
857ee24e38
type(Table): TypeScript improvement (#50351)
* type: Table TypeScript improvement

* type: Table TypeScript improvement

* type: Table TypeScript improvement

* fix: fix demo

* fix: fix demo

* fix: fix type

* fix: fix type

* fix: fix type

* fix: fix type
2024-08-11 10:58:13 +08:00
renovate[bot]
7fdfb299eb
chore(deps): update dependency @typescript-eslint/parser to v8 (#50228)
* chore(deps): update dependency @typescript-eslint/parser to v8

* Update package.json

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

* fix eslint errors

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-08-04 12:24:35 +08:00
github-actions[bot]
249c94fb50
chore: auto merge branches (#50198)
chore: merge master into feature
2024-08-02 03:58:13 +00:00
zyf
c6289dd615
fix(table):table grouping columns does not apply sorting (#50086)
* 增加函数循环收集mergedColumns中所有key

* 新增测试用例

* ci问题调整,收集列keys函数调整
2024-08-01 20:39:01 +08:00
二货爱吃白萝卜
832cffcdf9
feat: ColorPicker support gradient color (#50050)
* refactor: support type update

* chore: update clear style

* chore: bump color picker

* chore: use slider

* chore: bump color picker

* chore: range slider

* chore: layout

* chore: useModeColor

* chore: simplify

* chore: bump color picker

* refactor: event

* chore: tmp lock check

* chore: of it

* chore: update ts def

* chore: update ts def

* chore: remove useless ts

* chore: linear

* chore: adjust style

* chore: rm useless code

* chore: fill color

* chore: basic linear

* chore: support toStr

* chore: limit minCount

* chore: use cache

* chore: drag support:

* chore: yes

* chore: update demo

* chore: useLayoutEffect instead

* chore: fix click to add point

* chore: add smmoth

* chore: support of locale

* chore: add locale

* chore: fix lint

* chore: adjust style

* chore: fix lint

* chore: fix style

* test: fix test case

* chore: fix popover

* test: fix test case

* chore: fix test

* test: clean up

* chore: fix lint

* chore: fix lint

* chore: fix lint

* test: coverage

* test: coverage

* test: coverage

* test: coverage

* test: coverage

* test: coverage

* chore: fix docs

* docs: update demo desc

* chore: enhance hover range

* fix: delete not working

* chore: fix lint

* test: coverage

* test: coverage

* chore: clean up

* chore: adjust

* chore: highlight

* chore: adjust style

* chore: fix lint

* chore: update demo

* chore: memo perf

* refactor: up to down colors

* test: update snapshot
2024-07-29 16:38:50 +08:00
栗嘉男
049915566d Merge branch 'master' into master-merge-feature 2024-07-29 01:39:20 +08:00
lijianan
2e4b9cb098
site: rewrite with CSS logical properties again (#50113)
* site: use CSS logical properties

* Update components/anchor/demo/targetOffset.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

* fix: fix

* chore: fix

* fix: add more

* fix: add more

* site: rewrite with CSS logical properties

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-07-29 01:33:18 +08:00
栗嘉男
d5207c1e23 Merge branch 'master' into feature-merge-master 2024-07-26 10:18:06 +08:00
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
栗嘉男
7e74c4fa64 chore: merge master into feature 2024-07-19 20:53:26 +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
thinkasany
da1d8df417
type: support string | number (#49810) (#49855)
* type(token): height / width support string | number

* rever
2024-07-14 00:36:43 +08:00
github-actions[bot]
d9f70d738c
chore: auto merge branches (#49850)
chore: merge master into feature
2024-07-12 20:48:10 +00:00
lijianan
8a090c951c
Revert "type(token): height / width support string | number" (#49836)
This reverts commit e4c31231ee.
2024-07-12 10:12:56 +08:00
github-actions[bot]
3dcf2cbc58
chore: auto merge branches (#49834)
chore: merge master into feature
2024-07-11 22:07:47 +00: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
github-actions[bot]
09e6ed7278
chore: auto merge branches (#49774)
chore: merge master into feature
2024-07-08 19:23:57 +00:00
lijianan
117dcd3395
demo: update Table demo (#49756) 2024-07-07 17:42:52 +08:00
dd9070998a
docs(Table): add custom empty status demo (#49691)
* chore: fix typo

ref: https://github.com/ant-design/ant-design/issues/49690

* chore: add demo

* chore: update snapshots

* chore: update
2024-07-03 22:54:21 +08:00
800c3fcbdb
feat(table-filter): support custom Empty (#49613)
* 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

(cherry picked from commit 7790934b0b)

* chore: update case

* feat(table-filter): support custom Empty

* chore(type): improve TS type definition (#49602)

(cherry picked from commit a15fcfa1dc)

* fixup! feat(table-filter): support custom Empty

* Squashed commit of the following:

commit 1b9706f22d
Merge: e76e386966 cc54bef826
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Wed Jun 26 10:10:48 2024 +0000

    chore: auto merge branches (#49609)

    chore: sync master to feature

commit cc54bef826
Author: 照明胧 <25151442+mmmml-zhao@users.noreply.github.com>
Date:   Wed Jun 26 14:19:22 2024 +0800

    fix: The emptyText field of the table (#49599)

    * fix: The emptyText field of the table
    when emptyText is null

    * test: update test case(#49599)

commit ff7fea18f3
Author: afc163 <afc163@gmail.com>
Date:   Wed Jun 26 12:40:24 2024 +0800

    Revert "bug: fix-table-bug ref filters" (#49600)

    This reverts commit 7790934b0b.

commit a15fcfa1dc
Author: 红 <wxh1220@gmail.com>
Date:   Wed Jun 26 12:40:11 2024 +0800

    chore(type): improve TS type definition (#49602)

commit 9ce5cbcf64
Author: Andrey <aaa144855@gmail.com>
Date:   Wed Jun 26 06:05:39 2024 +0300

    fix: remove redundant transformations in ```UploadList```, which led to decrease in performance (#49598)

    * fix: remove unnecessary transformations for upload list with previews

    * chore: revert miss convert

    ---------

    Co-authored-by: 二货机器人 <smith3816@gmail.com>

commit 4145305b16
Author: MadCcc <madccc@foxmail.com>
Date:   Tue Jun 25 16:59:30 2024 +0800

    docs: fix site FOUC (#49595)

commit 44e96b7b06
Author: enhongchen <106970098+enhongchen@users.noreply.github.com>
Date:   Tue Jun 25 14:24:14 2024 +0800

    docs: Update use-with-rsbuild.zh-CN.md (#49592)

    https://ant.design/docs/react/use-with-rsbuild-cn?theme=happy-work#%E5%AE%89%E8%A3%85%E5%92%8C%E5%88%9D%E5%A7%8B%E5%8C%96

    Signed-off-by: enhongchen <106970098+enhongchen@users.noreply.github.com>

commit 6a0af781d1
Author: 红 <wxh1220@gmail.com>
Date:   Tue Jun 25 13:34:28 2024 +0800

    chore: improve tabs demo (#49590)

    ref: https://docs.dndkit.com/presets/sortable#collision-detection-algorithm

commit 7127603b76
Author: Tantatorn Suksangwarn <timefear007@gmail.com>
Date:   Tue Jun 25 12:32:59 2024 +0700

    fix: add missing Thai translations (#49588)

commit 7790934b0b
Author: duqigit <916475145@qq.com>
Date:   Tue Jun 25 10:44:43 2024 +0800

    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

commit b09913db06
Author: lijianan <574980606@qq.com>
Date:   Tue Jun 25 10:42:19 2024 +0800

    test: update test case code (#49585)

commit b420c57354
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Jun 25 10:39:47 2024 +0800

    chore(deps): bump oven-sh/setup-bun from 1 to 2 (#49578)

    Bumps [oven-sh/setup-bun](https://github.com/oven-sh/setup-bun) from 1 to 2.
    - [Release notes](https://github.com/oven-sh/setup-bun/releases)
    - [Commits](https://github.com/oven-sh/setup-bun/compare/v1...v2)

    ---
    updated-dependencies:
    - dependency-name: oven-sh/setup-bun
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit a81603d720
Author: afc163 <afc163@gmail.com>
Date:   Mon Jun 24 13:33:56 2024 +0800

    docs: fix nav menu cannot click (#49569)

* chore: remove

* test: add more unit test

* chore: lint

* chore: fix legacy16 bug

* chore: update logic

* test: update unit test

---------

Co-authored-by: duqigit <916475145@qq.com>
2024-07-01 17:47:59 +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