Skip to content

Commit

Permalink
2.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Dec 18, 2023
1 parent f610db5 commit 65f9bd8
Show file tree
Hide file tree
Showing 44 changed files with 172 additions and 172 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.36.0

### Fixes

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

### Fixes

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.35.0",
"version": "2.36.0",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/card/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ embedded.vue
| --- | --- | --- | --- | --- |
| bordered | `boolean` | `true` | Whether to show the card border. | |
| closable | `boolean` | `false` | Is it allowed to close. | |
| content-class | `string` | `undefined` | The class of the card content area. | NEXT_VERSION |
| content-class | `string` | `undefined` | The class of the card content area. | 2.36.0 |
| content-style | `Object \| string` | `undefined` | The style of the card content area. | |
| embedded | `boolean` | `false` | Use a darker background color to show the embedding effect (only for bright themes) | |
| footer-class | `string` | `undefined` | The class of the bottom area of the card. | NEXT_VERSION |
| footer-class | `string` | `undefined` | The class of the bottom area of the card. | 2.36.0 |
| footer-style | `Object \| string` | `undefined` | The style of the bottom area of the card. | |
| header-class | `string` | `undefined` | The class of the card head area. | NEXT_VERSION |
| header-class | `string` | `undefined` | The class of the card head area. | 2.36.0 |
| header-style | `Object \| string` | `undefined` | The style of the card head area. | |
| header-extra-class | `string` | `undefined` | The class of the card head extra area. | NEXT_VERSION |
| header-extra-class | `string` | `undefined` | The class of the card head extra area. | 2.36.0 |
| header-extra-style | `Object \| string` | `undefined` | The style of the card head extra area. | 2.25.0 |
| hoverable | `boolean` | `false` | Whether to show shadow when hovering on the card. | |
| segmented | `boolean \| { [part in 'content' \| 'footer' \| 'action']?: boolean \| 'soft' }` | `false` | Segment divider settings of the card. | |
Expand Down
8 changes: 4 additions & 4 deletions src/card/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ embedded-debug.vue
| --- | --- | --- | --- | --- |
| bordered | `boolean` | `true` | 是否显示卡片边框 | |
| closable | `boolean` | `false` | 是否允许关闭 | |
| content-class | `string` | `undefined` | 卡片内容区域的类名 | NEXT_VERSION |
| content-class | `string` | `undefined` | 卡片内容区域的类名 | 2.36.0 |
| content-style | `Object \| string` | `undefined` | 卡片内容区域的样式 | |
| embedded | `boolean` | `false` | 使用更深的背景色展现嵌入效果,只对亮色主题生效 | |
| footer-class | `string` | `undefined` | 卡片底部区域的类名 | NEXT_VERSION |
| footer-class | `string` | `undefined` | 卡片底部区域的类名 | 2.36.0 |
| footer-style | `Object \| string` | `undefined` | 卡片底部区域的样式 | |
| header-class | `string` | `undefined` | 卡片头部区域的类名 | NEXT_VERSION |
| header-class | `string` | `undefined` | 卡片头部区域的类名 | 2.36.0 |
| header-style | `Object \| string` | `undefined` | 卡片头部区域的样式 | |
| header-extra-class | `string` | `undefined` | 卡片头部额外内容的类名 | NEXT_VERSION |
| header-extra-class | `string` | `undefined` | 卡片头部额外内容的类名 | 2.36.0 |
| header-extra-style | `Object \| string` | `undefined` | 卡片头部额外内容的样式 | 2.25.0 |
| hoverable | `boolean` | `false` | 卡片是否可悬浮 | |
| segmented | `boolean \| { [part in 'content' \| 'footer' \| 'action']?: boolean \| 'soft' }` | `false` | 卡片的分段区域设置 | |
Expand Down
4 changes: 2 additions & 2 deletions src/descriptions/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ size.vue
| --- | --- | --- | --- | --- |
| bordered | `boolean` | `false` | Whether to display border. | |
| column | `number` | `3` | Total columns. | |
| content-class | `string` | `undefined` | Class of the item content. | NEXT_VERSION |
| content-class | `string` | `undefined` | Class of the item content. | 2.36.0 |
| content-style | `Object \| string` | `undefined` | Style of the item content. | |
| label-align | `'center' \| 'left' \| 'right'` | `'left'` | Label align. | |
| label-placement | `'top' \| 'left'` | `'top'` | Label placement. | |
| label-class | `string` | `undefined` | Class of the item label. | NEXT_VERSION |
| label-class | `string` | `undefined` | Class of the item label. | 2.36.0 |
| label-style | `Object \| string` | `undefined` | Style of the item label. | |
| separator | `string` | `':'` | Separator, only work when `label-placement` is `left` and  `bordered` is `false`.  | |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Size of the description. | |
Expand Down
4 changes: 2 additions & 2 deletions src/descriptions/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ single-line-debug.vue
| --- | --- | --- | --- | --- |
| bordered | `boolean` | `false` | 是否显示 border | |
| column | `number` | `3` | 设置的总列数 | |
| content-class | `string` | `undefined` | 内容的类名 | NEXT_VERSION |
| content-class | `string` | `undefined` | 内容的类名 | 2.36.0 |
| content-style | `Object \| string` | `undefined` | 内容的样式 | |
| label-align | `'center' \| 'left' \| 'right'` | `'left'` | label 对齐方式 | |
| label-placement | `'top' \| 'left'` | `'top'` | label 显示位置 | |
| label-class | `string` | `undefined` | label 的类名 | NEXT_VERSION |
| label-class | `string` | `undefined` | label 的类名 | 2.36.0 |
| label-style | `Object \| string` | `undefined` | label 的样式 | |
| separator | `string` | `':'` | 分隔符,`label-placement``left` 并且 `bordered` 为 `false` 时生效 | |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 尺寸 | |
Expand Down
14 changes: 7 additions & 7 deletions src/dialog/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ All the properties can be modified dynamically.

