fix: 0 is falsy
This commit is contained in:
parent
0bc6d7e753
commit
b4c0c4e5c6
@ -264,7 +264,7 @@ export default defineComponent({
|
|||||||
: token.props.args.y
|
: token.props.args.y
|
||||||
? "perspective(128px) rotateY"
|
? "perspective(128px) rotateY"
|
||||||
: "rotate";
|
: "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;`;
|
style = `transform: ${rotate}(${degrees}deg); transform-origin: center center;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user