【文件属性】:
文件名称:react-smoothie:思慕雪图表的React包装器
文件大小:93KB
文件格式:ZIP
更新时间:2021-05-19 21:15:58
TypeScript
React平稳
思慕React包装器。
安装
使用纱线:
yarn add react-smoothie
使用NPM:
npm install react-smoothie --save
用法
填充数据有2种主要方法。
基于原始ref的addTimeSeries()
参照TimeSeries新增(在0.4.0添加)道具
导入/要求
要么导入要么需要工作
const { default : SmoothieComponent , TimeSeries } = require ( 'react-smoothie' ) ;
import SmoothieComponent , { TimeSeries } from 'react-smoothie' ;
新的基于prop的API
const ts1 = new TimeSeries ( { } ) ;
const ts2 = ne
【文件预览】:
react-smoothie-master
----.gitignore(115B)
----tsconfig.json(126B)
----README.md(5KB)
----.github()
--------workflows()
----.prettierrc(73B)
----.vscode()
--------extensions.json(81B)
--------settings.json(114B)
--------tasks.json(395B)
----package.json(1KB)
----example.jsx(3KB)
----.editorconfig(114B)
----webpack.config.js(877B)
----yarn.lock(216KB)
----.npmrc(21B)
----SmoothieComponent.tsx(8KB)