@bit-sun/business-component 2.0.12 → 2.0.15

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.
Files changed (66) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +4 -4
  3. package/.gitlab-ci.yml +174 -135
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -90
  7. package/README.md +27 -27
  8. package/dist/index.d.ts +0 -1
  9. package/dist/index.esm.js +6853 -7344
  10. package/dist/index.js +6852 -7342
  11. package/docs/index.md +21 -21
  12. package/package.json +51 -60
  13. package/src/components/Business/AddSelectBusiness/index.md +41 -41
  14. package/src/components/Business/AddSelectBusiness/index.tsx +288 -300
  15. package/src/components/Business/CommodityEntry/index.md +70 -69
  16. package/src/components/Business/CommodityEntry/index.tsx +80 -78
  17. package/src/components/Business/SearchSelect/BusinessUtils.ts +1445 -1445
  18. package/src/components/Business/SearchSelect/common.ts +53 -53
  19. package/src/components/Business/SearchSelect/index.md +1137 -1136
  20. package/src/components/Business/SearchSelect/index.tsx +49 -49
  21. package/src/components/Business/SearchSelect/utils.ts +99 -99
  22. package/src/components/Business/TreeSearchSelect/index.md +126 -126
  23. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  24. package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
  25. package/src/components/Functional/AddSelect/index.less +367 -352
  26. package/src/components/Functional/AddSelect/index.md +120 -120
  27. package/src/components/Functional/AddSelect/index.tsx +952 -896
  28. package/src/components/Functional/BillEntry/index.less +371 -371
  29. package/src/components/Functional/BillEntry/index.md +37 -37
  30. package/src/components/Functional/BillEntry/index.tsx +546 -561
  31. package/src/components/Functional/DataImport/index.less +63 -63
  32. package/src/components/Functional/DataImport/index.md +44 -44
  33. package/src/components/Functional/DataImport/index.tsx +689 -689
  34. package/src/components/Functional/DataValidation/index.less +63 -63
  35. package/src/components/Functional/DataValidation/index.md +38 -38
  36. package/src/components/Functional/DataValidation/index.tsx +681 -680
  37. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  38. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  39. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  40. package/src/components/Functional/SearchSelect/index.less +115 -115
  41. package/src/components/Functional/SearchSelect/index.md +141 -141
  42. package/src/components/Functional/SearchSelect/index.tsx +791 -791
  43. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  44. package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
  45. package/src/index.ts +22 -22
  46. package/src/utils/CheckOneUser/index.md +39 -39
  47. package/src/utils/CheckOneUser/index.ts +51 -51
  48. package/src/utils/requestUtils.ts +32 -32
  49. package/tsconfig.json +29 -29
  50. package/typings.d.ts +2 -2
  51. package/Dockerfile +0 -11
  52. package/dist/app.d.ts +0 -0
  53. package/dist/components/sulaQueryTable/BsSulaQueryTable.d.ts +0 -2
  54. package/dist/components/sulaQueryTable/draggableTable.d.ts +0 -22
  55. package/dist/components/sulaQueryTable/statusComponent.d.ts +0 -2
  56. package/dist/components/sulaQueryTable/utils.d.ts +0 -41
  57. package/nginx.conf +0 -43
  58. package/src/app.tsx +0 -3
  59. package/src/components/sulaQueryTable/BsSulaQueryTable.tsx +0 -368
  60. package/src/components/sulaQueryTable/draggableTable.tsx +0 -111
  61. package/src/components/sulaQueryTable/index.md +0 -271
  62. package/src/components/sulaQueryTable/status-component.less +0 -8
  63. package/src/components/sulaQueryTable/statusComponent.tsx +0 -42
  64. package/src/components/sulaQueryTable/utils.less +0 -48
  65. package/src/components/sulaQueryTable/utils.tsx +0 -336
  66. package/src/global.less +0 -97
