Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hqw-number

this is konva number

react, konva, webpack, number

readme

hqw-number

用于美化数字,支持符号: 1、2、3、4、5、6、7、8、9、-

安装

yarn add hqw-number

API

Name Type Default Description
num string` `number '9'
color string 'black' 数字颜色
fontSize string` `number '14'
opacity number 1 数字透明度

例子

import React from 'react';
import Number from 'hqw-number';

export default function Example() {
  return (
    <>
      <h1>数字示例</h1>
      <Number num="999" color='red' fontSize='20' />
    </>
  );
}

版本日志

  • 1.0.0 创建模型
  • 1.0.1 修改README.md 文件