@tsingroc/tsingroc-components 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js DELETED
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import { useEffect } from 'react';
3
- import Button from './components/Button';
4
- import {
5
- ImageBac,
6
- EchartMult,
7
- RiskEchartMult,
8
- TsingrocDatePick,
9
- RadarEchart,
10
- TsingrocPie,
11
- CircularProgress,
12
- WindFlow,
13
- BoxplotEchart,
14
- EchartJustOneLine,
15
- TsingrocMonthPick
16
- } from './components/tsingrocCom'
17
- function testCon(name){
18
- console.log(name+'testCon');
19
- }
20
-
21
- function SuccessInfo(){
22
- useEffect(()=>{
23
- console.error('render')
24
- },[])
25
-
26
- return <div style={{textAlign:"center",color:"green"}}>success!</div>
27
- }
28
-
29
- export {ImageBac,
30
- EchartMult,
31
- RiskEchartMult,
32
- TsingrocDatePick,
33
- RadarEchart,
34
- TsingrocPie,
35
- CircularProgress,
36
- WindFlow,
37
- BoxplotEchart,
38
- EchartJustOneLine,
39
- TsingrocMonthPick, Button,testCon,SuccessInfo };
package/test/test.js DELETED
@@ -1,2 +0,0 @@
1
- const myFunction = require('ts-com');
2
- myFunction.testCon();
package/webpack.config.js DELETED
@@ -1,41 +0,0 @@
1
- const path = require('path');
2
- const HtmlWebpackPlugin = require('html-webpack-plugin');
3
-
4
- module.exports = {
5
- mode: 'development', // 或 'production'
6
- entry: './example/src/index.js', // 入口文件
7
- output: {
8
- path: path.resolve(__dirname, 'dist'), // 输出目录
9
- filename: 'bundle.js', // 输出文件名
10
- library: 'my-component-library',
11
- libraryTarget: 'umd',
12
- },
13
- // devServer: {
14
- // contentBase: path.join(__dirname, 'public'), // 静态文件目录
15
- // compress: true,
16
- // port: 8080, // 开发服务器端口
17
- // },
18
- plugins: [
19
- new HtmlWebpackPlugin({
20
- template: './example/public/index.html', // 使用 src/index.html 作为模板
21
- }),
22
- ],
23
- // externals: {
24
- // react: 'react',
25
- // 'react-dom': 'react-dom',
26
- // antd: 'antd',
27
- // },
28
- module: {
29
- rules: [
30
- {
31
- test: /\.css$/, // CSS 文件处理
32
- use: ['style-loader', 'css-loader'],
33
- },
34
- {
35
- test: /\.js$/,
36
- exclude: /node_modules/,
37
- use: 'babel-loader',
38
- },
39
- ],
40
- },
41
- };