-
Notifications
You must be signed in to change notification settings - Fork 31
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
refactor: modify nonstandard component's name #1910
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/growingio/gio-design/4DygKtWbxAckTHVoqhWAqbMA5eEp |
cd2f6ec
to
fb1264e
Compare
fb1264e
to
32d2341
Compare
32d2341
to
5b83202
Compare
5b83202
to
af7e45e
Compare
af7e45e
to
15cd80f
Compare
15cd80f
to
9c7f7c3
Compare
9c7f7c3
to
3b060e6
Compare
3b060e6
to
4dfecf0
Compare
4dfecf0
to
38d6da1
Compare
38d6da1
to
d5269a7
Compare
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
d5269a7
to
8f8d21e
Compare
Kudos, SonarCloud Quality Gate passed! |
# [23.0.0](v22.15.2...v23.0.0) (2022-04-20) ### Bug Fixes * **filter-picker:** 修复列表型操作符为等于的问题 ([#1970](#1970)) ([bff1ca3](bff1ca3)) ### Code Refactoring * **legacy:** delete components in the legacy folder ([#1828](#1828)) ([44c18c9](44c18c9)) * refactor: modify nonstandard component's name ([#1910](#1910)) ([0762d21](0762d21)) ### BREAKING CHANGES * #### 取消从 `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> * **legacy:** 删除所有 src/legacy 文件夹下的组件(除了 FilterPicker 之外) Co-authored-by: maxin <maxin@growingio.com>
🎉 This PR is included in version 23.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE:
取消从
src/index.ts
文件导出的子组件import { AvatarGroup } from '@gio-design/components';
的用法需要更换为import { Avatar } from '@gio-design/components'; const { Group: AvatarGroup } = Avatar;
src/popconfig 文件夹更名为 src/pop-confirm
如果有引入了该文件夹下的模块,请更改为
import { PopConfirmProps } from '@gio-design/components/es/pop-confirm'
Toggles 组件更名为 Toggle
SwitchGroupProps 类型更名为 SwitchProps
一些组件的 props 更名
Collapse:
Popover:
CascaderOptions:
childrens
->items
(传给 Cascader 的 options 数组中,之前的childrens
字段更换为了items
)一些组件的 interface 文件更名
Cascader & List & ListPicker