@tsingroc/tsingroc-components 1.0.3 → 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/dist/index.html DELETED
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>My Frontend Project</title>
7
- <script defer src="bundle.js"></script></head>
8
- <body>
9
- <div id="root"></div>
10
- </body>
11
- </html>
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>My Frontend Project</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- </body>
11
- </html>
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { Button,testCon,SuccessInfo,EchartJustOneLine } from 'tsingroc-components';
3
-
4
- const App = () => {
5
- testCon('zhangsan1222 ')
6
- return (
7
- <div className="app">
8
- <h1>Hello, React!</h1>
9
- <EchartJustOneLine x={[1,2,3]} y={[4,5,6]} styleObj={{ lineColor: '#3AC8FF', areaStyle: ['rgba(58, 200, 255, 0.43) ', 'rgba(139, 255, 255, 0.02)'] }} ></EchartJustOneLine>
10
- <SuccessInfo></SuccessInfo>
11
- <Button>nihao</Button>
12
- <p>Welcome to my frontend project.</p>
13
- </div>
14
- );
15
- };
16
-
17
- export default App;
@@ -1,11 +0,0 @@
1
- // import React from 'react';
2
- // import ReactDOM from 'react-dom';
3
- import App from './App'; // 引入 App 组件
4
-
5
- // ReactDOM.render(<App />, document.getElementById('app'));
6
- import React from 'react';
7
- import { createRoot } from 'react-dom/client';
8
-
9
- const container = document.getElementById('root');
10
- const root = createRoot(container);
11
- root.render(<App />);
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- // index.js
2
- function myFunction() {
3
- console.log('Hello, this is my npm package!');
4
- }
5
-
6
- module.exports = myFunction;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Button as AntdButton } from 'antd';
3
-
4
- const Button = ({ children, ...props }) => {
5
- return <AntdButton {...props}>
6
- <div>AntdButton</div>
7
- {children}</AntdButton>;
8
- };
9
-
10
- export default Button;
@@ -1,3 +0,0 @@
1
- import Button from './components/Button';
2
-
3
- export { Button };