chore: auto merge branchs (#29815)

chore: merge master into feature
This commit is contained in:
github-actions[bot] 2021-03-19 01:29:34 +00:00 committed by GitHub
commit f6d057cc02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 342 additions and 293 deletions

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: verify-version
uses: actions-cool/verify-files-modify@v1.1.0
uses: actions-cool/verify-files-modify@v1.1.1
with:
forbid-paths: '.github/, scripts/'
skip-verify-authority: 'write'

View File

@ -15,6 +15,29 @@ timeline: true
---
## 4.14.0
`2021-03-14`
- Upload
- 🆕 Upload `onChange` to change back to the original behavior (before Upload false returns the original file, and the rest of the scene returns the encapsulated object). Now you can always get the original file via `onChange.info.originFileObj`. For future upgrades, please use this method to access the original text first. [#29737](https://github.com/ant-design/ant-design/pull/29737)
- 🐞 Fix Upload `onChange` params `file` can not `cloneDeep` by lodash. [#29718](https://github.com/ant-design/ant-design/pull/29718)
- 🐞 Fix Upload crash when `fileList` is `null`. [#29702](https://github.com/ant-design/ant-design/pull/29702)
- 💄 Upload motion add 2s deadline to avoid developer manually remove motion makes hanging. [#29686](https://github.com/ant-design/ant-design/pull/29686)
- 🐞 Fix the bug that Modal footer buttons not spaced properly when using href in button. [#29681](https://github.com/ant-design/ant-design/pull/29681) [@n0ruSh](https://github.com/n0ruSh)
- 🆕 Add parent class for different Notification types. [#29634](https://github.com/ant-design/ant-design/pull/29634) [@n0ruSh](https://github.com/n0ruSh)
- 🆕 Typography editable supports `onCancel` and `onEnd`. [#29615](https://github.com/ant-design/ant-design/pull/29615) [@jueinin](https://github.com/jueinin)
- Tabs
- 🐞 Fix Tabs `centered` prop is not actually center. [#29495](https://github.com/ant-design/ant-design/pull/29495) [@jinchaofs](https://github.com/jinchaofs)
- 🆕 Tabs support `moreIcon`. [#29744](https://github.com/ant-design/ant-design/pull/29744) [@tianyuan233](https://github.com/tianyuan233)
- 🐞 Button with `htmlType='reset'` will reset all form fileds. [#29752](https://github.com/ant-design/ant-design/pull/29752) [@jueinin](https://github.com/jueinin)
- 🐞 Fix AutoComplete custom input `className` missing. [#29725](https://github.com/ant-design/ant-design/pull/29725)
- 💄 Fix console warning when setting `margin` style on Row. [#29688](https://github.com/ant-design/ant-design/pull/29688)
- 💄 Fix the error style where the `disabled` Input has affix elements. [#29670](https://github.com/ant-design/ant-design/pull/29670)
- 💄 Optimize the cursor style of Form.Item tooltip info. [#29650](https://github.com/ant-design/ant-design/pull/29650)
- 🇨🇿 Fix typo in cs_CZ locale. [#29675](https://github.com/ant-design/ant-design/pull/29675) [@jvaclavik](https://github.com/jvaclavik)
- 🇨🇦 Add fr_CA locale. [#29748](https://github.com/ant-design/ant-design/pull/29748) [@liufenghua808](https://github.com/liufenghua808)
## 4.13.1
`2021-03-06`

View File

@ -15,6 +15,29 @@ timeline: true
---
## 4.14.0
`2021-03-14`
- Upload
- 🆕 Upload `onChange` 改回原本行为(`beforeUpload` 返回时 false 参数返回原始文件,其余场景返回封装对象)。现在你始终可以通过 `onChange.info.originFileObj` 获得原始文件。为了未来升级,请优先使用该方式访问原始文件。[#29737](https://github.com/ant-design/ant-design/pull/29737)
- 🐞 修复 Upload `onChange` 参数 `file` 不能被 lodash `cloneDeep` 的问题。[#29718](https://github.com/ant-design/ant-design/pull/29718)
- 🐞 修复 Upload 当 `fileList``null` 时崩溃的问题。[#29702](https://github.com/ant-design/ant-design/pull/29702)
- 💄 Upload 添加 2 秒时限以防止开发者手工移除动画样式时导致动画卡住的问题。[#29686](https://github.com/ant-design/ant-design/pull/29686)
- 🆕 为不同的 Notification 类型添加相应默认类名。[#29634](https://github.com/ant-design/ant-design/pull/29634) [@n0ruSh](https://github.com/n0ruSh)
- 🆕 Typography editable 新增 `onCancel``onEnd` 回调。[#29615](https://github.com/ant-design/ant-design/pull/29615) [@jueinin](https://github.com/jueinin)
- Tabs
- 🆕 Tabs 新增 `moreIcon` 参数。[#29744](https://github.com/ant-design/ant-design/pull/29744) [@tianyuan233](https://github.com/tianyuan233)
- 🐞 修复 Tabs 设置 `centered` 后居中位置偏移。[#29495](https://github.com/ant-design/ant-design/pull/29495) [@jinchaofs](https://github.com/jinchaofs)
- 🐞 Form 表单现在可以自动响应 reset 事件。[#29752](https://github.com/ant-design/ant-design/pull/29752) [@jueinin](https://github.com/jueinin)
- 🐞 修复 AutoComplete 自定义 input 上 `className` 属性丢失的问题。[#29725](https://github.com/ant-design/ant-design/pull/29725)
- 💄 修复 Row 设置 `margin` 样式时控制台警告的问题。[#29688](https://github.com/ant-design/ant-design/pull/29688)
- 🐞 修复 Modal 页脚里使用 href 按钮导致的间距丢失问题。[#29681](https://github.com/ant-design/ant-design/pull/29681) [@n0ruSh](https://github.com/n0ruSh)
- 💄 修复 Input 组件配置附件元素时禁用样式异常的问题。[#29670](https://github.com/ant-design/ant-design/pull/29670)
- 💄 优化 Form.Item 提示信息的鼠标显示样式。[#29650](https://github.com/ant-design/ant-design/pull/29650)
- 🇨🇿 修复 cs_CZ 语言环境中的错字。 [#29675](https://github.com/ant-design/ant-design/pull/29675) [@jvaclavik](https://github.com/jvaclavik)
- 🇨🇦 添加 fr_CA 语言。[#29748](https://github.com/ant-design/ant-design/pull/29748) [@liufenghua808](https://github.com/liufenghua808)
## 4.13.1
`2021-03-06`

View File

@ -7,11 +7,9 @@
.reset-component();
position: relative;
top: -0.09em;
display: inline-block;
top: 0.2em;
line-height: 1;
white-space: nowrap;
vertical-align: middle;
outline: none;
cursor: pointer;
@ -148,13 +146,15 @@
.@{checkbox-prefix-cls}-wrapper {
.reset-component();
display: inline-block;
display: inline-flex;
align-items: baseline;
line-height: unset;
cursor: pointer;
&.@{checkbox-prefix-cls}-wrapper-disabled {
cursor: not-allowed;
}
& + & {
margin-left: 8px;
}
@ -167,10 +167,9 @@
.@{checkbox-prefix-cls}-group {
.reset-component();
display: inline-block;
display: inline-block;
&-item {
display: inline-block;
margin-right: @checkbox-group-item-margin-right;
&:last-child {
margin-right: 0;

View File

@ -33761,7 +33761,7 @@ exports[`ConfigProvider components Transfer configProvider 1`] = `
class="config-transfer-list-header"
>
<label
class="config-checkbox-wrapper"
class="config-checkbox-wrapper config-transfer-list-checkbox"
>
<span
class="config-checkbox"
@ -33919,7 +33919,7 @@ exports[`ConfigProvider components Transfer configProvider 1`] = `
class="config-transfer-list-header"
>
<label
class="config-checkbox-wrapper"
class="config-checkbox-wrapper config-transfer-list-checkbox"
>
<span
class="config-checkbox"
@ -34030,7 +34030,7 @@ exports[`ConfigProvider components Transfer configProvider componentSize large 1
class="config-transfer-list-header"
>
<label
class="config-checkbox-wrapper"
class="config-checkbox-wrapper config-transfer-list-checkbox"
>
<span
class="config-checkbox"
@ -34188,7 +34188,7 @@ exports[`ConfigProvider components Transfer configProvider componentSize large 1
class="config-transfer-list-header"
>
<label
class="config-checkbox-wrapper"
class="config-checkbox-wrapper config-transfer-list-checkbox"
>
<span
class="config-checkbox"
@ -34299,7 +34299,7 @@ exports[`ConfigProvider components Transfer configProvider componentSize middle
class="config-transfer-list-header"
>
<label
class="config-checkbox-wrapper"
class="config-checkbox-wrapper config-transfer-list-checkbox"
>
<span
class="config-checkbox"
@ -34457,7 +34457,7 @@ exports[`ConfigProvider components Transfer configProvider componentSize middle
class="config-transfer-list-header"
>
<label
class="config-checkbox-wrapper"
class="config-checkbox-wrapper config-transfer-list-checkbox"
>
<span
class="config-checkbox"
@ -34568,7 +34568,7 @@ exports[`ConfigProvider components Transfer configProvider virtual and dropdownM
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -34726,7 +34726,7 @@ exports[`ConfigProvider components Transfer configProvider virtual and dropdownM
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -34837,7 +34837,7 @@ exports[`ConfigProvider components Transfer normal 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -34995,7 +34995,7 @@ exports[`ConfigProvider components Transfer normal 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -35106,7 +35106,7 @@ exports[`ConfigProvider components Transfer prefixCls 1`] = `
class="prefix-Transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper prefix-Transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -35264,7 +35264,7 @@ exports[`ConfigProvider components Transfer prefixCls 1`] = `
class="prefix-Transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper prefix-Transfer-list-checkbox"
>
<span
class="ant-checkbox"

View File

@ -57,7 +57,7 @@ Some components use dynamic style to support wave effect. You can config `csp` p
### ConfigProvider.config() `4.13.0+`
setting `Modal`、`messge`、`Notification` rootPrefixCls
Setting `Modal`、`Message`、`Notification` rootPrefixCls.
```jsx
ConfigProvider.config({

View File

@ -58,7 +58,7 @@ export default () => (
### ConfigProvider.config() `4.13.0+`
设置 `Modal`、`messge`、`Notification` rootPrefixCls
设置 `Modal`、`Message`、`Notification` rootPrefixCls。
```jsx
ConfigProvider.config({

View File

@ -271,7 +271,7 @@ exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -429,7 +429,7 @@ exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"

View File

@ -5376,7 +5376,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -5568,7 +5568,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -10398,7 +10398,7 @@ exports[`Locale Provider should display the text as az 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -10590,7 +10590,7 @@ exports[`Locale Provider should display the text as az 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -15420,7 +15420,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -15612,7 +15612,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -20442,7 +20442,7 @@ exports[`Locale Provider should display the text as by 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -20634,7 +20634,7 @@ exports[`Locale Provider should display the text as by 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -25464,7 +25464,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -25656,7 +25656,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -30486,7 +30486,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -30678,7 +30678,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -35508,7 +35508,7 @@ exports[`Locale Provider should display the text as da 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -35700,7 +35700,7 @@ exports[`Locale Provider should display the text as da 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -40530,7 +40530,7 @@ exports[`Locale Provider should display the text as de 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -40722,7 +40722,7 @@ exports[`Locale Provider should display the text as de 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -45552,7 +45552,7 @@ exports[`Locale Provider should display the text as el 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -45744,7 +45744,7 @@ exports[`Locale Provider should display the text as el 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -50574,7 +50574,7 @@ exports[`Locale Provider should display the text as en 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -50766,7 +50766,7 @@ exports[`Locale Provider should display the text as en 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -55596,7 +55596,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -55788,7 +55788,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -60618,7 +60618,7 @@ exports[`Locale Provider should display the text as es 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -60810,7 +60810,7 @@ exports[`Locale Provider should display the text as es 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -65640,7 +65640,7 @@ exports[`Locale Provider should display the text as et 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -65832,7 +65832,7 @@ exports[`Locale Provider should display the text as et 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -70662,7 +70662,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -70854,7 +70854,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -75684,7 +75684,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -75876,7 +75876,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -80706,7 +80706,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -80898,7 +80898,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -85728,7 +85728,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -85920,7 +85920,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -90750,7 +90750,7 @@ exports[`Locale Provider should display the text as fr 3`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -90942,7 +90942,7 @@ exports[`Locale Provider should display the text as fr 3`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -95772,7 +95772,7 @@ exports[`Locale Provider should display the text as ga 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -95964,7 +95964,7 @@ exports[`Locale Provider should display the text as ga 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -100794,7 +100794,7 @@ exports[`Locale Provider should display the text as gl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -100986,7 +100986,7 @@ exports[`Locale Provider should display the text as gl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -105816,7 +105816,7 @@ exports[`Locale Provider should display the text as he 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -106008,7 +106008,7 @@ exports[`Locale Provider should display the text as he 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -110838,7 +110838,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -111030,7 +111030,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -115860,7 +115860,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -116052,7 +116052,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -120882,7 +120882,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -121074,7 +121074,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -125904,7 +125904,7 @@ exports[`Locale Provider should display the text as hy-am 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -126096,7 +126096,7 @@ exports[`Locale Provider should display the text as hy-am 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -130926,7 +130926,7 @@ exports[`Locale Provider should display the text as id 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -131118,7 +131118,7 @@ exports[`Locale Provider should display the text as id 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -135948,7 +135948,7 @@ exports[`Locale Provider should display the text as is 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -136140,7 +136140,7 @@ exports[`Locale Provider should display the text as is 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -140970,7 +140970,7 @@ exports[`Locale Provider should display the text as it 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -141162,7 +141162,7 @@ exports[`Locale Provider should display the text as it 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -145992,7 +145992,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -146184,7 +146184,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -151014,7 +151014,7 @@ exports[`Locale Provider should display the text as kk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -151206,7 +151206,7 @@ exports[`Locale Provider should display the text as kk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -156036,7 +156036,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -156228,7 +156228,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -161058,7 +161058,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -161250,7 +161250,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -166080,7 +166080,7 @@ exports[`Locale Provider should display the text as ku 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -166272,7 +166272,7 @@ exports[`Locale Provider should display the text as ku 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -171102,7 +171102,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -171294,7 +171294,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -176124,7 +176124,7 @@ exports[`Locale Provider should display the text as lt 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -176316,7 +176316,7 @@ exports[`Locale Provider should display the text as lt 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -181146,7 +181146,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -181338,7 +181338,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -186168,7 +186168,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -186360,7 +186360,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -191190,7 +191190,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -191382,7 +191382,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -196212,7 +196212,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -196404,7 +196404,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -201234,7 +201234,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -201426,7 +201426,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -206256,7 +206256,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -206448,7 +206448,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -211278,7 +211278,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -211470,7 +211470,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -216300,7 +216300,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -216492,7 +216492,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -221322,7 +221322,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -221514,7 +221514,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -226344,7 +226344,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -226536,7 +226536,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -231366,7 +231366,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -231558,7 +231558,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -236388,7 +236388,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -236580,7 +236580,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -241410,7 +241410,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -241602,7 +241602,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -246432,7 +246432,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -246624,7 +246624,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -251454,7 +251454,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -251646,7 +251646,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -256476,7 +256476,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -256668,7 +256668,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -261498,7 +261498,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -261690,7 +261690,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -266520,7 +266520,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -266712,7 +266712,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -271542,7 +271542,7 @@ exports[`Locale Provider should display the text as th 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -271734,7 +271734,7 @@ exports[`Locale Provider should display the text as th 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -276564,7 +276564,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -276756,7 +276756,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -281586,7 +281586,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -281778,7 +281778,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -286608,7 +286608,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -286800,7 +286800,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -291630,7 +291630,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -291822,7 +291822,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -296652,7 +296652,7 @@ exports[`Locale Provider should display the text as zh-hk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -296844,7 +296844,7 @@ exports[`Locale Provider should display the text as zh-hk 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -301674,7 +301674,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -301866,7 +301866,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"

View File

@ -27,11 +27,10 @@
// 一般状态
.@{radio-prefix-cls}-wrapper {
.reset-component();
position: relative;
display: inline-block;
display: inline-flex;
align-items: baseline;
margin-right: @radio-wrapper-margin-right;
white-space: nowrap;
cursor: pointer;
}
@ -41,9 +40,6 @@
position: relative;
top: @radio-top;
display: inline-block;
line-height: 1;
white-space: nowrap;
vertical-align: text-bottom;
outline: none;
cursor: pointer;

View File

@ -84,7 +84,6 @@
// Radio
// ---
@radio-size: 14px;
@radio-top: -2px;
@radio-wrapper-margin-right: 6px;
// Switch

View File

@ -257,7 +257,7 @@
// Radio
@radio-size: 16px;
@radio-top: 0px;
@radio-top: 0.2em;
@radio-border-width: 1px;
@radio-dot-size: @radio-size - 8px;
@radio-dot-color: @primary-color;
@ -734,13 +734,14 @@
@tabs-title-font-size-sm: @font-size-base;
@tabs-ink-bar-color: @primary-color;
@tabs-bar-margin: 0 0 @margin-md 0;
@tabs-horizontal-margin: 0 32px 0 0;
@tabs-horizontal-gutter: 32px;
@tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter;
@tabs-horizontal-margin-rtl: 0 0 0 32px;
@tabs-horizontal-padding: @padding-sm 0;
@tabs-horizontal-padding-lg: @padding-md 0;
@tabs-horizontal-padding-sm: @padding-xs 0;
@tabs-vertical-padding: @padding-xs @padding-lg;
@tabs-vertical-margin: 0 0 @margin-md 0;
@tabs-vertical-margin: @margin-md 0 0 0;
@tabs-scrolling-size: 32px;
@tabs-highlight-color: @primary-color;
@tabs-hover-color: @primary-5;

View File

@ -1629,7 +1629,7 @@ exports[`renders ./components/table/demo/drag-sorting-handler.md correctly 1`] =
aria-label="menu"
class="anticon anticon-menu"
role="img"
style="cursor:pointer;color:#999"
style="cursor:grab;color:#999"
>
<svg
aria-hidden="true"
@ -1672,7 +1672,7 @@ exports[`renders ./components/table/demo/drag-sorting-handler.md correctly 1`] =
aria-label="menu"
class="anticon anticon-menu"
role="img"
style="cursor:pointer;color:#999"
style="cursor:grab;color:#999"
>
<svg
aria-hidden="true"
@ -1715,7 +1715,7 @@ exports[`renders ./components/table/demo/drag-sorting-handler.md correctly 1`] =
aria-label="menu"
class="anticon anticon-menu"
role="img"
style="cursor:pointer;color:#999"
style="cursor:grab;color:#999"
>
<svg
aria-hidden="true"

View File

@ -19,9 +19,7 @@ import { sortableContainer, sortableElement, sortableHandle } from 'react-sortab
import { MenuOutlined } from '@ant-design/icons';
import arrayMove from 'array-move';
const DragHandle = sortableHandle(() => (
<MenuOutlined style={{ cursor: 'pointer', color: '#999' }} />
));
const DragHandle = sortableHandle(() => <MenuOutlined style={{ cursor: 'grab', color: '#999' }} />);
const columns = [
{
@ -135,7 +133,6 @@ ReactDOM.render(<SortableTable />, mountNode);
.row-dragging td {
padding: 16px;
visibility: hidden;
}
.row-dragging .drag-visible {

View File

@ -28,8 +28,8 @@
&.@{tab-prefix-cls}-bottom {
> .@{tab-prefix-cls}-nav,
> div > .@{tab-prefix-cls}-nav {
.@{tab-prefix-cls}-tab:not(:last-of-type) {
margin-right: @tabs-card-gutter;
.@{tab-prefix-cls}-tab + .@{tab-prefix-cls}-tab {
margin-left: @tabs-card-gutter;
}
}
}
@ -64,8 +64,8 @@
&.@{tab-prefix-cls}-right {
> .@{tab-prefix-cls}-nav,
> div > .@{tab-prefix-cls}-nav {
.@{tab-prefix-cls}-tab:not(:last-of-type) {
margin-bottom: @tabs-card-gutter;
.@{tab-prefix-cls}-tab + .@{tab-prefix-cls}-tab {
margin-top: @tabs-card-gutter;
}
}
}

View File

@ -127,7 +127,6 @@
position: relative;
display: inline-flex;
align-items: center;
margin: @tabs-horizontal-margin;
padding: @tabs-horizontal-padding;
font-size: @tabs-title-font-size;
background: transparent;
@ -135,11 +134,6 @@
outline: none;
cursor: pointer;
&:last-of-type {
margin-right: 0;
margin-left: 0;
}
&-btn,
&-remove {
&:focus,
@ -176,7 +170,7 @@
&&-active &-btn {
color: @tabs-highlight-color;
font-weight: 500;
text-shadow: 0 0 0.25px currentColor;
}
&&-disabled {
@ -201,6 +195,10 @@
}
}
&-tab + &-tab {
margin: @tabs-horizontal-margin;
}
// =========================== TabPanes ===========================
&-content {
&-holder {

View File

@ -99,18 +99,12 @@
// >>>>>>>>>>> Tab
.@{tab-prefix-cls}-tab {
margin: @tabs-vertical-margin;
padding: @tabs-vertical-padding;
text-align: center;
&:last-of-type {
margin-bottom: 0;
}
&-active .@{tab-prefix-cls}-tab-btn {
font-weight: normal;
text-shadow: 0 0 0.25px @tabs-active-color;
}
.@{tab-prefix-cls}-tab + .@{tab-prefix-cls}-tab {
margin: @tabs-vertical-margin;
}
// >>>>>>>>>>> Nav

View File

@ -56,7 +56,7 @@
&.@{tab-prefix-cls}-bottom {
> .@{tab-prefix-cls}-nav,
> div > .@{tab-prefix-cls}-nav {
.@{tab-prefix-cls}-tab:not(:last-of-type) {
.@{tab-prefix-cls}-tab + .@{tab-prefix-cls}-tab {
.@{tab-prefix-cls}-rtl& {
margin-right: 0;
margin-left: @tabs-card-gutter;

View File

@ -72,7 +72,11 @@ const ListItem = <RecordType extends KeyWiseTransferItem>(props: ListItemProps<R
liProps.onClick = disabled || item.disabled ? undefined : () => onClick(item);
return (
<li {...liProps}>
<Checkbox checked={checked} disabled={disabled || item.disabled} />
<Checkbox
className={`${prefixCls}-checkbox`}
checked={checked}
disabled={disabled || item.disabled}
/>
{labelNode}
</li>
);

View File

@ -12,7 +12,7 @@ exports[`renders ./components/transfer/demo/advanced.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -223,7 +223,7 @@ exports[`renders ./components/transfer/demo/advanced.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -380,7 +380,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -435,7 +435,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content1"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -460,7 +460,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content2"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -485,7 +485,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content3"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -510,7 +510,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content4"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -535,7 +535,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content5"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -560,7 +560,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content6"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -585,7 +585,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content7"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -610,7 +610,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content8"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -635,7 +635,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content9"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -660,7 +660,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content10"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -685,7 +685,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content11"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -769,7 +769,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -824,7 +824,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content12"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -849,7 +849,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content13"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -874,7 +874,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content14"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -899,7 +899,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content15"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -924,7 +924,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content16"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -949,7 +949,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content17"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -974,7 +974,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content18"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -999,7 +999,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content19"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1024,7 +1024,7 @@ exports[`renders ./components/transfer/demo/basic.md correctly 1`] = `
title="content20"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1062,7 +1062,7 @@ exports[`renders ./components/transfer/demo/custom-item.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1221,7 +1221,7 @@ exports[`renders ./components/transfer/demo/custom-item.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1332,7 +1332,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1385,7 +1385,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content1"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1410,7 +1410,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content2"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1435,7 +1435,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content4"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1460,7 +1460,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content5"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1485,7 +1485,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content7"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1510,7 +1510,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content8"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1535,7 +1535,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content10"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1619,7 +1619,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1672,7 +1672,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content3"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1697,7 +1697,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content6"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1722,7 +1722,7 @@ exports[`renders ./components/transfer/demo/custom-select-all-labels.md correctl
title="content9"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2018,7 +2018,7 @@ Array [
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2073,7 +2073,7 @@ Array [
title="content1"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2099,7 +2099,7 @@ Array [
title="content2"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2124,7 +2124,7 @@ Array [
title="content4"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2150,7 +2150,7 @@ Array [
title="content5"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2175,7 +2175,7 @@ Array [
title="content7"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2201,7 +2201,7 @@ Array [
title="content8"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2226,7 +2226,7 @@ Array [
title="content10"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2252,7 +2252,7 @@ Array [
title="content11"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2277,7 +2277,7 @@ Array [
title="content13"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2303,7 +2303,7 @@ Array [
title="content14"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2328,7 +2328,7 @@ Array [
title="content16"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2354,7 +2354,7 @@ Array [
title="content17"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2379,7 +2379,7 @@ Array [
title="content19"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -2405,7 +2405,7 @@ Array [
title="content20"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2754,7 +2754,7 @@ exports[`renders ./components/transfer/demo/search.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -2945,7 +2945,7 @@ exports[`renders ./components/transfer/demo/search.md correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"

View File

@ -11,7 +11,7 @@ exports[`Transfer rtl render component should be rendered correctly in RTL direc
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper ant-checkbox-rtl"
class="ant-checkbox-wrapper ant-checkbox-rtl ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -169,7 +169,7 @@ exports[`Transfer rtl render component should be rendered correctly in RTL direc
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper ant-checkbox-rtl"
class="ant-checkbox-wrapper ant-checkbox-rtl ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -280,7 +280,7 @@ exports[`Transfer should render correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-checked"
@ -333,7 +333,7 @@ exports[`Transfer should render correctly 1`] = `
class="ant-transfer-list-content-item ant-transfer-list-content-item-checked"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-checked"
@ -356,7 +356,7 @@ exports[`Transfer should render correctly 1`] = `
class="ant-transfer-list-content-item ant-transfer-list-content-item-disabled"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"
@ -438,7 +438,7 @@ exports[`Transfer should render correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -490,7 +490,7 @@ exports[`Transfer should render correctly 1`] = `
class="ant-transfer-list-content-item"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -525,7 +525,7 @@ exports[`Transfer should show sorted targetKey 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -578,7 +578,7 @@ exports[`Transfer should show sorted targetKey 1`] = `
title="a"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -662,7 +662,7 @@ exports[`Transfer should show sorted targetKey 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -715,7 +715,7 @@ exports[`Transfer should show sorted targetKey 1`] = `
title="c"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -740,7 +740,7 @@ exports[`Transfer should show sorted targetKey 1`] = `
title="b"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -777,7 +777,7 @@ exports[`Transfer should support render value and label in item 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -830,7 +830,7 @@ exports[`Transfer should support render value and label in item 1`] = `
title="title value"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -914,7 +914,7 @@ exports[`Transfer should support render value and label in item 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1025,7 +1025,7 @@ exports[`immutable data dataSource is frozen 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1077,7 +1077,7 @@ exports[`immutable data dataSource is frozen 1`] = `
class="ant-transfer-list-content-item"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -1159,7 +1159,7 @@ exports[`immutable data dataSource is frozen 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"

View File

@ -8,7 +8,7 @@ exports[`Transfer.List should render correctly 1`] = `
class="ant-transfer-list-header"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-indeterminate"
@ -60,7 +60,7 @@ exports[`Transfer.List should render correctly 1`] = `
class="ant-transfer-list-content-item ant-transfer-list-content-item-checked"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-checked"
@ -83,7 +83,7 @@ exports[`Transfer.List should render correctly 1`] = `
class="ant-transfer-list-content-item"
>
<label
class="ant-checkbox-wrapper"
class="ant-checkbox-wrapper ant-transfer-list-checkbox"
>
<span
class="ant-checkbox"
@ -105,7 +105,7 @@ exports[`Transfer.List should render correctly 1`] = `
class="ant-transfer-list-content-item ant-transfer-list-content-item-disabled"
>
<label
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled"
class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-transfer-list-checkbox"
>
<span
class="ant-checkbox ant-checkbox-disabled"

View File

@ -239,6 +239,7 @@ export default class TransferList<
onItemSelectAll: (dataSource: string[], checkAll: boolean) => void,
showSelectAll?: boolean,
disabled?: boolean,
prefixCls?: string,
): false | JSX.Element {
const checkStatus = this.getCheckStatus(filteredItems);
const checkedAll = checkStatus === 'all';
@ -247,6 +248,7 @@ export default class TransferList<
disabled={disabled}
checked={checkedAll}
indeterminate={checkStatus === 'part'}
className={`${prefixCls}-checkbox`}
onChange={() => {
// Only select enabled items
onItemSelectAll(
@ -347,7 +349,7 @@ export default class TransferList<
const checkAllCheckbox =
!showRemove &&
!pagination &&
this.getCheckBox(filteredItems, onItemSelectAll, showSelectAll, disabled);
this.getCheckBox(filteredItems, onItemSelectAll, showSelectAll, disabled, prefixCls);
let menu: React.ReactElement | null = null;
if (showRemove) {

View File

@ -121,12 +121,12 @@
padding: 0;
overflow: auto;
list-style: none;
&-item {
display: flex;
align-items: center;
min-height: @transfer-item-height;
padding: @transfer-item-padding-vertical @control-padding-horizontal;
overflow: hidden;
line-height: @transfer-item-height - 2 * @transfer-item-padding-vertical;
transition: all 0.3s;
@ -209,6 +209,10 @@
&-footer {
border-top: @border-width-base @border-style-base @border-color-split;
}
&-checkbox .@{ant-prefix}-checkbox {
top: 0;
}
}
&-operation {

View File

@ -101,7 +101,9 @@ Basic text writing, including headings, body text, lists, and more.
| icon | Custom editable icon | ReactNode | &lt;EditOutlined /> | 4.6.0 |
| maxLength | `maxLength` attribute of textarea | number | - | 4.4.0 |
| tooltip | Custom tooltip text, hide when it is false | boolean \| ReactNode | `Edit` | 4.6.0 |
| onCancel | Called when type ESC to exit editable state | function | - | |
| onChange | Called when input at textarea | function(event) | - | |
| onEnd | Called when type ENTER to exit editable state | function | - | 4.14.0 |
| onStart | Called when enter editable state | function | - | |
| onCancel | Called when type ESC to exit editable state | function | - | |
| onEnd | Called when type ENTER to exit editable state | function | - | |

View File

@ -101,7 +101,9 @@ cover: https://gw.alipayobjects.com/zos/alicdn/GOM1KQ24O/Typography.svg
| icon | 自定义编辑图标 | ReactNode | &lt;EditOutlined /> | 4.6.0 |
| maxLength | 编辑中文本域最大长度 | number | - | 4.4.0 |
| tooltip | 自定义提示文本,为 false 时关闭 | boolean \| ReactNode | `编辑` | 4.6.0 |
| onCancel | 按 ESC 退出编辑状态时触发 | function | - | |
| onChange | 文本域编辑时触发 | function(event) | - | |
| onEnd | 按 ENTER 结束编辑状态时触发 | function | - | 4.14.0 |
| onStart | 进入编辑中状态时触发 | function | - | |
| onCancel | 按 ESC 退出编辑状态时触发 | function | - | |
| onEnd | 按 ENTER 结束编辑状态时触发 | function | - | |
@ -119,7 +121,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/GOM1KQ24O/Typography.svg
}
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| ---------- | -------------------- | -------------------- | ------ | ------ |
| expandable | 是否可展开 | boolean | - | |
| rows | 最多显示的行数 | number | - | |
| suffix | 自定义省略内容后缀 | string | - | |

View File

@ -27,4 +27,23 @@ describe('Upload.typescript', () => {
);
expect(upload).toBeTruthy();
});
it('beforeUpload', () => {
const upload = (
<Upload
beforeUpload={file => {
if (file.type === 'image/png') {
return true;
}
if (file.type === 'image/webp') {
return Promise.resolve(file);
}
return Upload.LIST_IGNORE;
}}
>
<span>click to upload</span>
</Upload>
);
expect(upload).toBeTruthy();
});
});

View File

@ -21,7 +21,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v
| --- | --- | --- | --- | --- |
| accept | File types that can be accepted. See [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) | string | - | |
| action | Uploading URL | string \| (file) => Promise&lt;string> | - | |
| beforeUpload | Hook function which will be executed before uploading. Uploading will be stopped with `false` or a rejected Promise returned. **Warningthis function is not supported in IE9** | (file, fileList) => boolean \| Promise&lt;File> | - | |
| beforeUpload | Hook function which will be executed before uploading. Uploading will be stopped with `false` or a rejected Promise returned. When returned value is `Upload.LIST_IGNORE`, the list of files that have been uploaded will ignore it. **Warningthis function is not supported in IE9** | (file, fileList) => boolean \| Promise&lt;File> \| `Upload.LIST_IGNORE` | - | |
| customRequest | Override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest | function | - | |
| data | Uploading extra params or function which can return uploading extra params | object \| (file) => object \| Promise&lt;object> | - | |
| defaultFileList | Default list of files that have been uploaded | object\[] | - | |
@ -33,6 +33,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v
| isImageUrl | Customize if render &lt;img /> in thumbnail | (file: UploadFile) => boolean | [(inside implementation)](https://github.com/ant-design/ant-design/blob/4ad5830eecfb87471cd8ac588c5d992862b70770/components/upload/utils.tsx#L47-L68) | |
| itemRender | Custom item of uploadList | (originNode: ReactElement, file: UploadFile, fileList?: object\[]) => React.ReactNode | - | 4.7.0 |
| listType | Built-in stylesheets, support for three types: `text`, `picture` or `picture-card` | string | `text` | |
| maxCount | Limit the number of uploaded files. Will replace current one when `maxCount` is `1` | number | - | 4.10.0 |
| method | The http method of upload request | string | `post` | |
| multiple | Whether to support selected multiple file. `IE10+` supported. You can select multiple files with CTRL holding down while multiple is set to be true | boolean | false | |
| name | The name of uploading file | string | `file` | |

View File

@ -22,7 +22,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg
| --- | --- | --- | --- | --- |
| accept | 接受上传的文件类型, 详见 [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) | string | - | |
| action | 上传的地址 | string \| (file) => Promise&lt;string> | - | |
| beforeUpload | 上传文件之前的钩子,参数为上传的文件,若返回 `false` 则停止上传。支持返回一个 Promise 对象Promise 对象 reject 时则停止上传resolve 时开始上传( resolve 传入 `File``Blob` 对象则上传 resolve 传入对象)。**注意IE9 不支持该方法** | (file, fileList) => boolean \| Promise&lt;File> | - | |
| beforeUpload | 上传文件之前的钩子,参数为上传的文件,若返回 `false` 则停止上传。支持返回一个 Promise 对象Promise 对象 reject 时则停止上传resolve 时开始上传( resolve 传入 `File``Blob` 对象则上传 resolve 传入对象);也可以返回 `Upload.LIST_IGNORE`,此时列表中将不展示此文件 `**注意IE9 不支持该方法** | (file, fileList) => boolean \| Promise&lt;File> \| `Upload.LIST_IGNORE` | - | |
| customRequest | 通过覆盖默认的上传行为,可以自定义自己的上传实现 | function | - | |
| data | 上传所需额外参数或返回上传额外参数的方法 | object\|(file) => object \| Promise&lt;object> | - | |
| defaultFileList | 默认已经上传的文件列表 | object\[] | - | |
@ -34,6 +34,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg
| isImageUrl | 自定义缩略图是否使用 &lt;img /> 标签进行显示 | (file: UploadFile) => boolean | [(内部实现)](https://github.com/ant-design/ant-design/blob/4ad5830eecfb87471cd8ac588c5d992862b70770/components/upload/utils.tsx#L47-L68) | |
| itemRender | 自定义上传列表项 | (originNode: ReactElement, file: UploadFile, fileList?: object\[]) => React.ReactNode | - | 4.7.0 |
| listType | 上传列表的内建样式,支持三种基本样式 `text`, `picture``picture-card` | string | `text` | |
| maxCount | 限制上传数量。当为 1 时,始终用最新上传的文件代替当前文件 | number | - | 4.10.0 |
| method | 上传请求的 http method | string | `post` | |
| multiple | 是否支持多选文件,`ie10+` 支持。开启后按住 ctrl 可选择多个文件 | boolean | false | |
| name | 发到后台的文件参数名 | string | `file` | |

View File

@ -86,7 +86,7 @@ export interface UploadProps<T = any> {
showUploadList?: boolean | ShowUploadListInterface;
multiple?: boolean;
accept?: string;
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | Promise<void | Blob | File>;
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | {} | Promise<void | Blob | File>;
onChange?: (info: UploadChangeParam) => void;
listType?: UploadListType;
className?: string;

View File

@ -75,7 +75,7 @@ module.exports = {
### 在 Umi 里配置主题
如果你在使用 [Umi](http://umijs.org/zh/),那么可以很方便地在项目根目录的 `.umirc.ts` 或 [config/config.ts](https://github.com/ant-design/ant-design-pro/blob/v5/config/config.ts) 文件中 [theme](https://umijs.org/zh-CN/config#theme) 字段进行主题配置。`theme` 可以配置为一个对象或文件路径。
如果你在使用 [Umi](https://umijs.org/zh-CN/config#theme),那么可以很方便地在项目根目录的 `.umirc.ts` 或 [config/config.ts](https://github.com/ant-design/ant-design-pro/blob/v5/config/config.ts) 文件中 [theme](https://umijs.org/zh-CN/config#theme) 字段进行主题配置。`theme` 可以配置为一个对象或文件路径。
```js
"theme": {

View File

@ -158,7 +158,7 @@ toc: false
- 深度理解 SAP、Salesforce、Google 等设计体系,能提出自己独到见解并落实到实践中,加加加分。
- 岗位职责:
- 参与[蚂蚁链](https://blockchain.antgroup.com/)、人工智能、数据平台等企业级产品的设计工作;
- 参与[语雀](https://www.yuque.com/)、[云凤蝶](https://www.yunfengdie.com/)等创新产品的设计工作;
- 参与[语雀](https://www.yuque.com/) 等创新产品的设计工作;
- 参与 Ant Design 的打磨,将其建设成全球卓越的设计体系。
- 参与 AntV 的打磨,将其建设成全球一流的数据可视化体系。
- One More Thing ❤️

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "4.13.1",
"version": "4.14.0",
"description": "An enterprise-class UI design language and React components implementation",
"title": "Ant Design",
"keywords": [

View File

@ -103,8 +103,6 @@ module.exports = {
'app.footer.ant-design': 'UI Design Language',
'app.footer.yuque': 'YuQue',
'app.footer.yuque.slogan': 'Write your document as a team',
'app.footer.fengdie': 'FengDie',
'app.footer.fengdie.slogan': 'Console Applications Builder',
'app.footer.antv.slogan': 'Data Visualization',
'app.footer.egg.slogan': 'Enterprise Node.js Framework',
'app.footer.zhihu': 'Ant Design Blog',

View File

@ -301,18 +301,6 @@ class Footer extends React.Component<WrappedComponentProps & { location: any }>
description: <FormattedMessage id="app.footer.yuque.slogan" />,
openExternal: true,
},
{
icon: (
<img
src="https://gw.alipayobjects.com/zos/rmsportal/uHocHZfNWZOdsRUonZNr.png"
alt="yunfengdie"
/>
),
title: <FormattedMessage id="app.footer.fengdie" />,
url: 'https://yunfengdie.com',
description: <FormattedMessage id="app.footer.fengdie.slogan" />,
openExternal: true,
},
{
icon: (
<img

View File

@ -102,8 +102,6 @@ module.exports = {
'app.footer.ant-design': '蚂蚁 UI 体系',
'app.footer.yuque': '语雀',
'app.footer.yuque.slogan': '专业的云端知识库',
'app.footer.fengdie': '云凤蝶',
'app.footer.fengdie.slogan': '企业级应用制作平台',
'app.footer.antv.slogan': '数据可视化解决方案',
'app.footer.egg.slogan': '企业级 Node.js 框架',
'app.footer.zhihu': 'Ant Design 专栏',