-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor: modify nonstandard component's name
BREAKING CHANGE: #### 取消从 `src/index.ts` 文件导出的子组件 `import { AvatarGroup } from '@gio-design/components';` 的用法需要更换为 `import { Avatar } from '@gio-design/components'; const { Group: AvatarGroup } = Avatar;` 1. AvatarGroup 2. CheckboxGroup 3. RadioGroup 4. Tab 5. Step 6. Text 7. Title #### IconButton 组件不再属于 Button 的子组件,而是抽离出单独的组件 `Button.IconButton` 的用法不再支持,需要自行导出组件: `import { IconButton } from '@gio-design/components';` #### src/popconfig 文件夹更名为 src/pop-confirm 如果有引入了该文件夹下的模块,请更改为 `import { PopConfirmProps } from '@gio-design/components/es/pop-confirm'` #### Toggles 组件更名为 Toggle #### SwitchGroupProps 类型更名为 SwitchProps
- Loading branch information
maxin
committed
Mar 15, 2022
1 parent
230f320
commit 5b83202
Showing
115 changed files
with
693 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import '../../button/style'; | ||
import '../../icon-button/style'; | ||
import './index.less'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
import WithSubComponent from '../utils/withSubComponent'; | ||
import InternalButton from './Button'; | ||
import IconButton from './IconButton'; | ||
import Button from './Button'; | ||
|
||
const Button = WithSubComponent(InternalButton, { IconButton }); | ||
|
||
export type { ButtonProps, IconButtonProps, ButtonType } from './interface'; | ||
export { Button, IconButton }; | ||
export type { ButtonProps, ButtonType } from './interface'; | ||
export { Button }; | ||
|
||
export default Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Col, ColProps } from '../grid'; | ||
import Col from './Col'; | ||
|
||
export { ColProps }; | ||
export { ColProps } from './interface'; | ||
export default Col; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ElementType } from 'react'; | ||
|
||
export interface ColProps { | ||
/** | ||
`className`前缀 | ||
*/ | ||
prefixCls?: string; | ||
className?: string; | ||
style?: React.CSSProperties; | ||
/** | ||
根元素的组件 | ||
*/ | ||
component?: ElementType; | ||
/** | ||
`flex order` 映射 | ||
*/ | ||
order?: number; | ||
/** | ||
所占的栅格数 | ||
*/ | ||
span?: number; | ||
/* | ||
栅格左侧的间隔格数,间隔内不可以有栅格 | ||
*/ | ||
offset?: number; | ||
} | ||
|
||
export default ColProps; |
Oops, something went wrong.