2022-01-30 18:19:12 +08:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: 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
|
|
|
:::
|