UNPKG

@devops-web/cs-chart

Version:

## 更新流程 1. 切换源到npm官方源https://registry.npmjs.org/ 2. npm login 3. npm run lib 4. 修改package.json中的版本号 5. npm publish --access public

18 lines (14 loc) 392 B
import MyChart from './MyChart'; import CsChart from './TopChart'; import { setColors, getChartList, appendChart } from './constant.js'; export const ChartList = { config: function ({ colors, charts = [] }) { // 设置颜色列表 setColors(colors); // 注册新图表 charts.forEach(appendChart); }, get: getChartList, }; export default CsChart; export { MyChart };