From 8fedcb6cd13dd8fe10fa7ad51572db1a911009e2 Mon Sep 17 00:00:00 2001 From: jinzelin Date: Thu, 29 Aug 2024 12:01:28 +0800 Subject: [PATCH] fix: button style --- packages/hippy_ui_react/src/components/Button/PropsType.tsx | 4 ++-- packages/hippy_ui_react/src/types/common.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 packages/hippy_ui_react/src/types/common.ts diff --git a/packages/hippy_ui_react/src/components/Button/PropsType.tsx b/packages/hippy_ui_react/src/components/Button/PropsType.tsx index 8937c61..b3592ce 100644 --- a/packages/hippy_ui_react/src/components/Button/PropsType.tsx +++ b/packages/hippy_ui_react/src/components/Button/PropsType.tsx @@ -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 { @@ -32,7 +32,7 @@ export interface ButtonProps { /** 设置前置图片 */ image?: string | ReactNode; /** 自定义样式(可设置文字样式,会被透传下去) */ - style?: GenericStyleProp; + style?: GenericStyleProp