
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@tslsmart/font-fix
Advanced tools
在使用诸如汉仪旗黑(HYQiHei)等字体时,由于字体本身构造特殊,导致我们在使用时,无法正确地在垂直方向居中,本库即是为了解决这个问题。
推荐使用pnpm
安装
pnpm i @tslsmart/font-fix
在入口文件中导入
// main.js中
import '@tslsmart/font-fix'
默认支持对el-button
按钮自动修复垂直居中问题。
在编写其他需要居中的样式时,可以给元素加上font-fix
类名来修复垂直居中问题。
默认使用HYQiHei
的参数进行居中修复。如果你使用其他字体,发现font-fix
无法垂直居中,你可以尝试修改css变量--tsl-font-mb
以及--tsl-font-mt
的值来调整。
你可以从这里获取更准确的变量值
FAQs
We found that @tslsmart/font-fix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.