Skip to content

Commit

Permalink
fix(ip-address): fixip-address and autocomplete component style issues (
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcr authored Oct 19, 2024
1 parent 75e25bf commit 6524d21
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ function loadAll() {

<style scoped>
.demo-autocomplete .tiny-autocomplete {
width: 270px;
width: 300px;
}
.pend-slot, .fix-slot {
.pend-slot,
.fix-slot {
margin-right: 12px;
}
.default-slot-buttom {
font-size: 12px;
color: #a29b91
color: #a29b91;
}
</style>
7 changes: 4 additions & 3 deletions examples/sites/demos/pc/app/autocomplete/slot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ export default {

<style scoped>
.demo-autocomplete .tiny-autocomplete {
width: 270px;
width: 300px;
}
.pend-slot, .fix-slot {
.pend-slot,
.fix-slot {
margin-right: 12px;
}
.default-slot-buttom {
font-size: 12px;
color: #a29b91
color: #a29b91;
}
</style>
6 changes: 4 additions & 2 deletions packages/theme/src/ip-address/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
text-align: left;
box-sizing: border-box;

&:has(> ul.disabled) {
cursor: not-allowed;
}

&__input {
position: relative;
width: 100%;
Expand All @@ -48,7 +52,6 @@
.placeholder(@color: var(--tv-IpAddress-normal-disabled-text-color)); //placeholder属性兼容处理

&:hover {
cursor: pointer;
border: 1px solid var(--tv-IpAddress-border-color-hover);
color: var(--tv-IpAddress-normal-text-color);
.placeholder(@color: var(--tv-IpAddress-normal-disabled-text-color));
Expand Down Expand Up @@ -106,7 +109,6 @@
}

&:hover {
cursor: pointer;
color: var(--tv-IpAddress-normal-text-color);
}

Expand Down

0 comments on commit 6524d21

Please sign in to comment.