Skip to content

Commit

Permalink
2.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Oct 2, 2023
1 parent ea6007a commit 79cdba5
Show file tree
Hide file tree
Showing 20 changed files with 92 additions and 92 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.35.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.35.0

### Breaking Changes

Expand Down
54 changes: 27 additions & 27 deletions demo/pages/docs/i18n/enUS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,33 @@ PRs are welcomed for locales that are not supported yet!

The following list is sorted by 'Config' column.

| Language | Config | Date config | Version |
| ------------------------- | ------ | ----------- | ------------ |
| Arabic (العربية) | arDZ | dateArDZ | 2.34.0 |
| German (Germany) | deDE | dateDeDE | |
| English (British) | enGB | dateEnGB | 2.25.1 |
| English | enUS | dateEnUS | |
| Esperanto | eo | dateEo | 2.25.2 |
| Spanish (Argentina) | esAR | dateEsAR | 2.24.2 |
| Persian | faIR | dateFaIR | 2.34.4 |
| French | frFR | dateFrFR | |
| Bahasa Indonesia | idID | dateIdID | |
| Italiano | itIT | dateItIT | 2.24.2 |
| Japanese | jaJP | dateJaJP | |
| Korean (South Korea) | koKR | dateKoKR | 2.28.1 |
| Norwegian Bokmål (Norway) | nbNO | dateNbNO | |
| Dutch (Netherlands) | nlNL | dateNlNL | 2.29.0 |
| Polish (Poland) | plPL | datePlPL | 2.25.2 |
| Portuguese (Brazil) | ptBR | datePtBR | 2.28.1 |
| Russian | ruRU | dateRuRU | |
| Slovak | skSK | dateSkSK | 2.25.3 |
| Swedish | svSE | dateSvSE | NEXT_VERSION |
| Thai (Thailand) | thTH | dateThTH | 2.27.0 |
| Turkish | trTR | dateTrTR | 2.34.0 |
| Ukrainian | ukUA | dateUkUA | |
| Vietnamese (Vietnam) | viVN | dateViVN | 2.30.7 |
| Chinese (Simplified) | zhCN | dateZhCN | |
| Chinese (Traditional) | zhTW | dateZhTW | |
| Language | Config | Date config | Version |
| ------------------------- | ------ | ----------- | ------- |
| Arabic (العربية) | arDZ | dateArDZ | 2.34.0 |
| German (Germany) | deDE | dateDeDE | |
| English (British) | enGB | dateEnGB | 2.25.1 |
| English | enUS | dateEnUS | |
| Esperanto | eo | dateEo | 2.25.2 |
| Spanish (Argentina) | esAR | dateEsAR | 2.24.2 |
| Persian | faIR | dateFaIR | 2.34.4 |
| French | frFR | dateFrFR | |
| Bahasa Indonesia | idID | dateIdID | |
| Italiano | itIT | dateItIT | 2.24.2 |
| Japanese | jaJP | dateJaJP | |
| Korean (South Korea) | koKR | dateKoKR | 2.28.1 |
| Norwegian Bokmål (Norway) | nbNO | dateNbNO | |
| Dutch (Netherlands) | nlNL | dateNlNL | 2.29.0 |
| Polish (Poland) | plPL | datePlPL | 2.25.2 |
| Portuguese (Brazil) | ptBR | datePtBR | 2.28.1 |
| Russian | ruRU | dateRuRU | |
| Slovak | skSK | dateSkSK | 2.25.3 |
| Swedish | svSE | dateSvSE | 2.35.0 |
| Thai (Thailand) | thTH | dateThTH | 2.27.0 |
| Turkish | trTR | dateTrTR | 2.34.0 |
| Ukrainian | ukUA | dateUkUA | |
| Vietnamese (Vietnam) | viVN | dateViVN | 2.30.7 |
| Chinese (Simplified) | zhCN | dateZhCN | |
| Chinese (Traditional) | zhTW | dateZhTW | |

## Customize the existing locale

Expand Down
54 changes: 27 additions & 27 deletions demo/pages/docs/i18n/zhCN/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,33 @@ Naive-ui 通过使用 `n-config-provider` 调整语言,默认情况下所有

以下列表依据“配置”列排序。

