diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 5cdaf7e7600..e3aafc826d9 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -1,6 +1,6 @@ # CHANGELOG -## NEXT_VERSION +## 2.41.0 ### Breaking Changes diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 9c1e7e9d996..dd6c97db9d9 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -1,6 +1,8 @@ # CHANGELOG -## NEXT_VERSION +## 2.41.0 + +`2025-01-05` ### Breaking Changes @@ -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` 参数 diff --git a/demo/pages/docs/i18n/enUS/index.md b/demo/pages/docs/i18n/enUS/index.md index 83f88c4a4fa..6f2e0e88d21 100644 --- a/demo/pages/docs/i18n/enUS/index.md +++ b/demo/pages/docs/i18n/enUS/index.md @@ -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 diff --git a/demo/pages/docs/i18n/zhCN/index.md b/demo/pages/docs/i18n/zhCN/index.md index 2031530047b..95ccf61c2d2 100644 --- a/demo/pages/docs/i18n/zhCN/index.md +++ b/demo/pages/docs/i18n/zhCN/index.md @@ -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 | | ## 在现有国际化基础上调整 diff --git a/package.json b/package.json index 82a4066a248..937bf3eec17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "naive-ui", - "version": "2.40.4", + "version": "2.41.0", "packageManager": "pnpm@9.5.0", "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast", "author": "07akioni", diff --git a/src/dialog/demos/enUS/index.demo-entry.md b/src/dialog/demos/enUS/index.demo-entry.md index 43c07334add..7ac9f3bb7a0 100644 --- a/src/dialog/demos/enUS/index.demo-entry.md +++ b/src/dialog/demos/enUS/index.demo-entry.md @@ -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. | | diff --git a/src/dialog/demos/zhCN/index.demo-entry.md b/src/dialog/demos/zhCN/index.demo-entry.md index a37754a9555..a2a675f4690 100644 --- a/src/dialog/demos/zhCN/index.demo-entry.md +++ b/src/dialog/demos/zhCN/index.demo-entry.md @@ -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` 状态 | | diff --git a/src/modal/demos/enUS/index.demo-entry.md b/src/modal/demos/enUS/index.demo-entry.md index baaebe3b368..17982469c3a 100644 --- a/src/modal/demos/enUS/index.demo-entry.md +++ b/src/modal/demos/enUS/index.demo-entry.md @@ -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. | | diff --git a/src/modal/demos/zhCN/index.demo-entry.md b/src/modal/demos/zhCN/index.demo-entry.md index 4d195265d61..a12443ca797 100644 --- a/src/modal/demos/zhCN/index.demo-entry.md +++ b/src/modal/demos/zhCN/index.demo-entry.md @@ -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 | | diff --git a/src/version.ts b/src/version.ts index cb39e3fae16..4b54002a318 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '2.40.4' +export default '2.41.0'