mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
feat(components): [el-result] warn users using subTitle as slots (#6651)
* feat(components): [el-result] warn users using subTitle as slots - Add deprecation warning for el-result sub-title slots - Update documentation with a slotted sub title * Fix useDeprecated typing issue
This commit is contained in:
@@ -34,11 +34,10 @@
|
||||
</el-result>
|
||||
</el-col>
|
||||
<el-col :sm="12" :lg="6">
|
||||
<el-result
|
||||
icon="info"
|
||||
title="Info Tip"
|
||||
sub-title="Please follow the instructions"
|
||||
>
|
||||
<el-result icon="info" title="Info Tip">
|
||||
<template #sub-title>
|
||||
<p>Using slot as subtitle</p>
|
||||
</template>
|
||||
<template #extra>
|
||||
<el-button type="primary">Back</el-button>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user