docs(style): fix class name repeat (#22739)

* docs: [Watermark] rename class name

* Update docs/examples/watermark/custom.vue

Co-authored-by: btea <2356281422@qq.com>

* chore: fix

* style: update

* Update docs/examples/autocomplete/custom-header-footer.vue

Co-authored-by: rzzf <cszhjh@gmail.com>

* fix(docs): update

* Update docs/examples/cascader/custom-header-footer.vue

* Update docs/examples/cascader/custom-header-footer.vue

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: rzzf <cszhjh@gmail.com>
This commit is contained in:
jiaxiang
2025-11-10 11:39:07 +08:00
committed by GitHub
parent e02ad8a2f9
commit b208a7e90c
3 changed files with 17 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="demo">
<div class="autocomplete-custom-header-footer">
<div>
<p>Custom header content</p>
<el-autocomplete
@@ -87,20 +87,20 @@ const handleClear = () => {
}
</script>
<style>
.demo {
<style scoped>
.autocomplete-custom-header-footer {
display: flex;
}
.demo > div {
.autocomplete-custom-header-footer > div {
flex: 1;
text-align: center;
}
.demo > div > .el-autocomplete {
.autocomplete-custom-header-footer > div > :deep(.el-autocomplete) {
width: 50%;
}
.demo > div:not(:last-child) {
.autocomplete-custom-header-footer > div:not(:last-child) {
border-right: 1px solid var(--el-border-color);
}
</style>

View File

@@ -1,10 +1,10 @@
<template>
<div class="demo">
<div class="cascader-custom-header-footer">
<div>
<p>Custom header content</p>
<el-cascader
v-model="value"
popper-class="custom-header"
popper-class="cascader-custom-header"
:options="options"
:props="props"
clearable
@@ -100,24 +100,22 @@ const handleClear = () => {
}
</script>
<style>
.demo {
<style scoped>
.cascader-custom-header-footer {
display: flex;
}
.demo > div {
.cascader-custom-header-footer > div {
flex: 1;
text-align: center;
}
.demo > div:not(:last-child) {
.cascader-custom-header-footer > div:not(:last-child) {
border-right: 1px solid var(--el-border-color);
}
.custom-header {
.el-checkbox {
display: flex;
height: unset;
}
.cascader-custom-header .el-checkbox {
display: flex;
height: unset;
}
</style>

View File

@@ -25,7 +25,7 @@ const config = reactive({
:gap="config.gap"
:offset="config.offset"
>
<div class="demo">
<div class="watermark-container">
<h1>Element Plus</h1>
<h2>A Vue 3 based component library for designers and developers</h2>
<img src="/images/hamburger.png" alt="示例图片" />
@@ -84,7 +84,7 @@ const config = reactive({
display: flex;
flex: auto;
}
.demo {
.watermark-container {
flex: auto;
}
.form {