Skip to content

Commit

Permalink
fix: button style
Browse files Browse the repository at this point in the history
  • Loading branch information
linjinze999 committed Aug 29, 2024
1 parent 6497557 commit 8fedcb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hippy_ui_react/src/components/Button/PropsType.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode } from 'react';
import { GenericStyleProp, ViewStyle } from '@hippy/react';
import { GenericStyleProp, Style } from '@hippy/react';
import { ThemeMode } from '../../themeConfig';

export enum ButtonType {
Expand Down Expand Up @@ -32,7 +32,7 @@ export interface ButtonProps {
/** 设置前置图片 */
image?: string | ReactNode;
/** 自定义样式(可设置文字样式,会被透传下去) */
style?: GenericStyleProp<ViewStyle>;
style?: GenericStyleProp<Style>;
/** 是否开启点击特效 */
activeStyle?: boolean;
/** 是否圆角按钮 */
Expand Down
3 changes: 3 additions & 0 deletions packages/hippy_ui_react/src/types/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { TextStyle } from '@hippy/react';

export type TextStyleInView = Pick<TextStyle, 'color' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'textAlign'>;

0 comments on commit 8fedcb6

Please sign in to comment.