Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge master into feature #21818

Merged
merged 36 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9b7421a
fix: TreeSelect missing suffix define (#21714)
zombieJ Feb 29, 2020
211dada
:clapper: improve ConfigProvider rtl demo
afc163 Feb 29, 2020
1f108ee
fix: Form.Item renderProps return type define (#21716)
zombieJ Feb 29, 2020
e868c87
fix: Table.Column sortOrder is not working in JSX mode (#21719)
zombieJ Mar 1, 2020
dbc6433
docs: 🎬 fix @ant-design/icons dep in Stackblitz (#21720)
afc163 Mar 1, 2020
f783321
docs: fix size props (#21724)
itellboy Mar 1, 2020
301529e
:hammer: fix site code lgtm problems (#21732)
afc163 Mar 1, 2020
e59d606
chore: site docs page add api anchor (#21736)
AshoneA Mar 1, 2020
5993fc3
fix: crash when user dont pass icon props to message.open (#21747)
AshoneA Mar 2, 2020
adb323c
chore: icons save bundle size without treeShaking (#21752)
zombieJ Mar 2, 2020
e4505f5
:bug: Fix Input.Search border when has prefix (#21753)
afc163 Mar 2, 2020
1d37cf3
fix: input group demo (#21751)
xrkffgg Mar 2, 2020
241ce30
fix: Tree treeData ts define (#21756)
zombieJ Mar 2, 2020
27e48d3
Update RecommendPage.tsx (#21759)
ionshaw Mar 2, 2020
920124f
Update MorePage.tsx (#21764)
ionshaw Mar 2, 2020
3509384
Update RecommendPage.tsx (#21769)
ionshaw Mar 2, 2020
99e6fb9
fix: Menu.Item inline a tag display not correct (#21699)
shaodahong Mar 2, 2020
60f77ce
fix: table locale not work (#21772)
zombieJ Mar 2, 2020
9eaaea1
:memo: fix Drawer `forceRender` doc and tsd (#21774)
afc163 Mar 2, 2020
517fba7
:memo: remove duplicated npm badge
afc163 Mar 2, 2020
fb410ba
chore(deps-dev): bump antd-pro-merge-less from 2.0.28 to 3.0.3 (#21783)
dependabot-preview[bot] Mar 2, 2020
bd747c9
fix: List bordered and split props conflict (#21784)
MXWXZ Mar 2, 2020
ccca0f3
Adjust link in changelog (#21790)
iaurg Mar 2, 2020
8527340
docs: Update footer link
zombieJ Mar 3, 2020
fd9bc6c
removes erroniously present comment (#21792)
dimitropoulos Mar 3, 2020
24133d9
fix: TreeSelect.SHOW_* should have constant type (#21791)
TennyZhuang Mar 3, 2020
a226c22
doc: added more info about nested fields to migration guide (#21758)
crudo Mar 3, 2020
68f8851
feat: add support use dots to provide dotsClasse (#21708)
yoyo837 Mar 3, 2020
17e7a3d
:memo: fix codeopen demo (#21801)
afc163 Mar 3, 2020
228c978
fix: `help` change cause react warning (#21800)
zombieJ Mar 3, 2020
3eb5e9f
test: fix packtracker token (#21805)
afc163 Mar 3, 2020
621df69
fix: Radio.Button type error (#21807)
jhoneybee Mar 3, 2020
c8a8e5d
:lipstick: Radio.Group not wrapping now
afc163 Mar 3, 2020
f287708
:lipstick: optimize Calendar header style in small screen
afc163 Mar 3, 2020
30a3c32
:wrench: do not fail build in PacktrackerPlugin
afc163 Mar 3, 2020
c928952
:clapper: improve form demo
afc163 Mar 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-pt_BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Uma solução empresarial de design e biblioteca UI para React.

[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) ![CI Status](https://github.com/ant-design/ant-design/workflows/test/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![](https://badgen.net/npm/v/antd/latest)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)
[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) ![CI Status](https://github.com/ant-design/ant-design/workflows/test/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)

[![Dependencies](https://img.shields.io/david/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design) [![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design?type=dev) [![Total alerts](https://flat.badgen.net/lgtm/alerts/g/ant-design/ant-design)](https://lgtm.com/projects/g/ant-design/ant-design/alerts/) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fant-design%2Fant-design?ref=badge_shield) [![Issues need help](https://flat.badgen.net/github/label-issues/ant-design/ant-design/help%20wanted/open)](https://github.com/ant-design/ant-design/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)

Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

一套企业级 UI 设计语言和 React 组件库。

[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) ![CI Status](https://github.com/ant-design/ant-design/workflows/Node%20CI/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![](https://badgen.net/npm/v/antd/latest)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)
[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) ![CI Status](https://github.com/ant-design/ant-design/workflows/Node%20CI/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)

[![Dependencies](https://img.shields.io/david/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design) [![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design?type=dev) [![Total alerts](https://flat.badgen.net/lgtm/alerts/g/ant-design/ant-design)](https://lgtm.com/projects/g/ant-design/ant-design/alerts/) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fant-design%2Fant-design?ref=badge_shield) [![Issues need help](https://flat.badgen.net/github/label-issues/ant-design/ant-design/help%20wanted/open)](https://github.com/ant-design/ant-design/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

An enterprise-class UI design language and React UI library.

[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) ![CI Status](https://github.com/ant-design/ant-design/workflows/test/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![](https://badgen.net/npm/v/antd/latest)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)
[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) ![CI Status](https://github.com/ant-design/ant-design/workflows/test/badge.svg) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)

[![Dependencies](https://img.shields.io/david/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design) [![DevDependencies](https://img.shields.io/david/dev/ant-design/ant-design.svg?style=flat-square)](https://david-dm.org/ant-design/ant-design?type=dev) [![Total alerts](https://flat.badgen.net/lgtm/alerts/g/ant-design/ant-design)](https://lgtm.com/projects/g/ant-design/ant-design/alerts/) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fant-design%2Fant-design?ref=badge_shield) [![Issues need help](https://flat.badgen.net/github/label-issues/ant-design/ant-design/help%20wanted/open)](https://github.com/ant-design/ant-design/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) [![](https://github.com/BoostIO/issuehunt-materials/blob/master/v1/issuehunt-shield-v1.svg)](https://issuehunt.io/r/ant-design/ant-design)

Expand Down
1 change: 0 additions & 1 deletion components/alert/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default class ErrorBoundary extends React.Component<
const errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
const errorDescription = typeof description === 'undefined' ? componentStack : description;
if (error) {
// You can render any custom fallback UI
return (
<Alert type="error" message={errorMessage} description={<pre>{errorDescription}</pre>} />
);
Expand Down
20 changes: 9 additions & 11 deletions components/alert/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {
CloseOutlined,
CheckCircleOutlined,
ExclamationCircleOutlined,
InfoCircleOutlined,
CloseCircleOutlined,
CheckCircleFilled,
ExclamationCircleFilled,
InfoCircleFilled,
CloseCircleFilled,
} from '@ant-design/icons';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import CheckCircleOutlined from '@ant-design/icons/CheckCircleOutlined';
import ExclamationCircleOutlined from '@ant-design/icons/ExclamationCircleOutlined';
import InfoCircleOutlined from '@ant-design/icons/InfoCircleOutlined';
import CloseCircleOutlined from '@ant-design/icons/CloseCircleOutlined';
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
import Animate from 'rc-animate';
import classNames from 'classnames';

Expand Down
2 changes: 1 addition & 1 deletion components/breadcrumb/BreadcrumbItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { DownOutlined } from '@ant-design/icons';
import DownOutlined from '@ant-design/icons/DownOutlined';
import omit from 'omit.js';

import DropDown, { DropDownProps } from '../dropdown/dropdown';
Expand Down
2 changes: 1 addition & 1 deletion components/button/button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react/button-has-type */
import * as React from 'react';
import classNames from 'classnames';
import { LoadingOutlined } from '@ant-design/icons';
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
import omit from 'omit.js';

import Group from './button-group';
Expand Down
2 changes: 1 addition & 1 deletion components/button/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To get a customized button, just set `type`/`shape`/`size`/`loading`/`disabled`.
| icon | set the icon component of button | ReactNode | - | |
| loading | set the loading status of button | boolean \| { delay: number } | `false` | |
| shape | can be set to `circle`, `round` or omitted | string | - | |
| size | can be set to `small` `large` or omitted | string | `default` | |
| size | set the size of button | `large` \| `middle` \| `small` | | |
| target | same as target attribute of a, works when href is specified | string | - | |
| type | can be set to `primary` `ghost` `dashed` `link` or omitted (meaning `default`) | string | `default` | |
| onClick | set the handler to handle `click` event | (event) => void | - | |
Expand Down
2 changes: 1 addition & 1 deletion components/button/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ subtitle: 按钮
| icon | 设置按钮的图标组件 | ReactNode | - | |
| loading | 设置按钮载入状态 | boolean \| { delay: number } | `false` | |
| shape | 设置按钮形状,可选值为 `circle`、 `round` 或者不设 | string | - | |
| size | 设置按钮大小,可选值为 `small` `large` 或者不设 | string | `default` | |
| size | 设置按钮大小 | `large` \| `middle` \| `small` | 无 | |
| target | 相当于 a 链接的 target 属性,href 存在时生效 | string | - | |
| type | 设置按钮类型,可选值为 `primary` `dashed` `link` 或者不设 | string | - | |
| onClick | 点击按钮时的回调 | (event) => void | - | |
Expand Down
52 changes: 30 additions & 22 deletions components/calendar/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@
&-header {
display: flex;
justify-content: flex-end;
padding: 11px 16px 11px 0;

.@{calendar-prefix-cls}-year-select {
min-width: 85px;
}
padding: @padding-sm 0;

.@{calendar-prefix-cls}-month-select {
min-width: 70px;
margin-left: @padding-xs;
}

Expand All @@ -40,7 +35,7 @@
}

.@{calendar-picker-prefix-cls}-body {
padding: @padding-xs @padding-sm;
padding: @padding-xs 0;
}

.@{calendar-picker-prefix-cls}-content {
Expand All @@ -63,21 +58,6 @@

// ========================== Full ==========================
&-full {
.@{calendar-prefix-cls}-header {
.@{calendar-prefix-cls}-year-select {
width: 90px;
}

.@{calendar-prefix-cls}-month-select {
width: 80px;
margin-left: @padding-xs;
}

.@{calendar-prefix-cls}-mode-switch {
margin-left: @padding-md;
}
}

.@{calendar-picker-prefix-cls}-panel {
display: block;
width: 100%;
Expand Down Expand Up @@ -165,3 +145,31 @@
}
}
}

@media only screen and (max-width: @screen-xs) {
.@{calendar-prefix-cls} {
&-header {
display: block;

.@{calendar-prefix-cls}-year-select {
width: 50%;
}

.@{calendar-prefix-cls}-month-select {
width: ~'calc(50% - @{padding-xs})';
}

.@{calendar-prefix-cls}-mode-switch {
width: 100%;
margin-top: @padding-xs;
margin-left: 0;

> label {
width: 50%;
text-align: center;
}
}
}
}
}

14 changes: 14 additions & 0 deletions components/carousel/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,18 @@ describe('Carousel', () => {
).toBeTruthy();
});
});

describe('dots precise control by plain object', () => {
it('use dots to provide dotsClasse', () => {
const wrapper = mount(
<Carousel dots={{ dotsClass: 'customDots' }}>
<div>1</div>
<div>2</div>
<div>3</div>
</Carousel>,
);
wrapper.update();
expect(wrapper.find('.slick-dots').hasClass('customDots')).toBeTruthy();
});
});
});
2 changes: 1 addition & 1 deletion components/carousel/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A carousel component. Scales with its container.
| autoplay | Whether to scroll automatically | boolean | `false` | |
| beforeChange | Callback function called before the current index changes | function(from, to) | - | |
| dotPosition | The position of the dots, which can be one of `top` `bottom` `left` `right` | string | bottom | |
| dots | Whether to show the dots at the bottom of the gallery | boolean | `true` | |
| dots | Whether to show the dots at the bottom of the gallery, `string` for `dotsClass` | boolean \| { dotsClass?:string } | `true` | |
| easing | Transition interpolation function name | string | `linear` | |
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` | |

Expand Down
18 changes: 15 additions & 3 deletions components/carousel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react';
import isPlainObject from 'lodash/isPlainObject';
import debounce from 'lodash/debounce';
import { Settings } from '@ant-design/react-slick';
import classNames from 'classnames';
Expand All @@ -14,13 +15,18 @@ export type CarouselEffect = 'scrollx' | 'fade';
export type DotPosition = 'top' | 'bottom' | 'left' | 'right';

// Carousel
export interface CarouselProps extends Settings {
export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
effect?: CarouselEffect;
style?: React.CSSProperties;
prefixCls?: string;
slickGoTo?: number;
dotPosition?: DotPosition;
children?: React.ReactNode;
dots?:
| boolean
| {
dotsClass?: string;
};
}

export default class Carousel extends React.Component<CarouselProps, {}> {
Expand Down Expand Up @@ -106,7 +112,13 @@ export default class Carousel extends React.Component<CarouselProps, {}> {
const dotsClass = 'slick-dots';
const dotPosition = this.getDotPosition();
props.vertical = dotPosition === 'left' || dotPosition === 'right';
props.dotsClass = `${dotsClass} ${dotsClass}-${dotPosition || 'bottom'}`;

const enableDots = props.dots === true || isPlainObject(props.dots);
const dsClass = classNames(
dotsClass,
`${dotsClass}-${dotPosition || 'bottom'}`,
typeof props.dots === 'boolean' ? false : props.dots?.dotsClass,
);

const className = classNames(prefixCls, {
[`${prefixCls}-rtl`]: direction === 'rtl',
Expand All @@ -115,7 +127,7 @@ export default class Carousel extends React.Component<CarouselProps, {}> {

return (
<div className={className}>
<SlickCarousel ref={this.saveSlick} {...props} />
<SlickCarousel ref={this.saveSlick} {...props} dots={enableDots} dotsClass={dsClass} />
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion components/carousel/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ subtitle: 走马灯
| autoplay | 是否自动切换 | boolean | false | | |
| beforeChange | 切换面板的回调 | function(from, to) | 无 | | |
| dotPosition | 面板指示点位置,可选 `top` `bottom` `left` `right` | string | bottom | |
| dots | 是否显示面板指示点 | boolean | true | | |
| dots | 是否显示面板指示点,如果为 `string` 则指定为 `dotsClass` | boolean \| { dotsClass?:string } | true | | |
| easing | 动画效果 | string | linear | | |
| effect | 动画效果函数,可取 scrollx, fade | string | scrollx | | |

Expand Down
2 changes: 1 addition & 1 deletion components/cascader/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Cascade selection box.
| popupPlacement | use preset popup align config from builtinPlacements:`bottomLeft` `bottomRight` `topLeft` `topRight` | string | `bottomLeft` | |
| popupVisible | set visible of cascader popup | boolean | - | |
| showSearch | Whether show search input in single mode. | boolean\|object | false | |
| size | input size, one of `large` `default` `small` | string | `default` | |
| size | input size | `large` \| `middle` \| `small` | | |
| style | additional style | string | - | |
| suffixIcon | The custom suffix icon | ReactNode | - | |
| value | selected value | string\[] | - | |
Expand Down
12 changes: 5 additions & 7 deletions components/cascader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import arrayTreeFilter from 'array-tree-filter';
import classNames from 'classnames';
import omit from 'omit.js';
import KeyCode from 'rc-util/lib/KeyCode';
import {
CloseCircleFilled,
DownOutlined,
RightOutlined,
RedoOutlined,
LeftOutlined,
} from '@ant-design/icons';
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
import DownOutlined from '@ant-design/icons/DownOutlined';
import RightOutlined from '@ant-design/icons/RightOutlined';
import RedoOutlined from '@ant-design/icons/RedoOutlined';
import LeftOutlined from '@ant-design/icons/LeftOutlined';

import Input from '../input';
import { ConfigConsumer, ConfigConsumerProps, RenderEmptyHandler } from '../config-provider';
Expand Down
2 changes: 1 addition & 1 deletion components/cascader/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ subtitle: 级联选择
| popupPlacement | 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` | Enum | `bottomLeft` | |
| popupVisible | 控制浮层显隐 | boolean | - | |
| showSearch | 在选择框中显示搜索框 | boolean | false | |
| size | 输入框大小,可选 `large` `default` `small` | string | `default` | |
| size | 输入框大小 | `large` \| `middle` \| `small` | | |
| style | 自定义样式 | string | - | |
| suffixIcon | 自定义的选择框后缀图标 | ReactNode | - | |
| value | 指定选中项 | string\[] | - | |
Expand Down
2 changes: 1 addition & 1 deletion components/collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import RcCollapse from 'rc-collapse';
import classNames from 'classnames';
import { RightOutlined } from '@ant-design/icons';
import RightOutlined from '@ant-design/icons/RightOutlined';

import CollapsePanel from './CollapsePanel';
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
Expand Down
Loading