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:
thinkasany 2024-11-08 14:53:18 +08:00 committed by GitHub
parent ead1002533
commit 28106bd3ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
<template>
<el-page-header :icon="null">
<el-page-header icon="">
<template #content>
<div class="flex items-center">
<el-avatar

View File

@ -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>