W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
用于對(duì)用戶的操作結(jié)果或者異常狀態(tài)做反饋。
<template>
<el-row>
<el-col :sm="12" :lg="6">
<el-result icon="success" title="成功提示" subTitle="請(qǐng)根據(jù)提示進(jìn)行操作">
<template #extra>
<el-button type="primary" size="medium">返回</el-button>
</template>
</el-result>
</el-col>
<el-col :sm="12" :lg="6">
<el-result icon="warning" title="警告提示" subTitle="請(qǐng)根據(jù)提示進(jìn)行操作">
<template #extra>
<el-button type="primary" size="medium">返回</el-button>
</template>
</el-result>
</el-col>
<el-col :sm="12" :lg="6">
<el-result icon="error" title="錯(cuò)誤提示" subTitle="請(qǐng)根據(jù)提示進(jìn)行操作">
<template #extra>
<el-button type="primary" size="medium">返回</el-button>
</template>
</el-result>
</el-col>
<el-col :sm="12" :lg="6">
<el-result icon="info" title="信息提示" subTitle="請(qǐng)根據(jù)提示進(jìn)行操作">
<template #extra>
<el-button type="primary" size="medium">返回</el-button>
</template>
</el-result>
</el-col>
</el-row>
</template>
<template>
<el-result title="404" subTitle="抱歉,請(qǐng)求錯(cuò)誤">
<template #icon>
<el-image
src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" rel="external nofollow"
></el-image>
</template>
<template #extra>
<el-button type="primary" size="medium">返回</el-button>
</template>
</el-result>
</template>
參數(shù) | 說(shuō)明 | 類(lèi)型 | 可選值 | 默認(rèn)值 |
---|---|---|---|---|
title | 標(biāo)題 | string | — | — |
sub-title | 二級(jí)標(biāo)題 | string | — | — |
icon | 圖標(biāo)類(lèi)型 | string | success / warning / info / error | info |
Name | 說(shuō)明 |
---|---|
icon | 自定義圖標(biāo) |
title | 自定義標(biāo)題 |
subTitle | 自定義二級(jí)標(biāo)題 |
extra | 自定義底部額外區(qū)域 |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: