Skip to content

Commit

Permalink
chore: auto merge branchs (#34209)
Browse files Browse the repository at this point in the history
chore: merge master into feature
  • Loading branch information
github-actions[bot] committed Feb 25, 2022
2 parents 2c56927 + 7d64967 commit 2d194ec
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -96,6 +96,7 @@ module.exports = {
'react/require-default-props': 0,
'react/sort-comp': 0,
'react/display-name': 0,
'react/jsx-key': 0,
'react/static-property-placement': 0,
'react/jsx-no-bind': 0, // Should not check test file
'react/no-find-dom-node': 0,
Expand Down
4 changes: 4 additions & 0 deletions components/cascader/index.en-US.md
Expand Up @@ -76,6 +76,10 @@ interface Option {
label?: React.ReactNode;
disabled?: boolean;
children?: Option[];
// Determines if this is a leaf node(effective when `loadData` is specified).
// `false` will force trade TreeNode as a parent node.
// Show expand icon even if the current node has no children.
isLeaf?: boolean;
}
```

Expand Down
3 changes: 3 additions & 0 deletions components/cascader/index.zh-CN.md
Expand Up @@ -78,6 +78,9 @@ interface Option {
label?: React.ReactNode;
disabled?: boolean;
children?: Option[];
// 标记是否为叶子节点,设置了 `loadData` 时有效
// 设为 `false` 时会强制标记为父节点,即使当前节点没有 children,也会显示展开图标
isLeaf?: boolean;
}
```

Expand Down
1 change: 0 additions & 1 deletion components/dropdown/style/index.less
Expand Up @@ -201,7 +201,6 @@
font-weight: normal;
font-size: @dropdown-font-size;
line-height: @dropdown-line-height;
white-space: nowrap;
cursor: pointer;
transition: all @animation-duration-slow;

Expand Down
14 changes: 14 additions & 0 deletions components/upload/__tests__/type.test.tsx
Expand Up @@ -21,6 +21,20 @@ describe('Upload.typescript', () => {
expect(upload).toBeTruthy();
});

it('onChange params', () => {
type IFile = {
customFile: File;
};

const upload = (
<Upload<IFile> onChange={({ file }) => file.response?.customFile}>
<span>click to upload</span>
</Upload>
);

expect(upload).toBeTruthy();
});

it('onChange in UploadProps', () => {
const uploadProps: UploadProps<File> = {
onChange: ({ file }) => file,
Expand Down
2 changes: 1 addition & 1 deletion components/upload/interface.tsx
Expand Up @@ -104,7 +104,7 @@ export interface UploadProps<T = any> extends Pick<RcUploadProps, 'capture'> {
file: RcFile,
FileList: RcFile[],
) => BeforeUploadValueType | Promise<BeforeUploadValueType>;
onChange?: (info: UploadChangeParam<T>) => void;
onChange?: (info: UploadChangeParam<UploadFile<T>>) => void;
onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
listType?: UploadListType;
className?: string;
Expand Down
4 changes: 4 additions & 0 deletions docs/resources.en-US.md
Expand Up @@ -74,6 +74,10 @@ Please find below some of the design resources and tools about Ant Design that w
- https://user-images.githubusercontent.com/7129/149994038-76214796-cd6a-4e80-b0a4-117e8edac050.png
- Drag/drop live Ant components and manipulate props in this React visual builder
- https://www.plasmic.app/ant-design
- MasterGo
- https://mastergo-local-default.oss-cn-beijing.aliyuncs.com/ant-design-mastergo.svg
- Use fully components and templates on MasterGo
- https://mastergo.com/community/resource/31

## Articles

Expand Down
4 changes: 4 additions & 0 deletions docs/resources.zh-CN.md
Expand Up @@ -66,6 +66,10 @@ toc: false
- https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*dxzdQYWlmjMAAAAAAAAAAAAAARQnAQ
- 可在「即时设计」在线免费使用的全套组件和模板
- https://js.design/antd
- MasterGo 组件包
- https://mastergo-local-default.oss-cn-beijing.aliyuncs.com/ant-design-mastergo.svg
- 可在「MasterGo」在线免费使用的全套组件和模板
- https://mastergo.com/community/resource/31

## 文章

Expand Down
6 changes: 3 additions & 3 deletions docs/spec/copywriting.zh-CN.md
Expand Up @@ -142,7 +142,7 @@ title: 文案

## 语气

语言定义的是内容,而情绪和气氛更多的是通过语气来表达,并且同样的内容面对不同的用户我们可以使用不同的语气来表达;例如,我们对应专业的运维人员和小白用户应有不同的表达方式。
语言定义的是内容,而情绪和气氛更多地是通过语气来表达,并且同样的内容面对不同的用户我们可以使用不同的语气来表达;例如,我们对应专业的运维人员和小白用户应有不同的表达方式。

### 拉近彼此的距离

Expand Down Expand Up @@ -211,7 +211,7 @@ title: 文案
<img class="preview-img no-padding good" align="right" src="https://gw.alipayobjects.com/zos/rmsportal/QGpLpUFgZnTDzYJCeuun.png" alt="正确示范">
<img class="preview-img no-padding bad" align="right" src="https://gw.alipayobjects.com/zos/rmsportal/fQhiFpjLcHJtJJGzElUT.png" alt="错误示范">

为了帮助用户更加高效得扫视文本内容,可以省略不必要的断句点。
为了帮助用户更加高效地扫视文本内容,可以省略不必要的断句点。

以下元素单独出现时可以省略标点:

Expand Down Expand Up @@ -279,6 +279,6 @@ title: 文案
</tr>
</table>

正确得使用标点符号会让句子看起来更清晰和具有可读性
正确地使用标点符号会让句子看起来更清晰和具有可读性

具体使用请参考 1995 年中国标准出版社出版的[《标点符号用法》](http://www.moe.gov.cn/ewebeditor/uploadfile/2015/01/13/20150113091548267.pdf),右图为重点列出的在设计中需要注意的部分。
2 changes: 1 addition & 1 deletion site/theme/template/Content/MainContent.jsx
Expand Up @@ -443,7 +443,7 @@ class MainContent extends Component {
meta: {
category: 'Components',
cover: 'https://gw.alipayobjects.com/zos/antfincdn/N3eU432oA/bianzu%2525209.svg',
filename: 'https://procomponents.ant.design/components/list',
filename: 'https://procomponents.ant.design/components/editable-table',
subtitle: '可编辑表格',
title: 'EditableProTable',
type,
Expand Down

0 comments on commit 2d194ec

Please sign in to comment.