mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
docs(components): use ""
replace null for no icon setting (#18824)
* docs(components): use replace null for no icon setting * docs: fix
This commit is contained in:
parent
ead1002533
commit
28106bd3ec
@ -39,7 +39,7 @@ page-header/custom-icon
|
||||
## No icon
|
||||
|
||||
Sometimes the page is just full of elements, and you might not want the icon to show up on the page,
|
||||
you can set the `icon` attribute to `null` to get rid of it.
|
||||
you can set the `icon` attribute to `""` to get rid of it.
|
||||
|
||||
:::demo
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-page-header :icon="null">
|
||||
<el-page-header icon="">
|
||||
<template #content>
|
||||
<div class="flex items-center">
|
||||
<el-avatar
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-page-header :icon="null">
|
||||
<el-page-header icon="">
|
||||
<template #content>
|
||||
<span class="text-large font-600 mr-3"> Title </span>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user