Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(pager): [pager] delete useless code #2198

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 1 addition & 59 deletions packages/theme/src/pager/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
& &__total {
height: var(--tv-Pager-height);
line-height: var(--tv-Pager-height);

&-num {
font-family: var(--tv-Pager-number-font-family);
}
}

& &__total-allpage {
Expand All @@ -65,7 +61,6 @@
& &__pages {
display: inline-flex;
font-size: var(--tv-Pager-font-size);
font-family: var(--tv-Pager-number-font-family);

li {
background: transparent;
Expand Down Expand Up @@ -126,6 +121,7 @@
border: 1px solid var(--tv-Pager-page-item-border-color-hover);
}
}

li:last-child {
margin-right: 0;
}
Expand Down Expand Up @@ -190,41 +186,6 @@
padding-left: 4px;
}
}

button {
height: var(--tv-Pager-input-height);
line-height: var(--tv-Pager-input-height);
border: 1px solid #d9d9d9;
vertical-align: middle;
border-radius: var(--tv-Pager-input-border-radius);
background: #fff;
font-size: var(--tv-Pager-font-size);
padding: 0 8px;
text-align: center;
display: inline-block;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
transition:
border 0.3s,
color 0.3s,
background 0.3s;
outline: 0;
.user-select(none);

&:hover {
border: 1px solid var(--tv-Pager-border-color-hover);
color: var(--tv-Pager-text-color);
}

&.is-disabled {
color: var(--tv-Pager-text-color-disabled);
border-color: var(--tv-Pager-page-item-border-color-disabled);
cursor: not-allowed;
}
}
}

&__btn-prev,
Expand Down Expand Up @@ -425,7 +386,6 @@

.sizes {
margin-right: var(--tv-Pager-sizes-num-margin-right);
font-family: var(--tv-Pager-number-font-family);
}
}

Expand Down Expand Up @@ -527,22 +487,4 @@
color: var(--tv-Pager-text-color-disabled);
}
}

&__simplest-pager-popover {
.component-css-vars-pager();

.tiny-option-label {
font-family: var(--tv-Pager-number-font-family);
}
}
}

@media (max-width: 768px) {
.@{pager-prefix-cls} {
text-align: left;

& &__pull-left {
float: none !important;
}
}
}
4 changes: 1 addition & 3 deletions packages/theme/src/pager/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
*/

.component-css-vars-pager() {
// 分页数字字体
--tv-Pager-number-font-family: arial, helvetica, sans-serif;
// 分页字号
--tv-Pager-font-size: var(--tv-font-size-md);
// 分页文本色
Expand Down Expand Up @@ -68,7 +66,7 @@
// 分页页码项项圆角
--tv-Pager-page-item-border-radius: var(--tv-border-radius-round);
// 分页页码悬浮字重
--tv-Pager-page-item-font-weight-hover: var(--tv-font-weight-medium);
--tv-Pager-page-item-font-weight-hover: var(--tv-font-weight-bold);
// 分页页码项最小宽度
--tv-Pager-page-item-min-width: 32px;
// 分页页码项水平内边距
Expand Down
Loading