完善 layer 关于弹出层类型的文档说明

pull/1260/head^2
贤心 2023-05-25 22:45:06 +08:00
parent b3b8198fed
commit 3763a0f642
2 changed files with 7 additions and 5 deletions

View File

@ -16,6 +16,8 @@
<h3 id="demo-alert" lay-toc="{level: 3}">信息框</h3>
信息框即 `dialog` 类型层,对应默认的 `type: 0`,该类型的弹层同时只能存在一个。更多说明详见:[#type](#options)
<pre class="layui-code" lay-options="{preview: true, codeStyle: 'height: 535px;', layout: ['preview', 'code'], tools: ['full']}">
<textarea>
{{- d.include("/layer/examples/alert.md") }}

View File

@ -20,11 +20,11 @@
弹层类型。 可选值有:
- `0` dialog 信息框
- `1` page 页面层
- `2` iframe 内联框架层
- `3` loading 加载层
- `4` tips 贴士层
- `0` dialog 信息框(默认),*同时只能存在一个层*
- `1` page 页面层*可同时存在多个层*
- `2` iframe 内联框架层*可同时存在多个层*
- `3` loading 加载层*同时只能存在一个层*
- `4` tips 贴士层*可配置同时存在多个层*
`layer` 弹层由以上 5 种类型构成。 不同的类型代表不同的弹出形态,`layer` 提供的所有的弹出方式均由此衍生。