docs(components): [tree] update example style (#19945)

This commit is contained in:
sea
2025-02-24 14:48:54 +08:00
committed by GitHub
parent 84f94507e3
commit ef8a6bb7df
3 changed files with 11 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
:props="defaultProps"
/>
<div class="buttons">
<div class="mt-2">
<el-button @click="getCheckedNodes">get by node</el-button>
<el-button @click="getCheckedKeys">get by key</el-button>
<el-button @click="setCheckedNodes">set by node</el-button>

View File

@@ -84,12 +84,15 @@ const data: Tree[] = [
.is-penultimate > .el-tree-node__content {
color: #626aef;
}
.el-tree .el-tree-node.is-penultimate > .el-tree-node__children {
display: flex;
flex-direction: row;
}
.is-penultimate > .el-tree-node__children > div {
width: 25%;
display: inline-block;
margin-right: 4px;
&:not(:first-child) .el-tree-node__content {
padding-left: 0px !important;
}
.el-tree-node__content {
padding-right: 16px;
}
}
</style>

View File

@@ -1,7 +1,7 @@
<template>
<el-input
v-model="filterText"
style="width: 240px"
class="w-60 mb-2"
placeholder="Filter keyword"
/>