|
1 | 1 | # CHANGELOG |
2 | 2 |
|
| 3 | +## 2.44.0 |
| 4 | + |
| 5 | +`2026-03-08` |
| 6 | + |
| 7 | +### Breaking Changes |
| 8 | + |
| 9 | +- `n-color-picker` 重构 DOM 结构和 trigger 相关的类名 |
| 10 | +- `n-card` 中 `n-card__content` 类名改为 `n-card-content` |
| 11 | +- `n-select` 点击清空按钮时默认会删除通过 `tag` 属性创建的选项 |
| 12 | + |
| 13 | +### Feats |
| 14 | + |
| 15 | +- `n-color-picker` 新增 `trigger` slot,关闭 [#7192](https://github.com/tusen-ai/naive-ui/issues/7192) |
| 16 | +- `n-select` 新增 `clear-created-options-on-clear` 属性,用于在开启 `tag` 且可清空时控制点击清空是否同时清空通过 tag 创建的选项 |
| 17 | +- `n-select` `n-auto-complete` `n-mention` `n-popselect` `n-cascader` `n-pagination` 新增 `scrollbar-props` 属性 |
| 18 | +- `n-config-provider` 新增组件级 `renderEmpty` 配置(`Cascader`、`DataTable`、`Select`、`Transfer`、`Tree`、`TreeSelect`) |
| 19 | +- `n-config-provider` 在 `component-options` 中新增按组件配置 `size`(`Button`、`Card`、`Checkbox`、`DataTable`、`Descriptions`、`Dropdown`、`DynamicTags`、`Form`、`Input`、`Pagination`、`Popselect`、`Radio`、`Rate`、`Result`、`Skeleton`、`Space`、`Switch`、`Table`、`Tabs`、`Tag`),关闭 [#356](https://github.com/tusen-ai/naive-ui/issues/356) |
| 20 | +- `n-upload` 的 `submit` 方法新增 `retry` 属性。 |
| 21 | +- `n-breadcrumb-item` 新增 `show-separator` 属性,用于配合 `transition-group` 使用时手动控制分隔符显隐,关闭 [#3614](https://github.com/tusen-ai/naive-ui/issues/3614) |
| 22 | +- `n-card` 新增 `content-scrollable` 属性,关闭 [#4848](https://github.com/tusen-ai/naive-ui/issues/4848)、[#6759](https://github.com/tusen-ai/naive-ui/pull/6759) |
| 23 | +- `n-date-picker` 新增 `fast-year-select` 参数 |
| 24 | +- `n-date-picker` 新增 `fast-month-select` 参数 |
| 25 | +- `n-button` 增加 `spin-props` 属性 |
| 26 | +- `n-cascader` 增加 `spin-props` 属性 |
| 27 | +- `n-log` 增加 `spin-props` 属性 |
| 28 | +- `n-message` 增加 `spin-props` 属性 |
| 29 | +- `n-switch` 增加 `spin-props` 属性 |
| 30 | +- `n-tree` 增加 `spin-props` 属性 |
| 31 | +- `n-spin` 增加 `radius` 和 `scale` 属性 |
| 32 | +- `n-tree-select` 增加 `show-line` 属性 |
| 33 | + |
| 34 | +### Fixes |
| 35 | + |
| 36 | +- 修复 `katex` 类型兼容问题,升级到 `0.16.28` 并移除 `@types/katex` 依赖,关闭 [#7423](https://github.com/tusen-ai/naive-ui/issues/7423) |
| 37 | +- 修复 `n-select` 清除动态创建的选项时,同时启用 `tag` 和 `clearable` 属性时清除不生效的问题,关闭 [#7405](https://github.com/tusen-ai/naive-ui/issues/7405) |
| 38 | +- 修复 `n-modal` 监听事件未移除,关闭 [#7341](https://github.com/tusen-ai/naive-ui/issues/7341) |
| 39 | +- 修复 `n-marquee` 组件 Non-function value encountered for default slot 警告 |
| 40 | +- 修复 `n-data-table` 的 empty 状态在 `display: flex` 的容器中不展示 |
| 41 | +- 修复 `n-data-table` 的在 empty 状态下,配合 `max-height` 或者 `flex-height`,header 部分没有滚动条,关闭 [#7479](https://github.com/tusen-ai/naive-ui/pull/7479) |
| 42 | + |
3 | 43 | ## 2.43.2 |
4 | 44 |
|
5 | 45 | `2025-11-16` |
|
71 | 111 | - `useModal` 新增 `render` 函数,关闭 [#5857](https://github.com/tusen-ai/naive-ui/issues/5857) |
72 | 112 | - `n-card` 新增 `close-focusable` 属性 |
73 | 113 | - `n-dialog` 新增 `close-focusable` 属性 |
| 114 | +- `n-form-item` 增加 `invalidateLabelWidth` 方法,`n-form` 增加 `invalidateLabelWidths` 方法,关闭 [#5939](https://github.com/tusen-ai/naive-ui/issues/5939) |
74 | 115 |
|
75 | 116 | ## 2.42.0 |
76 | 117 |
|
|
0 commit comments