Skip to content

Commit 9e7e8b0

Browse files
committed
feat(date-picker): [date-picker] Adapting to the old-theme
1 parent 17d7e6c commit 9e7e8b0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/theme/src/base/old-theme.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@
345345
--tv-color-bg-active-control: var(--tv-base-color-brand); // #5e7ce0 主色蓝,单选/复选选中背景色、开关开的背景色、选块点击背景色、滑块选中背景色、价格曲线、区域选择选中的背景色
346346
--tv-color-bg-active-primary: var(--tv-base-color-brand); // #5e7ce0 品牌色,锚点-当前位置的圆点背景色/leftmenuthin左侧导航收起图标选中的背景色、NPS评分选中背景色
347347
--tv-color-bg-active-secondary: var(--tv-base-color-common-1); // #adb0b8 次要背景色active色/下拉选中的背景色/一级tab页签背景-选中色/树控件选中背景颜色
348-
--tv-color-bg-active-emphasize: var(--tv-base-color-brand); // #5e7ce0 时间选择选中背景色
348+
--tv-color-bg-active-emphasize: var(--tv-base-color-brand-2); // #5e7ce0 时间选择选中背景色
349349
--tv-color-bg-active-emphasize-light: var(--tv-base-color-brand-1); // #f0f7ff 表格选中背景色
350350
--tv-color-bg-active-dark: var(--tv-base-color-common-3); // #eef0f5 深色背景色激活色
351351

packages/theme/src/date-table/index.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,19 @@
260260
border-top-right-radius: var(--tv-DateTable-td-border-radius-disabled);
261261
border-bottom-right-radius: var(--tv-DateTable-td-border-radius-disabled);
262262
}
263-
&__row .in-range:first-of-type div {
263+
&__row td:first-of-type div {
264264
border-top-left-radius: var(--tv-DateTable-td-border-radius-disabled);
265265
border-bottom-left-radius: var(--tv-DateTable-td-border-radius-disabled);
266266
}
267-
&__row .in-range:last-of-type div {
267+
&__row td:last-of-type div {
268268
border-top-right-radius: var(--tv-DateTable-td-border-radius-disabled);
269269
border-bottom-right-radius: var(--tv-DateTable-td-border-radius-disabled);
270270
}
271-
&__row td:nth-child(1 of .available.in-range) div {
271+
&__row td.pre-month + td.available.in-range div {
272272
border-top-left-radius: var(--tv-DateTable-td-border-radius-disabled);
273273
border-bottom-left-radius: var(--tv-DateTable-td-border-radius-disabled);
274274
}
275-
&__row td:nth-last-child(1 of .available.in-range) div {
275+
&__row td.available.in-range:has(+ td.next-month) div {
276276
border-top-right-radius: var(--tv-DateTable-td-border-radius-disabled);
277277
border-bottom-right-radius: var(--tv-DateTable-td-border-radius-disabled);
278278
}

packages/theme/src/month-table/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141

142142
&:not(.in-range) {
143143
.cell {
144+
box-sizing: border-box;
144145
width: auto;
145146
border-radius: var(--tv-MonthTable-cell-border-radius);
146147
}

0 commit comments

Comments
 (0)