fix: 修复
This commit is contained in:
7
.npmrc
7
.npmrc
@@ -1,2 +1,7 @@
|
||||
registry=https://registry.npmmirror.com/
|
||||
# registry=https://registry.npmmirror.com/
|
||||
registry=https://registry.npmjs.org/
|
||||
shamefully-hoist=true
|
||||
lockfile=false
|
||||
shared-workspace-lockfile=false
|
||||
# https://registry.npmjs.org/.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.5",
|
||||
"useWorkspaces": true,
|
||||
"packages": [
|
||||
"packages/*"
|
||||
|
||||
11
package.json
11
package.json
@@ -2,20 +2,19 @@
|
||||
"name": "root",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
"packages/*",
|
||||
"projects/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@types/react": "^18.0.35",
|
||||
"@babel/runtime": "^7.21.0",
|
||||
"@types/react": "^18.0.37",
|
||||
"antd": "^5.4.2",
|
||||
"babel-plugin-import": "^1.13.6",
|
||||
"father": "^4.1.8",
|
||||
"lerna": "^6.6.1",
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"cnpm": "^9.1.0"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useEffect } from 'react';
|
||||
|
||||
const useTask = () => {
|
||||
useEffect(() => {
|
||||
console.log('useTask31231');
|
||||
console.log('lishican2');
|
||||
}, []);
|
||||
};
|
||||
export default useTask;
|
||||
|
||||
@@ -4,9 +4,10 @@ import { defineConfig } from 'father';
|
||||
|
||||
export default defineConfig({
|
||||
esm: {
|
||||
input: "src",
|
||||
platform: "browser",
|
||||
transformer:"esbuild"
|
||||
input: 'src',
|
||||
platform: 'browser',
|
||||
transformer: 'esbuild',
|
||||
output: 'es',
|
||||
},
|
||||
|
||||
extraBabelPlugins: [
|
||||
|
||||
8
packages/bizComponent/es/index.d.ts
vendored
Normal file
8
packages/bizComponent/es/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import React from 'react';
|
||||
import './index.less';
|
||||
declare const HelloWorld: React.FC<{
|
||||
name4: string;
|
||||
age3: string;
|
||||
}>;
|
||||
export default HelloWorld;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
packages/bizComponent/es/index.d.ts.map
Normal file
1
packages/bizComponent/es/index.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAQ,cAAc,CAAC;AAEvB,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAA,IAAI,EAAC,MAAM,CAAA;CAAE,CAQvD,CAAC;AACF,eAAe,UAAU,CAAC"}
|
||||
13
packages/bizComponent/es/index.js
Normal file
13
packages/bizComponent/es/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// src/index.tsx
|
||||
import { useTask } from "@lishican/antbank-platform-hooks";
|
||||
import { Button } from "antd";
|
||||
import React from "react";
|
||||
import "./index.less";
|
||||
var HelloWorld = ({ name4 }) => {
|
||||
useTask();
|
||||
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Button, { type: "primary" }, name4));
|
||||
};
|
||||
var src_default = HelloWorld;
|
||||
export {
|
||||
src_default as default
|
||||
};
|
||||
6
packages/bizComponent/es/index.less
Normal file
6
packages/bizComponent/es/index.less
Normal file
@@ -0,0 +1,6 @@
|
||||
.red {
|
||||
color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -2,8 +2,8 @@
|
||||
"name": "@lishican/antbank-platform-ui",
|
||||
"version": "0.0.2",
|
||||
"description": "",
|
||||
"module": "dist/esm/index.js",
|
||||
"types": "dist/esm/index.d.ts",
|
||||
"module": "es/index.js",
|
||||
"types": "es/index.d.ts",
|
||||
"scripts": {
|
||||
"dev": "father dev",
|
||||
"build": "father build",
|
||||
@@ -32,7 +32,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@lishican/antbank-platform-hooks": "^0.0.2",
|
||||
"@lishican/antbank-platform-ui": "^0.0.2",
|
||||
"styled-components": "^5.3.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ import { Button } from 'antd';
|
||||
import React from 'react';
|
||||
import './index.less';
|
||||
|
||||
const HelloWorld: React.FC<any> = () => {
|
||||
const HelloWorld: React.FC<{ name4: string,age3:string }> = ({ name4 }) => {
|
||||
useTask();
|
||||
return (
|
||||
<div>
|
||||
<Button type="primary">ok222</Button>
|
||||
<Button type="primary">{name4}</Button>
|
||||
{/* <h3 className='red'>red</h3> */}
|
||||
</div>
|
||||
);
|
||||
|
||||
15363
pnpm-lock.yaml
generated
15363
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "bkloan-sg",
|
||||
"name": "bkloan-gl",
|
||||
"author": "lishican <1213782659@qq.com>",
|
||||
"scripts": {
|
||||
"build": "umi build",
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { defineConfig } from 'umi';
|
||||
|
||||
export default defineConfig({
|
||||
routes: [
|
||||
{ path: '/', component: 'index' },
|
||||
],
|
||||
routes: [{ path: '/', component: 'index' }],
|
||||
npmClient: 'npm',
|
||||
monorepoRedirect: {
|
||||
peerDeps: true,
|
||||
exclude: [/node_modules/],
|
||||
},
|
||||
plugins: ['@umijs/plugins/dist/qiankun'],
|
||||
qiankun: {
|
||||
|
||||
14546
projects/bkloan-sg/package-lock.json
generated
14546
projects/bkloan-sg/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -26,8 +26,7 @@
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lishican/antbank-platform-hooks": "workspace:^0.0.1",
|
||||
"@lishican/antbank-platform-ui": "workspace:^0.0.1",
|
||||
"@lishican/antbank-platform-ui": "workspace:*",
|
||||
"antd": "^5.4.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import { useTask } from '@lishican/antbank-platform-hooks';
|
||||
import Test from '@lishican/antbank-platform-ui';
|
||||
import { MicroApp } from 'umi';
|
||||
import styles from './index.less';
|
||||
export default function HomePage() {
|
||||
useTask()
|
||||
return (
|
||||
<div>
|
||||
<h2 className={styles.red2}>Yay! Welcome to2 umi!</h2>
|
||||
<Test />
|
||||
<Test name4="2131" age3='2131' />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"extends": "./src/.umi/tsconfig.json"
|
||||
"extends": "./src/.umi/tsconfig.json",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user