Skip to content

Commit

Permalink
docs: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Sep 25, 2024
1 parent 37b5141 commit ce28e71
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@

### Features

- 🌟 `n-data-table` adds `virtual-scroll-x`, `virtual-scroll-header`, `height-for-row`, `header-height` and `min-row-height` props for supporting horizontal virtual scrolling when there are massive columns.
- 🌟 Adds `n-highlight` component.
- `n-scrollbar` adds `x-placement` and `y-placement` props, closes [#6089](https://github.com/tusen-ai/naive-ui/issues/6089).
- `n-date-picker` adds `clear`, `now` and `confirm` slots, closes [#6013](https://github.com/tusen-ai/naive-ui/issues/6013).
- `n-upload` adds `on-retry` prop, closes [#6031](https://github.com/tusen-ai/naive-ui/issues/6031).
- Adds `n-highlight` component.
- `n-slider`'s `marks` prop supports render function, closes [#5967](https://github.com/tusen-ai/naive-ui/issues/5967).
- `n-transfer`'s `source-title` and `target-title` props support render function, closes [#6004](https://github.com/tusen-ai/naive-ui/issues/6004).
- `n-data-table` add `rowData` params for `render-expand-icon` prop, closes [#6108](https://github.com/tusen-ai/naive-ui/issues/6108).
Expand All @@ -40,7 +41,6 @@
- `n-data-table` adds `allowExport` prop for column object.
- `n-date-picker` adds `year-range` prop.
- `n-tree-select` adds `header` slot, closes [#5915](https://github.com/tusen-ai/naive-ui/issues/5915).
- `n-data-table` adds `virtual-scroll-x`, `virtual-scroll-header`, `height-for-row`, `header-height` and `min-row-height` props for supporting horizontal virtual scrolling when there are massive columns.
- `n-select` adds `menu-size` prop.

## 2.39.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 @@ -28,10 +28,11 @@

### Features

- 🌟 `n-data-table` 新增 `virtual-scroll-x``virtual-scroll-header``height-for-row``header-height``min-row-height` 属性,用于支持大量列数据的虚拟滚动
- 🌟 新增 `n-highlight` 组件
- `n-scrollbar` 新增 `x-placement``y-placement` 属性,关闭 [#6089](https://github.com/tusen-ai/naive-ui/issues/6089)
- `n-date-picker` 新增 `clear``now``confirm` 插槽,关闭 [#6013](https://github.com/tusen-ai/naive-ui/issues/6013)
- `n-upload` 新增 `on-retry`属性,关闭 [#6031](https://github.com/tusen-ai/naive-ui/issues/6031)
- 新增 `n-highlight` 组件
- `n-slider``marks` 属性支持渲染函数,关闭 [#5967](https://github.com/tusen-ai/naive-ui/issues/5967)
- `n-transfer``source-title``target-title` 属性支持渲染函数,关闭 [#6004](https://github.com/tusen-ai/naive-ui/issues/6004)
- `n-data-table``render-expand-icon` 属性新增 `rowData` 参数,关闭 [#6108](https://github.com/tusen-ai/naive-ui/issues/6108)
Expand All @@ -40,7 +41,6 @@
- `n-data-table` 在列的配置中新增 `allowExport` 属性
- `n-date-picker` 新增 `year-range` 属性
- `n-tree-select` 新增 `header` 插槽,关闭 [#5915](https://github.com/tusen-ai/naive-ui/issues/5915)
- `n-data-table` 新增 `virtual-scroll-x``virtual-scroll-header``height-for-row``header-height``min-row-height` 属性,用于支持大量列数据的虚拟滚动
- `n-select` 新增 `menu-size` 属性

## 2.39.0
Expand Down
6 changes: 4 additions & 2 deletions src/data-table/demos/enUS/custom-filter-menu.demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import { PawOutline, SearchOutline } from '@vicons/ionicons5'
const data = [
{
Left: '1',
Right: '1'
Right: '1',
key: 1
},
{
Left: '2',
Right: '2'
Right: '2',
key: 2
}
]
Expand Down
2 changes: 0 additions & 2 deletions src/data-table/demos/enUS/simple-editable.demo.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<markdown>
# Simple Editable Table

Simple, but practical.
</markdown>

<script lang="ts">
Expand Down
2 changes: 0 additions & 2 deletions src/data-table/demos/enUS/switchable-editable.demo.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Switchable Editable Table

Not too simple, but good-looking.

```html
<n-data-table
:key="(row) => row.key"
Expand Down
6 changes: 4 additions & 2 deletions src/data-table/demos/zhCN/custom-filter-menu.demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import { PawOutline, SearchOutline } from '@vicons/ionicons5'
const data = [
{
Left: '1',
Right: '1'
Right: '1',
key: 1
},
{
Left: '2',
Right: '2'
Right: '2',
key: 2
}
]
Expand Down
2 changes: 0 additions & 2 deletions src/data-table/demos/zhCN/simple-editable.demo.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<markdown>
# 简单的可编辑表格

虽然简单,但是实用
</markdown>

<script lang="ts">
Expand Down
2 changes: 0 additions & 2 deletions src/data-table/demos/zhCN/switchable-editable.demo.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# 可切换的可编辑表格

不太简单,胜在好看

```html
<n-data-table
:key="(row) => row.key"
Expand Down

0 comments on commit ce28e71

Please sign in to comment.