-
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 (#1910)
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 8. InputButton 9. InputNumber 10. Password 11. TextArea 12. IconButton #### src/popconfig 文件夹更名为 src/pop-confirm 如果有引入了该文件夹下的模块,请更改为 `import { PopConfirmProps } from '@gio-design/components/es/pop-confirm'` #### Toggles 组件更名为 Toggle #### SwitchGroupProps 类型更名为 SwitchProps #### 一些组件的 props 更名 1. Collapse: ```diff interface CollapseProps { ... - destoryOnHide + destroyOnHide } ``` 2. Popover: ```diff interface PopoverProps { ... - distoryOnHide + destroyOnHide } ``` 3. CascaderOptions: `childrens` -> `items` (传给 Cascader 的 options 数组中,之前的 `childrens` 字段更换为了 `items`) ```diff interface CascaderItemProps extends BaseItemProps { ... - childrens?: CascaderItemProps[]; + items?: CascaderItemProps[]; } ``` #### 一些组件的 interface 文件更名 1. Cascader: interfance.ts -> interface.ts 1. List: interfance.ts -> interface.ts 1. ListPicker: interfance.ts -> interface.ts Co-authored-by: maxin <maxin@growingio.com>
- Loading branch information
Showing
163 changed files
with
979 additions
and
902 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
*.d.ts | ||
node_modules/ | ||
dist/ | ||
es/ | ||
storybook-static/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import '../../tooltip/index'; | ||
import '../../tooltip/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import WithSubComponent from '../utils/withSubComponent'; | ||
import InternalButton from './Button'; | ||
import Button from './Button'; | ||
import IconButton from './IconButton'; | ||
|
||
const Button = WithSubComponent(InternalButton, { IconButton }); | ||
export type { ButtonProps, ButtonType, IconButtonProps } from './interface'; | ||
export { IconButton }; | ||
|
||
export type { ButtonProps, IconButtonProps, ButtonType } from './interface'; | ||
export { Button, IconButton }; | ||
|
||
export default Button; | ||
export default WithSubComponent(Button, { IconButton }); |
Oops, something went wrong.
0762d21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gio-design – ./
gio-design-git-master-growingio.vercel.app
gio-design-growingio.vercel.app
gio-design.vercel.app