@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/README.md +64 -0
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/index.js +8 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/tsingrocCom.d.ts +15 -0
- package/dist/components/tsingrocCom.js +967 -0
- package/dist/components/tsingrocCom.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -14
- package/.babelrc +0 -3
- package/build.config.js +0 -55
- package/dist/bundle.js +0 -11220
- package/dist/index.html +0 -11
- package/example/public/index.html +0 -11
- package/example/src/App.js +0 -17
- package/example/src/index.js +0 -11
- package/index.js +0 -6
- package/src/components/Button/index.js +0 -10
- package/src/components/index.js +0 -3
- package/src/components/tsingrocCom.js +0 -1121
- package/src/index.js +0 -39
- package/test/test.js +0 -2
- package/webpack.config.js +0 -41
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
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
|
-
};
|