From a193938bbf6c934fcf762a54493d755d23f44947 Mon Sep 17 00:00:00 2001 From: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> Date: Fri, 27 May 2022 18:30:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20select=E7=BB=84=E4=BB=B6table=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=97=A0=E6=B3=95=E7=82=B9?= =?UTF-8?q?=E9=80=89=E9=97=AE=E9=A2=98=20(#4477)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/event-action/drawer.test.tsx | 2 +- .../Form/__snapshots__/select.test.tsx.snap | 49 +++++++++++--- scss/components/form/_selection.scss | 15 +++-- scss/themes/cxd.scss | 2 - src/components/ResultTableList.tsx | 65 +++++++++---------- src/components/TableSelection.tsx | 23 ++++--- 6 files changed, 98 insertions(+), 58 deletions(-) diff --git a/__tests__/event-action/drawer.test.tsx b/__tests__/event-action/drawer.test.tsx index b6a24ac11..e747dc9cb 100644 --- a/__tests__/event-action/drawer.test.tsx +++ b/__tests__/event-action/drawer.test.tsx @@ -214,4 +214,4 @@ test('EventAction:drawer', async () => { expect(container.querySelector('[role="dialog"]')).not.toBeInTheDocument(); }); expect(container).toMatchSnapshot(); -}); +}, 7000); diff --git a/__tests__/renderers/Form/__snapshots__/select.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/select.test.tsx.snap index 8ff75cd2e..4afe9b0fa 100644 --- a/__tests__/renderers/Form/__snapshots__/select.test.tsx.snap +++ b/__tests__/renderers/Form/__snapshots__/select.test.tsx.snap @@ -959,11 +959,40 @@ exports[`Renderer:select table with labelField & valueField 1`] = ` style="position: relative;" tabindex="-1" > - - 请选择 - + + 诸葛亮 + + + + + +
+ + 李白 + + + + +
@@ -1038,7 +1067,7 @@ exports[`Renderer:select table with labelField & valueField 1`] = ` class="cxd-Table-checkCell" >