Skip to content

Commit

Permalink
fix: fix build error and modify theme vars (#2345)
Browse files Browse the repository at this point in the history
* fix: fix build error and modify theme vars

* fix: fix build error and modify theme vars
  • Loading branch information
zzcr authored Oct 22, 2024
1 parent c56f019 commit be9eff9
Show file tree
Hide file tree
Showing 65 changed files with 93 additions and 775 deletions.
4 changes: 2 additions & 2 deletions packages/renderless/types/dropdown-item.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type {
confirm,
handleClick,
computedGetIcon,
getTip
computedTip
} from '../src/dropdown-item'

export type IDropdownItemVm = ComponentPublicInstance & {
Expand Down Expand Up @@ -76,7 +76,7 @@ export interface IDropdownItemApi {
confirm: ReturnType<typeof confirm>
handleClick: ReturnType<typeof handleClick>
computedGetIcon: ReturnType<typeof computedGetIcon>
getTip: ReturnType<typeof getTip>
computedTip: ReturnType<typeof computedTip>
}

export type IDropdownItemRenderlessParams = ISharedRenderlessFunctionParams<IDropdownItemConstants> & {
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/src/action-menu/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@dropdown-item-prefix-cls: ~'@{css-prefix}dropdown-item';

.@{action-menu-prefix-cls} {
.component-css-vars-action-menu();
.inject-ActionMenu-vars();

font-size: var(--tv-ActionMenu-font-size);

Expand All @@ -41,7 +41,7 @@

.@{dropdown-item-prefix-cls}__wrap {
color: var(--tv-ActionMenu-text-color);
margin: 0px;
margin: 0;
height: auto;

.tiny-svg {
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/action-menu/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
*/

.component-css-vars-action-menu() {
.inject-ActionMenu-vars() {
// 文本字号
--tv-ActionMenu-font-size: var(--tv-font-size-md, 14px);
// 文本色(默认)
Expand Down
13 changes: 0 additions & 13 deletions packages/theme/src/base-select/aurora-theme.js

This file was deleted.

Loading

0 comments on commit be9eff9

Please sign in to comment.