| 语言 | 配置 | 日期配置 | 版本 |
| ------------------ | ---- | -------- | ------------ |
| 阿拉伯语 | arDZ | dateArDZ | 2.34.0 |
| 德语 | deDE | dateDeDE | |
| 英国英语 | enGB | dateEnGB | 2.25.1 |
| 英语 | enUS | dateEnUS | |
| 世界语 | eo | dateEo | 2.25.2 |
| 西班牙语(阿根廷) | esAR | dateEsAR | 2.24.2 |
| 波斯语 | faIR | dateFaIR | 2.34.4 |
| 法语 | frFR | dateFrFR | |
| 印度尼西亚语 | idID | dateIdID | |
| 意大利语 | itIT | dateItIT | 2.24.2 |
| 日语 | jaJP | dateJaJP | |
| 韩语 | koKR | dateKoKR | 2.28.1 |
| 书面挪威语 | nbNO | dateNbNO | |
| 荷兰语(荷兰) | nlNL | dateNlNL | 2.29.0 |
| 波兰语(波兰) | plPL | datePlPL | 2.25.2 |
| 葡萄牙语 (巴西) | ptBR | datePtBR | 2.28.1 |
| 俄罗斯语 | ruRU | dateRuRU | |
| 斯洛伐克语 | skSK | dateSkSK | 2.25.3 |
| 瑞典語 | svSE | dateSvSE | NEXT_VERSION |
| 泰语(泰国) | thTH | dateThTH | 2.27.0 |
| 土耳其语 | trTR | dateTrTR | 2.34.0 |
| 乌克兰语 | ukUA | dateUkUA | |
| 越南语(越南) | viVN | dateViVN | 2.30.7 |
| 简体中文 | zhCN | dateZhCN | |
| 繁体中文 | zhTW | dateZhTW | |
| 语言 | 配置 | 日期配置 | 版本 |
| ------------------ | ---- | -------- | ------ |
| 阿拉伯语 | arDZ | dateArDZ | 2.34.0 |
| 德语 | deDE | dateDeDE | |
| 英国英语 | enGB | dateEnGB | 2.25.1 |
| 英语 | enUS | dateEnUS | |
| 世界语 | eo | dateEo | 2.25.2 |
| 西班牙语(阿根廷) | esAR | dateEsAR | 2.24.2 |
| 波斯语 | faIR | dateFaIR | 2.34.4 |
| 法语 | frFR | dateFrFR | |
| 印度尼西亚语 | idID | dateIdID | |
| 意大利语 | itIT | dateItIT | 2.24.2 |
| 日语 | jaJP | dateJaJP | |
| 韩语 | koKR | dateKoKR | 2.28.1 |
| 书面挪威语 | nbNO | dateNbNO | |
| 荷兰语(荷兰) | nlNL | dateNlNL | 2.29.0 |
| 波兰语(波兰) | plPL | datePlPL | 2.25.2 |
| 葡萄牙语 (巴西) | ptBR | datePtBR | 2.28.1 |
| 俄罗斯语 | ruRU | dateRuRU | |
| 斯洛伐克语 | skSK | dateSkSK | 2.25.3 |
| 瑞典語 | svSE | dateSvSE | 2.35.0 |
| 泰语(泰国) | thTH | dateThTH | 2.27.0 |
| 土耳其语 | trTR | dateTrTR | 2.34.0 |
| 乌克兰语 | ukUA | dateUkUA | |
| 越南语(越南) | viVN | dateViVN | 2.30.7 |
| 简体中文 | zhCN | dateZhCN | |
| 繁体中文 | zhTW | dateZhTW | |

