From 1e9b1596df6770f52a8b0dd5d56a86895f46f11f Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Tue, 29 Oct 2024 22:31:14 +0800 Subject: [PATCH 1/8] fix(Table): fix skeleton component not disappearing (#5548) --- .../core/client/src/schema-component/antd/table-v2/Table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 497e85d2bb..cebde23d27 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -232,8 +232,8 @@ const SortableRow = (props: { const { ref, inView } = useInView({ threshold: 0, triggerOnce: true, - initialInView: !!process.env.__E2E__ || isInSubTable || props.rowIndex < INITIAL_ROWS_NUMBER, - skip: !!process.env.__E2E__ || isInSubTable || props.rowIndex < INITIAL_ROWS_NUMBER, + initialInView: !!process.env.__E2E__ || isInSubTable || (props.rowIndex || 0) < INITIAL_ROWS_NUMBER, + skip: !!process.env.__E2E__ || isInSubTable, }); const classObj = useMemo(() => { From 7323cefcdda875c9109ebd78c3ed55d9b1148c1e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:34:08 +0800 Subject: [PATCH 2/8] chore(deps): bump antd-style from 3.4.5 to 3.7.1 (#5536) * chore(deps): bump antd-style from 3.4.5 to 3.7.1 Bumps [antd-style](https://github.com/ant-design/antd-style) from 3.4.5 to 3.7.1. - [Release notes](https://github.com/ant-design/antd-style/releases) - [Changelog](https://github.com/ant-design/antd-style/blob/master/CHANGELOG.md) - [Commits](https://github.com/ant-design/antd-style/compare/v3.4.5...v3.7.1) --- updated-dependencies: - dependency-name: antd-style dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * chore: update snapshot --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zeke Zhang <958414905@qq.com> --- packages/core/client/package.json | 2 +- .../__tests__/collection-select.test.tsx | 12 +- .../__tests__/ColorPicker.test.tsx | 8 +- .../pagination/__tests__/pagination.test.tsx | 6 +- .../__tests__/UnixTimestamp.test.tsx | 6 +- .../@nocobase/plugin-calendar/package.json | 2 +- .../@nocobase/plugin-gantt/package.json | 2 +- yarn.lock | 215 +++++------------- 8 files changed, 74 insertions(+), 179 deletions(-) diff --git a/packages/core/client/package.json b/packages/core/client/package.json index 0c6620a189..f4913e558b 100644 --- a/packages/core/client/package.json +++ b/packages/core/client/package.json @@ -31,7 +31,7 @@ "@nocobase/utils": "1.3.42-beta", "ahooks": "^3.7.2", "antd": "5.12.8", - "antd-style": "3.4.5", + "antd-style": "3.7.1", "axios": "^0.26.1", "bignumber.js": "^9.1.2", "classnames": "^2.3.1", diff --git a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx index 8c625c2dc0..f83305e4bd 100644 --- a/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx +++ b/packages/core/client/src/schema-component/antd/collection-select/__tests__/collection-select.test.tsx @@ -45,7 +45,7 @@ describe('CollectionSelect', () => { expect(container).toMatchInlineSnapshot(`
{ role="button" >