|
10 | 10 |
|
11 | 11 | ---
|
12 | 12 |
|
| 13 | +## 4.0 |
| 14 | + |
| 15 | +### 🔥🔥🔥 4.0 official version released 🔥🔥🔥 |
| 16 | + |
| 17 | +### Design specification adjustment |
| 18 | + |
| 19 | +- Basic rounded corner adjustment, changed from unified `2px` to four-level rounded corners, which are `2px` `4px` `6px` `8px` respectively, which are applied to different scenarios, for example, the rounded corners of the default size Button are adjusted to `6px`. |
| 20 | +- Main color adjustment, changed from `#1890ff` to `#1677ff`. |
| 21 | +- Overall shadow adjustment, from the original three-level shadow adjustment to two levels, which are used for resident page components (such as Card) and interactive feedback (such as Dropdown). |
| 22 | +- Adjust the internal spacing of some components. |
| 23 | +- Overall de-wireframing. |
| 24 | + |
| 25 | +### Add 5 new components |
| 26 | + |
| 27 | +- Segmented segment controller |
| 28 | +- WaterMark watermark |
| 29 | +- QrCode QR code |
| 30 | +- FloatButton floating button |
| 31 | +- Tour roaming guide |
| 32 | + |
| 33 | +### Technical adjustments |
| 34 | + |
| 35 | +- Deprecated less and adopted CSS-in-JS to better support dynamic themes. |
| 36 | + - All less files are removed, and less variables no longer support leaking. |
| 37 | + - css files are no longer included in the product. Since CSS-in-JS supports importing on demand, the original `ant-design-vue/dist/antd.css` has also been removed. If you need to reset some basic styles, please import `ant-design-vue/dist/reset .css`. |
| 38 | + - If you need to reset the style of the component and don't want to introduce `ant-design-vue/dist/reset.css` to pollute the global style, you can try to use [App component](/components/app), to solve the problem that native elements do not have ant-design-vue specification style. |
| 39 | +- Removed css variables and dynamic theme schemes built on top of it. |
| 40 | +- LocaleProvider has been deprecated in 3.x (use `<ConfigProvider locale />` instead), we have completely removed the related directories `ant-design-vue/es/locale-provider`, `ant- design-vue/lib/locale-provider`. |
| 41 | +- `babel-plugin-import` is no longer supported, CSS-in-JS itself has the ability to load on demand, no longer need plug-in support. |
| 42 | + |
| 43 | +#### Component API adjustments |
| 44 | + |
| 45 | +- The classname API of the component popup is unified to `popupClassName`, and similar APIs such as `dropdownClassName` will be replaced. |
| 46 | + |
| 47 | + - AutoComplete component |
| 48 | + - Cascader component |
| 49 | + - Select component |
| 50 | + - TreeSelect component |
| 51 | + - TimePicker component |
| 52 | + - DatePicker component |
| 53 | + - Mentions component |
| 54 | + |
| 55 | +- The controlled visibility API of the component popup is unified as `open`, and `visible` and other similar APIs will be replaced. |
| 56 | + - Drawer component `visible` becomes `open`. |
| 57 | + - Modal component `visible` becomes `open`. |
| 58 | + - Dropdown component `visible` becomes `open`. |
| 59 | + - Tooltip component `visible` becomes `open`. |
| 60 | + - Tag component `visible` has been removed. |
| 61 | + - Slider component `tooltip` related API converges to `tooltip` property. |
| 62 | + - Table component `filterDropdownVisible` changed to `filterDropdownOpen`. |
| 63 | +- `getPopupContainer`: All `getPopupContainer` needs to ensure that the returned div is unique. |
| 64 | +- Drawer `style` and `class` are migrated to the Drawer popup area, and the original attributes are replaced by `rootClassName` and `rootStyle`. |
| 65 | + |
| 66 | +#### Component refactoring and removal |
| 67 | + |
| 68 | +- Remove the `locale-provider` directory. `LocaleProvider` has been removed in v4, please use `ConfigProvider` instead. |
| 69 | + |
| 70 | +- Remove `xxxl` breakpoint attribute in grid layout. `xxxl` attribute has been removed in v4, you can use [theme customization](/docs/vue/customize-theme) to modify `screen[XS|SM|MD|LG|XL|XXL]` to modify the break Point value achieved. |
| 71 | + |
| 72 | +- The BackTop component was deprecated in `4.0.0` and moved to the FloatButton floating button. If needed, it can be imported from FloatButton. |
| 73 | + |
| 74 | +### [Upgrade Guide](/docs/vue/migration-v4) |
| 75 | + |
13 | 76 | ## 3.3.0-beta.3
|
14 | 77 |
|
15 | 78 | `2022-08-11`
|
|
0 commit comments