@bit-sun/business-component 2.0.12 → 2.0.13
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/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.gitlab-ci.yml +174 -135
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -90
- package/README.md +27 -27
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +6794 -7350
- package/dist/index.js +6793 -7348
- package/docs/index.md +21 -21
- package/package.json +51 -60
- package/src/components/Business/AddSelectBusiness/index.md +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +288 -300
- package/src/components/Business/CommodityEntry/index.md +69 -69
- package/src/components/Business/CommodityEntry/index.tsx +78 -78
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1445 -1445
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1137 -1136
- package/src/components/Business/SearchSelect/index.tsx +44 -49
- package/src/components/Business/SearchSelect/utils.ts +99 -99
- package/src/components/Business/TreeSearchSelect/index.md +126 -126
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
- package/src/components/Functional/AddSelect/index.less +367 -352
- package/src/components/Functional/AddSelect/index.md +120 -120
- package/src/components/Functional/AddSelect/index.tsx +952 -896
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +37 -37
- package/src/components/Functional/BillEntry/index.tsx +547 -561
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +689 -689
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +38 -38
- package/src/components/Functional/DataValidation/index.tsx +680 -680
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +732 -791
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
- package/src/index.ts +22 -22
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/requestUtils.ts +32 -32
- package/tsconfig.json +29 -29
- package/typings.d.ts +2 -2
- package/Dockerfile +0 -11
- package/dist/app.d.ts +0 -0
- package/dist/components/sulaQueryTable/BsSulaQueryTable.d.ts +0 -2
- package/dist/components/sulaQueryTable/draggableTable.d.ts +0 -22
- package/dist/components/sulaQueryTable/statusComponent.d.ts +0 -2
- package/dist/components/sulaQueryTable/utils.d.ts +0 -41
- package/nginx.conf +0 -43
- package/src/app.tsx +0 -3
- package/src/components/sulaQueryTable/BsSulaQueryTable.tsx +0 -368
- package/src/components/sulaQueryTable/draggableTable.tsx +0 -111
- package/src/components/sulaQueryTable/index.md +0 -271
- package/src/components/sulaQueryTable/status-component.less +0 -8
- package/src/components/sulaQueryTable/statusComponent.tsx +0 -42
- package/src/components/sulaQueryTable/utils.less +0 -48
- package/src/components/sulaQueryTable/utils.tsx +0 -336
- package/src/global.less +0 -97
package/docs/index.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
---
|
|
2
|
-
hero:
|
|
3
|
-
title: business-component
|
|
4
|
-
desc: business-component site example
|
|
5
|
-
actions:
|
|
6
|
-
- text: Getting Started
|
|
7
|
-
link: /components
|
|
8
|
-
features:
|
|
9
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
|
|
10
|
-
title: Feature 1
|
|
11
|
-
desc: Balabala
|
|
12
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
|
|
13
|
-
title: Feature 2
|
|
14
|
-
desc: Balabala
|
|
15
|
-
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
|
|
16
|
-
title: Feature 3
|
|
17
|
-
desc: Balabala
|
|
18
|
-
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Hello business-component!
|
|
1
|
+
---
|
|
2
|
+
hero:
|
|
3
|
+
title: business-component
|
|
4
|
+
desc: business-component site example
|
|
5
|
+
actions:
|
|
6
|
+
- text: Getting Started
|
|
7
|
+
link: /components
|
|
8
|
+
features:
|
|
9
|
+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
|
|
10
|
+
title: Feature 1
|
|
11
|
+
desc: Balabala
|
|
12
|
+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
|
|
13
|
+
title: Feature 2
|
|
14
|
+
desc: Balabala
|
|
15
|
+
- icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
|
|
16
|
+
title: Feature 3
|
|
17
|
+
desc: Balabala
|
|
18
|
+
footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Hello business-component!
|
package/package.json
CHANGED
|
@@ -1,60 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bit-sun/business-component",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"start": "dumi dev",
|
|
6
|
-
"docs:build": "dumi build",
|
|
7
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
-
"build": "father-build",
|
|
9
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
-
"release": "npm run build && npm publish",
|
|
11
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
12
|
-
"test": "umi-test",
|
|
13
|
-
"test:coverage": "umi-test --coverage"
|
|
14
|
-
},
|
|
15
|
-
"main": "dist/index.js",
|
|
16
|
-
"module": "dist/index.esm.js",
|
|
17
|
-
"typings": "dist/index.d.ts",
|
|
18
|
-
"gitHooks": {
|
|
19
|
-
"pre-commit": "lint-staged"
|
|
20
|
-
},
|
|
21
|
-
"lint-staged": {
|
|
22
|
-
"*.{js,jsx,less,md,json}": [
|
|
23
|
-
"prettier --write"
|
|
24
|
-
],
|
|
25
|
-
"*.ts?(x)": [
|
|
26
|
-
"prettier --parser=typescript --write"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"father-build": "^1.17.2",
|
|
53
|
-
"gh-pages": "^3.0.0",
|
|
54
|
-
"lint-staged": "^10.0.7",
|
|
55
|
-
"prettier": "^2.2.1"
|
|
56
|
-
},
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bit-sun/business-component",
|
|
3
|
+
"version": "2.0.13",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"start": "dumi dev",
|
|
6
|
+
"docs:build": "dumi build",
|
|
7
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
+
"build": "father-build",
|
|
9
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
+
"release": "npm run build && npm publish",
|
|
11
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
12
|
+
"test": "umi-test",
|
|
13
|
+
"test:coverage": "umi-test --coverage"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "dist/index.esm.js",
|
|
17
|
+
"typings": "dist/index.d.ts",
|
|
18
|
+
"gitHooks": {
|
|
19
|
+
"pre-commit": "lint-staged"
|
|
20
|
+
},
|
|
21
|
+
"lint-staged": {
|
|
22
|
+
"*.{js,jsx,less,md,json}": [
|
|
23
|
+
"prettier --write"
|
|
24
|
+
],
|
|
25
|
+
"*.ts?(x)": [
|
|
26
|
+
"prettier --parser=typescript --write"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"ahooks": "^3.1.2",
|
|
31
|
+
"antd": "4.17.2",
|
|
32
|
+
"axios": "^0.24.0",
|
|
33
|
+
"classnames": "^2.3.1",
|
|
34
|
+
"loadsh": "^0.0.4",
|
|
35
|
+
"querystring": "^0.2.1",
|
|
36
|
+
"react": "^16.12.0",
|
|
37
|
+
"react-beautiful-dnd": "10.0.0",
|
|
38
|
+
"react-resizable": "^3.0.4"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@umijs/test": "^3.0.5",
|
|
42
|
+
"dumi": "^1.0.14",
|
|
43
|
+
"father-build": "^1.17.2",
|
|
44
|
+
"gh-pages": "^3.0.0",
|
|
45
|
+
"lint-staged": "^10.0.7",
|
|
46
|
+
"prettier": "^2.2.1"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
---
|
|
2
|
-
nav:
|
|
3
|
-
title: '组件'
|
|
4
|
-
order: 1
|
|
5
|
-
group:
|
|
6
|
-
title: 业务组件
|
|
7
|
-
order: 1
|
|
8
|
-
title: 业务档录入器
|
|
9
|
-
order: 1
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# BusinessSearchSelect
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 商品选择录入器
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import React, { useState } from 'react';
|
|
19
|
-
import { Tabs } from 'antd';
|
|
20
|
-
import { AddSkuSelect } from '../../../index.ts';
|
|
21
|
-
|
|
22
|
-
export default () => {
|
|
23
|
-
const config = {
|
|
24
|
-
buttonText: 'context',
|
|
25
|
-
beforeShowModal: () => {
|
|
26
|
-
return Promise.resolve(true);
|
|
27
|
-
// return Promise.reject('校验有误');
|
|
28
|
-
},
|
|
29
|
-
onSaveCallback: (rows) => {
|
|
30
|
-
console.log('save call', rows);
|
|
31
|
-
return Promise.resolve(true);
|
|
32
|
-
// return Promise.reject('FAILE')
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return (
|
|
36
|
-
<div>
|
|
37
|
-
<AddSkuSelect {...config} />
|
|
38
|
-
</div>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
```
|
|
1
|
+
---
|
|
2
|
+
nav:
|
|
3
|
+
title: '组件'
|
|
4
|
+
order: 1
|
|
5
|
+
group:
|
|
6
|
+
title: 业务组件
|
|
7
|
+
order: 1
|
|
8
|
+
title: 业务档录入器
|
|
9
|
+
order: 1
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# BusinessSearchSelect
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 商品选择录入器
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import React, { useState } from 'react';
|
|
19
|
+
import { Tabs } from 'antd';
|
|
20
|
+
import { AddSkuSelect } from '../../../index.ts';
|
|
21
|
+
|
|
22
|
+
export default () => {
|
|
23
|
+
const config = {
|
|
24
|
+
buttonText: 'context',
|
|
25
|
+
beforeShowModal: () => {
|
|
26
|
+
return Promise.resolve(true);
|
|
27
|
+
// return Promise.reject('校验有误');
|
|
28
|
+
},
|
|
29
|
+
onSaveCallback: (rows) => {
|
|
30
|
+
console.log('save call', rows);
|
|
31
|
+
return Promise.resolve(true);
|
|
32
|
+
// return Promise.reject('FAILE')
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<AddSkuSelect {...config} />
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
```
|