2022-01-30 18:19:12 +08:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
2022-02-06 05:28:30 +08:00
|
|
|
::: title 基本介绍
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: describe 当有重要操作需告知用户处理结果,且反馈内容较为复杂时使用。
|
|
|
|
:::
|
|
|
|
|
2022-01-30 18:19:12 +08:00
|
|
|
::: title 成功
|
|
|
|
:::
|
|
|
|
|
2022-02-02 04:19:36 +08:00
|
|
|
::: demo 使用 `lay-result` 标签, 创建一个结果页面
|
2022-01-30 18:19:12 +08:00
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-result></lay-result>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-02 03:27:34 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: title 失败
|
|
|
|
:::
|
|
|
|
|
2022-02-02 04:19:36 +08:00
|
|
|
::: demo 使用 `lay-result` 标签, 创建一个结果页面
|
2022-02-02 03:27:34 +08:00
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-result status="failure"></lay-result>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-02 04:19:36 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: title Result 属性
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: table
|
|
|
|
|
|
|
|
| 属性 | 描述 | 可选值 |
|
|
|
|
| ----------- | -------- | ------ |
|
|
|
|
| title | 标题 | -- |
|
|
|
|
| status | 状态 | `success` `failure` |
|
|
|
|
| describe | 描述信息 | -- |
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: title Result 插槽
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: table
|
|
|
|
|
|
|
|
| 属性 | 描述 | 可选值 |
|
|
|
|
| ----------- | -------- | ------ |
|
|
|
|
| content | 内容 | -- |
|
|
|
|
| action | 操作 | -- |
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: comment
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: previousNext field
|
2022-01-30 18:19:12 +08:00
|
|
|
:::
|