@bit-sun/business-component 2.0.32 → 2.0.34-alpha.0

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 (100) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +4 -4
  3. package/.gitlab-ci.yml +174 -174
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/index.esm.js +5885 -7643
  9. package/dist/index.js +5882 -7640
  10. package/docs/index.md +21 -21
  11. package/lib/assets/drag.svg +17 -17
  12. package/lib/assets/exportFail.svg +37 -37
  13. package/lib/assets/exportProcessing.svg +28 -28
  14. package/lib/assets/exportSuccess.svg +34 -34
  15. package/lib/assets/label_icon_bottom.svg +25 -25
  16. package/lib/assets/upExport.svg +22 -22
  17. package/package.json +69 -69
  18. package/src/assets/btn-delete.svg +29 -29
  19. package/src/assets/btn-edit.svg +19 -19
  20. package/src/assets/btn-more.svg +17 -17
  21. package/src/assets/btn-submit.svg +19 -19
  22. package/src/assets/close.svg +26 -26
  23. package/src/assets/drag.svg +17 -17
  24. package/src/assets/exportFail.svg +37 -37
  25. package/src/assets/exportProcessing.svg +28 -28
  26. package/src/assets/exportSuccess.svg +34 -34
  27. package/src/assets/fixed-left-active.svg +11 -11
  28. package/src/assets/fixed-left.svg +15 -15
  29. package/src/assets/fixed-right-active.svg +11 -11
  30. package/src/assets/fixed-right.svg +15 -15
  31. package/src/assets/icon-quanping.svg +15 -15
  32. package/src/assets/icon-shezhi.svg +17 -17
  33. package/src/assets/label_icon_bottom.svg +25 -25
  34. package/src/assets/scanning.svg +24 -24
  35. package/src/assets/upExport.svg +22 -22
  36. package/src/components/Business/AddSelectBusiness/index.md +41 -41
  37. package/src/components/Business/AddSelectBusiness/index.tsx +290 -290
  38. package/src/components/Business/BsSulaQueryTable/index.less +219 -219
  39. package/src/components/Business/BsSulaQueryTable/index.tsx +534 -534
  40. package/src/components/Business/BsSulaQueryTable/setting.tsx +817 -817
  41. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  42. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
  43. package/src/components/Business/CommodityEntry/index.md +70 -70
  44. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  45. package/src/components/Business/CommonAlert/index.tsx +23 -23
  46. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  47. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  48. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  49. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  50. package/src/components/Business/DetailPageWrapper/index.tsx +324 -324
  51. package/src/components/Business/DetailPageWrapper/utils.tsx +110 -110
  52. package/src/components/Business/HomePageWrapper/index.less +33 -33
  53. package/src/components/Business/HomePageWrapper/index.md +45 -45
  54. package/src/components/Business/HomePageWrapper/index.tsx +150 -150
  55. package/src/components/Business/SearchSelect/BusinessUtils.ts +1448 -1448
  56. package/src/components/Business/SearchSelect/common.ts +53 -53
  57. package/src/components/Business/SearchSelect/index.md +1137 -1137
  58. package/src/components/Business/SearchSelect/index.tsx +51 -51
  59. package/src/components/Business/SearchSelect/utils.ts +99 -99
  60. package/src/components/Business/StateFlow/index.less +130 -130
  61. package/src/components/Business/StateFlow/index.md +60 -60
  62. package/src/components/Business/StateFlow/index.tsx +29 -29
  63. package/src/components/Business/TreeSearchSelect/index.md +126 -126
  64. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  65. package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
  66. package/src/components/Business/columnSettingTable/columnSetting.tsx +762 -762
  67. package/src/components/Business/columnSettingTable/index.less +247 -247
  68. package/src/components/Business/columnSettingTable/index.md +357 -357
  69. package/src/components/Business/columnSettingTable/index.tsx +225 -225
  70. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +233 -233
  71. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  72. package/src/components/Functional/AddSelect/index.less +367 -367
  73. package/src/components/Functional/AddSelect/index.md +122 -122
  74. package/src/components/Functional/AddSelect/index.tsx +962 -962
  75. package/src/components/Functional/BillEntry/index.less +371 -371
  76. package/src/components/Functional/BillEntry/index.md +39 -37
  77. package/src/components/Functional/BillEntry/index.tsx +607 -547
  78. package/src/components/Functional/DataImport/index.less +63 -63
  79. package/src/components/Functional/DataImport/index.md +44 -44
  80. package/src/components/Functional/DataImport/index.tsx +689 -689
  81. package/src/components/Functional/DataValidation/index.less +63 -63
  82. package/src/components/Functional/DataValidation/index.md +38 -38
  83. package/src/components/Functional/DataValidation/index.tsx +681 -681
  84. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  85. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  86. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  87. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  88. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  89. package/src/components/Functional/SearchSelect/index.less +115 -115
  90. package/src/components/Functional/SearchSelect/index.md +141 -141
  91. package/src/components/Functional/SearchSelect/index.tsx +812 -812
  92. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  93. package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
  94. package/src/index.ts +30 -30
  95. package/src/utils/CheckOneUser/index.md +39 -39
  96. package/src/utils/CheckOneUser/index.ts +51 -51
  97. package/src/utils/requestUtils.ts +32 -32
  98. package/src/utils/utils.ts +22 -22
  99. package/tsconfig.json +29 -29
  100. package/typings.d.ts +4 -4
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,174 +1,174 @@
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
-
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,74 +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
- 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
- });
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
+ ```