@bit-sun/business-component 2.0.29 → 2.0.31
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 -174
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/index.esm.js +5641 -7520
- package/dist/index.js +5638 -7517
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +63 -62
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/upExport.svg +22 -22
- package/src/components/Business/AddSelectBusiness/index.md +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +290 -290
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1448 -1446
- 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 +51 -51
- package/src/components/Business/SearchSelect/utils.ts +99 -99
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- 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/Business/columnSettingTable/columnSetting.tsx +594 -594
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +216 -216
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +224 -224
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +122 -122
- package/src/components/Functional/AddSelect/index.tsx +962 -952
- 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 -547
- 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 +681 -681
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- 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 +812 -812
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
- package/src/index.ts +27 -27
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/requestUtils.ts +32 -32
- package/src/utils/utils.ts +22 -22
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import React, { Component } from "react";
|
|
2
|
-
import dragImg from '../../../assets/drag.svg';
|
|
3
|
-
import label_icon_bottom from '../../../assets/label_icon_bottom.svg';
|
|
4
|
-
import arrow_top from '../../../assets/arrow_top.png';
|
|
5
|
-
import './index.less';
|
|
6
|
-
|
|
7
|
-
const Field = ({ children, ...props }: any) => {
|
|
8
|
-
const [fieldGroupVisible, setVisible] = React.useState(true);
|
|
9
|
-
return (
|
|
10
|
-
<div
|
|
11
|
-
className={
|
|
12
|
-
`bitsun-form-card-class
|
|
13
|
-
${fieldGroupVisible ? '' : 'field-group-hidden'}
|
|
14
|
-
${props.isWhiteCard ? 'white-card' : ''}
|
|
15
|
-
`
|
|
16
|
-
}
|
|
17
|
-
id={props.id}
|
|
18
|
-
>
|
|
19
|
-
<div className="ant-card-head">
|
|
20
|
-
<div className="ant-card-head-title">
|
|
21
|
-
<span className='title-left-line'></span>
|
|
22
|
-
<span style={{ marginRight: '5px' }}>
|
|
23
|
-
{props?.title}
|
|
24
|
-
</span>
|
|
25
|
-
<img
|
|
26
|
-
width={24}
|
|
27
|
-
style={{
|
|
28
|
-
transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
|
|
29
|
-
cursor: 'pointer'
|
|
30
|
-
}}
|
|
31
|
-
src={arrow_top}
|
|
32
|
-
onClick={(e) => {
|
|
33
|
-
e.stopPropagation();
|
|
34
|
-
setVisible(!fieldGroupVisible);
|
|
35
|
-
}}
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div className="ant-card-body">
|
|
40
|
-
{children}
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default class GuideWrapper extends Component {
|
|
47
|
-
static Field = Field;
|
|
48
|
-
render() {
|
|
49
|
-
const { children = [], ...props }: any = this.props;
|
|
50
|
-
let cardGroups = children.filter((item:any) => item?.props?.id && item?.props?.title);
|
|
51
|
-
return (
|
|
52
|
-
<div {...props}>
|
|
53
|
-
{children}
|
|
54
|
-
<div
|
|
55
|
-
className='form-guide'
|
|
56
|
-
>
|
|
57
|
-
<div className='form-guide-top'>
|
|
58
|
-
<img width={24} src={dragImg} />
|
|
59
|
-
</div>
|
|
60
|
-
<div className='form-guide-center'>
|
|
61
|
-
{
|
|
62
|
-
cardGroups.map((item:any) => {
|
|
63
|
-
return (
|
|
64
|
-
<span
|
|
65
|
-
className='form-guide-item'
|
|
66
|
-
onClick={() => {
|
|
67
|
-
let currentDom = document.getElementById(item.props.id);
|
|
68
|
-
currentDom && currentDom.scrollIntoView({ block: 'center', behavior: 'smooth' });
|
|
69
|
-
}}
|
|
70
|
-
>
|
|
71
|
-
{item.props.title}
|
|
72
|
-
</span>
|
|
73
|
-
)
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
</div>
|
|
77
|
-
<div className='form-guide-bottom'>
|
|
78
|
-
<img width={24} src={label_icon_bottom} />
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
)
|
|
83
|
-
}
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import dragImg from '../../../assets/drag.svg';
|
|
3
|
+
import label_icon_bottom from '../../../assets/label_icon_bottom.svg';
|
|
4
|
+
import arrow_top from '../../../assets/arrow_top.png';
|
|
5
|
+
import './index.less';
|
|
6
|
+
|
|
7
|
+
const Field = ({ children, ...props }: any) => {
|
|
8
|
+
const [fieldGroupVisible, setVisible] = React.useState(true);
|
|
9
|
+
return (
|
|
10
|
+
<div
|
|
11
|
+
className={
|
|
12
|
+
`bitsun-form-card-class
|
|
13
|
+
${fieldGroupVisible ? '' : 'field-group-hidden'}
|
|
14
|
+
${props.isWhiteCard ? 'white-card' : ''}
|
|
15
|
+
`
|
|
16
|
+
}
|
|
17
|
+
id={props.id}
|
|
18
|
+
>
|
|
19
|
+
<div className="ant-card-head">
|
|
20
|
+
<div className="ant-card-head-title">
|
|
21
|
+
<span className='title-left-line'></span>
|
|
22
|
+
<span style={{ marginRight: '5px' }}>
|
|
23
|
+
{props?.title}
|
|
24
|
+
</span>
|
|
25
|
+
<img
|
|
26
|
+
width={24}
|
|
27
|
+
style={{
|
|
28
|
+
transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
|
|
29
|
+
cursor: 'pointer'
|
|
30
|
+
}}
|
|
31
|
+
src={arrow_top}
|
|
32
|
+
onClick={(e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
setVisible(!fieldGroupVisible);
|
|
35
|
+
}}
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div className="ant-card-body">
|
|
40
|
+
{children}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export default class GuideWrapper extends Component {
|
|
47
|
+
static Field = Field;
|
|
48
|
+
render() {
|
|
49
|
+
const { children = [], ...props }: any = this.props;
|
|
50
|
+
let cardGroups = children.filter((item:any) => item?.props?.id && item?.props?.title);
|
|
51
|
+
return (
|
|
52
|
+
<div {...props}>
|
|
53
|
+
{children}
|
|
54
|
+
<div
|
|
55
|
+
className='form-guide'
|
|
56
|
+
>
|
|
57
|
+
<div className='form-guide-top'>
|
|
58
|
+
<img width={24} src={dragImg} />
|
|
59
|
+
</div>
|
|
60
|
+
<div className='form-guide-center'>
|
|
61
|
+
{
|
|
62
|
+
cardGroups.map((item:any) => {
|
|
63
|
+
return (
|
|
64
|
+
<span
|
|
65
|
+
className='form-guide-item'
|
|
66
|
+
onClick={() => {
|
|
67
|
+
let currentDom = document.getElementById(item.props.id);
|
|
68
|
+
currentDom && currentDom.scrollIntoView({ block: 'center', behavior: 'smooth' });
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
71
|
+
{item.props.title}
|
|
72
|
+
</span>
|
|
73
|
+
)
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
</div>
|
|
77
|
+
<div className='form-guide-bottom'>
|
|
78
|
+
<img width={24} src={label_icon_bottom} />
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
84
|
}
|