补充 layer 文档
This commit is contained in:
parent
574e488f89
commit
aa04ac9ad1
@ -53,3 +53,23 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
::: title 组件方法
|
||||||
|
:::
|
||||||
|
|
||||||
|
```
|
||||||
|
layer.confirm(content, options)
|
||||||
|
```
|
||||||
|
|
||||||
|
::: title 组件属性
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: table
|
||||||
|
|
||||||
|
| 属性 | 描述 | 备注 |
|
||||||
|
| ------------------- | ------ | ---- |
|
||||||
|
| content | 内容 | -- |
|
||||||
|
| options | 选配属性 | { time: 加载时长, btn: 按钮组 } |
|
||||||
|
|
||||||
|
:::
|
@ -103,3 +103,23 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
::: title 组件方法
|
||||||
|
:::
|
||||||
|
|
||||||
|
```
|
||||||
|
layer.load(load, options)
|
||||||
|
```
|
||||||
|
|
||||||
|
::: title 组件属性
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: table
|
||||||
|
|
||||||
|
| 属性 | 描述 | 备注 |
|
||||||
|
| ------------------- | ------ | ---- |
|
||||||
|
| load | 组件类型 | `1` `2` `3` |
|
||||||
|
| options | 选配属性 | { time: 加载时长 } |
|
||||||
|
|
||||||
|
:::
|
@ -72,3 +72,22 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
::: title 组件方法
|
||||||
|
:::
|
||||||
|
|
||||||
|
```
|
||||||
|
layer.msg(content, options)
|
||||||
|
```
|
||||||
|
|
||||||
|
::: title 组件属性
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: table
|
||||||
|
|
||||||
|
| 属性 | 描述 | 备注 |
|
||||||
|
| ------------------- | ------ | ----|
|
||||||
|
| content | 消息内容 | -- |
|
||||||
|
| options | 选配属性 | { time: 加载时长, icon: 图标 } |
|
||||||
|
|
||||||
|
:::
|
@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="LayMenu" lang="ts">
|
<script setup name="LayMenu" lang="ts">
|
||||||
import { computed, defineProps, provide, ref, watch } from "vue";
|
import { computed, defineProps, provide } from "vue";
|
||||||
|
|
||||||
export interface LayMenuProps {
|
export interface LayMenuProps {
|
||||||
selectedKey?: string;
|
selectedKey?: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user