Skip to content

Commit

Permalink
2.37.0
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Jan 7, 2024
1 parent 55d6d23 commit 63af901
Show file tree
Hide file tree
Showing 36 changed files with 99 additions and 99 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.37.0

### Breaking Changes

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.37.0

### Breaking Changes

Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ pnpm run build:site
- Don't use Chinese punctuation in English docs.
- Don't write changelogs in a released version.
- When rebase the branch, pay attention to whether it is placed in the released version.
- Add NEXT_VERSION to the version of the API table.
- Add 2.37.0 to the version of the API table.

For Example:

```
English API table:
| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| example | `any` | `undefined` | Need period. | NEXT_VERSION |
| example | `any` | `undefined` | Need period. | 2.37.0 |
Chinese API table:
| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| example | `any` | `undefined` | 描述不要加句号 | NEXT_VERSION |
| example | `any` | `undefined` | 描述不要加句号 | 2.37.0 |
English Changelog:
- Some changes, period needed.
Expand All @@ -70,7 +70,7 @@ Changelog position:
# CHANGELOG
## NEXT_VERSION
## 2.37.0
### Feats
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ pnpm run build:site
- 不要在英文文档中使用中文标点
- 不要写在已经发布的版本中
- rebase 分支时注意是否放到已发布的版本中
- 添加 NEXT_VERSION 到 API 表格的版本上
- 添加 2.37.0 到 API 表格的版本上

例如:

```
英文 API 表格:
| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| example | `any` | `undefined` | Need period. | NEXT_VERSION |
| example | `any` | `undefined` | Need period. | 2.37.0 |
中文 API 表格:
| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| example | `any` | `undefined` | 描述不要加句号 | NEXT_VERSION |
| example | `any` | `undefined` | 描述不要加句号 | 2.37.0 |
English Changelog:
- Some changes, period needed.
Expand All @@ -70,7 +70,7 @@ Changelog 位置:
# CHANGELOG
## NEXT_VERSION
## 2.37.0
### Feats
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.36.0",
"version": "2.37.0",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"main": "lib/index.js",
"module": "es/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/avatar/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ v-show-debug.vue

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| expand-on-hover | `boolean` | `false` | Expand on hover. | NEXT_VERSION |
| expand-on-hover | `boolean` | `false` | Expand on hover. | 2.37.0 |
| max | `number` | `undefined` | Max avatar count in the group. | |
| max-style | `Object \| string` | `undefined` | The style of the overflow placeholder. | |
| options | `Array<AvatarOption>` | `[]` | Avatar group options. | |
Expand Down
2 changes: 1 addition & 1 deletion src/avatar/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ rtl-debug.vue

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| expand-on-hover | `boolean` | `false` | 悬停时展开 | NEXT_VERSION |
| expand-on-hover | `boolean` | `false` | 悬停时展开 | 2.37.0 |
| max | `number` | `undefined` | 组内头像显示的最大个数 | |
| max-style | `Object \| string` | `undefined` | 溢出标识的样式 | |
| options | `Array<AvatarOption>` | `[]` | 头像组的选项 | |
Expand Down
2 changes: 1 addition & 1 deletion src/cascader/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ status.vue
| default-value | `string \| number \| Array<number \| string> \| null` | `null` | Data selected by default if no value is set. | |
| disabled | `boolean` | `false` | Whether to disable the cascader. | |
| disabled-field | `string` | `'disabled'` | The disabled field in `CascaderOption`. | 2.32.2 |
| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | `popover` props of the preview ellipsis tag. | NEXT_VERSION |
| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | `popover` props of the preview ellipsis tag. | 2.37.0 |
| expand-trigger | `'click' \| 'hover'` | `'click'` | If `remote` is set, `'hover'` won't work. | |
| filterable | `boolean` | `false` | Note: If `remote` is set, this won't have any effect. | |
| filter | `(pattern: string, option: CascaderOption, path: CascaderOption[]) => boolean` | A string based filter algorithm. | Filter function of the cascader. | |
Expand Down
2 changes: 1 addition & 1 deletion src/cascader/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ default-value-debug.vue
| default-value | `string \| number \| Array<number \| string> \| null` | `null` | 级联菜单默认选中的数据 | |
| disabled | `boolean` | `false` | 是否禁用 | |
| disabled-field | `string` | `'disabled'` | 替代 `CascaderOption` 中的 disabled 字段名 | 2.32.2 |
| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | 选中选项过多省略显示时,预览弹出 `popover` 的属性 | NEXT_VERSION |
| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | 选中选项过多省略显示时,预览弹出 `popover` 的属性 | 2.37.0 |
| expand-trigger | `'click' \| 'hover'` | `'click'` |`remote` 被设定时 `'hover'` 不生效 | |
| filterable | `boolean` | `false` | `remote` 被设定时不生效 | |
| filter | `(pattern: string, option: CascaderOption, path: CascaderOption[]) => boolean` | 一个基于字符串的过滤算法 | 过滤选项的函数 | |
Expand Down
2 changes: 1 addition & 1 deletion src/data-table/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ These methods can help you control table in an uncontrolled manner. However, it'
| --- | --- | --- | --- |
| clearFilters | `() => void` | Clear all filter state. | |
| clearSorter | `() => void` | Clear all sort state. | |
| downloadCsv | `(options?: { fileName?: string, keepOriginalData?: boolean }) => void` | Download CSV. | NEXT_VERSION |
| downloadCsv | `(options?: { fileName?: string, keepOriginalData?: boolean }) => void` | Download CSV. | 2.37.0 |
| filters | `(filters: DataTableFilterState \| null) => void` | Set the active filters of the table. | |
| page | `(page: number) => void` | Manually set the page. | |
| scrollTo | `(options: { left?: number, top?: number, behavior?: ScrollBehavior }): void & (x: number, y: number) => void` | Scroll content. | 2.30.4 |
Expand Down
2 changes: 1 addition & 1 deletion src/data-table/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ type DataTableCreateSummary = (pageData: RowData[]) =>
| --- | --- | --- | --- |
| clearFilters | `() => void` | 清空所有的 filter 状态 | |
| clearSorter | `() => void` | 清空所有的 sort 状态 | |
| downloadCsv | `(options?: { fileName?: string, keepOriginalData?: boolean }) => void` | 下载 CSV | NEXT_VERSION |
| downloadCsv | `(options?: { fileName?: string, keepOriginalData?: boolean }) => void` | 下载 CSV | 2.37.0 |
| filters | `(filters: DataTableFilterState \| null) => void` | 设定表格当前的过滤器 | |
| page | `(page: number) => void` | 手动设置 page | |
| scrollTo | `(options: { left?: number, top?: number, behavior?: ScrollBehavior }): void & (x: number, y: number) => void` | 滚动内容 | 2.30.4 |
Expand Down
14 changes: 7 additions & 7 deletions src/date-picker/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ panel.vue
| disabled | `boolean` | `false` | Whether the date picker is disabled. | |
| first-day-of-week | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6` | `undefined` | The first day of a week on calendar, 0 means Monday. | |
| input-readonly | `boolean` | `false` | Set the `readonly` attribute of the input (avoids virtual keyboard on touch devices). | |
| month-format | `string` | `'M'` | Format of month item in the panel. See [format](https://date-fns.org/v2.23.0/docs/format). | NEXT_VERSION |
| month-format | `string` | `'M'` | Format of month item in the panel. See [format](https://date-fns.org/v2.23.0/docs/format). | 2.37.0 |
| panel | `boolean` | `false` | Whether to use date-picker as panel. | 2.29.1 |
| placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end'` | `'bottom-start'` | Panel's placement. | 2.25.0 |
| quarter-format | `string` | `'Q'Q` | Format of quarter item in the panel. See [format](https://date-fns.org/v2.23.0/docs/format). | NEXT_VERSION |
| quarter-format | `string` | `'Q'Q` | Format of quarter item in the panel. See [format](https://date-fns.org/v2.23.0/docs/format). | 2.37.0 |
| shortcuts | `Record<string, number \| (() => number)> \| Record<string, [number, number] \| (() => [number, number])>` | `undefined` | Shortcut button customizations. | |
| show | `boolean` | `undefined` | Whether to show panel. | 2.28.3 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Date picker size. | |
Expand All @@ -57,15 +57,15 @@ panel.vue
| type | `'date' \| 'datetime' \| 'daterange' \| 'datetimerange' \| 'month' \| 'monthrange' \| 'year' \| 'quarter' \| 'week'` | `'date'` | Date picker type. | `'quarter'` v2.22.0, `'monthrange'` 2.28.3 |
| value | `number \| [number, number] \| null` | `undefined` | Value of the date picker when being manually set. | |
| value-format | `string` | Follow `format` prop | Format of the binding value. See [format](https://date-fns.org/v2.23.0/docs/format). | 2.24.0 |
| year-format | `string` | `'y'` | Format of year item in the panel. See [format](https://date-fns.org/v2.23.0/docs/format). | NEXT_VERSION |
| year-format | `string` | `'y'` | Format of year item in the panel. See [format](https://date-fns.org/v2.23.0/docs/format). | 2.37.0 |
| on-clear | `() => void` | `undefined` | On clear callback. | 2.28.3 |
| on-confirm | `(value: number \| [number, number] \| null, formattedValue: string \| [string, string] \| null) => void` | `undefined` | On confirm callback. | 2.28.3 |
| on-blur | `() => void` | `undefined` | On blur callback. | |
| on-focus | `() => void` | `undefined` | On focus callback. | |
| on-next-month | `() => void` | `undefined` | Callback when click next month button. | NEXT_VERSION |
| on-next-year | `() => void` | `undefined` | Callback when click next year button. | NEXT_VERSION |
| on-prev-month | `() => void` | `undefined` | Callback when click previous month button. | NEXT_VERSION |
| on-prev-year | `() => void` | `undefined` | Callback when click previous year button. | NEXT_VERSION |
| on-next-month | `() => void` | `undefined` | Callback when click next month button. | 2.37.0 |
| on-next-year | `() => void` | `undefined` | Callback when click next year button. | 2.37.0 |
| on-prev-month | `() => void` | `undefined` | Callback when click previous month button. | 2.37.0 |
| on-prev-year | `() => void` | `undefined` | Callback when click previous year button. | 2.37.0 |
| on-update:show | `(show: boolean) => void` | `undefined` | Callback when panel shows & hides. | 2.28.3 |

### Date Type Props
Expand Down
14 changes: 7 additions & 7 deletions src/date-picker/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ form-debug.vue
| first-day-of-week | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6` | `undefined` | 日历上一周的开始,0 代表周一 | |
| formatted-value | `string \| [string, string] \| null` | `undefined` | 格式化之后的值 | 2.24.0 |
| input-readonly | `boolean` | `false` | 设置输入框为只读(避免在移动设备上打开虚拟键盘) | |
| month-format | `string` | `'M'` | 设置面板中月份的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | NEXT_VERSION |
| month-format | `string` | `'M'` | 设置面板中月份的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | 2.37.0 |
| panel | `boolean` | `false` | 是否只使用面板 | 2.29.1 |
| placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end'` | `'bottom-start'` | 面板的弹出位置 | 2.25.0 |
| quarter-format | `string` | `'Q'Q` | 设置面板中季度的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | NEXT_VERSION |
| quarter-format | `string` | `'Q'Q` | 设置面板中季度的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | 2.37.0 |
| shortcuts | `Record<string, number \| (() => number)> \| Record<string, [number, number] \| (() => [number, number])>` | `undefined` | 自定义快捷按钮 | |
| show | `boolean` | `undefined` | 是否展示面板 | 2.28.3 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 尺寸 | |
Expand All @@ -58,15 +58,15 @@ form-debug.vue
| type | `'date' \| 'datetime' \| 'daterange' \| 'datetimerange' \| 'month' \| 'monthrange' \| 'year' \| 'quarter' \| 'week'` | `'date'` | Date Picker 的类型 | `'quarter'` v2.22.0, `'monthrange'` 2.28.3 |
| value | `number \| [number, number] \| null` | `undefined` | Date Picker 的值 | |
| value-format | `string` | 跟随 `format` 属性 | 绑定值的格式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) |
| year-format | `string` | `'y'` | 设置面板中年的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | NEXT_VERSION |
| year-format | `string` | `'y'` | 设置面板中年的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | 2.37.0 |
| on-clear | `() => void` | `undefined` | 用户 clear 时执行的回调 | 2.28.3 |
| on-confirm | `(value: number \| [number, number] \| null, formattedValue: string \| [string, string] \| null) => void` | `undefined` | 用户 confirm 时执行的回调 | 2.28.3 |
| on-blur | `() => void` | `undefined` | 用户 blur 时执行的回调 | |
| on-focus | `() => void` | `undefined` | 用户 focus 时执行的回调 | |
| on-next-month | `() => void` | `undefined` | 点击下一个月时的回调 | NEXT_VERSION |
| on-prev-month | `() => void` | `undefined` | 点击上一个月时的回调 | NEXT_VERSION |
| on-next-year | `() => void` | `undefined` | 点击下一年时的回调 | NEXT_VERSION |
| on-prev-year | `() => void` | `undefined` | 点击上一年时的回调 | NEXT_VERSION |
| on-next-month | `() => void` | `undefined` | 点击下一个月时的回调 | 2.37.0 |
| on-prev-month | `() => void` | `undefined` | 点击上一个月时的回调 | 2.37.0 |
| on-next-year | `() => void` | `undefined` | 点击下一年时的回调 | 2.37.0 |
| on-prev-year | `() => void` | `undefined` | 点击上一年时的回调 | 2.37.0 |
| on-update:show | `(show: boolean) => void` | `undefined` | 面板打开、关闭时的回调 | 2.28.3 |

### Date 类型的 Props
Expand Down
10 changes: 5 additions & 5 deletions src/drawer/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resizable.vue
| auto-focus | `boolean` | `true` | Whether to focus the first focusable element inside drawer. | 2.24.2 |
| block-scroll | `boolean` | `true` | Whether to disabled body scrolling when it's active. | 2.28.3 |
| close-on-esc | `boolean` | `true` | Whether to close drawer on Esc is pressed. | 2.24.2 |
| content-class | `string` | `undefined` | Class of drawer's scrollable content node. | NEXT_VERSION |
| content-class | `string` | `undefined` | Class of drawer's scrollable content node. | 2.37.0 |
| content-style | `string \| Object` | `undefined` | Style of drawer's scrollable content node. | |
| default-width | `number \| string` | `251` | Default width of the drawer, works when placement is `left` and `right`. | 2.31.0 |
| default-height | `number \| string` | `251` | Default height of the drawer, works when placement is `top` and `bottom`. | 2.31.0 |
Expand Down Expand Up @@ -60,14 +60,14 @@ resizable.vue

| Name | Parameters | Default | Description | Version |
| --- | --- | --- | --- | --- |
| body-class | `string` | `undefined` | Drawer content's body class. | NEXT_VERSION |
| body-class | `string` | `undefined` | Drawer content's body class. | 2.37.0 |
| body-style | `string \| Object` | `undefined` | Drawer content's body style. | |
| body-content-class | `string` | `undefined` | Class of body's scrollable content node. | |
| body-content-style | `string \| Object` | `undefined` | Style of body's scrollable content node. | NEXT_VERSION |
| body-content-style | `string \| Object` | `undefined` | Style of body's scrollable content node. | 2.37.0 |
| closable | `boolean` | `false` | Whether the drawer content is closable. | |
| footer-class | `string` | `undefined` | Drawer content's footer class. | NEXT_VERSION |
| footer-class | `string` | `undefined` | Drawer content's footer class. | 2.37.0 |
| footer-style | `string \| Object` | `undefined` | Drawer content's footer style. | |
| header-class | `string` | `undefined` | Drawer content's header class. | NEXT_VERSION |
| header-class | `string` | `undefined` | Drawer content's header class. | 2.37.0 |
| header-style | `string \| Object` | `undefined` | Drawer content's header style. | |
| native-scrollbar | `boolean` | `true` | Whether to use native scrollbar on body part. | |
| title | `string` | `undefined` | Drawer content title. | |
Expand Down
10 changes: 5 additions & 5 deletions src/drawer/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rtl-debug.vue
| auto-focus | `boolean` | `true` | 是否自动聚焦 Drawer 第一个可聚焦的元素 | 2.24.2 |
| block-scroll | `boolean` | `true` | 是否在打开时禁用 body 滚动 | 2.28.3 |
| close-on-esc | `boolean` | `true` | 是否在摁下 Esc 键的时候关闭 Drawer | 2.24.2 |
| content-class | `string` | `undefined` | 抽屉可滚动内容节点的类名 | NEXT_VERSION |
| content-class | `string` | `undefined` | 抽屉可滚动内容节点的类名 | 2.37.0 |
| content-style | `string \| Object` | `undefined` | 抽屉可滚动内容节点的样式 | |
| default-width | `number \| string` | `251` | 抽屉的默认宽度,在位置是 `left``right` 时生效 | 2.31.0 |
| default-height | `number \| string` | `251` | 抽屉的默认高度,在位置是 `top``bottom` 时生效 | 2.31.0 |
Expand Down Expand Up @@ -67,14 +67,14 @@ rtl-debug.vue

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| body-class | `string` | `undefined` | 主体 body 的类名 | NEXT_VERSION |
| body-class | `string` | `undefined` | 主体 body 的类名 | 2.37.0 |
| body-style | `string \| Object` | `undefined` | 主体 body 的样式 | |
| body-content-class | `string` | `undefined` | 主体可滚动内容节点的类名 | NEXT_VERSION |
| body-content-class | `string` | `undefined` | 主体可滚动内容节点的类名 | 2.37.0 |
| body-content-style | `string \| Object` | `undefined` | 主体可滚动内容节点的样式 | |
| closable | `boolean` | `false` | 是否可关闭 | |
| footer-class | `string` | `undefined` | 主体 footer 的类名 | NEXT_VERSION |
| footer-class | `string` | `undefined` | 主体 footer 的类名 | 2.37.0 |
| footer-style | `string \| Object` | `undefined` | 主体 footer 的样式 | |
| header-class | `string` | `undefined` | 主体 header 的类名 | NEXT_VERSION |
| header-class | `string` | `undefined` | 主体 header 的类名 | 2.37.0 |
| header-style | `string \| Object` | `undefined` | 主体 header 的样式 | |
| native-scrollbar | `boolean` | `true` | 主体部分是否使用原生滚动条 | |
| scrollbar-props | `object` | `undefined` | 属性参考 [Scrollbar props](scrollbar#Scrollbar-Props) | |
Expand Down
Loading

1 comment on commit 63af901

@vercel
Copy link

@vercel vercel bot commented on 63af901 Jan 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.