Skip to content

Commit

Permalink
2.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Jan 5, 2025
1 parent ac5afe5 commit cf4404d
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 75 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.41.0

### Breaking Changes

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

## NEXT_VERSION
## 2.41.0

`2025-01-05`

### Breaking Changes

Expand All @@ -13,7 +15,7 @@

### Features

- `n-modal` 新增 `draggable` 属性,关闭 [#6525](https://github.com/tusen-ai/naive-ui/issues/6525)[#5792](https://github.com/tusen-ai/naive-ui/issues/5792)[#5711](https://github.com/tusen-ai/naive-ui/issues/5711)[#5501](https://github.com/tusen-ai/naive-ui/issues/5501)[#2152](https://github.com/tusen-ai/naive-ui/issues/2152)
- `n-modal` 新增 `draggable` 属性,关闭 [#6525](https://github.com/tusen-ai/naive-ui/issues/6525)[#5792](https://github.com/tusen-ai/naive-ui/issues/5792)[#5711](https://github.com/tusen-ai/naive-ui/issues/5711)[#5501](https://github.com/tusen-ai/naive-ui/issues/5501)[#2152](https://github.com/tusen-ai/naive-ui/issues/2152)
- `useDialog` 支持 `draggable` 参数
- `useModal` 支持 `draggable` 参数

Expand Down
66 changes: 33 additions & 33 deletions demo/pages/docs/i18n/enUS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,39 @@ 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 |
| Azerbaijani (Azərbaycanca) | azAZ | dateAzAZ | 2.39.0 |
| Czech (Czechia) | csCZ | dateCsCz | 2.38.2 |
| 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 |
| Estonian | etEE | dateEtEE | 2.38.0 |
| Persian | faIR | dateFaIR | 2.34.4 |
| French | frFR | dateFrFR | |
| Bahasa Indonesia | idID | dateIdID | |
| Italiano | itIT | dateItIT | 2.24.2 |
| Japanese | jaJP | dateJaJP | |
| Khmer (Cambodia) | kmKH | dateKmKH | NEXT_VERSION |
| 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 |
| Uyghur (China) | ugCN | dateUgCN | |
| Ukrainian | ukUA | dateUkUA | |
| Uzbek (Uzbekistan) | uzUZ | dateUzUZ | 2.39.0 |
| 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 |
| Azerbaijani (Azərbaycanca) | azAZ | dateAzAZ | 2.39.0 |
| Czech (Czechia) | csCZ | dateCsCz | 2.38.2 |
| 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 |
| Estonian | etEE | dateEtEE | 2.38.0 |
| Persian | faIR | dateFaIR | 2.34.4 |
| French | frFR | dateFrFR | |
| Bahasa Indonesia | idID | dateIdID | |
| Italiano | itIT | dateItIT | 2.24.2 |
| Japanese | jaJP | dateJaJP | |
| Khmer (Cambodia) | kmKH | dateKmKH | 2.41.0 |
| 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 |
| Uyghur (China) | ugCN | dateUgCN | |
| Ukrainian | ukUA | dateUkUA | |
| Uzbek (Uzbekistan) | uzUZ | dateUzUZ | 2.39.0 |
| Vietnamese (Vietnam) | viVN | dateViVN | 2.30.7 |
| Chinese (Simplified) | zhCN | dateZhCN | |
| Chinese (Traditional) | zhTW | dateZhTW | |

## Customize the existing locale

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

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

| 语言 | 配置 | 日期配置 | 版本 |
| ------------------ | ---- | -------- | ------------ |
| 阿拉伯语 | arDZ | dateArDZ | 2.34.0 |
| 阿塞拜疆语 | azAZ | dateAzAZ | 2.39.0 |
| 捷克语(捷克) | csCZ | dateCsCz | 2.38.2 |
| 德语 | deDE | dateDeDE | |
| 英国英语 | enGB | dateEnGB | 2.25.1 |
| 英语 | enUS | dateEnUS | |
| 世界语 | eo | dateEo | 2.25.2 |
| 西班牙语(阿根廷) | esAR | dateEsAR | 2.24.2 |
| 爱沙尼亚语 | etEE | dateEtEE | 2.38.0 |
| 波斯语 | faIR | dateFaIR | 2.34.4 |
| 法语 | frFR | dateFrFR | |
| 印度尼西亚语 | idID | dateIdID | |
| 意大利语 | itIT | dateItIT | 2.24.2 |
| 日语 | jaJP | dateJaJP | |
| 高棉语(柬埔寨) | kmKH | dateKmKH | NEXT_VERSION |
| 韩语 | 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 |
| 维吾尔语 | ugCN | dateUgCN | NEXT_VERSION |
| 乌克兰语 | ukUA | dateUkUA | |
| 乌兹别克语 | uzUZ | dateUzUZ | 2.39.0 |
| 越南语(越南) | viVN | dateViVN | 2.30.7 |
| 简体中文 | zhCN | dateZhCN | |
| 繁体中文 | zhTW | dateZhTW | |
| 语言 | 配置 | 日期配置 | 版本 |
| ------------------ | ---- | -------- | ------ |
| 阿拉伯语 | arDZ | dateArDZ | 2.34.0 |
| 阿塞拜疆语 | azAZ | dateAzAZ | 2.39.0 |
| 捷克语(捷克) | csCZ | dateCsCz | 2.38.2 |
| 德语 | deDE | dateDeDE | |
| 英国英语 | enGB | dateEnGB | 2.25.1 |
| 英语 | enUS | dateEnUS | |
| 世界语 | eo | dateEo | 2.25.2 |
| 西班牙语(阿根廷) | esAR | dateEsAR | 2.24.2 |
| 爱沙尼亚语 | etEE | dateEtEE | 2.38.0 |
| 波斯语 | faIR | dateFaIR | 2.34.4 |
| 法语 | frFR | dateFrFR | |
| 印度尼西亚语 | idID | dateIdID | |
| 意大利语 | itIT | dateItIT | 2.24.2 |
| 日语 | jaJP | dateJaJP | |
| 高棉语(柬埔寨) | kmKH | dateKmKH | 2.41.0 |
| 韩语 | 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 |
| 维吾尔语 | ugCN | dateUgCN | 2.41.0 |
| 乌克兰语 | ukUA | dateUkUA | |
| 乌兹别克语 | uzUZ | dateUzUZ | 2.39.0 |
| 越南语(越南) | 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.40.4",
"version": "2.41.0",
"packageManager": "[email protected]",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"author": "07akioni",
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ use-dialog-reactive-list.vue
| content | `string \| (() => VNodeChild)` | `undefined` | Content, can be a render function. | |
| contentClass | `string` | `undefined` | The class name of the content. | 2.38.2 |
| contentStyle | `Object \| string` | `undefined` | The style of the content. | 2.38.2 |
| draggable | `boolean \| { bounds?: 'none' }` | `false` | Whether it is draggable. | NEXT_VERSION |
| draggable | `boolean \| { bounds?: 'none' }` | `false` | Whether it is draggable. | 2.41.0 |
| iconPlacement | `'left' \| 'top'` | `'left'` | Icon placement. | |
| icon | `() => VNodeChild` | `undefined` | `Render` function of `icon`. | |
| loading | `boolean` | `false` | Whether to display `loading` status. | |
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ rtl-debug.vue
| content | `string \| (() => VNodeChild)` | `undefined` | 对话框内容,可以是渲染函数 | |
| contentClass | `string` | `undefined` | 内容的类名 | 2.38.2 |
| contentStyle | `Object \| string` | `undefined` | 内容的样式 | 2.38.2 |
| draggable | `boolean \| { bounds?: 'none' }` | `false` | 是否可拖拽 | NEXT_VERSION |
| draggable | `boolean \| { bounds?: 'none' }` | `false` | 是否可拖拽 | 2.41.0 |
| iconPlacement | `'left' \| 'top'` | `'left'` | 图标的位置 | |
| icon | `() => VNodeChild` | `undefined` | 对话框 `icon`, 需要是渲染函数 | |
| loading | `boolean` | `false` | 是否显示 `loading` 状态 | |
Expand Down
2 changes: 1 addition & 1 deletion src/modal/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Provided since `2.38.0`.
| block-scroll | `boolean` | `true` | Whether to disabled body scrolling when it's active. | 2.28.3 |
| close-on-esc | `boolean` | `true` | Whether to close modal on Esc is pressed. | 2.24.2 |
| display-directive | `'if' \| 'show'` | `'if'` | Use which directive to control the rendering of modal body. | |
| draggable | `boolean \| { bounds?: 'window' }` | `false` | Whether the modal is draggable. Make its position not bound inside window using `bounds === 'none'`. | NEXT_VERSION |
| draggable | `boolean \| { bounds?: 'window' }` | `false` | Whether the modal is draggable. Make its position not bound inside window using `bounds === 'none'`. | 2.41.0 |
| mask-closable | `boolean` | `true` | Whether to emit `hide` event when click mask. | |
| preset | `'dialog' \| 'card'` | `undefined` | The preset of `n-modal`. | |
| show | `boolean` | `false` | Whether to show modal. | |
Expand Down
2 changes: 1 addition & 1 deletion src/modal/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mask-click-debug.vue
| block-scroll | `boolean` | `true` | 是否在打开时禁用 body 滚动 | 2.28.3 |
| close-on-esc | `boolean` | `true` | 是否在摁下 Esc 键的时候关闭 Modal | 2.24.2 |
| display-directive | `'if' \| 'show'` | `'if'` | 使用何种指令控制模态框主体的条件渲染 | |
| draggable | `boolean \| { bounds?: 'none' }` | `false` | 是否可拖拽,`bounds === 'none'` 时拖拽可超出视口 | NEXT_VERSION |
| draggable | `boolean \| { bounds?: 'none' }` | `false` | 是否可拖拽,`bounds === 'none'` 时拖拽可超出视口 | 2.41.0 |
| mask-closable | `boolean` | `true` | 点击遮罩时是否发出 `update:show` 事件 | |
| preset | `'dialog' \| 'card'` | `undefined` | 模态框使用何种预设 | |
| show | `boolean` | `false` | 是否展示 Modal | |
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.4'
export default '2.41.0'

0 comments on commit cf4404d

Please sign in to comment.