diff --git a/docs/docs/zh-CN/components/layer.md b/docs/docs/zh-CN/components/layer.md index 34d67091..6e055f4f 100644 --- a/docs/docs/zh-CN/components/layer.md +++ b/docs/docs/zh-CN/components/layer.md @@ -145,7 +145,7 @@ export default { + +::: + ::: title 弹层属性 ::: @@ -224,3 +259,5 @@ export default { | height | 高 | -- | | v-model:visible | 展示 隐藏 | false | | content | 内容 | -- | +| shade | 开启遮盖 | -- | +| shadeClose | 遮盖点击关闭 | -- | \ No newline at end of file diff --git a/docs/docs/zh-CN/guide/changelog.md b/docs/docs/zh-CN/guide/changelog.md index 3a279545..5b669c5a 100644 --- a/docs/docs/zh-CN/guide/changelog.md +++ b/docs/docs/zh-CN/guide/changelog.md @@ -14,6 +14,7 @@ [新增] useFullScreen 全屏 hooks。
[新增] useMove 拖拽 hooks。
[新增] textarea 文本域 blur foucs 获取焦点 失去焦点 事件。
+[新增] layer 弹层。
[新增] hooks 文档 diff --git a/src/css/layer.css b/src/css/layer.css index 3789ed19..7671b547 100644 --- a/src/css/layer.css +++ b/src/css/layer.css @@ -514,6 +514,7 @@ html #layuicss-layer { padding: 20px; line-height: 24px; word-break: break-all; + height: 100%; overflow: hidden; font-size: 14px; overflow-x: hidden; diff --git a/src/hooks/useFullScreen.ts b/src/hooks/useFullScreen.ts index f097b35a..4b0d23fa 100644 --- a/src/hooks/useFullScreen.ts +++ b/src/hooks/useFullScreen.ts @@ -4,7 +4,7 @@ const useFullScreen = () => { const isFullScreen = ref(false) const fullScreen = function () { - var docElm = document.documentElement + const docElm = document.documentElement switch (!isFullScreen.value) { case true: if (docElm.requestFullscreen) { diff --git a/src/module/layer/index.vue b/src/module/layer/index.vue index 5cad509d..506b556d 100644 --- a/src/module/layer/index.vue +++ b/src/module/layer/index.vue @@ -1,4 +1,12 @@