diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 0c3b8b85ddf..5055259917a 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -1,6 +1,6 @@ # CHANGELOG -## NEXT_VERSION +## 2.38.0 `2024-02-22` @@ -19,6 +19,7 @@ ### Features +- 🌟 Adds `n-modal-provider` component and `useModal` method. - 🌟 Adds `n-float-button` and `n-float-button-group` component. - 🌟 Provides ES module bundle at `/dist/index.mjs` and `/dist/index.prod.mjs`. - `n-auto-complete` adds `append` prop. diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 99e3abcc52f..d8d71cb0ddf 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -1,6 +1,6 @@ # CHANGELOG -## NEXT_VERSION +## 2.38.0 `2024-02-22` @@ -19,6 +19,7 @@ ### Features +- 🌟 新增 `n-modal-provider` 组件和 `useModal` 方法 - 🌟 新增 `n-float-button` 和 `n-float-button-group` 组件 - 🌟 提供 ES module 打包(在 `/dist/index.mjs` 和 `/dist/index.prod.mjs`) - `n-auto-complete` 新增 `append` 属性 diff --git a/demo/pages/docs/i18n/enUS/index.md b/demo/pages/docs/i18n/enUS/index.md index 68ef4f0183c..09fb920c91a 100644 --- a/demo/pages/docs/i18n/enUS/index.md +++ b/demo/pages/docs/i18n/enUS/index.md @@ -44,34 +44,34 @@ 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 | -| Estonian | etEE | dateEtEE | NEXT_VERSION | -| 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 | | +| 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 | +| 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 | | +| 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 diff --git a/demo/pages/docs/i18n/zhCN/index.md b/demo/pages/docs/i18n/zhCN/index.md index ecbeb40943b..ee87fed1dfb 100644 --- a/demo/pages/docs/i18n/zhCN/index.md +++ b/demo/pages/docs/i18n/zhCN/index.md @@ -44,34 +44,34 @@ 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 | -| 爱沙尼亚语 | etEE | dateEtEE | NEXT_VERSION | -| 波斯语 | 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 | | +| 语言 | 配置 | 日期配置 | 版本 | +| ------------------ | ---- | -------- | ------ | +| 阿拉伯语 | arDZ | dateArDZ | 2.34.0 | +| 德语 | 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 | | +| 韩语 | 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 | | ## 在现有国际化基础上调整 diff --git a/package.json b/package.json index 7c70049b6de..7a763ec89fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "naive-ui", - "version": "2.37.3", + "version": "2.38.0", "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast", "main": "lib/index.js", "module": "es/index.mjs", diff --git a/src/auto-complete/demos/enUS/index.demo-entry.md b/src/auto-complete/demos/enUS/index.demo-entry.md index a48eb7b4991..b05222b3da7 100644 --- a/src/auto-complete/demos/enUS/index.demo-entry.md +++ b/src/auto-complete/demos/enUS/index.demo-entry.md @@ -22,7 +22,7 @@ append.vue | Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | -| append | `boolean` | `false` | Whether to append content to input. | NEXT_VERSION | +| append | `boolean` | `false` | Whether to append content to input. | 2.38.0 | | blur-after-select | `boolean` | `false` | Whether to blur after selection. | | | clear-after-select | `boolean` | `false` | Whether to clear after selection. | | | clearable | `boolean` | `false` | Whether autocomplete is clearable. | | diff --git a/src/auto-complete/demos/zhCN/index.demo-entry.md b/src/auto-complete/demos/zhCN/index.demo-entry.md index 319f8e87fe8..cd40ce3e40e 100644 --- a/src/auto-complete/demos/zhCN/index.demo-entry.md +++ b/src/auto-complete/demos/zhCN/index.demo-entry.md @@ -22,7 +22,7 @@ append.vue | 名称 | 类型 | 默认值 | 说明 | 版本 | | --- | --- | --- | --- | --- | -| append | `boolean` | `false` | 选中后是否追加 | NEXT_VERSION | +| append | `boolean` | `false` | 选中后是否追加 | 2.38.0 | | blur-after-select | `boolean` | `false` | 选中后是否 blur | | | clear-after-select | `boolean` | `false` | 选中后是否清空 | | | clearable | `boolean` | `false` | 自动填充是否支持可清除 | | diff --git a/src/float-button-group/tests/__snapshots__/NFloatButtonGroup.spec.tsx.snap b/src/float-button-group/tests/__snapshots__/NFloatButtonGroup.spec.tsx.snap new file mode 100644 index 00000000000..ef804b75aa2 --- /dev/null +++ b/src/float-button-group/tests/__snapshots__/NFloatButtonGroup.spec.tsx.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`n-flex render empty children 1`] = `"
"`; diff --git a/src/float-button/demos/enUS/index.demo-entry.md b/src/float-button/demos/enUS/index.demo-entry.md index 6be645d7543..01586f0377e 100644 --- a/src/float-button/demos/enUS/index.demo-entry.md +++ b/src/float-button/demos/enUS/index.demo-entry.md @@ -2,7 +2,7 @@ Like `BackTop` but with more appearance level, more interaction. -Available since `NEXT_VERSION`. +Available since `2.38.0`. ## Demos @@ -19,35 +19,35 @@ menu.vue ### FloatButton Props -| Name | Type | Default | Description | NEXT_VERSION | +| Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | -| bottom | `number \| string` | `40` | CSS `bottom` property of the button group. | NEXT_VERSION | -| height | `number \| string` | `40` | CSS `height` property of the button group. | NEXT_VERSION | -| left | `number \| string` | `undefined` | CSS `left` property of the button group. | NEXT_VERSION | -| menu-trigger | `'click' \| 'hover'` | `undefined` | Trigger action to show submenu. | NEXT_VERSION | -| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | CSS `position` property of the button group. | NEXT_VERSION | -| right | `number \| string` | `undefined` | CSS `right` property of the button group. | NEXT_VERSION | -| shape | `'circle' \| 'square'` | `'circle'` | Shape of the button. | NEXT_VERSION | -| show-menu | `boolean` | `undefined` | Whether submenu of the button is shown. | NEXT_VERSION | -| top | `number \| string` | `undefined` | CSS `top` property of the button group. | NEXT_VERSION | -| type | `'default' \| 'primary'` | `'default'` | Type of the button. | NEXT_VERSION | -| width | `number \| string` | `undefined` | | NEXT_VERSION | -| on-update:show-menu | `(value: boolean) => void` | `undefined` | Callback when the menu is opened or closed. | NEXT_VERSION | +| bottom | `number \| string` | `40` | CSS `bottom` property of the button group. | 2.38.0 | +| height | `number \| string` | `40` | CSS `height` property of the button group. | 2.38.0 | +| left | `number \| string` | `undefined` | CSS `left` property of the button group. | 2.38.0 | +| menu-trigger | `'click' \| 'hover'` | `undefined` | Trigger action to show submenu. | 2.38.0 | +| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | CSS `position` property of the button group. | 2.38.0 | +| right | `number \| string` | `undefined` | CSS `right` property of the button group. | 2.38.0 | +| shape | `'circle' \| 'square'` | `'circle'` | Shape of the button. | 2.38.0 | +| show-menu | `boolean` | `undefined` | Whether submenu of the button is shown. | 2.38.0 | +| top | `number \| string` | `undefined` | CSS `top` property of the button group. | 2.38.0 | +| type | `'default' \| 'primary'` | `'default'` | Type of the button. | 2.38.0 | +| width | `number \| string` | `undefined` | | 2.38.0 | +| on-update:show-menu | `(value: boolean) => void` | `undefined` | Callback when the menu is opened or closed. | 2.38.0 | ### FloatButtonGroup Props -| Name | Type | Default | Description | NEXT_VERSION | +| Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | -| bottom | `number \| string` | `undefined` | CSS `bottom` property of the button group. | NEXT_VERSION | -| left | `number \| string` | `undefined` | CSS `left` property of the button group. | NEXT_VERSION | -| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | CSS `position` property of the button group. | NEXT_VERSION | -| right | `number \| string` | `undefined` | CSS `right` property of the button group. | NEXT_VERSION | -| shape | `'circle' \| 'square'` | `'circle'` | Shape of the button group. | NEXT_VERSION | -| top | `number \| string` | `undefined` | CSS `top` property of the button group. | NEXT_VERSION | +| bottom | `number \| string` | `undefined` | CSS `bottom` property of the button group. | 2.38.0 | +| left | `number \| string` | `undefined` | CSS `left` property of the button group. | 2.38.0 | +| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | CSS `position` property of the button group. | 2.38.0 | +| right | `number \| string` | `undefined` | CSS `right` property of the button group. | 2.38.0 | +| shape | `'circle' \| 'square'` | `'circle'` | Shape of the button group. | 2.38.0 | +| top | `number \| string` | `undefined` | CSS `top` property of the button group. | 2.38.0 | ### FloatButton Slots -| Name | Parameters | Description | Version | -| ----------- | ---------- | ---------------------------- | ------------ | -| description | `()` | Description for the button. | NEXT_VERSION | -| menu | `()` | Submenu of the float button. | NEXT_VERSION | +| Name | Parameters | Description | Version | +| ----------- | ---------- | ---------------------------- | ------- | +| description | `()` | Description for the button. | 2.38.0 | +| menu | `()` | Submenu of the float button. | 2.38.0 | diff --git a/src/float-button/demos/zhCN/index.demo-entry.md b/src/float-button/demos/zhCN/index.demo-entry.md index b8c2988360a..90716adb102 100644 --- a/src/float-button/demos/zhCN/index.demo-entry.md +++ b/src/float-button/demos/zhCN/index.demo-entry.md @@ -2,7 +2,7 @@ 跟 `Back Top` 很像,多一份颜值,多一份互动。 -`NEXT_VERSION` 版本开始提供该组件。 +`2.38.0` 版本开始提供该组件。 ## 演示 @@ -21,33 +21,33 @@ menu.vue | 名称 | 类型 | 默认值 | 说明 | 版本 | | --- | --- | --- | --- | --- | -| bottom | `number \| string` | `40` | 按钮的 CSS `bottom` 属性 | NEXT_VERSION | -| height | `number \| string` | `40` | 按钮的 CSS `height` 属性 | NEXT_VERSION | -| left | `number \| string` | `undefined` | 按钮的 CSS `left` 属性 | NEXT_VERSION | -| menu-trigger | `'click' \| 'hover'` | `undefined` | 触发菜单显示的方式 | NEXT_VERSION | -| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | 按钮组的定位方式 | NEXT_VERSION | -| right | `number \| string` | `undefined` | 按钮的 CSS `right` 属性 | NEXT_VERSION | -| shape | `'circle' \| 'square'` | `'circle'` | 按钮的形状 | NEXT_VERSION | -| show-menu | `boolean` | `undefined` | 是否打开菜单 | NEXT_VERSION | -| top | `number \| string` | `undefined` | 按钮的 CSS `top` 属性 | NEXT_VERSION | -| type | `'default' \| 'primary'` | `'default'` | 按钮的类型 | NEXT_VERSION | -| width | `number \| string` | `undefined` | 按钮的 CSS `width` 属性 | NEXT_VERSION | -| on-update:show-menu | `(value: boolean) => void` | `undefined` | 菜单打开或者关闭的回调 | NEXT_VERSION | +| bottom | `number \| string` | `40` | 按钮的 CSS `bottom` 属性 | 2.38.0 | +| height | `number \| string` | `40` | 按钮的 CSS `height` 属性 | 2.38.0 | +| left | `number \| string` | `undefined` | 按钮的 CSS `left` 属性 | 2.38.0 | +| menu-trigger | `'click' \| 'hover'` | `undefined` | 触发菜单显示的方式 | 2.38.0 | +| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | 按钮组的定位方式 | 2.38.0 | +| right | `number \| string` | `undefined` | 按钮的 CSS `right` 属性 | 2.38.0 | +| shape | `'circle' \| 'square'` | `'circle'` | 按钮的形状 | 2.38.0 | +| show-menu | `boolean` | `undefined` | 是否打开菜单 | 2.38.0 | +| top | `number \| string` | `undefined` | 按钮的 CSS `top` 属性 | 2.38.0 | +| type | `'default' \| 'primary'` | `'default'` | 按钮的类型 | 2.38.0 | +| width | `number \| string` | `undefined` | 按钮的 CSS `width` 属性 | 2.38.0 | +| on-update:show-menu | `(value: boolean) => void` | `undefined` | 菜单打开或者关闭的回调 | 2.38.0 | ### FloatButtonGroup Props | 名称 | 类型 | 默认值 | 说明 | 版本 | | --- | --- | --- | --- | --- | -| bottom | `number \| string` | `undefined` | 按钮组的 CSS `bottom` 属性 | NEXT_VERSION | -| left | `number \| string` | `undefined` | 按钮组的 CSS `left` 属性 | NEXT_VERSION | -| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | 按钮组的定位方式 | NEXT_VERSION | -| right | `number \| string` | `undefined` | 按钮组的 CSS `right` 属性 | NEXT_VERSION | -| shape | `'circle' \| 'square'` | `'circle'` | 按钮组的形状 | NEXT_VERSION | -| top | `number \| string` | `undefined` | 按钮组的 CSS `top` 属性 | NEXT_VERSION | +| bottom | `number \| string` | `undefined` | 按钮组的 CSS `bottom` 属性 | 2.38.0 | +| left | `number \| string` | `undefined` | 按钮组的 CSS `left` 属性 | 2.38.0 | +| position | `'relative' \| 'absolute' \| 'fixed'` | `'fixed'` | 按钮组的定位方式 | 2.38.0 | +| right | `number \| string` | `undefined` | 按钮组的 CSS `right` 属性 | 2.38.0 | +| shape | `'circle' \| 'square'` | `'circle'` | 按钮组的形状 | 2.38.0 | +| top | `number \| string` | `undefined` | 按钮组的 CSS `top` 属性 | 2.38.0 | ### FloatButton Slots -| 名称 | 参数 | 说明 | 版本 | -| ----------- | ---- | ------------------ | ------------ | -| description | `()` | 按钮中的描述信息 | NEXT_VERSION | -| menu | `()` | 按钮会触发的子菜单 | NEXT_VERSION | +| 名称 | 参数 | 说明 | 版本 | +| ----------- | ---- | ------------------ | ------ | +| description | `()` | 按钮中的描述信息 | 2.38.0 | +| menu | `()` | 按钮会触发的子菜单 | 2.38.0 | diff --git a/src/float-button/tests/__snapshots__/FloatButton.spec.tsx.snap b/src/float-button/tests/__snapshots__/FloatButton.spec.tsx.snap new file mode 100644 index 00000000000..2d002b15ebe --- /dev/null +++ b/src/float-button/tests/__snapshots__/FloatButton.spec.tsx.snap @@ -0,0 +1,13 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`n-flex render empty children 1`] = ` +"
+ +
+ + +
+ + +
" +`; diff --git a/src/modal/demos/enUS/index.demo-entry.md b/src/modal/demos/enUS/index.demo-entry.md index 7c8a85476a9..cfd5ae6a9dc 100644 --- a/src/modal/demos/enUS/index.demo-entry.md +++ b/src/modal/demos/enUS/index.demo-entry.md @@ -33,20 +33,20 @@ transform-origin.vue ### ModalProvider Props -Provided since NEXT_VERSION. +Provided since `2.38.0`. | Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | -| to | `string \| HTMLElement` | `body` | Container node of the modal content. | NEXT_VERSION | +| to | `string \| HTMLElement` | `body` | Container node of the modal content. | 2.38.0 | ### useModal API -Provided since NEXT_VERSION. +Provided since `2.38.0`. | Name | Type | Description | Version | | --- | --- | --- | --- | -| create | `(options: ModalOptions) => ModalReactive` | Create a modal. | NEXT_VERSION | -| destroyAll | `() => void` | Destroy all modals. | NEXT_VERSION | +| create | `(options: ModalOptions) => ModalReactive` | Create a modal. | 2.38.0 | +| destroyAll | `() => void` | Destroy all modals. | 2.38.0 | `ModalOptions` and `ModalReactive`'s properties are the same as `ModalProps` (properties should use camelCase, for example `auto-focus` property should use `autoFocus` as option property). @@ -73,11 +73,11 @@ Provided since NEXT_VERSION. ### ModalProvider Props -Provided since NEXT_VERSION. +Provided since 2.38.0. | Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | -| to | `string \| HTMLElement` | `body` | Container node of the modal content. | NEXT_VERSION | +| to | `string \| HTMLElement` | `body` | Container node of the modal content. | 2.38.0 | ### Modal with Preset Card Props diff --git a/src/modal/demos/enUS/reactive.demo.vue b/src/modal/demos/enUS/reactive.demo.vue index 2905ec37ab7..ccc3218735a 100644 --- a/src/modal/demos/enUS/reactive.demo.vue +++ b/src/modal/demos/enUS/reactive.demo.vue @@ -1,7 +1,7 @@ # Imperative API -Provided since NEXT_VERSION. +Provided since `2.38.0`. You can use `useModal.create` to create a modal. (Please make sure this API is called inside `n-modal-provider`.) diff --git a/src/modal/demos/zhCN/index.demo-entry.md b/src/modal/demos/zhCN/index.demo-entry.md index 3d30816bbaa..1ca29237176 100644 --- a/src/modal/demos/zhCN/index.demo-entry.md +++ b/src/modal/demos/zhCN/index.demo-entry.md @@ -48,20 +48,20 @@ mask-click-debug.vue ### ModalProvider Props -自 NEXT_VERSION 开始提供。 +自 `2.38.0` 开始提供。 -| 名称 | 类型 | 默认值 | 说明 | 版本 | -| ---- | ----------------------- | ------ | -------------- | ------------ | -| to | `string \| HTMLElement` | `body` | 模态的挂载位置 | NEXT_VERSION | +| 名称 | 类型 | 默认值 | 说明 | 版本 | +| ---- | ----------------------- | ------ | -------------- | ------ | +| to | `string \| HTMLElement` | `body` | 模态的挂载位置 | 2.38.0 | ### useModal API -自 NEXT_VERSION 开始提供。 +自 `2.38.0` 开始提供。 | 名称 | 类型 | 说明 | 版本 | | --- | --- | --- | --- | -| create | `(options: ModalOptions) => ModalReactive` | 创建模态框 | NEXT_VERSION | -| destroyAll | `() => void` | 销毁所有弹出的模态框 | NEXT_VERSION | +| create | `(options: ModalOptions) => ModalReactive` | 创建模态框 | 2.38.0 | +| destroyAll | `() => void` | 销毁所有弹出的模态框 | 2.38.0 | `ModalOptions` 的属性和 `ModalReactive` 属性同 `ModalProps`(属性应使用 camelCase,例如 `auto-focus` 对应 `autoFocus`)。 diff --git a/src/modal/demos/zhCN/reactive.demo.vue b/src/modal/demos/zhCN/reactive.demo.vue index 8ff7253f9b3..5cf9b52be21 100644 --- a/src/modal/demos/zhCN/reactive.demo.vue +++ b/src/modal/demos/zhCN/reactive.demo.vue @@ -1,7 +1,7 @@ # 命令式 API -自 NEXT_VERSION 开始提供。 +自 `2.38.0` 开始提供。 你可以使用 `useModal.create` 来打开一个模态框。(请确保使用此 API 的组件被 `n-modal-provider` 包含。) diff --git a/src/split/demos/enUS/index.demo-entry.md b/src/split/demos/enUS/index.demo-entry.md index de414b334d8..28d97d58679 100644 --- a/src/split/demos/enUS/index.demo-entry.md +++ b/src/split/demos/enUS/index.demo-entry.md @@ -22,14 +22,14 @@ controlled.vue | Name | Type | Default | Description | Version | | --- | --- | --- | --- | --- | | default-size | `number` | `0.5` | Default split size, 0~1 is a percentage. | 2.36.0 | -| size | `number` | `undefined` | Split is the controlled split size, with 0~1 representing the percentage. | NEXT_VERSION | +| size | `number` | `undefined` | Split is the controlled split size, with 0~1 representing the percentage. | 2.38.0 | | disabled | `boolean` | `false` | Whether to disable the split. | 2.36.0 | | direction | `'horizontal' \| 'vertical'` | `'horizontal'` | The direction of the split. | 2.36.0 | | min | `number` | `0` | The minimum threshold for splitting, 0~1 is a percentage. | 2.36.0 | | max | `number` | `1` | The maximum split threshold, 0~1 is a percentage. | 2.36.0 | | resize-trigger-size | `number` | `3` | Size of the resize trigger. | 2.36.0 | -| watch-props | `Array<'defaultSize'>` | `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. | NEXT_VERSION | -| on-update:size | `(value: number) => void` | `undefined` | Callback fired on size changes. | NEXT_VERSION | +| watch-props | `Array<'defaultSize'>` | `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. | 2.38.0 | +| on-update:size | `(value: number) => void` | `undefined` | Callback fired on size changes. | 2.38.0 | ### Split Slots diff --git a/src/split/demos/zhCN/index.demo-entry.md b/src/split/demos/zhCN/index.demo-entry.md index 4bd09d3075a..647bd4b01ce 100644 --- a/src/split/demos/zhCN/index.demo-entry.md +++ b/src/split/demos/zhCN/index.demo-entry.md @@ -22,14 +22,14 @@ controlled.vue | 名称 | 类型 | 默认值 | 说明 | 版本 | | --- | --- | --- | --- | --- | | default-size | `number` | `0.5` | Split 的默认分割大小,0~1 代表百分比 | 2.36.0 | -| size | `number` | `undefined` | Split 的受控分割大小,0~1 代表百分比 | NEXT_VERSION | +| size | `number` | `undefined` | Split 的受控分割大小,0~1 代表百分比 | 2.38.0 | | disabled | `boolean` | `false` | 是否禁用 | 2.36.0 | | direction | `'horizontal' \| 'vertical'` | `'horizontal'` | Split 的分割方向 | 2.36.0 | | min | `number` | `0` | Split 的分割最小阈值,0~1 代表百分比 | 2.36.0 | | max | `number` | `1` | Split 的分割最大阈值,0~1 代表百分比 | 2.36.0 | | resize-trigger-size | `number` | `3` | Split 的分隔条大小 | 2.36.0 | -| watch-props | `Array<'defaultSize'>` | `undefined` | 需要检测变更的默认属性,检测后组件状态会更新。注意:`watch-props` 本身不是响应式的 | NEXT_VERSION | -| on-update:size | `(value: number) => void` | `undefined` | 组件 size 属性变化时触发的回调 | NEXT_VERSION | +| watch-props | `Array<'defaultSize'>` | `undefined` | 需要检测变更的默认属性,检测后组件状态会更新。注意:`watch-props` 本身不是响应式的 | 2.38.0 | +| on-update:size | `(value: number) => void` | `undefined` | 组件 size 属性变化时触发的回调 | 2.38.0 | ### Split Slots diff --git a/src/version.ts b/src/version.ts index 747c3ce3b47..ae072175abe 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '2.37.3' +export default '2.38.0'