@laozhao/autofontsize

0.0.2 • Public • Published
/**
 * @desc 根据内容自适应字号
 * @param {string} [text] - 显示的内容
 * @param {number} [maxFontSize] - 最大字号
 *
 * @example
 * <div style="display: inline-block;width: 100px;">
 *   <autofontsize text="这是文字" :maxFontSize="20"></autofontsize>
 * </div>
 */

Dependents (0)

Package Sidebar

Install

npm i @laozhao/autofontsize

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

1.91 kB

Total Files

4

Last publish

Collaborators

  • laozhao