补充 layer 文档

This commit is contained in:
就眠儀式
2021-12-09 14:11:29 +08:00
parent 574e488f89
commit aa04ac9ad1
4 changed files with 60 additions and 1 deletions

View File

@@ -52,4 +52,24 @@ export default {
}
</script>
:::
::: title 组件方法
:::
```
layer.confirm(content, options)
```
::: title 组件属性
:::
::: table
| 属性 | 描述 | 备注 |
| ------------------- | ------ | ---- |
| content | 内容 | -- |
| options | 选配属性 | { time: 加载时长, btn: 按钮组 } |
:::

View File

@@ -103,3 +103,23 @@ export default {
</script>
:::
::: title 组件方法
:::
```
layer.load(load, options)
```
::: title 组件属性
:::
::: table
| 属性 | 描述 | 备注 |
| ------------------- | ------ | ---- |
| load | 组件类型 | `1` `2` `3` |
| options | 选配属性 | { time: 加载时长 } |
:::

View File

@@ -71,4 +71,23 @@ export default {
}
</script>
:::
::: title 组件方法
:::
```
layer.msg(content, options)
```
::: title 组件属性
:::
::: table
| 属性 | 描述 | 备注 |
| ------------------- | ------ | ----|
| content | 消息内容 | -- |
| options | 选配属性 | { time: 加载时长, icon: 图标 } |
:::