Skip to content
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

Clarify Docs on Applying Dark Theme Globally #6790

Open
wants to merge 6 commits into
base: docs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 2.41.0

`2025-01-05`

### Breaking Changes

- (**Vue 3.3+ required**) Add slot type for all components.
Expand Down Expand Up @@ -1947,7 +1949,7 @@
### Feats

- `n-divider` uses `n` as CSS vars prefix.
- `typography` uses `n` as CSS vars prefix.
- `n-typography` uses `n` as CSS vars prefix.
- `n-badge` uses `n` as CSS vars prefix.

## 2.22.0
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@
### Feats

- `n-divider` 的 CSS 变量使用 `n` 作为前缀
- `typography` 的 CSS 变量使用 `n` 作为前缀
- `n-typography` 的 CSS 变量使用 `n` 作为前缀
- `n-badge` 的 CSS 变量使用 `n` 作为前缀

## 2.22.0
Expand Down Expand Up @@ -2957,7 +2957,7 @@
### Fixes

- 修复 `n-date-picker` `n-provider` 传递 `date-locale` 属性无效,关闭 [#250](https://github.com/tusen-ai/naive-ui/issues/250)
- Fix `n-input` clear button placeholder prevent clicking on actual component [#288](https://github.com/tusen-ai/naive-ui/issues/288)
- 修复 `n-input` clear button placeholder prevent clicking on actual component [#288](https://github.com/tusen-ai/naive-ui/issues/288)
- 修复 `n-carousel` 点击当前页对应的控制按钮时,组件显示异常
- 修复 `n-menu` 折叠时 `render-label` 对于 tooltip 不生效
- 修复 `n-dropdown` 不能在选项中渲染 `n-popover`
Expand Down
1 change: 1 addition & 0 deletions demo/pages/docs/community/enUS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ If you want to contribute excellent resources, please contact 07akioni or amadeu
| [chatgpt-web](https://github.com/Chanzhaoyu/chatgpt-web) | ChatGPT demo web page built with Express and Vue3 |
| [pro-components-naive-ui](https://github.com/Zheng-Changfu/pro-components-naive-ui) | Based on Naive UI secondary encapsulation, more functions are extended on the original components |
| [vue3-dynamic-form](https://github.com/yayaluoya/vue3-dynamic-form) | A dynamic form designer based on Vue3, Naive UI, to implement a lot of basic controls, can be very convenient to customize the control. |
| [astral-3d-editor](https://github.com/mlt131220/Astral3DEditor) | 3D scene building tool based on Vue3 + Naive UI + ThreeJS + Vite5 + Typescript, supporting CAD & BIM analysis, including weather system, particle system, plug-in center... |
1 change: 1 addition & 0 deletions demo/pages/docs/community/zhCN/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ Naive UI 是统一设计规范的高质量 Vue 组件库,我们倾向于只提
| [chatgpt-web](https://github.com/Chanzhaoyu/chatgpt-web) | 使用 Express 和 Vue3 搭建的 ChatGPT 演示网页 |
| [pro-components-naive-ui](https://github.com/Zheng-Changfu/pro-components-naive-ui) | 基于 Naive UI 二次封装, 基于原有组件扩展了更多功能 |
| [vue3-dynamic-form](https://github.com/yayaluoya/vue3-dynamic-form) | 一个基于Vue3、Naive UI, 的动态表单设计器,实现了很多基础控件,能非常方便的自定义控件。 |
| [astral-3d-editor](https://github.com/mlt131220/Astral3DEditor) | 基于Vue3 + Naive UI + ThreeJS + Vite5 + Typescript的三维场景构建工具,支持CAD & BIM解析,内含天气系统、粒子系统、插件中心... |
3 changes: 3 additions & 0 deletions demo/pages/docs/customize-theme/enUS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ If `theme` is `undefined` it won't affect the theme of components inside.
})
</script>
```
You may need to include `<n-global-style />` if you want to apply the dark theme globally, not just to the components.

To learn more, see [n-global-style](../docs/customize-theme#Sync-style-of-the-body-element).

## Get theme vars

Expand Down
2 changes: 1 addition & 1 deletion src/carousel/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Carousel 轮播图
# 轮播图 Carousel

一般用来播放一些好消息。

Expand Down
2 changes: 1 addition & 1 deletion src/flex/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 弹性布局 Flex

自 `2.37.0` 提供该组件
自 `2.37.0` 开始提供

实话讲用起来和 `n-space` 差不多,但是能用 `n-flex` 就不要用 `n-space`。

Expand Down
2 changes: 1 addition & 1 deletion src/float-button/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

跟 `Back Top` 很像,多一份颜值,多一份互动。

`2.38.0` 版本开始提供该组件
`2.38.0` 开始提供

## 演示

Expand Down
2 changes: 1 addition & 1 deletion src/grid/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Grid 栅格
# 栅格 Grid

<!--single-column-->

Expand Down
2 changes: 1 addition & 1 deletion src/highlight/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

用过搜索引擎的都知道这个是做什么的。

`2.40.0` 版本开始提供该组件
`2.40.0` 开始提供

## 演示

Expand Down
2 changes: 1 addition & 1 deletion src/infinite-scroll/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

滚雪球,滚啊滚,内容越来越多,停不下来。

`2.38.2` 版本开始提供该组件
`2.38.2` 开始提供

## 演示

Expand Down
2 changes: 1 addition & 1 deletion src/qr-code/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

总是即将过期。

`2.36.0` 版本开始提供该组件
`2.36.0` 开始提供

## 演示

Expand Down
2 changes: 1 addition & 1 deletion src/split/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

灵活的布局工具,提供了用户自定义界面布局的可能性。

`2.36.0` 版本开始提供该组件
`2.36.0` 开始提供

## 演示

Expand Down
4 changes: 2 additions & 2 deletions src/virtual-list/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 虚拟列表
# 虚拟列表 Virtual List

当谈到虚拟列表时,能让你感觉列表像是无限长的,但实际上它只是在偷偷隐藏那些不可见的元素。

就像是个懒惰的程序员拿着一个空白纸条说:“你看不见我,我也不会加载自己!”

`2.36.0` 版本开始提供该组件
`2.36.0` 开始提供

## 演示

Expand Down