### Dialog Slots

| Name | Parameters | Description | Version |
| ------- | ---------- | ----------------- | ------------ |
| action | `()` | `Action` content. | |
| default | `()` | Dialog content. | |
| header | `()` | `Header` content. | |
| icon | `()` | `Icon` content. | |
| close | `()` | `Close` content. | NEXT_VERSION |
| Name | Parameters | Description | Version |
| ------- | ---------- | ----------------- | ------- |
| action | `()` | `Action` content. | |
| default | `()` | Dialog content. | |
| header | `()` | `Header` content. | |
| icon | `()` | `Icon` content. | |
| close | `()` | `Close` content. | 2.36.0 |
14 changes: 7 additions & 7 deletions src/dialog/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ focus-debug.vue

### Dialog Slots

| 名称 | 参数 | 说明 | 版本 |
| ------- | ---- | ------------- | ------------ |
| action | `()` | `action` 内容 | |
| default | `()` | 对话框内容 | |
| header | `()` | `header` 内容 | |
| icon | `()` | `icon` 内容 | |
| close | `()` | `close` 内容 | NEXT_VERSION |
| 名称 | 参数 | 说明 | 版本 |
| ------- | ---- | ------------- | ------ |
| action | `()` | `action` 内容 | |
| default | `()` | 对话框内容 | |
| header | `()` | `header` 内容 | |
| icon | `()` | `icon` 内容 | |
| close | `()` | `close` 内容 | 2.36.0 |
2 changes: 1 addition & 1 deletion src/dynamic-input/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ custom-action.vue
| create-button-props | `ButtonProps` | `undefined` | Props of create item button. | 2.25.0 |
| default-value | `unknown[]` | `[]` | Default value. | |
| disabled | `boolean` | `false` | Whether to disable the dynamic-input. It won't work for custom content. | 2.34.4 |
| item-class | `string` | `undefined` | The class of each item of the dynamic input. | NEXT_VERSION |
| item-class | `string` | `undefined` | The class of each item of the dynamic input. | 2.36.0 |
| item-style | `string \| Object` | `undefined` | The style of each item of the dynamic input. | |
| key-field | `string` | `undefined` | The key of each item that should be used in the rendering of the list. | |
| min | `number` | `0` | Minimum number of items. | |
Expand Down
2 changes: 1 addition & 1 deletion src/dynamic-input/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ create-debug.vue
| create-button-props | `ButtonProps` | `undefined` | 新建项按钮的属性 | 2.25.0 |
| default-value | `unknown[]` | `[]` | 非受控模式下的默认值 | |
| disabled | `boolean` | `false` | 是否禁用,对自定义内容无效 | 2.34.4 |
| item-class | `string` | `undefined` | 动态录入中每项的类名 | NEXT_VERSION |
| item-class | `string` | `undefined` | 动态录入中每项的类名 | 2.36.0 |
| item-style | `string \| Object` | `undefined` | 动态录入中每项的样式 | |
| key-field | `string` | `undefined` | 每一项的 key 值,会被用于列表渲染中 | |
| min | `number` | `0` | 最少有几项内容 | |
Expand Down
4 changes: 2 additions & 2 deletions src/dynamic-tags/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ on-create.vue
| default-value | `string[]` | `[]` | Default value. | |
| disabled | `boolean` | `false` | Whether the tag is disabled. | |
| input-props | `InputProps` | `undefined` | Props of internal `n-input`. | 2.25.0 |
| input-class | `string` | `undefined` | Customize the class of the input. | NEXT_VERSION |
| input-class | `string` | `undefined` | Customize the class of the input. | 2.36.0 |
| input-style | `string \| Object` | `undefined` | Customize the style of the input. | |
| max | `number` | `undefined` | Maximum number of tags. | |
| round | `boolean` | `false` | Whether the tag has rounded corners. | |
| render-tag | `((tag: string, index: number) => VNodeChild) \| ((tag: { label: string, value: string }, index: number) => VNodeChild)` | `undefined` | custom render tag. | 2.27.0 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Size of the tag. | |
| tag-class | `string` | `undefined` | Customize the class of the tag. | NEXT_VERSION |
| tag-class | `string` | `undefined` | Customize the class of the tag. | 2.36.0 |
| tag-style | `string \| Object` | `undefined` | Customize the style of the tag. | |
| type | `'default' \| 'primary' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | Type of the tag. | |
| value | `string[]` | `undefined` | Value if manually set. | |
Expand Down
4 changes: 2 additions & 2 deletions src/dynamic-tags/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ on-create.vue
| default-value | `string[] \| Array<{ label: string, value: string }>` | `[]` | 非受控模式下的默认值 | |
| disabled | `boolean` | `false` | 是否禁用 | |
| input-props | `InputProps` | `undefined` | 内部 `n-input` 组件的属性 | 2.25.0 |
| input-class | `string` | `undefined` | 自定义输入框的类名 | NEXT_VERSION |
| input-class | `string` | `undefined` | 自定义输入框的类名 | 2.36.0 |
| input-style | `string \| Object` | `undefined` | 自定义输入框的样式 | |
| max | `number` | `undefined` | tag 的最大数量 | |
| round | `boolean` | `false` | 是否圆角 | |
| render-tag | `((tag: string, index: number) => VNodeChild) \| ((tag: { label: string, value: string }, index: number) => VNodeChild)` | `undefined` | 自定义渲染 tag | 2.27.0 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 尺寸大小 | |
| tag-class | `string` | `undefined` | 自定义标签的类名 | NEXT_VERSION |
| tag-class | `string` | `undefined` | 自定义标签的类名 | 2.36.0 |
| tag-style | `string \| Object` | `undefined` | 自定义标签的样式 | |
| type | `'default' \| 'primary' \| 'info' \| 'success' \| 'warning' \| 'error'` | `'default'` | 标签类型 | |
| value | `string[] \| Array<{ label: string, value: string }>` | `undefined` | 受控模式下的值 | |
Expand Down
6 changes: 3 additions & 3 deletions src/layout/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ scroll-to.vue

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| content-class | `string` | `undefined` | Class of scrollable content node. | NEXT_VERSION |
| content-class | `string` | `undefined` | Class of scrollable content node. | 2.36.0 |
| content-style | `string \| Object` | `undefined` | Style of scrollable content node. | |
| embedded | `boolean` | `false` | Use darker background to show a embedded effect. Only work for light theme. | |
| has-sider | `boolean` | `false` | Whether the component has sider inside. If so it must be `true`. | |
Expand Down Expand Up @@ -63,7 +63,7 @@ scroll-to.vue
| bordered | `boolean` | `false` | Whether to show the border. | |
| collapse-mode | `'transform' \| 'width'` | `'transform'` | If set to `'width'`, the sider's content width will be actually collapsed. If set to `'transform'`, the sider will only move it's position and won't change its content width. | |
| collapsed | `boolean` | `undefined` | Whether the sider is collapsed. It only works for when `position` is `'static'`. | |
| collapsed-trigger-class | `string` | `undefined` | Trigger class when collapsed. | NEXT_VERSION |
| collapsed-trigger-class | `string` | `undefined` | Trigger class when collapsed. | 2.36.0 |
| collapsed-trigger-style | `string \| Object` | `undefined` | Trigger style when collapsed. | |
| collapsed-width | `number` | `48` | Folded width. | |
| content-class | `string` | `undefined` | Class of scrollable content node. | |
Expand All @@ -75,7 +75,7 @@ scroll-to.vue
| scrollbar-props | `object` | `undefined` | See [Scrollbar props](scrollbar#Scrollbar-Props) | |
| show-collapsed-content | `boolean` | `true` | Whether to show content in sider after it is collapsed. | |
| show-trigger | `boolean \| 'bar' \| 'arrow-circle'` | `false` | Whether to show the built-in trigger button on sider. | |
| trigger-class | `string` | `undefined` | Trigger class. | NEXT_VERSION |
| trigger-class | `string` | `undefined` | Trigger class. | 2.36.0 |
| trigger-style | `string \| Object` | `undefined` | Trigger style. | |
| width | `number \| string` | `272` | Width CSS value. When it is number, px will be added. | |
| on-after-enter | `() => void` | `undefined` | Callback after it's expanded. | |
Expand Down
6 changes: 3 additions & 3 deletions src/layout/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ keep-alive-debug.vue

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| content-class | `string` | `undefined` | 可滚动内容节点的类名 | NEXT_VERSION |
| content-class | `string` | `undefined` | 可滚动内容节点的类名 | 2.36.0 |
| content-style | `string \| Object` | `undefined` | 可滚动内容节点的样式 | |
| embedded | `boolean` | `false` | 使用更深的背景色展现嵌入效果,只对亮色主题生效 | |
| has-sider | `boolean` | `false` | 组件内部是否有边栏,如果有的话必须设为 `true` | |
Expand Down Expand Up @@ -64,7 +64,7 @@ keep-alive-debug.vue
| bordered | `boolean` | `false` | 是否显示边框 | |
| collapse-mode | `'transform' \| 'width'` | `'transform'` | 如果设定为 `'width'`,Sider 的内容宽度将会被实际改变;如果设定为 `'transform'`,边栏将只会移动它的位置而不会改变宽度 | |
| collapsed | `boolean` | `undefined` | 边栏是否折叠。只在 `position``'static'` 时生效 | |
| collapsed-trigger-class | `string` | `undefined` | 折叠时触发器类名 | NEXT_VERSION |
| collapsed-trigger-class | `string` | `undefined` | 折叠时触发器类名 | 2.36.0 |
| collapsed-trigger-style | `string \| Object` | `undefined` | 折叠时触发器样式 | |
| collapsed-width | `number` | `48` | 折叠宽度 | |
| content-class | `string` | `undefined` | 可滚动内容节点的类名 | |
Expand All @@ -76,7 +76,7 @@ keep-alive-debug.vue
| scrollbar-props | `object` | `undefined` | 属性参考 [Scrollbar props](scrollbar#Scrollbar-Props) | |
| show-collapsed-content | `boolean` | `true` | 是否在 `sider` 折叠后展示内部内容 | |
| show-trigger | `boolean \| 'bar' \| 'arrow-circle'` | `false` | 内置的触发按钮是否展示 | |
| trigger-class | `string` | `undefined` | 触发器类名 | NEXT_VERSION |
| trigger-class | `string` | `undefined` | 触发器类名 | 2.36.0 |
| trigger-style | `string \| Object` | `undefined` | 触发器样式 | |
| width | `number \| string` | `272` | 宽度的 CSS 值,为数字时会添加 px | |
| on-after-enter | `() => void` | `undefined` | 完成展开后的回调 | |
Expand Down
4 changes: 2 additions & 2 deletions src/menu/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ show.vue
| render-extra | `(option: MenuOption \| MenuGroupOption) => VNodeChild` | `undefined` | Render function that renders all extras. | |
| render-icon | `(option: MenuOption) => VNodeChild` | `undefined` | Render function that renders all icons. | |
| render-label | `(option: MenuOption \| MenuGroupOption) => VNodeChild` | `undefined` | Render function that renders all labels. | |
| responsive | `boolean` | `false` | Whether to collapsed menu items that overflows menu. Only work for menu with `mode='horizontal'`. | NEXT_VERSION |
| responsive | `boolean` | `false` | Whether to collapsed menu items that overflows menu. Only work for menu with `mode='horizontal'`. | 2.36.0 |
| root-indent | `number` | `undefined` | The indent of menu's first level children. If not set, menu will use `indent` in place of it. | |
| value | `string \| null` | `undefined` | The selected item key of the menu. | |
| watch-props | `Array<'defaultValue' \| 'defaultExpandedKeys'>` | `undefined` | Default prop names that needed to be watched. Components will be updated after the prop is changed. Note: the `watch-props` itself is not reactive. | |
Expand Down Expand Up @@ -94,5 +94,5 @@ show.vue

| Name | Type | Description | Version |
| --- | --- | --- | --- |
| deriveResponsiveState | `() => void` | Recalculate the collapsed state of the responsive menu content. When the width of the menu container is not solely determined by the external width, in the `responsive` mode, the menu content cannot automatically expand after being collapsed. You can call this method to ensure that the menu can be expanded again. | NEXT_VERSION |
| deriveResponsiveState | `() => void` | Recalculate the collapsed state of the responsive menu content. When the width of the menu container is not solely determined by the external width, in the `responsive` mode, the menu content cannot automatically expand after being collapsed. You can call this method to ensure that the menu can be expanded again. | 2.36.0 |
| showOption | `(key: string \| number) => void` | Expand menu to show option with specified `key`. If `key` is not specified, selected option will be displayed. | 2.27.0 |
4 changes: 2 additions & 2 deletions src/menu/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ show-debug.vue
| render-extra | `(option: MenuOption \| MenuGroupOption) => VNodeChild` | `undefined` | 批量处理菜单额外部分渲染 | |
| render-icon | `(option: MenuOption) => VNodeChild` | `undefined` | 批量处理菜单图标渲染 | |
| render-label | `(option: MenuOption \| MenuGroupOption) => VNodeChild` | `undefined` | 批量处理菜单标签渲染 | |
| responsive | `boolean` | `false` | 是否收起溢出的菜单,仅对 `mode='horizontal'` 的菜单生效 | NEXT_VERSION |
| responsive | `boolean` | `false` | 是否收起溢出的菜单,仅对 `mode='horizontal'` 的菜单生效 | 2.36.0 |
| root-indent | `number` | `32` | 菜单第一级的缩进,如果没有设定,使用 `indent` 代替 | |
| value | `string \| null` | `undefined` | 菜单当前的选中值 | |
| watch-props | `Array<'defaultValue' \| 'defaultExpandedKeys'>` | `undefined` | 需要检测变更的默认属性,检测后组件状态会更新。注意:`watch-props` 本身不是响应式的 | |
Expand Down Expand Up @@ -96,5 +96,5 @@ show-debug.vue

| 名称 | 类型 | 说明 | 版本 |
| --- | --- | --- | --- |
| deriveResponsiveState | `() => void` | 重新计算响应式菜单内容折叠状态。在菜单容器宽度并不完全由外部宽度决定的时候,在 `responsive` 情况下,菜单内容收起后无法自动展开,此时你可以调用此方法以保证菜单可以重新展开 | NEXT_VERSION |
| deriveResponsiveState | `() => void` | 重新计算响应式菜单内容折叠状态。在菜单容器宽度并不完全由外部宽度决定的时候,在 `responsive` 情况下,菜单内容收起后无法自动展开,此时你可以调用此方法以保证菜单可以重新展开 | 2.36.0 |
| showOption | `(key?: string \| number) => void` | 展开菜单,确保设定的元素被显示,如果不传入 `key` 会展示当前选中元素 | 2.27.0 |
Loading

0 comments on commit 65f9bd8

Please sign in to comment.