1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-24 23:26:29 +09:00

fix(mfm): default degree not used in rotate (#9831)

This commit is contained in:
itiradi 2023-02-08 08:20:27 +09:00 committed by GitHub
parent 54f789bd55
commit f9a2e98831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ export default defineComponent({
return h(MkSparkle, {}, genEl(token.children));
}
case 'rotate': {
const degrees = parseFloat(token.props.args.deg) ?? '90';
const degrees = parseFloat(token.props.args.deg ?? '90');
style = `transform: rotate(${degrees}deg); transform-origin: center center;`;
break;
}