mirror of
https://example.com
synced 2024-11-23 10:36:39 +09:00
fix: 0 is falsy
This commit is contained in:
parent
0bc6d7e753
commit
b4c0c4e5c6
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ export default defineComponent({
|
|||
: token.props.args.y
|
||||
? "perspective(128px) rotateY"
|
||||
: "rotate";
|
||||
const degrees = parseInt(token.props.args.deg) || "90";
|
||||
const degrees = parseFloat(token.props.args.deg) ?? "90";
|
||||
style = `transform: ${rotate}(${degrees}deg); transform-origin: center center;`;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue