style(TreeSelect): allow select text in content slot (#10081)

This commit is contained in:
neverland 2021-12-21 21:02:08 +08:00 committed by GitHub
parent 4cc269c1f2
commit 45e7e15c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,6 @@
position: relative; position: relative;
display: flex; display: flex;
font-size: var(--van-tree-select-font-size); font-size: var(--van-tree-select-font-size);
user-select: none;
&__nav { &__nav {
flex: 1; flex: 1;
@ -24,6 +23,7 @@
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
&-item { &-item {
user-select: none;
padding: var(--van-tree-select-nav-item-padding); padding: var(--van-tree-select-nav-item-padding);
} }
} }
@ -40,6 +40,7 @@
padding: 0 32px 0 var(--van-padding-md); padding: 0 32px 0 var(--van-padding-md);
font-weight: var(--van-font-weight-bold); font-weight: var(--van-font-weight-bold);
line-height: var(--van-tree-select-item-height); line-height: var(--van-tree-select-item-height);
user-select: none;
cursor: pointer; cursor: pointer;
&--active { &--active {