Skip to content

Commit

Permalink
fix(comp: pagination): pageSizes input width error (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzaijiang committed May 30, 2022
1 parent b176cda commit 3e91b33
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/components/_private/selector/style/single.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@
width: 100%;
}

&-item {
&-input {
position: absolute;
}

&-item {
position: relative;
}
}

&.@{selector-prefix}-with-suffix .@{selector-prefix}-item,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/pagination/demo/Controlled.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ const pageSize = ref(20)
const onChange = (index: number, size: number) => {
pageIndex.value = index + 1
pageSize.value = size * 2
pageSize.value = size
}
</script>
1 change: 0 additions & 1 deletion packages/components/pagination/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
&-select-wrapper {
flex: auto;
margin: 0 4px;

}
}

Expand Down
4 changes: 4 additions & 0 deletions packages/components/select/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

&-label {
.ellipsis();

line-height: @select-line-height
}

.@{checkbox-prefix} + &-label {
Expand All @@ -40,6 +42,8 @@

&-label {
.ellipsis();

line-height: @select-line-height
}
}

Expand Down

0 comments on commit 3e91b33

Please sign in to comment.