Skip to content

Commit

Permalink
fix(date-picker): [date-picker,select] fix radius bugs for month-table
Browse files Browse the repository at this point in the history
  • Loading branch information
MomoPoppy committed Oct 29, 2024
1 parent 38839af commit ab7e698
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/theme/src/month-table/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,25 @@
div:hover {
background-color: var(--tv-MonthTable-bg-color-hover);
}

&:first-of-type {
div {
border-radius: var(--tv-MonthTable-cell-border-radius-first);
}

&.end-date {
div {
border-radius: var(--tv-MonthTable-cell-border-radius);
padding-left: 0;
}
}
}

&:last-of-type {
div {
border-radius: var(--tv-MonthTable-cell-border-radius-last);
}
}
}

&.end-date,
Expand Down
5 changes: 5 additions & 0 deletions packages/theme/src/month-table/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
var(--tv-border-radius-round, 999px);
// 单元格圆角(结束月份)
--tv-MonthTable-cell-border-radius-end: 0 var(--tv-border-radius-round, 999px) var(--tv-border-radius-round, 999px) 0;
// 选中月份每行第一个单元格的圆角
--tv-MonthTable-cell-border-radius-first: var(--tv-border-radius-round, 999px) 0 0
var(--tv-border-radius-round, 999px);
// 选中月份每行最后一个单元格的圆角
--tv-MonthTable-cell-border-radius-last: 0 var(--tv-border-radius-round, 999px) var(--tv-border-radius-round, 999px) 0;

// 单元格边框色(选中)
--tv-MonthTable-cell-border-color-today: var(--tv-color-border-active, #191919);
Expand Down
4 changes: 4 additions & 0 deletions packages/theme/src/select/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@
visibility: hidden;
position: absolute;
}

.tiny-svg {
margin-right: 0;
}
}

&.is-disabled,
Expand Down
1 change: 1 addition & 0 deletions packages/vue/src/select/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
:type="state.getTagType"
key="tags-collapse"
data-tag="tags-collapse"
only-icon
:closable="false"
:size="state.collapseTagSize"
@click="onClickCollapseTag($event)"
Expand Down

0 comments on commit ab7e698

Please sign in to comment.