Skip to content

Commit

Permalink
fix: taost组件customStyle报错未生效 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeng-J committed Oct 28, 2022
1 parent 560a860 commit 002b6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ossa/src/components/toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getClassObject(props: OsToastProps, show: boolean) {
//export default
export default function Toast(props: OsToastProps) {
const rootClassName = "ossa-toast"; //组件
const styleObject = getStyleObj(Object.assign(props, props.customStyle));
const styleObject = Object.assign(getStyleObj(props), props.customStyle);
const { duration = 2000 } = props;
const [, setDuration] = useState(duration);
const [show = false, setShow] = useState(props.isShow);
Expand Down

1 comment on commit 002b6f3

@vercel
Copy link

@vercel vercel bot commented on 002b6f3 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ossa-demo – ./

ossa-demo-ossa.vercel.app
ossaui.vercel.app
ossa-demo-git-main-ossa.vercel.app

Please sign in to comment.