package/.editorconfig CHANGED
@@ -1,16 +1,16 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
14
-
15
- [Makefile]
16
- indent_style = tab
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = false
14
+
15
+ [Makefile]
16
+ indent_style = tab
package/.fatherrc.ts CHANGED
@@ -1,4 +1,4 @@
1
- export default {
2
- esm: 'rollup',
3
- cjs: 'rollup',
4
- };
1
+ export default {
2
+ esm: 'rollup',
3
+ cjs: 'rollup',
4
+ };
package/.gitlab-ci.yml CHANGED
@@ -1,135 +1,174 @@
1
- variables:
2
- REGISTRY: 172.19.133.228
3
- BUILD_IMAGE: bitsun_front/business-component
4
- PROJECT_DIR: wechat-board
5
- APP_JAR_DIR: dist.tar.gz
6
- ALIYUN_IMAGE: registry.cn-hangzhou.aliyuncs.com/mqe-front/wechat-board
7
- ALIYUN_HARBOR_USER: xinjiangshuzhiyun1
8
- ALIYUN_HARBOR_PASS: xinjiangshuzhiyun@
9
-
10
-
11
- before_script:
12
- - echo "begin to run script"
13
- - echo $HOME
14
- stages:
15
- - build
16
- - deploy
17
- - trigger
18
-
19
- #构建模板
20
- .build:template: &template
21
- stage: build
22
- image: node:10-alpine
23
- script:
24
- - yarn config set registry https://registry.npm.taobao.org
25
- - npm install -g cnpm@6.2.0
26
- - yarn config set ignore-engines true
27
- - cnpm install
28
- - yarn docs:build
29
- - tar -czvf dist.tar.gz docs-dist/
30
-
31
- #构建模板
32
- build:dev:
33
- <<: *template
34
- cache:
35
- paths:
36
- - $APP_JAR_DIR
37
- policy: push
38
-
39
- # 开发分支发布镜像
40
- deploy:dev:branch:
41
- stage: deploy
42
- image: docker:19.03.1
43
- variables:
44
- DOCKER_IMAGE: $REGISTRY/$BUILD_IMAGE
45
- script:
46
- - docker login -u admin -p Harbor12345 $REGISTRY
47
- - docker build -t $DOCKER_IMAGE:latest .
48
- - docker push $DOCKER_IMAGE:latest
49
- cache:
50
- paths:
51
- - $APP_JAR_DIR
52
- policy: pull
53
- only:
54
- - /^202.*$/
55
- - develop
56
- - master
57
- except:
58
- - tags
59
-
60
-
61
- # 推送tag到本地服务
62
- deploy:dev:tag:
63
- stage: deploy
64
- image: docker:19.03.1
65
- variables:
66
- DOCKER_IMAGE: $REGISTRY/$BUILD_IMAGE
67
- script:
68
- - pwd
69
- - echo "docker start"
70
- - docker version
71
- - echo "docker verseion end"
72
- - docker login -u admin -p Harbor12345 $REGISTRY
73
- - docker build -t $DOCKER_IMAGE:dev .
74
- - docker push $DOCKER_IMAGE:dev
75
- - docker rmi $DOCKER_IMAGE:dev
76
- cache:
77
- paths:
78
- - $APP_JAR_DIR
79
- policy: pull
80
- except:
81
- - branches
82
- - /^release.*$/
83
- - /^uat.*$/
84
- - /^prd.*$/
85
-
86
- # uat的branch上远程环境
87
-
88
-
89
- # uat版本tag上远程环境
90
- deploy:uat:tag:
91
- stage: deploy
92
- image: docker:19.03.1
93
- variables:
94
- DOCKER_IMAGE: $REGISTRY/$BUILD_IMAGE
95
- script:
96
- - pwd
97
- - echo "docker start"
98
- - docker version
99
- - echo "docker verseion end"
100
- - docker login -u admin -p Harbor12345 $REGISTRY
101
- - docker build -t $DOCKER_IMAGE:dev .
102
- - docker push $DOCKER_IMAGE:dev
103
-
104
- - docker tag $DOCKER_IMAGE:dev $DOCKER_IMAGE:$CI_COMMIT_TAG
105
- - docker login -u $ALIYUN_HARBOR_USER -p $ALIYUN_HARBOR_PASS registry.cn-hangzhou.aliyuncs.com
106
- - docker tag $DOCKER_IMAGE:$CI_COMMIT_TAG $ALIYUN_IMAGE:latest
107
- - docker push $ALIYUN_IMAGE:latest
108
- - docker tag $DOCKER_IMAGE:$CI_COMMIT_TAG $ALIYUN_IMAGE:$CI_COMMIT_TAG
109
- - docker push $ALIYUN_IMAGE:$CI_COMMIT_TAG
110
-
111
- - docker rmi $DOCKER_IMAGE:dev
112
- - docker rmi $DOCKER_IMAGE:$CI_COMMIT_TAG
113
- - docker rmi $ALIYUN_IMAGE:latest
114
- - docker rmi $ALIYUN_IMAGE:$CI_COMMIT_TAG
115
- cache:
116
- paths:
117
- - $APP_JAR_DIR
118
- policy: pull
119
- only:
120
- - /^uat.*$/
121
- - /^prd.*$/
122
- - /^release.*$/
123
- except:
124
- - branches
125
-
126
- trigger:
127
- stage: trigger
128
- trigger:
129
- project: foundation-framework/operation-work/business-component-docker-compose
130
- branch: master
131
- variables:
132
- PROJECT_NAME: business-component
133
- only:
134
- - develop
135
-
1
+ variables:
2
+ REGISTRY: 10.90.21.93:8000
3
+ BUILD_IMAGE: mqr/wechat-board
4
+ PROJECT_DIR: wechat-board
5
+ APP_JAR_DIR: dist.tar.gz
6
+ ALIYUN_IMAGE: registry.cn-hangzhou.aliyuncs.com/mqe-front/wechat-board
7
+ ALIYUN_HARBOR_USER: xinjiangshuzhiyun1
8
+ ALIYUN_HARBOR_PASS: xinjiangshuzhiyun@
9
+
10
+
11
+ before_script:
12
+ - echo "begin to run script"
13
+ - echo $HOME
14
+ stages:
15
+ - build
16
+ - deploy
17
+ - trigger
18
+
19
+ #构建模板
20
+ .build:template: &template
21
+ stage: build
22
+ image: node:10-alpine
23
+ script:
24
+ - yarn config set registry https://registry.npm.taobao.org
25
+ - npm install -g cnpm@6.2.0
26
+ - yarn config set ignore-engines true
27
+ - cnpm install
28
+ - yarn docs:build
29
+ - tar -czvf dist.tar.gz docs-dist/
30
+
31
+ #构建模板
32
+ build:dev:
33
+ <<: *template
34
+ cache:
35
+ paths:
36
+ - $APP_JAR_DIR
37
+ policy: push
38
+
39
+ # 开发分支发布镜像
40
+ deploy:dev:branch:
41
+ stage: deploy
42
+ image: docker:19.03.1
43
+ variables:
44
+ DOCKER_IMAGE: $REGISTRY/$BUILD_IMAGE
45
+ script:
46
+ - docker version
47
+ - docker login -u admin -p Harbor12345 $REGISTRY
48
+ - docker build -t $DOCKER_IMAGE:dev .
49
+ - docker push $DOCKER_IMAGE:dev
50
+ - docker rmi $DOCKER_IMAGE:dev
51
+ cache:
52
+ paths:
53
+ - $APP_JAR_DIR
54
+ policy: pull
55
+ only:
56
+ - /^202.*$/
57
+ - develop
58
+ - master
59
+ except:
60
+ - tags
61
+
62
+
63
+ # 推送tag到本地服务
64
+ deploy:dev:tag:
65
+ stage: deploy
66
+ image: docker:19.03.1
67
+ variables:
68
+ DOCKER_IMAGE: $REGISTRY/$BUILD_IMAGE
69
+ script:
70
+ - pwd
71
+ - echo "docker start"
72
+ - docker version
73
+ - echo "docker verseion end"
74
+ - docker login -u admin -p Harbor12345 $REGISTRY
75
+ - docker build -t $DOCKER_IMAGE:dev .
76
+ - docker push $DOCKER_IMAGE:dev
77
+ - docker rmi $DOCKER_IMAGE:dev
78
+ cache:
79
+ paths:
80
+ - $APP_JAR_DIR
81
+ policy: pull
82
+ except:
83
+ - branches
84
+ - /^release.*$/
85
+ - /^uat.*$/
86
+ - /^prd.*$/
87
+
88
+ # uat的branch上远程环境
89
+
90
+
91
+ # uat版本tag上远程环境
92
+ deploy:uat:tag:
93
+ stage: deploy
94
+ image: docker:19.03.1
95
+ variables:
96
+ DOCKER_IMAGE: $REGISTRY/$BUILD_IMAGE
97
+ script:
98
+ - pwd
99
+ - echo "docker start"
100
+ - docker version
101
+ - echo "docker verseion end"
102
+ - docker login -u admin -p Harbor12345 $REGISTRY
103
+ - docker build -t $DOCKER_IMAGE:dev .
104
+ - docker push $DOCKER_IMAGE:dev
105
+
106
+ - docker tag $DOCKER_IMAGE:dev $DOCKER_IMAGE:$CI_COMMIT_TAG
107
+ - docker login -u $ALIYUN_HARBOR_USER -p $ALIYUN_HARBOR_PASS registry.cn-hangzhou.aliyuncs.com
108
+ - docker tag $DOCKER_IMAGE:$CI_COMMIT_TAG $ALIYUN_IMAGE:latest
109
+ - docker push $ALIYUN_IMAGE:latest
110
+ - docker tag $DOCKER_IMAGE:$CI_COMMIT_TAG $ALIYUN_IMAGE:$CI_COMMIT_TAG
111
+ - docker push $ALIYUN_IMAGE:$CI_COMMIT_TAG
112
+
113
+ - docker rmi $DOCKER_IMAGE:dev
114
+ - docker rmi $DOCKER_IMAGE:$CI_COMMIT_TAG
115
+ - docker rmi $ALIYUN_IMAGE:latest
116
+ - docker rmi $ALIYUN_IMAGE:$CI_COMMIT_TAG
117
+ cache:
118
+ paths:
119
+ - $APP_JAR_DIR
120
+ policy: pull
121
+ only:
122
+ - /^uat.*$/
123
+ - /^prd.*$/
124
+ - /^release.*$/
125
+ except:
126
+ - branches
127
+
128
+
129
+ # branch触发本地发布
130
+ trigger:local:branch:
131
+ stage: trigger
132
+ image: $REGISTRY/bitsun-devtools/sshpass:latest
133
+ script:
134
+ sshpass -p xmx-2020 ssh -o StrictHostKeyChecking=no root@172.16.4.92 mkdir -p /$PROJECT_DIR;
135
+ sshpass -p xmx-2020 scp -o StrictHostKeyChecking=no -r deploy.sh root@172.16.4.92:/$PROJECT_DIR/deploy.sh;
136
+ sshpass -p xmx-2020 ssh -o StrictHostKeyChecking=no root@172.16.4.92 chmod +X /$PROJECT_DIR/deploy.sh;
137
+ sshpass -p xmx-2020 ssh -o StrictHostKeyChecking=no root@172.16.4.92 sh /$PROJECT_DIR/deploy.sh;
138
+ only:
139
+ - develop
140
+ - master
141
+ - /^202.*$/
142
+ except:
143
+ - tags
144
+
145
+ # tag触发本地发布
146
+ trigger:local:tag:
147
+ stage: trigger
148
+ image: $REGISTRY/bitsun-devtools/sshpass:latest
149
+ script:
150
+ sshpass -p xmx-2020 ssh -o StrictHostKeyChecking=no root@172.16.4.92 mkdir -p /$PROJECT_DIR;
151
+ sshpass -p xmx-2020 scp -o StrictHostKeyChecking=no -r deploy.sh root@172.16.4.92:/$PROJECT_DIR/deploy.sh;
152
+ sshpass -p xmx-2020 ssh -o StrictHostKeyChecking=no root@172.16.4.92 chmod +X /$PROJECT_DIR/deploy.sh;
153
+ sshpass -p xmx-2020 ssh -o StrictHostKeyChecking=no root@172.16.4.92 sh /$PROJECT_DIR/deploy.sh;
154
+ except:
155
+ - /^release.*$/
156
+ - branches
157
+
158
+
159
+ # 触发阿里云发布
160
+ trigger:remote:tag:
161
+ stage: trigger
162
+ image: $REGISTRY/bitsun-devtools/sshpass:latest
163
+ script:
164
+ - echo "trigger"
165
+ # - curl -X POST -F token=d2681aea95c9907a64a693095dc910 -F "ref=master" -F "variables[DEPLOY_COMMIT_SHA]=$CI_COMMIT_SHA" -F "variables[DEPLOY_PROJECT_NAME]=phoenix-mall-platform" -F "variables[DEPLOY_NAMESPACE]=CENTER" http://47.102.40.227/api/v4/projects/108/trigger/pipeline
166
+ only:
167
+ - /^uat.*$/
168
+ - /^prd.*$/
169
+ - /^release.*$/
170
+ except:
171
+ - branches
172
+
173
+
174
+
package/.prettierignore CHANGED
@@ -1,7 +1,7 @@
1
- **/*.svg
2
- **/*.ejs
3
- **/*.html
4
- package.json
5
- .umi
6
- .umi-production
7
- .umi-test
1
+ **/*.svg
2
+ **/*.ejs
3
+ **/*.html
4
+ package.json
5
+ .umi
6
+ .umi-production
7
+ .umi-test
package/.prettierrc CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "all",
4
- "printWidth": 80,
5
- "overrides": [
6
- {
7
- "files": ".prettierrc",
8
- "options": { "parser": "json" }
9
- }
10
- ]
11
- }
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "printWidth": 80,
5
+ "overrides": [
6
+ {
7
+ "files": ".prettierrc",
8
+ "options": { "parser": "json" }
9
+ }
10
+ ]
11
+ }
package/.umirc.ts CHANGED
@@ -1,90 +1,74 @@
1
- /*
2
- * @Description:
3
- * @Author: rodchen
4
- * @Date: 2021-11-30 22:59:39
5
- * @LastEditTime: 2021-12-29 16:14:33
6
- * @LastEditors: rodchen
7
- */
8
- import { defineConfig } from 'dumi';
9
-
10
- export default defineConfig({
11
- title: 'business-component',
12
- favicon:
13
- 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
14
- logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
15
- outputPath: 'docs-dist',
16
- mode: 'site',
17
- scripts: [
18
- 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/js/plugin.js',
19
- 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/luckysheet.umd.js',
20
- ],
21
- styles: [
22
- 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/css/pluginsCss.css',
23
- 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/plugins.css',
24
- 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/css/luckysheet.css',
25
- 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/assets/iconfont/iconfont.css',
26
- ],
27
- bssula:{},
28
- antd: {},
29
- cssLoader: {
30
- modules: {
31
- // CSS Modules 模式 定义前缀作用域
32
- getLocalIdent: (context: any, localIdentName: any, localName: any) => {
33
- if (
34
- context.resourcePath.includes('node_modules') ||
35
- context.resourcePath.includes('ant.design.pro.less') ||
36
- context.resourcePath.includes('global.less')
37
- ) {
38
- return localName;
39
- }
40
- },
41
- },
42
- },
43
- proxy: {
44
- '/bop/api/': {
45
- // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
46
- target: 'https://test.i-baby.net/', // 测试环境
47
- // target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
48
- // target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
49
- changeOrigin: true,
50
- // pathRewrite: { '^/bop/api/': '/bop/' }, // 开发环境
51
- },
52
- '/wms-ops/': {
53
- // target: 'http://yxzttest.yangzijiang.com/', // 测试环境
54
- // target: 'http://yxzt.yangzijiang.com/', // 测试环境
55
- // bop
56
- // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
57
- // 英伦
58
- // target: 'http://47.100.87.54:9102/', // 开发环境
59
- target: 'http://test.i-baby.net/', // 测试环境
60
- // target: 'http://www.i-baby.net/', // 生产
61
- changeOrigin: true,
62
- // pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
63
- },
64
- '/user/': {
65
- target: 'http://omni.bitsun-inc.com/', // 开发环境
66
- changeOrigin: true,
67
- },
68
- '/channel-manage/': {
69
- target: 'http://omni.bitsun-inc.com/', // 开发环境
70
- changeOrigin: true,
71
- },
72
- '/items/': {
73
- target: 'http://omni.bitsun-inc.com/', // 开发环境
74
- changeOrigin: true,
75
- },
76
- '/stock/': {
77
- target: 'http://omni.bitsun-inc.com/', // 开发环境
78
- changeOrigin: true,
79
- },
80
- '/basic/': {
81
- target: 'http://omni.bitsun-inc.com/', // 开发环境
82
- changeOrigin: true,
83
- },
84
- '/srm-ops/': {
85
- target: 'http://omni.bitsun-inc.com/', // 开发环境
86
- changeOrigin: true,
87
- },
88
- },
89
- // more config: https://d.umijs.org/config
90
- });
1
+ /*
2
+ * @Description:
3
+ * @Author: rodchen
4
+ * @Date: 2021-11-30 22:59:39
5
+ * @LastEditTime: 2021-12-29 16:14:33
6
+ * @LastEditors: rodchen
7
+ */
8
+ import { defineConfig } from 'dumi';
9
+
10
+ export default defineConfig({
11
+ title: 'business-component',
12
+ favicon:
13
+ 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
14
+ logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
15
+ outputPath: 'docs-dist',
16
+ mode: 'site',
17
+ scripts: [
18
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/js/plugin.js',
19
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/luckysheet.umd.js',
20
+ ],
21
+ styles: [
22
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/css/pluginsCss.css',
23
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/plugins.css',
24
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/css/luckysheet.css',
25
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/assets/iconfont/iconfont.css',
26
+ ],
27
+ proxy: {
28
+ '/bop/api/': {
29
+ // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
30
+ target: 'https://test.i-baby.net/', // 测试环境
31
+ // target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
32
+ // target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
33
+ changeOrigin: true,
34
+ // pathRewrite: { '^/bop/api/': '/bop/' }, // 开发环境
35
+ },
36
+ '/wms-ops/': {
37
+ // target: 'http://yxzttest.yangzijiang.com/', // 测试环境
38
+ // target: 'http://yxzt.yangzijiang.com/', // 测试环境
39
+ // bop
40
+ // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
41
+ // 英伦
42
+ // target: 'http://47.100.87.54:9102/', // 开发环境
43
+ target: 'http://test.i-baby.net/', // 测试环境
44
+ // target: 'http://www.i-baby.net/', // 生产
45
+ changeOrigin: true,
46
+ // pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
47
+ },
48
+ '/user/': {
49
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
50
+ changeOrigin: true,
51
+ },
52
+ '/channel-manage/': {
53
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
54
+ changeOrigin: true,
55
+ },
56
+ '/items/': {
57
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
58
+ changeOrigin: true,
59
+ },
60
+ '/stock/': {
61
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
62
+ changeOrigin: true,
63
+ },
64
+ '/basic/': {
65
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
66
+ changeOrigin: true,
67
+ },
68
+ '/srm-ops/': {
69
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
70
+ changeOrigin: true,
71
+ },
72
+ },
73
+ // more config: https://d.umijs.org/config
74
+ });
package/README.md CHANGED
@@ -1,27 +1,27 @@
1
- # business-component
2
-
3
- ## Getting Started
4
-
5
- Install dependencies,
6
-
7
- ```bash
8
- $ npm i
9
- ```
10
-
11
- Start the dev server,
12
-
13
- ```bash
14
- $ npm start
15
- ```
16
-
17
- Build documentation,
18
-
19
- ```bash
20
- $ npm run docs:build
21
- ```
22
-
23
- Build library via `father-build`,
24
-
25
- ```bash
26
- $ npm run build
27
- ```
1
+ # business-component
2
+
3
+ ## Getting Started
4
+
5
+ Install dependencies,
6
+
7
+ ```bash
8
+ $ npm i
9
+ ```
10
+
11
+ Start the dev server,
12
+
13
+ ```bash
14
+ $ npm start
15
+ ```
16
+
17
+ Build documentation,
18
+
19
+ ```bash
20
+ $ npm run docs:build
21
+ ```
22
+
23
+ Build library via `father-build`,
24
+
25
+ ```bash
26
+ $ npm run build
27
+ ```
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import 'antd/dist/antd.css';
2
1
  import './utils/requestUtils';
3
2
  export { default as DataValidation } from './components/Functional/DataValidation';
4
3
  export { default as DataImport } from './components/Functional/DataImport';