## 在现有国际化基础上调整

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.34.4",
"version": "2.35.0",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"main": "lib/index.js",
"module": "es/index.js",
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 @@ -128,7 +128,7 @@ render-cell.vue
| defaultSortOrder | `'descend' \| 'ascend' \| false` | `false` | The default sort order of the table in uncontrolled manner. | |
| disabled | `(rowData: object, rowIndex: number) => boolean` | `() => false` | Whether the row is checkable. | |
| ellipsis | `boolean \| EllipsisProps` | `false` | Ellipsis options when content overflows. | |
| ellipsis-component | `'ellipsis' \| 'performant-ellipsis'` | `'ellipsis'` | Component for rendering text ellipsis. It works when `ellipsis` is `EllipsisProps`. If it's `'ellipsis'`, table will use regular `n-ellipsis` component to render text ellipsis. If it's `'performant-ellipsis'`, table will use `n-performant-ellipsis` to render text ellipsis. In the later situation, rendering speed will be much faster but component inside table cell would be unmounted & remounted. | NEXT_VERSION |
| ellipsis-component | `'ellipsis' \| 'performant-ellipsis'` | `'ellipsis'` | Component for rendering text ellipsis. It works when `ellipsis` is `EllipsisProps`. If it's `'ellipsis'`, table will use regular `n-ellipsis` component to render text ellipsis. If it's `'performant-ellipsis'`, table will use `n-performant-ellipsis` to render text ellipsis. In the later situation, rendering speed will be much faster but component inside table cell would be unmounted & remounted. | 2.35.0 |
| expandable | `(rowData: object) => boolean` | `undefined` | Whethe the row is expandable. Only works when `type` is `'expand'`. | |
| filter | `boolean \| (optionValue: string \| number, rowData: object) => boolean \| 'default'` | `false` | The filter of the column. If set to `true`, it will only display filter button on the column, which can be used in async status. | |
| filterMode | `'and' \| 'or'` | `'or'` | The filter mode. | |
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 @@ -138,7 +138,7 @@ expandable-debug.vue
| defaultSortOrder | `'descend' \| 'ascend' \| false` | `false` | 非受控状态下表格默认的排序方式 | |
| disabled | `(rowData: object, rowIndex: number) => boolean` | `undefined` | 是否禁用 | |
| ellipsis | `boolean \| EllipsisProps` | `false` | 文本溢出的设置 | |
| ellipsis-component | `'ellipsis' \| 'performant-ellipsis'` | `'ellipsis'` | 渲染文本溢出时使用的组件,在 `ellipsis` 属性为 `EllipsisProps` 时生效。若为 `'ellipsis'` 则使用常规的 `n-ellipsis` 组件渲染,若为 `'performant-ellipsis'` 则使用 `n-performant-ellipsis` 渲染,这种情况下会有更高的渲染性能,但是每个折叠的单元格中的组件有可能被重新卸载和挂载 | NEXT_VERSION |
| ellipsis-component | `'ellipsis' \| 'performant-ellipsis'` | `'ellipsis'` | 渲染文本溢出时使用的组件,在 `ellipsis` 属性为 `EllipsisProps` 时生效。若为 `'ellipsis'` 则使用常规的 `n-ellipsis` 组件渲染,若为 `'performant-ellipsis'` 则使用 `n-performant-ellipsis` 渲染,这种情况下会有更高的渲染性能,但是每个折叠的单元格中的组件有可能被重新卸载和挂载 | 2.35.0 |
| expandable | `(rowData: object) => boolean` | `undefined` | 行是否可展开,仅在 `type``'expand'` 时生效 | |
| filter | `boolean \| (optionValue: string \| number, rowData: object) => boolean \| 'default'` | `undefined` | 这一列的过滤方法。如果设为 `true`,表格将只会在这列展示一个排序图标,在异步的时候可能有用。 | |
| filterMode | `'and' \| 'or'` | `'or'` | 同一列筛选方式为与还是或 | |
Expand Down
8 changes: 4 additions & 4 deletions src/drawer/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ resizable.vue
| height | `number \| string` | `undefined` | Works when placement is `top` and `bottom`. | |
| native-scrollbar | `boolean` | `true` | Whether to use native scrollbar on drawer. | |
| mask-closable | `boolean` | `true` | Whether to emit `hide` event when click mask. | |
| max-width | `number` | `undefined` | Max width of draggable drawer. | NEXT_VERSION |
| max-height | `number` | `undefined` | Max height of draggable drawer. | NEXT_VERSION |
| min-width | `number` | `undefined` | Min width of draggable drawer. | NEXT_VERSION |
| min-height | `number` | `undefined` | Max height of draggable drawer. | NEXT_VERSION |
| max-width | `number` | `undefined` | Max width of draggable drawer. | 2.35.0 |
| max-height | `number` | `undefined` | Max height of draggable drawer. | 2.35.0 |
| min-width | `number` | `undefined` | Min width of draggable drawer. | 2.35.0 |
| min-height | `number` | `undefined` | Max height of draggable drawer. | 2.35.0 |
| placement | `'top' \| 'right' \| 'bottom' \| 'left'` | `'right'` | Drawer placement. | |
| resizable | `boolean` | `false` | Whether to resize the width / height of drawer. | 2.31.0 |
| scrollbar-props | `object` | `undefined` | 属性参考 [Scrollbar props](scrollbar#Scrollbar-Props) | |
Expand Down
8 changes: 4 additions & 4 deletions src/drawer/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ rtl-debug.vue
| display-directive | `'if' \| 'show'` | `'if'` | `n-drawer` 在控制内容是否渲染时使用的指令,`'if'` 对应 `v-if``'show'` 对应 `v-show` | |
| height | `number \| string` | `undefined` | 抽屉的高度,在位置是 `top``bottom` 时生效 | |
| mask-closable | `boolean` | `true` | 点击遮罩时是否发出 `update:show` 事件 | |
| max-width | `number` | `undefined` | 拖动时的最大宽度 | NEXT_VERSION |
| max-height | `number` | `undefined` | 拖动时的最大高度 | NEXT_VERSION |
| min-width | `number` | `undefined` | 拖动时的最小宽度 | NEXT_VERSION |
| min-height | `number` | `undefined` | 拖动时的最小高度 | NEXT_VERSION |
| max-width | `number` | `undefined` | 拖动时的最大宽度 | 2.35.0 |
| max-height | `number` | `undefined` | 拖动时的最大高度 | 2.35.0 |
| min-width | `number` | `undefined` | 拖动时的最小宽度 | 2.35.0 |
| min-height | `number` | `undefined` | 拖动时的最小高度 | 2.35.0 |
| native-scrollbar | `boolean` | `true` | 是否使用原生滚动 | |
| placement | `'top' \| 'right' \| 'bottom' \| 'left'` | `'right'` | 抽屉展示的位置 | |
| resizable | `boolean` | `false` | 抽屉是否可以调整宽度、高度 | 2.31.0 |
Expand Down
2 changes: 1 addition & 1 deletion src/ellipsis/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ performant-ellipsis.vue

### Ellipsis, PerformantEllipsis Props

`n-performant-ellipsis` since NEXT_VERSION.
`n-performant-ellipsis` since 2.35.0.

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion src/ellipsis/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ width-debug.vue

### Ellipsis, PerformantEllipsis Props

`n-performant-ellipsis`NEXT_VERSION 开始提供。
`n-performant-ellipsis`2.35.0 开始提供。

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
Expand Down
12 changes: 6 additions & 6 deletions src/select/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ custom-field.vue

### Select Methods

| Name | Type | Description | Version |
| ---------- | ------------ | ------------ | ------------ |
| focus | `() => void` | Focus. | 2.24.2 |
| focusInput | `() => void` | Input focus. | NEXT_VERSION |
| blur | `() => void` | Blur. | 2.24.2 |
| blurInput | `() => void` | Input blur. | NEXT_VERSION |
| Name | Type | Description | Version |
| ---------- | ------------ | ------------ | ------- |
| focus | `() => void` | Focus. | 2.24.2 |
| focusInput | `() => void` | Input focus. | 2.35.0 |
| blur | `() => void` | Blur. | 2.24.2 |
| blurInput | `() => void` | Input blur. | 2.35.0 |
12 changes: 6 additions & 6 deletions src/select/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ create-debug.vue

### Select Methods

| 名称 | 类型 | 说明 | 版本 |
| ---------- | ------------ | -------- | ------------ |
| focus | `() => void` | 聚焦 | 2.24.2 |
| focusInput | `() => void` | 输入聚焦 | NEXT_VERSION |
| blur | `() => void` | 失焦 | 2.24.2 |
| blurInput | `() => void` | 输入失焦 | NEXT_VERSION |
| 名称 | 类型 | 说明 | 版本 |
| ---------- | ------------ | -------- | ------ |
| focus | `() => void` | 聚焦 | 2.24.2 |
| focusInput | `() => void` | 输入聚焦 | 2.35.0 |
| blur | `() => void` | 失焦 | 2.24.2 |
| blurInput | `() => void` | 输入失焦 | 2.35.0 |
4 changes: 2 additions & 2 deletions src/transfer/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ render-source-list.vue

| Name | Type | Default | Description | Version |
| --- | --- | --- | --- | --- |
| clear-text | `string` | `undefined` | Text of clear button. | NEXT_VERSION |
| clear-text | `string` | `undefined` | Text of clear button. | 2.35.0 |
| default-value | `Array<string \| number> \| null` | `null` | Default value. | 2.32.0 |
| disabled | `boolean` | `true` | Disabled state. | 2.32.0 |
| filter | `(pattern: string, option: TransferOption, from: 'source' \| 'target') => boolean` | A basic label string match function. | 2.32.0, `from` 2.32.2 |
Expand All @@ -29,7 +29,7 @@ render-source-list.vue
| render-target-label | `(props: { option: TransferOption }) => VNodeChild` | `undefined` | Customize target label rendering. | 2.32.0 |
| render-source-list | `(props: { onCheck: (checkedValueList: Array<string \| number>) => void, checkedOptions: TransferOption[], pattern: string }) => VNodeChild` | `undefined` | Customize source list rendering. | 2.32.0 |
| render-target-list | `(props: { onCheck: (checkedValueList: Array<string \| number>) => void, checkedOptions: TransferOption[], pattern: string }) => VNodeChild` | `undefined` | Customize target list rendering. | 2.33.4 |
| select-all-text | `string` | `undefined` | Text of select all button. | NEXT_VERSION |
| select-all-text | `string` | `undefined` | Text of select all button. | 2.35.0 |
| show-selected | `boolean` | `true` | Whether to show selected options in the source list. | 2.34.0 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Size. | 2.32.0 |
| source-filterable | `boolean` | `false` | The source filterable state. | 2.32.2 |
Expand Down
4 changes: 2 additions & 2 deletions src/transfer/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ value-debug.vue

| 名称 | 类型 | 默认值 | 说明 | 版本 |
| --- | --- | --- | --- | --- |
| clear-text | `string` | `undefined` | 清楚按钮的文本 | NEXT_VERSION |
| clear-text | `string` | `undefined` | 清楚按钮的文本 | 2.35.0 |
| default-value | `Array<string \| number> \| null` | `null` | 非受控模式下的默认值 | 2.32.0 |
| disabled | `boolean` | `true` | 是否禁用 | 2.32.0 |
| filter | `(pattern: string, option: TransferOption, from: 'source' \| 'target') => boolean` | 一个简单的标签字符串匹配函数 | 搜索时使用的过滤函数 | 2.32.0,`from` 2.32.2 |
Expand All @@ -31,7 +31,7 @@ value-debug.vue
| render-target-label | `(props: { option: TransferOption }) => VNodeChild` | `undefined` | 自定义目标标签 | 2.32.0 |
| render-source-list | `(props: { onCheck: (checkedValueList: Array<string \| number>) => void, checkedOptions: TransferOption[], pattern: string }) => VNodeChild` | `undefined` | 自定义源列表 | 2.32.0 |
| render-target-list | `(props: { onCheck: (checkedValueList: Array<string \| number>) => void, checkedOptions: TransferOption[], pattern: string }) => VNodeChild` | `undefined` | 自定义目标列表 | 2.33.4 |
| select-all-text | `string` | `undefined` | 全选按钮的文本 | NEXT_VERSION |
| select-all-text | `string` | `undefined` | 全选按钮的文本 | 2.35.0 |
| show-selected | `boolean` | `true` | 是否显示源列表中选中的项 | 2.34.0 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 尺寸 | 2.32.0 |
| source-filterable | `boolean` | `false` | 源项是否可过滤 | 2.32.2 |
Expand Down
4 changes: 2 additions & 2 deletions src/tree-select/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ debug.vue
| Name | Type | Description | Version |
| --- | --- | --- | --- |
| blur | `() => void` | Blur. | 2.34.0 |
| blurInput | `() => void` | Input blur. | NEXT_VERSION |
| blurInput | `() => void` | Input blur. | 2.35.0 |
| focus | `() => void` | Focus. | 2.34.0s |
| focusInput | `() => void` | Input focus. | NEXT_VERSION |
| focusInput | `() => void` | Input focus. | 2.35.0 |
| getCheckedData | `() => { keys: Array<string \| number>, options: Array<TreeOption \| null> }` | Get checked data. | 2.34.0 |
| getIndeterminateData | `() => { keys: Array<string \| number>, options: Array<TreeOption \| null> }` | Get indeterminate data. | 2.34.0 |
4 changes: 2 additions & 2 deletions src/tree-select/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ render-debug.vue
| 名称 | 类型 | 说明 | 版本 |
| --- | --- | --- | --- |
| blur | `() => void` | 失焦 | 2.34.0 |
| blurInput | `() => void` | 输入失焦 | NEXT_VERSION |
| blurInput | `() => void` | 输入失焦 | 2.35.0 |
| focus | `() => void` | 聚焦 | 2.34.0 |
| focusInput | `() => void` | 输入聚焦 | NEXT_VERSION |
| focusInput | `() => void` | 输入聚焦 | 2.35.0 |
| getCheckedData | `() => { keys: Array<string \| number>, options: Array<TreeOption \| null> }` | 获取选中的数据 | 2.34.0 |
| getIndeterminateData | `() => { keys: Array<string \| number>, options: Array<TreeOption \| null> }` | 获取半选的数据 | 2.34.0 |
Loading

0 comments on commit 79cdba5

Please sign in to comment.