From 2e01b88f853a86d48ad5c0ef57e3a92a1624fe12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=A8=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Sat, 1 Nov 2025 13:20:17 +0800 Subject: [PATCH] docs: standardize naming of the show-mask prop in modal --- CHANGELOG.zh-CN.md | 2 +- src/modal/demos/enUS/index.demo-entry.md | 2 +- .../demos/enUS/{mask-visible.demo.vue => show-mask.demo.vue} | 2 +- src/modal/demos/zhCN/index.demo-entry.md | 2 +- .../demos/zhCN/{mask-visible.demo.vue => show-mask.demo.vue} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/modal/demos/enUS/{mask-visible.demo.vue => show-mask.demo.vue} (97%) rename src/modal/demos/zhCN/{mask-visible.demo.vue => show-mask.demo.vue} (100%) diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 17041914781..83754ec7175 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -52,7 +52,7 @@ - `n-input-otp` 增加 `focusOnChar` 方法,关闭 [#7073](https://github.com/tusen-ai/naive-ui/issues/7073) - `n-form-item` 新增 `content-class`、`content-style` 属性 - `n-message` 增加 `border` 主题变量,关闭 [#7105](https://github.com/tusen-ai/naive-ui/issues/7105) -- `n-modal` 增加 `mask-visible` 属性 +- `n-modal` 增加 `show-mask` 属性 - `useModal` 新增 `render` 函数,关闭 [#5857](https://github.com/tusen-ai/naive-ui/issues/5857) - `n-card` 新增 `close-focusable` 属性 - `n-dialog` 新增 `close-focusable` 属性 diff --git a/src/modal/demos/enUS/index.demo-entry.md b/src/modal/demos/enUS/index.demo-entry.md index 90aa932d9fd..abc5250658f 100644 --- a/src/modal/demos/enUS/index.demo-entry.md +++ b/src/modal/demos/enUS/index.demo-entry.md @@ -28,7 +28,7 @@ preset-confirm.vue preset-confirm-slot.vue transform-origin.vue draggable.vue -mask-visible.vue +show-mask.vue ``` ## API diff --git a/src/modal/demos/enUS/mask-visible.demo.vue b/src/modal/demos/enUS/show-mask.demo.vue similarity index 97% rename from src/modal/demos/enUS/mask-visible.demo.vue rename to src/modal/demos/enUS/show-mask.demo.vue index 8d739a7c22f..7fae053bd5e 100644 --- a/src/modal/demos/enUS/mask-visible.demo.vue +++ b/src/modal/demos/enUS/show-mask.demo.vue @@ -1,5 +1,5 @@ -# Mask visible +# Hide mask You can also hide the modal dialog's mask layer, which allows creating a floating panel. diff --git a/src/modal/demos/zhCN/index.demo-entry.md b/src/modal/demos/zhCN/index.demo-entry.md index 2c5938b2126..a50de11f347 100644 --- a/src/modal/demos/zhCN/index.demo-entry.md +++ b/src/modal/demos/zhCN/index.demo-entry.md @@ -28,7 +28,7 @@ preset-confirm.vue preset-confirm-slot.vue transform-origin.vue draggable.vue -mask-visible.vue +show-mask.vue nested-debug.vue a11y-debug.vue raw-debug.vue diff --git a/src/modal/demos/zhCN/mask-visible.demo.vue b/src/modal/demos/zhCN/show-mask.demo.vue similarity index 100% rename from src/modal/demos/zhCN/mask-visible.demo.vue rename to src/modal/demos/zhCN/show-mask.demo.vue