Skip to content

Commit

Permalink
Merge branch 'develop' into feature/anchor-child-level
Browse files Browse the repository at this point in the history
  • Loading branch information
ontheroad1992 committed Sep 26, 2023
2 parents 630af56 + 9def3fe commit d48f995
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 38 deletions.
10 changes: 8 additions & 2 deletions docs/web/api/cascader.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,18 @@ spline: form

{{ value-mode }}

### 自定义选项内容
### 自定义下拉选项内容

可以自定义选项的内容展示
可以自定义下拉选项的内容展示

{{ custom-options }}

### 自定义选中项内容

可以自定义输入框中显示的选中项内容展示

{{ value-display }}

### 不同的触发方式

可通过不同的触发方式来加载子菜单。
Expand Down
5 changes: 5 additions & 0 deletions style/mobile/components/textarea/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,10 @@

&--disabled {
color: @textarea-disabled-text-color;
cursor: not-allowed;
}

&--readonly {
cursor: pointer;
}
}
4 changes: 4 additions & 0 deletions style/web/components/breadcrumb/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
margin: @breadcrumb-separator-margin;
display: flex;
align-items: center;

.t-icon {
color: @breadcrumb-icon-color-current;
}
}

&__item {
Expand Down
5 changes: 4 additions & 1 deletion style/web/components/list/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@

@import "../../mixins/_reset.less";

@import "../../mixins/_scrollbar.less";

.@{prefix}-list {
.reset;
.scrollbar();

overflow: auto;
color: @list-font-color;
background: @list-bg-color-default;

&__inner {
.list-style-none();
Expand All @@ -23,7 +27,6 @@
&-item {
font: @list-item-font;
padding: @list-item-spacer-default;
background: @list-bg-color-default;
display: flex;
justify-content: space-between;
align-items: center;
Expand Down
16 changes: 0 additions & 16 deletions style/web/components/menu/_docs.less
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,11 @@
}
}

.t-menu__logo {
& > * {
margin-left: 24px;
}
}

.t-is-collapsed {
.t-menu__logo {
& > * {
margin: 0 auto;
}
}
}

.@{d-prefix}-demo-item--menu {
--bg-color-demo: var(--bg-color-demo-secondary);
}

.@{d-prefix}-demo-item--menu-multiple {

.@{d-prefix}-demo-item__body {
overflow: unset;
}
Expand Down Expand Up @@ -144,7 +129,6 @@

:root[theme-mode="dark"] {
.tdesign-demo-item--menu {

.@{d-prefix}-demo-item__body {
background-color: transparent;
}
Expand Down
32 changes: 26 additions & 6 deletions style/web/components/menu/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ a.@{prefix}-menu__item {
}
}

.@{prefix}-menu__logo {
& > * {
margin-left: @comp-margin-xxl;
}
}

// head-menu
.@{prefix}-head-menu {
.reset;
Expand Down Expand Up @@ -134,6 +140,7 @@ a.@{prefix}-menu__item {
.@{prefix}-menu__item {
padding: 0 14px;
justify-content: center;

.@{prefix}-menu__item-link {
opacity: 0;
content: "";
Expand Down Expand Up @@ -219,6 +226,12 @@ a.@{prefix}-menu__item {
display: block;
}
}

.@{prefix}-menu__log {
& > * {
margin: 0 auto;
}
}
}

&__inner {
Expand Down Expand Up @@ -250,7 +263,8 @@ a.@{prefix}-menu__item {
.@{prefix}-menu-group {
&__title {
position: relative;
padding: @comp-paddingTB-l @comp-paddingLR-l @comp-paddingTB-xs @comp-paddingLR-l;
padding: @comp-paddingTB-l @comp-paddingLR-l @comp-paddingTB-xs
@comp-paddingLR-l;
color: @menu-menu-group-title-color;
font-size: @menu-extra-font-size;
box-sizing: border-box;
Expand Down Expand Up @@ -401,7 +415,6 @@ a.@{prefix}-menu__item {
}

.@{prefix}-menu__item {

&.@{prefix}-is-active.@{prefix}-is-opened {
background-color: @default-menu-active-color--dark;
color: @menu-item-active-color--dark;
Expand Down Expand Up @@ -556,7 +569,9 @@ a.@{prefix}-menu__item {
color: @menu-item-active-color--light;
}

&:hover:not(.@{prefix}-is-active):not(.@{prefix}-is-opened):not(.@{prefix}-is-disabled) {
&:hover:not(.@{prefix}-is-active):not(.@{prefix}-is-opened):not(
.@{prefix}-is-disabled
) {
background-color: @menu-item-hover-bg--light;
}

Expand Down Expand Up @@ -604,7 +619,9 @@ a.@{prefix}-menu__item {
color: @menu-item-disabled-color-dark;
}

&:hover:not(.@{prefix}-is-active):not(.@{prefix}-is-opened):not(.@{prefix}-is-disabled) {
&:hover:not(.@{prefix}-is-active):not(.@{prefix}-is-opened):not(
.@{prefix}-is-disabled
) {
background-color: @menu-item-hover-bg--dark;
}

Expand Down Expand Up @@ -740,7 +757,8 @@ a.@{prefix}-menu__item {
top: 0;
left: calc(100% - @pop-padding-m);

.@{prefix}-menu__item, .@{prefix}-submenu {
.@{prefix}-menu__item,
.@{prefix}-submenu {
margin: @comp-margin-xxs 0 0 0;

&:first-child {
Expand All @@ -751,7 +769,9 @@ a.@{prefix}-menu__item {

.@{prefix}-is-head-menu {
.@{prefix}-menu__popup {
margin-top: calc((@menu-height-default - @head-menu-item-height) / 2) !important;
margin-top: calc(
(@menu-height-default - @head-menu-item-height) / 2
) !important;
}
}

Expand Down
8 changes: 8 additions & 0 deletions style/web/components/select/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,11 @@
}
}
}

.@{prefix}-is-selected.@{prefix}-select-option__hover {
background-color: @brand-color-light-hover;

.@{prefix}-checkbox__label {
color: @select-selected-color;
}
}
26 changes: 13 additions & 13 deletions style/web/components/table/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,6 @@
color: @table-row-disabled-color;
}

/** 表格行点击高亮 */
.@{prefix}-table__row--active {
background-color: @brand-color-light;
}

// 复杂表头容器
.@{prefix}-table__cell--title {
display: flex;
Expand Down Expand Up @@ -500,15 +495,20 @@
}

/** 表格行点击高亮悬浮态 */
.@{prefix}-table.@{prefix}-table--hoverable {
.@{prefix}-table__row--active {
&:hover {
background-color: @brand-color-light-hover;
}
.@{prefix}-table.@{prefix}-table__row--active-single,
.@{prefix}-table.@{prefix}-table__row--active-multiple {
tbody > tr.@{prefix}-table__row--active {
background-color: @brand-color-light;
}

&.@{prefix}-table__row--active-multiple {
.@{prefix}-table__row--active.@{prefix}-table__row--hover {
tbody > tr.@{prefix}-table__row--active.@{prefix}-table__row--hover {
background-color: @brand-color-light-hover;
}
}

.@{prefix}-table.@{prefix}-table--hoverable {
tbody > tr.@{prefix}-table__row--active {
&:hover {
background-color: @brand-color-light-hover;
}
}
Expand All @@ -520,7 +520,7 @@
&.@{prefix}-table--row-select,
&.@{prefix}-table__row--active-multiple {
tbody > tr {
&.@{prefix}-table__row--hover:not(&.@{prefix}-table__row--active) {
&.@{prefix}-table__row--hover {
background-color: @table-highlight-dark-bg-color;
}
}
Expand Down

0 comments on commit d48f995

Please sign in to comment.