Skip to content

Commit 5757fe6

Browse files
committed
fix(ip-address): fixip-address and autocomplete component style issues
1 parent 5e16cbe commit 5757fe6

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

examples/sites/demos/pc/app/autocomplete/slot-composition-api.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ function loadAll() {
7878

7979
<style scoped>
8080
.demo-autocomplete .tiny-autocomplete {
81-
width: 270px;
81+
width: 300px;
8282
}
83-
.pend-slot, .fix-slot {
83+
.pend-slot,
84+
.fix-slot {
8485
margin-right: 12px;
8586
}
8687
8788
.default-slot-buttom {
8889
font-size: 12px;
89-
color: #a29b91
90+
color: #a29b91;
9091
}
9192
</style>

examples/sites/demos/pc/app/autocomplete/slot.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,15 @@ export default {
8585

8686
<style scoped>
8787
.demo-autocomplete .tiny-autocomplete {
88-
width: 270px;
88+
width: 300px;
8989
}
90-
.pend-slot, .fix-slot {
90+
.pend-slot,
91+
.fix-slot {
9192
margin-right: 12px;
9293
}
9394
9495
.default-slot-buttom {
9596
font-size: 12px;
96-
color: #a29b91
97+
color: #a29b91;
9798
}
9899
</style>

packages/theme/src/ip-address/index.less

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
text-align: left;
2828
box-sizing: border-box;
2929

30+
&:has(> ul.disabled) {
31+
cursor: not-allowed;
32+
}
33+
3034
&__input {
3135
position: relative;
3236
width: 100%;
@@ -48,7 +52,6 @@
4852
.placeholder(@color: var(--tv-IpAddress-normal-disabled-text-color)); //placeholder属性兼容处理
4953

5054
&:hover {
51-
cursor: pointer;
5255
border: 1px solid var(--tv-IpAddress-border-color-hover);
5356
color: var(--tv-IpAddress-normal-text-color);
5457
.placeholder(@color: var(--tv-IpAddress-normal-disabled-text-color));
@@ -106,7 +109,6 @@
106109
}
107110

108111
&:hover {
109-
cursor: pointer;
110112
color: var(--tv-IpAddress-normal-text-color);
111113
}
112114

0 commit comments

Comments
 (0)