Skip to content

Commit

Permalink
2.40.2
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Nov 25, 2024
1 parent 9c89587 commit d507910
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## NEXT_VERSION
## 2.40.2

`xxxx-xx-xx`

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## NEXT_VERSION
## 2.40.2

`xxxx-xx-xx`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "naive-ui",
"version": "2.40.1",
"version": "2.40.2",
"packageManager": "[email protected]",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"author": "07akioni",
Expand Down
4 changes: 2 additions & 2 deletions src/data-table/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export-csv.vue
| expanded-row-keys | `Array<string \| number>` | `undefined` | Expanded row keys. | |
| filter-icon-popover-props | `PopoverProps` | `{ trigger: click, placement: bottom }` | Filter icon's Popover attribute of the button, See [Popover props](popover#Popover-Props) | 2.39.0 |
| flex-height | `boolean` | `false` | Whether to make table body's height auto fit table area height. Make it enabled will make `table-layout` always set to `'fixed'`. | |
| get-csv-cell | `(value: any, row: object, col: DataTableBaseColumn) => string` | `undefined` | Get CSV's cell content. | NEXT_VERSION |
| get-csv-header | `(cols: Array<DataTableColumn>) => string` | `undefined` | Get CSV's header content. | NEXT_VERSION |
| get-csv-cell | `(value: any, row: object, col: DataTableBaseColumn) => string` | `undefined` | Get CSV's cell content. | 2.40.2 |
| get-csv-header | `(cols: Array<DataTableColumn>) => string` | `undefined` | Get CSV's header content. | 2.40.2 |
| header-height | `number` | `28` | Header height value when `virtual-scroll-header` is enabled. | 2.40.0 |
| height-for-row | `(rowData: object, index: number) => number` | `undefined` | Height configuration function for each row of the table. It must be used with `virtual-scroll-x`. If it's not configured, each rows height would be set to `min-row-height`. | 2.40.0 |
| indent | `number` | `16` | Indent of row content when using tree data. | |
Expand Down
4 changes: 2 additions & 2 deletions src/data-table/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ rtl-debug.vue
| expanded-row-keys | `Array<string \| number>` | `undefined` | 展开行的 key 值 | |
| filter-icon-popover-props | `PopoverProps` | `{ trigger: click, placement: bottom }` | 过滤按钮的 Popover 属性,属性参考 [Popover props](popover#Popover-Props) | 2.39.0 |
| flex-height | `boolean` | `false` | 是否让表格主体的高度自动适应整个表格区域的高度,打开这个选项会让 `table-layout` 始终为 `'fixed'` | |
| get-csv-cell | `(value: any, row: object, col: DataTableBaseColumn) => string` | `undefined` | 获取 CSV 的单元格数据 | NEXT_VERSION |
| get-csv-header | `(cols: Array<DataTableColumn>) => string` | `undefined` | 获取 CSV 的 header | NEXT_VERSION |
| get-csv-cell | `(value: any, row: object, col: DataTableBaseColumn) => string` | `undefined` | 获取 CSV 的单元格数据 | 2.40.2 |
| get-csv-header | `(cols: Array<DataTableColumn>) => string` | `undefined` | 获取 CSV 的 header | 2.40.2 |
| header-height | `number` | `28` | 在开启 `virtual-scroll-header` 属性的情况下,表头的高度 | 2.40.0 |
| height-for-row | `(rowData: object, index: number) => number` | `undefined` | 每行高度的配置函数,必须配合 `virtual-scroll-x` 使用,如果不进行配置,每一行的高度会被设为 `min-row-height` | 2.40.0 |
| indent | `number` | `16` | 使用树形数据时行内容的缩进 | |
Expand Down
12 changes: 6 additions & 6 deletions src/date-picker/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ panel.vue

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| calendar-day-format | `string` | `undefined` | Weekday format inside popup panel. | NEXT_VERSION |
| calendar-header-year-format | `string` | `undefined` | Year format inside the header of popup panel's calendar. | NEXT_VERSION |
| calendar-header-month-format | `string` | `undefined` | Month format inside the header of popup panel's calendar. | NEXT_VERSION |
| calendar-header-month-before-year | `string` | `undefined` | Whether to show month before year inside the header of popup panel's calender. | NEXT_VERSION |
| calendar-header-month-year-separator | `string` | `' '` | Separator between month and year inside the header of popup panel's calendar. | NEXT_VERSION |
| calendar-day-format | `string` | `undefined` | Weekday format inside popup panel. | 2.40.2 |
| calendar-header-year-format | `string` | `undefined` | Year format inside the header of popup panel's calendar. | 2.40.2 |
| calendar-header-month-format | `string` | `undefined` | Month format inside the header of popup panel's calendar. | 2.40.2 |
| calendar-header-month-before-year | `string` | `undefined` | Whether to show month before year inside the header of popup panel's calender. | 2.40.2 |
| calendar-header-month-year-separator | `string` | `' '` | Separator between month and year inside the header of popup panel's calendar. | 2.40.2 |
| clearable | `boolean` | `false` | Whether the date picker is clearable. | |
| date-format | `string` | `undefined` | Date input format inside popup panel. | NEXT_VERSION |
| date-format | `string` | `undefined` | Date input format inside popup panel. | 2.40.2 |
| default-value | `number \| [number, number] \| null` | `undefined` | Date picker's default value. | |
| default-formatted-value | `string \| [string, string] \| null` | `undefined` | Date picker's default formatted value. | 2.24.0 |
| disabled | `boolean` | `false` | Whether the date picker is disabled. | |
Expand Down
12 changes: 6 additions & 6 deletions src/date-picker/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ form-debug.vue

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| calendar-day-format | `string` | `undefined` | 选择面板内部星期几的格式 | NEXT_VERSION |
| calendar-header-year-format | `string` | `undefined` | 选择面板内部年的格式 | NEXT_VERSION |
| calendar-header-month-format | `string` | `undefined` | 选择面板内部月的格式 | NEXT_VERSION |
| calendar-header-month-before-year | `string` | `undefined` | 选择面板内部月是否显示在年的前面 | NEXT_VERSION |
| calendar-header-month-year-separator | `string` | `' '` | 选择面板内部年和月的分隔字符 | NEXT_VERSION |
| calendar-day-format | `string` | `undefined` | 选择面板内部星期几的格式 | 2.40.2 |
| calendar-header-year-format | `string` | `undefined` | 选择面板内部年的格式 | 2.40.2 |
| calendar-header-month-format | `string` | `undefined` | 选择面板内部月的格式 | 2.40.2 |
| calendar-header-month-before-year | `string` | `undefined` | 选择面板内部月是否显示在年的前面 | 2.40.2 |
| calendar-header-month-year-separator | `string` | `' '` | 选择面板内部年和月的分隔字符 | 2.40.2 |
| clearable | `boolean` | `false` | 是否支持清除 | |
| date-format | `string` | `undefined` | 选择面板内部日期输入框的日期格式 | NEXT_VERSION |
| date-format | `string` | `undefined` | 选择面板内部日期输入框的日期格式 | 2.40.2 |
| default-value | `number \| [number, number] \| null` | `undefined` | 默认被选中的日期的时间戳 | |
| default-formatted-value | `string \| [string, string] \| null` | `undefined` | Date Picker 格式化后的值 | |
| disabled | `boolean` | `false` | 是否禁用 | |
Expand Down
2 changes: 1 addition & 1 deletion src/image/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ previewed-img-props.vue
| Name | Parameters | Description | Version |
| --- | --- | --- | --- |
| placeholder | `()` | Placeholder shown when image is not loaded. | 2.30.5 |
| error | `()` | The content when the image fails to load. | NEXT_VERSION |
| error | `()` | The content when the image fails to load. | 2.40.2 |

### ImageGroup Slots

Expand Down
8 changes: 4 additions & 4 deletions src/image/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ previewed-img-props.vue

### Image Slots

| 名称 | 参数 | 说明 | 版本 |
| ----------- | ---- | -------------------------- | ------------ |
| placeholder | `()` | 图像没有加载成功时候的占位 | 2.30.5 |
| error | `()` | 图像加载失败时候的占位 | NEXT_VERSION |
| 名称 | 参数 | 说明 | 版本 |
| ----------- | ---- | -------------------------- | ------ |
| placeholder | `()` | 图像没有加载成功时候的占位 | 2.30.5 |
| error | `()` | 图像加载失败时候的占位 | 2.40.2 |

### ImageGroup Slots

Expand Down
12 changes: 6 additions & 6 deletions src/marquee/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A trivia: There's a deprecated HTML Element called `marquee`.

Available since `NEXT_VERSION`.
Available since `2.40.2`.

## Demos

Expand All @@ -18,11 +18,11 @@ auto-fill.vue

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| auto-fill | `boolean` | `false` | Whether to fill the blank of the container using its content repeatly. | NEXT_VERSION |
| speed | `number` | `48` | The speed calculated as pixels/second. | NEXT_VERSION |
| auto-fill | `boolean` | `false` | Whether to fill the blank of the container using its content repeatly. | 2.40.2 |
| speed | `number` | `48` | The speed calculated as pixels/second. | 2.40.2 |

### Marquee Slots

| Name | Parameters | Description | Version |
| ------- | ---------- | ----------- | ------------ |
| default | `()` | Content. | NEXT_VERSION |
| Name | Parameters | Description | Version |
| ------- | ---------- | ----------- | ------- |
| default | `()` | Content. | 2.40.2 |
16 changes: 8 additions & 8 deletions src/marquee/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

我有一个高中同学,当时他的口头禅是:“滚滚滚。”

`NEXT_VERSION` 开始提供。
`2.40.2` 开始提供。

## 演示

Expand All @@ -16,13 +16,13 @@ auto-fill.vue

### Marquee Props

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| auto-fill | `boolean` | `false` | 是否重复的用内容铺满容器的空白 | NEXT_VERSION |
| speed | `number` | `48` | 移动的速度,单位是像素每秒 | NEXT_VERSION |
| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --------- | --------- | ------- | ------------------------------ | ------ |
| auto-fill | `boolean` | `false` | 是否重复的用内容铺满容器的空白 | 2.40.2 |
| speed | `number` | `48` | 移动的速度,单位是像素每秒 | 2.40.2 |

### Marquee Slots

| 名称 | 参数 | 说明 | 版本 |
| ------- | ---- | ---- | ------------ |
| default | `()` | 内容 | NEXT_VERSION |
| 名称 | 参数 | 说明 | 版本 |
| ------- | ---- | ---- | ------ |
| default | `()` | 内容 | 2.40.2 |
2 changes: 1 addition & 1 deletion src/progress/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ gradient.vue
| --- | --- | --- | --- | --- |
| border-radius | `number \| string` | `undefined` | `'line'` typed progress's border-radius. Keep half of default height if not passed. | |
| circle-gap | `number` | `1` | The gap between circles when type is `'multiple-circle'`, suppose `viewbox` size is `100`. | |
| color | `string \| string[] \| { stops: string[] } \| Array<{ stops: string[] }>` | `undefined` | Progress color. `{ stops: string[] }` indicates a gradient color. `stops` array must have length of 2. The first element is gradient start color. The second element is gradient end color. | `stops` since NEXT_VERSION |
| color | `string \| string[] \| { stops: string[] } \| Array<{ stops: string[] }>` | `undefined` | Progress color. `{ stops: string[] }` indicates a gradient color. `stops` array must have length of 2. The first element is gradient start color. The second element is gradient end color. | `stops` since 2.40.2 |
| fill-border-radius | `number \| string` | `undefined` | `'line'` typed progress's fill's border-radius. Keep `border-radius` if not passed. | |
| gap-degree | `number` | `75` | The gap degree of half circle, 0 ~ 360. | 2.25.2 |
| gap-offset-degree | `number` | `0` | The gap offset degree. | 2.25.2 |
Expand Down
2 changes: 1 addition & 1 deletion src/progress/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ gradient.vue
| --- | --- | --- | --- | --- |
| border-radius | `number \| string` | `undefined` | `'line'` 类型进度条的圆角半径,不填写则维持高度的一半 | |
| circle-gap | `number` | `1` | 当类型是 `'multiple-circle'` 的时候圈之间的距离,假设 `viewbox` 的尺寸是 `100` | |
| color | `string \| string[] \| { stops: string[] } \| Array<{ stops: string[] }>` | `undefined` | 进度条颜色,`{ stops: string[] }` 表示渐变色,`stops` 数组长度必须为 2,第一个元素为渐变的起始颜色,第二个元素为渐变的终止颜色 | NEXT_VERSION 开始支持 `stops` |
| color | `string \| string[] \| { stops: string[] } \| Array<{ stops: string[] }>` | `undefined` | 进度条颜色,`{ stops: string[] }` 表示渐变色,`stops` 数组长度必须为 2,第一个元素为渐变的起始颜色,第二个元素为渐变的终止颜色 | 2.40.2 开始支持 `stops` |
| fill-border-radius | `number \| string` | `undefined` | `'line'` 类型进度条填充的圆角半径,不填写则维持 `border-radius` | |
| gap-degree | `number` | `75` | 仪表盘进度条缺口角度,取值范围 0 ~ 360 | 2.25.2 |
| gap-offset-degree | `number` | `0` | 仪表盘进度条缺口位置 | 2.25.2 |
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '2.40.1'
export default '2.40.2'

0 comments on commit d507910

Please sign in to comment.