mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [tree] update example style (#19945)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-input
|
||||
v-model="filterText"
|
||||
style="width: 240px"
|
||||
class="w-60 mb-2"
|
||||
placeholder="Filter keyword"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user