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,
|
"useWorkspaces": true,
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|||||||
11
package.json
11
package.json
@@ -2,20 +2,19 @@
|
|||||||
"name": "root",
|
"name": "root",
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*",
|
||||||
|
"projects/*"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/runtime": "^7.12.5",
|
"@babel/runtime": "^7.21.0",
|
||||||
"@types/react": "^18.0.35",
|
"@types/react": "^18.0.37",
|
||||||
"antd": "^5.4.2",
|
"antd": "^5.4.2",
|
||||||
"babel-plugin-import": "^1.13.6",
|
"babel-plugin-import": "^1.13.6",
|
||||||
"father": "^4.1.8",
|
"father": "^4.1.8",
|
||||||
"lerna": "^6.6.1",
|
"lerna": "^6.6.1",
|
||||||
"typescript": "^5.0.4"
|
"typescript": "^5.0.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {},
|
||||||
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cnpm": "^9.1.0"
|
"cnpm": "^9.1.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useEffect } from 'react';
|
|||||||
|
|
||||||
const useTask = () => {
|
const useTask = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('useTask31231');
|
console.log('lishican2');
|
||||||
}, []);
|
}, []);
|
||||||
};
|
};
|
||||||
export default useTask;
|
export default useTask;
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ import { defineConfig } from 'father';
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
esm: {
|
esm: {
|
||||||
input: "src",
|
input: 'src',
|
||||||
platform: "browser",
|
platform: 'browser',
|
||||||
transformer:"esbuild"
|
transformer: 'esbuild',
|
||||||
|
output: 'es',
|
||||||
},
|
},
|
||||||
|
|
||||||
extraBabelPlugins: [
|
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",
|
"name": "@lishican/antbank-platform-ui",
|
||||||
"version": "0.0.2",
|
"version": "0.0.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"module": "dist/esm/index.js",
|
"module": "es/index.js",
|
||||||
"types": "dist/esm/index.d.ts",
|
"types": "es/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "father dev",
|
"dev": "father dev",
|
||||||
"build": "father build",
|
"build": "father build",
|
||||||
@@ -32,7 +32,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lishican/antbank-platform-hooks": "^0.0.2",
|
"@lishican/antbank-platform-hooks": "^0.0.2",
|
||||||
"@lishican/antbank-platform-ui": "^0.0.2",
|
|
||||||
"styled-components": "^5.3.9"
|
"styled-components": "^5.3.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import { Button } from 'antd';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
|
||||||
const HelloWorld: React.FC<any> = () => {
|
const HelloWorld: React.FC<{ name4: string,age3:string }> = ({ name4 }) => {
|
||||||
useTask();
|
useTask();
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Button type="primary">ok222</Button>
|
<Button type="primary">{name4}</Button>
|
||||||
{/* <h3 className='red'>red</h3> */}
|
{/* <h3 className='red'>red</h3> */}
|
||||||
</div>
|
</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>",
|
"author": "lishican <1213782659@qq.com>",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "umi build",
|
"build": "umi build",
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
import { defineConfig } from 'umi';
|
import { defineConfig } from 'umi';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
routes: [
|
routes: [{ path: '/', component: 'index' }],
|
||||||
{ path: '/', component: 'index' },
|
|
||||||
],
|
|
||||||
npmClient: 'npm',
|
npmClient: 'npm',
|
||||||
monorepoRedirect: {
|
monorepoRedirect: {
|
||||||
peerDeps: true,
|
peerDeps: true,
|
||||||
|
exclude: [/node_modules/],
|
||||||
},
|
},
|
||||||
plugins: ['@umijs/plugins/dist/qiankun'],
|
plugins: ['@umijs/plugins/dist/qiankun'],
|
||||||
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"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lishican/antbank-platform-hooks": "workspace:^0.0.1",
|
"@lishican/antbank-platform-ui": "workspace:*",
|
||||||
"@lishican/antbank-platform-ui": "workspace:^0.0.1",
|
|
||||||
"antd": "^5.4.2",
|
"antd": "^5.4.2",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^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 Test from '@lishican/antbank-platform-ui';
|
||||||
import { MicroApp } from 'umi';
|
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
useTask()
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h2 className={styles.red2}>Yay! Welcome to2 umi!</h2>
|
<h2 className={styles.red2}>Yay! Welcome to2 umi!</h2>
|
||||||
<Test />
|
<Test name4="2131" age3='2131' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": "./src/.umi/tsconfig.json"
|
"extends": "./src/.umi/tsconfig.json",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user