Skip to content

Commit 1affff5

Browse files
committed
Merge branch 'main' into docs
2 parents 2ebcfa8 + 604a999 commit 1affff5

File tree

246 files changed

+2743
-861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+2743
-861
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

CHANGELOG.en-US.md

Lines changed: 104 additions & 63 deletions
Large diffs are not rendered by default.

CHANGELOG.zh-CN.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# CHANGELOG
22

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+
343
## 2.43.2
444

545
`2025-11-16`
@@ -71,6 +111,7 @@
71111
- `useModal` 新增 `render` 函数,关闭 [#5857](https://github.com/tusen-ai/naive-ui/issues/5857)
72112
- `n-card` 新增 `close-focusable` 属性
73113
- `n-dialog` 新增 `close-focusable` 属性
114+
- `n-form-item` 增加 `invalidateLabelWidth` 方法,`n-form` 增加 `invalidateLabelWidths` 方法,关闭 [#5939](https://github.com/tusen-ai/naive-ui/issues/5939)
74115

75116
## 2.42.0
76117

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pnpm run lint:type
3030
# lint code & type
3131
pnpm run lint
3232

33-
# build site (if vercel preview failed, you might need to run `git clean -fdx` first)
33+
# build site (if site build failed, you might need to run `git clean -fdx` first)
3434
pnpm run build:site
3535
```
3636

CONTRIBUTING.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pnpm run lint:type
3030
# 上面俩个都检查
3131
pnpm run lint
3232

33-
# 构建文档网站(如果 vercel 的预览挂掉了,你可能需要先运行一下 `git clean -fdx`)
33+
# 构建文档网站(如果网站构建失败了,你可能需要先运行一下 `git clean -fdx`)
3434
pnpm run build:site
3535
```
3636

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- DingTalk Group 3 (Member limit reached) 32377370
3131
- DingTalk Group 4 (Member limit reached) 8165002788
3232
- DingTalk Group 5 (Member limit reached) 31205022250
33-
- DingTalk Group 6 62720001971
33+
- DingTalk Group 6 (Member limit reached) 62720001971
3434
- DingTalk Group 7 172000005810
3535

3636
- [Awesome Naive UI](https://github.com/naive-ui/awesome-naive)

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- 钉钉三群 32377370 (已满)
3131
- 钉钉四群 8165002788 (已满)
3232
- 钉钉五群 31205022250 (已满)
33-
- 钉钉六群 62720001971
33+
- 钉钉六群 62720001971 (已满)
3434
- 钉钉七群 172000005810
3535

3636
- [Awesome Naive UI](https://github.com/naive-ui/awesome-naive)

demo/pages/docs/community/enUS/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Naive UI is a high-quality Vue component library of unified design specifications. We prefer to provide only UI components with a unified specification and visual presentation. So we recommend the following great resources from the community that complement Naive UI.
66

7-
If you want to contribute excellent resources, please contact 07akioni or amadeus711 in the community of `Discord` or `DingTalk`.
7+
If you want to contribute excellent resources, you can create a pull request of this page in naive-ui's github repo.
88

99
| Resources | Descriptions |
1010
| --- | --- |

demo/pages/docs/community/zhCN/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Naive UI 是统一设计规范的高质量 Vue 组件库,我们倾向于只提供符合统一规范且带有视觉展现的 UI 组件。所以我们推荐以下社区已有的优秀资源,与 Naive UI 形成互补。
66

7-
想贡献优秀资源,请在 `钉钉``Discord` 的社区中联系 amadeus711 或 07akioni
7+
想贡献优秀资源,可直接在项目中 PR 此页面
88

99
| 资源 | 描述 |
1010
| --- | --- |

demo/pages/docs/introduction/enUS/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ What's more, ..., no more. Just enjoy it.
3535
## Community
3636

3737
- [Discord](https://discord.gg/Pqv7Mev5Dd)
38-
- DingTalk Group 1 (Member limit reached) 33482509
39-
- DingTalk Group 2 (Member limit reached) 35886835
40-
- DingTalk Group 3 (Member limit reached) 32377370
41-
- DingTalk Group 4 (Member limit reached) 8165002788
42-
- DingTalk Group 5 (Member limit reached) 31205022250
43-
- DingTalk Group 6 62720001971
44-
- DingTalk Group 7 172000005810
38+
- 钉钉一群 33482509 (已满)
39+
- 钉钉二群 35886835 (已满)
40+
- 钉钉三群 32377370 (已满)
41+
- 钉钉四群 8165002788 (已满)
42+
- 钉钉五群 31205022250 (已满)
43+
- 钉钉六群 62720001971 (已满)
44+
- 钉钉七群 172000005810
4545

4646
## Contributing
4747

0 commit comments

Comments
 (0)