mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user