@bit-sun/business-component 2.0.8 → 2.0.11
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 +135 -174
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +90 -74
- package/Dockerfile +11 -0
- package/README.md +27 -27
- package/dist/app.d.ts +0 -0
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +2 -1
- package/dist/components/sulaQueryTable/BsSulaQueryTable.d.ts +2 -0
- package/dist/components/sulaQueryTable/draggableTable.d.ts +22 -0
- package/dist/components/sulaQueryTable/statusComponent.d.ts +2 -0
- package/dist/components/sulaQueryTable/utils.d.ts +41 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +6590 -6063
- package/dist/index.js +6588 -6062
- package/dist/utils/requestUtils.d.ts +1 -0
- package/docs/index.md +21 -21
- package/nginx.conf +43 -0
- package/package.json +60 -50
- package/src/app.tsx +3 -0
- package/src/components/Business/AddSelectBusiness/index.md +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +300 -299
- 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 -1137
- package/src/components/Business/SearchSelect/index.tsx +49 -44
- 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 +352 -352
- package/src/components/Functional/AddSelect/index.md +120 -120
- package/src/components/Functional/AddSelect/index.tsx +896 -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 +561 -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 +772 -732
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
- package/src/components/sulaQueryTable/BsSulaQueryTable.tsx +368 -0
- package/src/components/sulaQueryTable/draggableTable.tsx +111 -0
- package/src/components/sulaQueryTable/index.md +271 -0
- package/src/components/sulaQueryTable/status-component.less +8 -0
- package/src/components/sulaQueryTable/statusComponent.tsx +42 -0
- package/src/components/sulaQueryTable/utils.less +48 -0
- package/src/components/sulaQueryTable/utils.tsx +336 -0
- package/src/global.less +97 -0
- package/src/index.ts +22 -32
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/requestUtils.ts +32 -0
- package/tsconfig.json +29 -29
- package/typings.d.ts +2 -2
|
@@ -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
|
+
```
|