Skip to content

Commit

Permalink
fix:修改部分组件使用 w-icon 类名
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed Aug 22, 2022
1 parent 63f8046 commit e5574d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/react-drawer/src/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
import { ThemeVariantValueOptions, getThemeVariantValue, HTMLDivProps } from '@uiw/utils';
import Overlay, { ContentWrap } from '@uiw/react-overlay';
import { DrawerProps } from 'src';
import { IconStyleBase } from '@uiw/react-icon';

export const DrawerStyleTheme = {
boxShadowColorInDrawerWrapper: 'rgba(16, 22, 26, 0.1)',
Expand Down Expand Up @@ -43,7 +44,7 @@ export const DrawerStyleHeaderWrap = styled.div<DrawerHeaderWrapProps>`
border-radius: 5px 5px 0 0;
box-shadow: 0 1px 0 ${getThemeVariantValue({ ...props, ...propsTheme }, 'boxShadowColorInDrawerHeader')};
font-size: 16px;
> .w-icon {
> ${IconStyleBase} {
margin-right: 10px;
color: ${getThemeVariantValue({ ...props, ...propsTheme }, 'colorHvDrawerHeader')};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-input/src/style/input.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled, { css } from 'styled-components';
import { ThemeVariantValueOptions, getThemeVariantValue, HTMLSpanProps } from '@uiw/utils';
import { InputProps } from 'src';

import { IconStyleBase } from '@uiw/react-icon';
export const InputStyleTheme = {
colorInputStyleBase: '#393e48',
boxShadowColorInputHBase: 'rgba(19, 124, 189, 0)',
Expand Down Expand Up @@ -126,7 +126,7 @@ export const InputStyleWarp = styled.div<InputStyleBaseProps>`
width: ${(props) => getThemeVariantValue({ ...props, ...propsTheme }, 'widthInputsDefault')};
}
> .w-icon {
> ${IconStyleBase} {
position: absolute;
margin: 0 7px 0 7px;
transform: translateY(-50%);
Expand Down
3 changes: 2 additions & 1 deletion packages/react-modal/src/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled, { css } from 'styled-components';
import { ThemeVariantValueOptions, getThemeVariantValue } from '@uiw/utils';
import { IconStyleBase } from '@uiw/react-icon';

export const ModalStyleTheme = {
fontSizeLarge: '16px',
Expand Down Expand Up @@ -35,7 +36,7 @@ export const ModalStyleHeader = styled.div<ModalStyleWrapProps>`
box-shadow: 0 1px 0
${getThemeVariantValue({ ...props, defaultTheme: ModalStyleTheme }, 'boxShadowColorModalStyleHeaderBase')};
font-size: ${getThemeVariantValue({ ...props, defaultTheme: ModalStyleTheme }, 'fontSizeLarge')};
> .w-icon {
> ${IconStyleBase} {
margin-right: 10px;
color: #393e48;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/react-tree/src/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled, { css } from 'styled-components';
import { getThemeVariantValue, ThemeVariantValueOptions } from '@uiw/utils';
import { TreeRenderTitleNode, TreeProps } from '../index';
import { IconStyleBase } from '@uiw/react-icon';

export const TreeStyleTheme = {
borderRadiusTreeNodeDefault: '0 0 0 3px',
Expand Down Expand Up @@ -90,7 +91,7 @@ export const TreeNodeStyleUlLidivSpan = styled.div<TreeNodeUlLidivProps>`
color: ${(props) =>
getThemeVariantValue({ ...props, defaultTheme: TreeStyleTheme }, 'colorTreeNodeUlLidivSpanDefault')};
}
.w-icon {
${IconStyleBase} {
transition: 0.3s all;
transform: ${(props) =>
getThemeVariantValue({ ...props, defaultTheme: TreeStyleTheme }, 'transformTreeNodeUlLidivSpanDefault')};
Expand Down

0 comments on commit e5574d5

Please sign in to comment.