Skip to content

Commit

Permalink
2.38.2
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed May 3, 2024
1 parent 034055a commit 136dbe9
Show file tree
Hide file tree
Showing 41 changed files with 178 additions and 237 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## NEXT_VERSION
## 2.38.2

`2024-05-03`

Expand All @@ -18,6 +18,7 @@
### Features

- `n-watermark` support multi-lines in content.
- Adds `n-infinite-scroll` component.
- `n-watermark` adds `text-align` prop.
- `n-qr-code` adds `type` prop, Customize rendering output by setting `type`, providing two options: `canvas` and `svg`.
- `n-card` adds `action`, `content`, `cover`, `footer` and `header-extra` props.
Expand Down Expand Up @@ -192,7 +193,6 @@
- `n-tree-select` adds `override-default-node-click-behavior` prop.
- Adds `n-flex` component.
- `n-pagination` adds `show-quick-jump-dropdown` prop, closes [#5251](https://github.com/tusen-ai/naive-ui/issues/5251).
- Adds `n-infinite-scroll` component.

## 2.36.0

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

## NEXT_VERSION
## 2.38.2

`2024-05-03`

Expand All @@ -17,6 +17,7 @@
### Features

- `n-watermark` 支持多行文本
- 新增 `n-infinite-scroll` 组件
- `n-watermark` 新增 `text-align` 属性
- `n-qr-code` 新增 `type` 属性,设置 `type` 自定义渲染结果,提供 `canvas``svg` 两个选项
- `n-card` 新增 `action``content``cover``footer``header-extra` 属性
Expand Down Expand Up @@ -192,7 +193,6 @@
- `n-tree-select` 新增 `override-default-node-click-behavior` 属性
- 新增 `n-flex` 组件
- `n-pagination` 新增 `show-quick-jump-dropdown` 属性,关闭 [#5251](https://github.com/tusen-ai/naive-ui/issues/5251)
- 新增 `n-infinite-scroll` 组件

## 2.36.0

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.38.1",
"version": "2.38.2",
"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/card/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ embedded.vue
| segmented | `boolean \| { [part in 'content' \| 'footer' \| 'action']?: boolean \| 'soft' }` | `false` | Segment divider settings of the card. | |
| size | `'small' \| 'medium' \| 'large' \| 'huge'` | `'medium'` | Card size. | |
| tag | `string` | `'div'` | What tag need the card be rendered as. | 2.34.3 |
| title | `string \| (() => VNodeChild)` | `undefined` | Card title. | Render function since NEXT_VERSION |
| title | `string \| (() => VNodeChild)` | `undefined` | Card title. | Render function since 2.38.2 |
| on-close | `() => void` | `undefined` | Callback function triggered upon closing the card. | |

### Card Slots
Expand Down
2 changes: 1 addition & 1 deletion src/card/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ embedded-debug.vue
| segmented | `boolean \| { [part in 'content' \| 'footer' \| 'action']?: boolean \| 'soft' }` | `false` | 卡片的分段区域设置 | |
| size | `'small' \| 'medium' \| 'large' \| 'huge'` | `'medium'` | 卡片的尺寸 | |
| tag | `string` | `'div'` | 卡片组件要渲染为什么标签 | 2.34.3 |
| title | `string \| (() => VNodeChild)` | `undefined` | 卡片的标题,,可以是 render 函数 | NEXT_VERSION 支持 render 函数 |
| title | `string \| (() => VNodeChild)` | `undefined` | 卡片的标题,,可以是 render 函数 | 2.38.2 支持 render 函数 |
| on-close | `() => void` | `undefined` | 点击卡片关闭图标时的回调 | |

### Card Slots
Expand Down
6 changes: 3 additions & 3 deletions src/cascader/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ status.vue
| 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. | |
| filter-menu-props | `HTMLAttributes` | `undefined` | The filter menu's dom props. | 2.27.0 |
| get-column-style | `(detail: { level: number }) => string \| object` | `undefined` | Function that resolves column style. `level` starts from `0`. | NEXT_VERSION |
| get-column-style | `(detail: { level: number }) => string \| object` | `undefined` | Function that resolves column style. `level` starts from `0`. | 2.38.2 |
| value-field | `string` | `'value'` | The value field in `CascaderOption`. | |
| label-field | `string` | `'label'` | The label field in `CascaderOption`. | |
| max-tag-count | `number \| 'responsive'` | `undefined` | Max tag count in multiple select mode. `responsive` will keep all the tags in single line. | |
Expand All @@ -49,9 +49,9 @@ status.vue
| placeholder | `string` | `'Please Select'` | Placeholder text. | |
| placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end'` | `'bottom-start'` | Cascader placement. | 2.25.0 |
| remote | `boolean` | `false` | Whether to obtain data remotely. | |
| render-prefix | `(info: { option: CascaderOption, node: VNode \| null, checked: boolean }) => VNodeChild` | `undefined` | Render function of all the options' prefix. | NEXT_VERSION |
| render-prefix | `(info: { option: CascaderOption, node: VNode \| null, checked: boolean }) => VNodeChild` | `undefined` | Render function of all the options' prefix. | 2.38.2 |
| render-label | `(option: CascaderOption, checked: boolean) => VNodeChild` | `undefined` | Render function for cascader menu option label. | 2.24.0 |
| render-suffix | `(info: { option: CascaderOption, node: VNode \| null, checked: boolean }) => VNodeChild` | `undefined` | Render function of all the options' suffix. | NEXT_VERSION |
| render-suffix | `(info: { option: CascaderOption, node: VNode \| null, checked: boolean }) => VNodeChild` | `undefined` | Render function of all the options' suffix. | 2.38.2 |
| separator | `string` | `' / '` | Selected option path value separator (used with `show-path`). | |
| show | `boolean` | `undefined` | Whether to show the menu. | |
| show-path | `boolean` | `true` | Whether to show the selected options as a path. | |
Expand Down
6 changes: 3 additions & 3 deletions src/cascader/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ default-value-debug.vue
| filterable | `boolean` | `false` | `remote` 被设定时不生效 | |
| filter | `(pattern: string, option: CascaderOption, path: CascaderOption[]) => boolean` | 一个基于字符串的过滤算法 | 过滤选项的函数 | |
| filter-menu-props | `HTMLAttributes` | `undefined` | 可过滤菜单的 DOM 属性 | 2.27.0 |
| get-column-style | `(detail: { level: number }) => string \| object` | `undefined` | 获取列样式的函数,`level``0` 开始 | NEXT_VERSION |
| get-column-style | `(detail: { level: number }) => string \| object` | `undefined` | 获取列样式的函数,`level``0` 开始 | 2.38.2 |
| value-field | `string` | `'value'` | 替代 `CascaderOption` 中的 value 字段名 | |
| label-field | `string` | `'label'` | 替代 `CascaderOption` 中的 label 字段名 | |
| max-tag-count | `number \| 'responsive'` | `undefined` | 多选标签的最大显示数量,`responsive` 会将所有标签保持在一行 | |
Expand All @@ -50,9 +50,9 @@ default-value-debug.vue
| placeholder | `string` | `'请选择'` | 提示信息 | |
| 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 |
| remote | `boolean` | `false` | 是否远程获取数据 | |
| render-prefix | `(info: { option: CascaderOption, node: VNode \| null, checked: boolean }) => VNodeChild` | `undefined` | 节点前缀的渲染函数 | NEXT_VERSION |
| render-prefix | `(info: { option: CascaderOption, node: VNode \| null, checked: boolean }) => VNodeChild` | `undefined` | 节点前缀的渲染函数 | 2.38.2 |
| render-label | `(option: CascaderOption, checked: boolean) => VNodeChild` | `undefined` | Cascader 菜单选项标签渲染函数 | 2.24.0 |
| render-suffix | `(info: { option: CascaderOption, checked: boolean }) => VNodeChild` | `undefined` | 节点后缀的渲染函数 | NEXT_VERSION |
| render-suffix | `(info: { option: CascaderOption, checked: boolean }) => VNodeChild` | `undefined` | 节点后缀的渲染函数 | 2.38.2 |
| separator | `string` | `' / '` | 数据分隔符 | |
| show | `boolean` | `undefined` | 是否打开菜单 | |
| show-path | `boolean` | `true` | 是否在选择器中显示选项路径 | |
Expand Down
2 changes: 1 addition & 1 deletion src/date-picker/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ panel.vue
| show | `boolean` | `undefined` | Whether to show panel. | 2.28.3 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Date picker size. | |
| status | `'success' \| 'warning' \| 'error'` | `undefined` | Validation status. | 2.27.0 |
| time-picker-format | `string \| undefined` | `undefined` | Format of the binding value in time picker inside date picker of type `'datetime'` and `'datetimerange'`. See [format](https://date-fns.org/v2.23.0/docs/format). | NEXT_VERSION |
| time-picker-format | `string \| undefined` | `undefined` | Format of the binding value in time picker inside date picker of type `'datetime'` and `'datetimerange'`. See [format](https://date-fns.org/v2.23.0/docs/format). | 2.38.2 |
| to | `string \| HTMLElement \| false` | `body` | Container node of the panel. `false` will keep it not detached. | |
| 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. | |
Expand Down
2 changes: 1 addition & 1 deletion src/date-picker/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ form-debug.vue
| show | `boolean` | `undefined` | 是否展示面板 | 2.28.3 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 尺寸 | |
| status | `'success' \| 'warning' \| 'error'` | `undefined` | 验证状态 | 2.27.0 |
| time-picker-format | `string \| undefined` | `undefined` | 日期面板内时间的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | NEXT_VERSION |
| time-picker-format | `string \| undefined` | `undefined` | 日期面板内时间的显示方式,详情见 [format](https://date-fns.org/v2.23.0/docs/format) | 2.38.2 |
| to | `string \| HTMLElement \| false` | `body` | 面板的容器节点,`false` 会待在原地 | |
| 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 的值 | |
Expand Down
36 changes: 18 additions & 18 deletions src/dialog/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ use-dialog-reactive-list.vue
| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| action | `() => VNodeChild` | `undefined` | Content of the operation area, must be a render function. | |
| actionClass | `string` | The class name of the action area. | NEXT_VERSION |
| actionStyle | `Object \| string` | The style of the action area. | NEXT_VERSION |
| actionClass | `string` | The class name of the action area. | 2.38.2 |
| actionStyle | `Object \| string` | The style of the action area. | 2.38.2 |
| autoFocus | `boolean` | `true` | Whether to focus the first focusable element inside modal. | 2.28.3 |
| blockScroll | `boolean` | `true` | Whether to disabled body scrolling when it's active. | 2.28.3 |
| bordered | `boolean` | `false` | Whether to show `border`. | |
| class | `any` | `undefined` | Class name of the dialog. | 2.33.0 |
| closable | `boolean` | `true` | Whether to show `close` icon. | |
| closeOnEsc | `boolean` | `true` | Whether to close the dialog when the Esc key is pressed | 2.26.4 |
| content | `string \| (() => VNodeChild)` | `undefined` | Content, can be a render function. | |
| contentClass | `string` | The class name of the content. | NEXT_VERSION |
| contentStyle | `Object \| string` | The style of the content. | NEXT_VERSION |
| contentClass | `string` | The class name of the content. | 2.38.2 |
| contentStyle | `Object \| string` | The style of the content. | 2.38.2 |
| iconPlacement | `'left' \| 'top'` | `'left'` | Icon placement. | |
| icon | `() => VNodeChild` | `undefined` | `Render` function of `icon`. | |
| loading | `boolean` | `false` | Whether to display `loading` status. | |
Expand All @@ -87,8 +87,8 @@ use-dialog-reactive-list.vue
| showIcon | `boolean` | `true` | Whether to show `icon`. | |
| style | `string \| Object` | `undefined` | Style of the dialog. | |
| title | `string \| (() => VNodeChild)` | `undefined` | Title, can be a render function. | |
| titleClass | `string` | The class name of the content. | NEXT_VERSION |
| titleStyle | `Object \| string` | The style of the content. | NEXT_VERSION |
| titleClass | `string` | The class name of the content. | 2.38.2 |
| titleStyle | `Object \| string` | The style of the content. | 2.38.2 |
| transformOrigin | `'mouse' \| 'center'` | `'mouse'` | The transform origin of the dialog's display animation. | 2.34.0 |
| type | `'error \| 'success' \| 'warning'` | `'warning'` | Dialog type. | |
| onAfterEnter | `() => void` | `undefined` | Callback on enter animation ends. | 2.33.0 |
Expand All @@ -106,15 +106,15 @@ All the properties can be modified dynamically.

| Name | Type | Description | Version |
| --- | --- | --- | --- |
| actionClass | `string` | The class name of the action area. | NEXT_VERSION |
| actionStyle | `Object \| string` | The style of the action area. | NEXT_VERSION |
| actionClass | `string` | The class name of the action area. | 2.38.2 |
| actionStyle | `Object \| string` | The style of the action area. | 2.38.2 |
| bordered | `boolean` | Whether to show `border`. | |
| class | `any` | Class name of the dialog. | 2.33.0 |
| closable | `boolean` | Whether to show `close` icon. | |
| closeOnEsc | `boolean` | Whether to close dialog on Esc is pressed. | 2.26.4 |
| content | `string \| (() => VNodeChild)` | Content, can be a render function. | |
| contentClass | `string` | The class name of the content. | NEXT_VERSION |
| contentStyle | `Object \| string` | The style of the content. | NEXT_VERSION |
| contentClass | `string` | The class name of the content. | 2.38.2 |
| contentStyle | `Object \| string` | The style of the content. | 2.38.2 |
| iconPlacement | `'left' \| 'top'` | Icon placement. | |
| icon | `() => VNodeChild` | `Render` function of `icon`. | |
| loading | `boolean` | Whether to display `loading` status. | |
Expand All @@ -126,8 +126,8 @@ All the properties can be modified dynamically.
| show-icon | `boolean` | Whether to show `icon`. | |
| style | `string \| Object` | Style of the dialog. | |
| title | `string \| (() => VNodeChild)` | Can be a render function. | |
| titleClass | `string` | The class name of the content. | NEXT_VERSION |
| titleStyle | `Object \| string` | The style of the content. | NEXT_VERSION |
| titleClass | `string` | The class name of the content. | 2.38.2 |
| titleStyle | `Object \| string` | The style of the content. | 2.38.2 |
| transformOrigin | `'mouse' \| 'center'` | The transform origin of the dialog's display animation. | 2.34.0 |
| type | `'error \| 'success' \| 'warning'` | Dialog type. | |
| onAfterEnter | `() => void \| undefined` | Callback on enter animation ends. | 2.33.0 |
Expand All @@ -147,13 +147,13 @@ All the properties can be modified dynamically.

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| action-class | `string` | `undefined` | The class name of the action area. | NEXT_VERSION |
| action-style | `Object \| string` | `undefined` | The style of the action area. | NEXT_VERSION |
| action-class | `string` | `undefined` | The class name of the action area. | 2.38.2 |
| action-style | `Object \| string` | `undefined` | The style of the action area. | 2.38.2 |
| bordered | `boolean` | `false` | Whether to show `border`. | |
| closable | `boolean` | `true` | Whether to show `close` icon. | |
| content | `string \| (() => VNodeChild)` | `undefined` | Can be a render function. | |
| content-class | `string` | `undefined` | The class name of the content. | NEXT_VERSION |
| content-style | `Object \| string` | `undefined` | The style of the content. | NEXT_VERSION |
| content-class | `string` | `undefined` | The class name of the content. | 2.38.2 |
| content-style | `Object \| string` | `undefined` | The style of the content. | 2.38.2 |
| icon-placement | `'left' \| 'top'` | `'left'` | Icon placement. | |
| icon | `() => VNodeChild` | `undefined` | `Render` function of icon. | |
| loading | `boolean` | `false` | Whether to display `loading` status. | |
Expand All @@ -163,8 +163,8 @@ All the properties can be modified dynamically.
| positive-text | `string` | `undefined` | Corresponding button won't show if not set. | |
| show-icon | `boolean` | `true` | Whether to display the `icon`. | |
| title | `string \| (() => VNodeChild)` | `undefined` | Title, can be a render function. | |
| title-class | `string` | `undefined` | The class name of the content. | NEXT_VERSION |
| title-style | `Object \| string` | `undefined` | The style of the content. | NEXT_VERSION |
| title-class | `string` | `undefined` | The class name of the content. | 2.38.2 |
| title-style | `Object \| string` | `undefined` | The style of the content. | 2.38.2 |
| type | `'error \| 'success' \| 'warning' \| 'info'` | `'warning'` | Dialog type. | |
| on-close | `() => void` | `undefined` | Calback on close button clicked. | |
| on-negative-click | `(e: MouseEvent) => void` | `undefined` | Callback on positive button clicked. | |
Expand Down
Loading

0 comments on commit 136dbe9

Please sign in to comment.