From 345a3a0624c18b4eceb130dd3fd20b64de11976b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <7971419+crazyair@users.noreply.github.com> Date: Mon, 28 Aug 2023 22:10:47 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20Form=20=E4=B8=8E=20Grid=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98=20=20(#44472)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: style * fix: style * chore: ref --- components/grid/style/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/grid/style/index.ts b/components/grid/style/index.ts index 1772f59e8f03..c90796dbd977 100644 --- a/components/grid/style/index.ts +++ b/components/grid/style/index.ts @@ -1,4 +1,5 @@ import type { CSSObject } from '@ant-design/cssinjs'; + import type { FullToken, GenerateStyle } from '../../theme/internal'; import { genComponentStyleHook, mergeToken } from '../../theme/internal'; @@ -92,7 +93,8 @@ const genLoopGridColumnsStyle = (token: GridColToken, sizeCls: string): CSSObjec const gridColumnsStyle: CSSObject = {}; for (let i = gridColumns; i >= 0; i--) { if (i === 0) { - gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = { + // ref: https://github.com/ant-design/ant-design/issues/44456 + gridColumnsStyle[`${componentCls}${componentCls}${componentCls}${sizeCls}-${i}`] = { display: 'none', }; gridColumnsStyle[`${componentCls}-push-${i}`] = { From fec423ea1bb3300f4b2defa0007ffcef27c8dbad Mon Sep 17 00:00:00 2001 From: William Entriken Date: Mon, 28 Aug 2023 21:14:48 -0400 Subject: [PATCH 2/6] docs: Update definition for dashed button (#44481) This updates the English documentation for the dashed button. This updates the English to better translate the [Chinese version](https://github.com/ant-design/ant-design/blob/345a3a0624c18b4eceb130dd3fd20b64de11976b/components/button/index.zh-CN.md). (I'm assuming the Chinese version is normative.) Signed-off-by: William Entriken --- components/button/index.en-US.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/button/index.en-US.md b/components/button/index.en-US.md index 6016061b5780..f26397bb1722 100644 --- a/components/button/index.en-US.md +++ b/components/button/index.en-US.md @@ -20,7 +20,7 @@ In Ant Design we provide 5 types of button. - Primary button: indicate the main action, one primary button at most in one section. - Default button: indicate a series of actions without priority. -- Dashed button: used for adding action commonly. +- Dashed button: commonly used for adding more actions. - Text button: used for the most secondary action. - Link button: used for external links. From c70ba365407f2e441b0f7a4adef50f8c5c674021 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Tue, 29 Aug 2023 14:33:56 +0800 Subject: [PATCH 3/6] chore: disabled compat/compat in test files (#44496) --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 1178d08ee021..12e49328d21e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -126,6 +126,12 @@ module.exports = { 'comma-dangle': 0, }, }, + { + files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'], + rules: { + 'compat/compat': 0, + }, + }, ], rules: { 'react/jsx-one-expression-per-line': 0, From fae1fef77dfd4c506c16b8405687f927c26db3f3 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Tue, 29 Aug 2023 15:04:03 +0800 Subject: [PATCH 4/6] fix: add role="button" props to div (#44494) * fix: add role="button" props to div * fix: fix --- .dumi/theme/builtins/Previewer/CodePreviewer.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.dumi/theme/builtins/Previewer/CodePreviewer.tsx b/.dumi/theme/builtins/Previewer/CodePreviewer.tsx index 60024d8afcef..e97ee0d8faf0 100644 --- a/.dumi/theme/builtins/Previewer/CodePreviewer.tsx +++ b/.dumi/theme/builtins/Previewer/CodePreviewer.tsx @@ -1,4 +1,3 @@ -/* eslint-disable jsx-a11y/no-noninteractive-tabindex */ import React, { useContext, useEffect, useRef, useState } from 'react'; import { CheckOutlined, @@ -542,7 +541,12 @@ createRoot(document.getElementById('container')).render(); styleCode={style} onCodeTypeChange={setCodeType} /> -
setCodeExpand(false)}> +
setCodeExpand(false)} + >
From 457feb7933b82c5d67d755cd06b55d54be71761a Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Tue, 29 Aug 2023 15:42:26 +0800 Subject: [PATCH 5/6] docs(select): fix incorrect link of AutoComplete (#44500) * docs: fix incorrect link of `AutoComplete` Signed-off-by: Andy Hsu * docs(select): sync `AutoComplete` related content in `zh-CN` to `en-US` Signed-off-by: Andy Hsu --------- Signed-off-by: Andy Hsu --- components/select/index.en-US.md | 1 + components/select/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index c6f940e1ebf6..d12000821709 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -14,6 +14,7 @@ Select component to select value from options. - A dropdown menu for displaying choices - an elegant alternative to the native `