@bit-sun/business-component 4.0.11-alpha.1 → 4.0.11-alpha.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/.umirc.ts +10 -6
- package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +7 -0
- package/dist/index.esm.js +1590 -987
- package/dist/index.js +1589 -986
- package/package.json +1 -1
- package/src/assets/copyImg.svg +16 -0
- package/src/assets/zhankaitiaojian-icon.svg +18 -0
- package/src/components/Business/BsLayouts/index.tsx +17 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +17 -15
- package/src/components/Business/BsSulaQueryTable/utils.tsx +1 -1
- package/src/components/Business/DetailPageWrapper/index.less +1 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +774 -160
- package/src/components/Business/SearchSelect/index.md +180 -0
- package/src/components/Business/SearchSelect/index.tsx +2 -1
- package/src/components/Business/SearchSelect/utils.ts +4 -1
- package/src/components/Business/StateFlow/index.less +140 -124
- package/src/components/Business/StateFlow/index.tsx +3 -3
- package/src/components/Business/columnSettingTable/columnSetting.tsx +1 -1
- package/src/components/Business/columnSettingTable/index.tsx +3 -4
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +3 -5
- package/src/components/Common/ParagraphCopier/index.tsx +2 -6
- package/src/components/Functional/QueryMutipleInput/index.less +51 -19
- package/src/components/Functional/QueryMutipleInput/index.tsx +26 -22
- package/src/components/Functional/SearchSelect/index.less +220 -74
- package/src/components/Functional/SearchSelect/index.tsx +264 -217
- package/src/components/Functional/SearchSelect/utils.ts +24 -0
- package/src/components/Solution/RuleComponent/index.js +4 -3
- package/src/components/Solution/RuleSetter/function.ts +2 -1
- package/src/styles/bsDefault.less +2 -13
- package/src/utils/TableUtils.tsx +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@border-color: #d9d9d9;
|
|
2
|
+
@primary-color-hover: #005cff;
|
|
3
|
+
|
|
1
4
|
.query_input {
|
|
2
5
|
&_show {
|
|
3
6
|
display: flex;
|
|
@@ -5,33 +8,62 @@
|
|
|
5
8
|
|
|
6
9
|
&_expand_button {
|
|
7
10
|
position: relative;
|
|
11
|
+
right: -11px;
|
|
8
12
|
width: 30px;
|
|
9
|
-
|
|
13
|
+
border-left: 1px solid @border-color;
|
|
14
|
+
height: 24px;
|
|
10
15
|
cursor: pointer;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
transform: translate(-50%, -50%);
|
|
19
|
-
}
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
text-align: center;
|
|
18
|
+
line-height: normal;
|
|
19
|
+
}
|
|
20
|
+
&_expand_button:hover {
|
|
21
|
+
background-color: @primary-color-hover;
|
|
22
|
+
color: #fff;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
&_wrapper {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&_left {
|
|
26
|
-
width: 100px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&_right {
|
|
30
|
-
color: #9e9e9e;
|
|
26
|
+
&_top {
|
|
27
|
+
color: #8E8E8E;
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
&_textArea {
|
|
35
|
-
margin-top:
|
|
32
|
+
margin-top: 10px;
|
|
33
|
+
.ant-input {
|
|
34
|
+
height: 300px;
|
|
35
|
+
background: #FAFAFA;
|
|
36
|
+
border: 0.8px solid #E0E0E0;
|
|
37
|
+
resize: none;
|
|
38
|
+
border-radius: 0;
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
41
|
}
|
|
42
|
+
|
|
43
|
+
.multiInput_modal{
|
|
44
|
+
.ant-modal-header{
|
|
45
|
+
height: 32px;
|
|
46
|
+
padding: 0 16px;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
}
|
|
49
|
+
.ant-modal-title{
|
|
50
|
+
line-height: 32px;
|
|
51
|
+
}
|
|
52
|
+
.ant-modal-close-x{
|
|
53
|
+
width: 32px;
|
|
54
|
+
height: 32px;
|
|
55
|
+
line-height: 32px;
|
|
56
|
+
}
|
|
57
|
+
.ant-modal-footer{
|
|
58
|
+
padding-right: 8px;
|
|
59
|
+
height: 44px;
|
|
60
|
+
.ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
|
|
61
|
+
margin-left: 6px;
|
|
62
|
+
}
|
|
63
|
+
.ant-btn {
|
|
64
|
+
width: 56px;
|
|
65
|
+
height: 28px;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// @ts-nocheck
|
|
9
9
|
import React, { useState, useEffect } from 'react';
|
|
10
10
|
import { useDebounceFn } from 'ahooks';
|
|
11
|
-
import { Input, Button, Modal } from 'antd';
|
|
11
|
+
import { Input, Button, Modal, ConfigProvider } from 'antd';
|
|
12
12
|
import './index.less';
|
|
13
13
|
|
|
14
14
|
const QueryMutipleInput = ({ onValueChange,onPressEnter }) => {
|
|
@@ -72,11 +72,11 @@ const QueryMutipleInput = ({ onValueChange,onPressEnter }) => {
|
|
|
72
72
|
formaData(e.clipboardData.getData('text'));
|
|
73
73
|
e.preventDefault();
|
|
74
74
|
}}
|
|
75
|
-
style={{ width: 'calc(100%
|
|
75
|
+
style={{ width: 'calc(100%)' }}
|
|
76
|
+
suffix={<div className="query_input_expand_button" onClick={showModal}>...</div>}
|
|
76
77
|
placeholder="请输入(查询多个值请用 ; 或 , 分割)"
|
|
77
78
|
onPressEnter={()=>onPressEnter?.()}
|
|
78
79
|
/>
|
|
79
|
-
<Button style={{width: '30px', padding: '2px', height: 'auto'}} onClick={showModal} type="primary">...</Button>
|
|
80
80
|
</div>
|
|
81
81
|
<Modal
|
|
82
82
|
width={600}
|
|
@@ -84,29 +84,33 @@ const QueryMutipleInput = ({ onValueChange,onPressEnter }) => {
|
|
|
84
84
|
visible={isModalVisible}
|
|
85
85
|
onOk={handleOk}
|
|
86
86
|
onCancel={handleCancel}
|
|
87
|
+
className='multiInput_modal'
|
|
88
|
+
bodyStyle={{
|
|
89
|
+
padding: '10px 16px'
|
|
90
|
+
}}
|
|
87
91
|
footer={[
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
<ConfigProvider autoInsertSpaceInButton = { false }>
|
|
93
|
+
<Button key="back" onClick={handleCancel} autoI>
|
|
94
|
+
取消
|
|
95
|
+
</Button>
|
|
96
|
+
</ConfigProvider>,
|
|
97
|
+
<ConfigProvider autoInsertSpaceInButton = { false }>
|
|
98
|
+
<Button key="submit" type="primary" onClick={handleOk}>
|
|
99
|
+
录入
|
|
100
|
+
</Button>
|
|
101
|
+
</ConfigProvider>,
|
|
94
102
|
]}
|
|
95
103
|
>
|
|
96
104
|
<div className={'query_input_wrapper'}>
|
|
97
|
-
<div className={'
|
|
98
|
-
<div className={'
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
rows={6}
|
|
107
|
-
showCount
|
|
108
|
-
/>
|
|
109
|
-
</div>
|
|
105
|
+
<div className={'query_input_wrapper_top'}>如需同时使用多个值进行查询,请使用逗号,分号、空格或换行进行值的分割,中英文格式的符号均支持</div>
|
|
106
|
+
<div className={'query_input_textArea'}>
|
|
107
|
+
<Input.TextArea
|
|
108
|
+
placeholder='在此录入...'
|
|
109
|
+
value={popvalue}
|
|
110
|
+
onChange={onChange}
|
|
111
|
+
rows={12}
|
|
112
|
+
showCount={false}
|
|
113
|
+
/>
|
|
110
114
|
</div>
|
|
111
115
|
</div>
|
|
112
116
|
</Modal>
|
|
@@ -1,115 +1,261 @@
|
|
|
1
|
+
@border-color: #d9d9d9;
|
|
2
|
+
@primary-color: #005cff;
|
|
3
|
+
|
|
1
4
|
.search_select {
|
|
2
5
|
&_show {
|
|
3
6
|
display: flex;
|
|
7
|
+
|
|
8
|
+
// 下拉框清除图标位置调整
|
|
9
|
+
.ant-select-clear {
|
|
10
|
+
right: 33px;
|
|
11
|
+
}
|
|
4
12
|
}
|
|
5
13
|
|
|
6
14
|
&_expand_button {
|
|
7
15
|
position: relative;
|
|
16
|
+
right: -11px;
|
|
8
17
|
width: 30px;
|
|
9
|
-
|
|
18
|
+
border-left: 1px solid @border-color;
|
|
19
|
+
height: 24px;
|
|
10
20
|
cursor: pointer;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: bolder;
|
|
11
23
|
|
|
12
24
|
span {
|
|
13
25
|
position: absolute;
|
|
14
|
-
height: 20px;
|
|
15
|
-
line-height: 14px;
|
|
16
26
|
left: 50%;
|
|
17
27
|
top: 50%;
|
|
18
28
|
transform: translate(-50%, -50%);
|
|
19
29
|
}
|
|
20
30
|
}
|
|
31
|
+
&_expand_button:hover {
|
|
32
|
+
background-color: @primary-color;
|
|
33
|
+
color: #fff;
|
|
34
|
+
}
|
|
21
35
|
|
|
22
|
-
&
|
|
23
|
-
|
|
24
|
-
display: flex;
|
|
25
|
-
min-height: 60vh;
|
|
26
|
-
max-height: 60vh;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
font-size: 14px;
|
|
36
|
+
&_dropdown_table {
|
|
37
|
+
// padding: 4px 10px 6px;
|
|
29
38
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
&_arrow {
|
|
34
|
-
transform: rotate(0deg);
|
|
35
|
-
transition: transform 0.5s;
|
|
36
|
-
}
|
|
37
|
-
&_arrow_1 {
|
|
38
|
-
transform: rotate(-180deg);
|
|
39
|
-
transition: transform 0.5s;
|
|
40
|
-
}
|
|
39
|
+
// 下拉table 复选框为单选时候隐藏
|
|
40
|
+
.ant-table-cell .ant-table-selection-column .ant-radio,table tr td.ant-table-selection-column .ant-radio-wrapper {
|
|
41
|
+
display: none;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
margin-left: 20px;
|
|
49
|
-
}
|
|
44
|
+
// 下拉table 表头表体样式
|
|
45
|
+
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {
|
|
46
|
+
font-family: MiSans-Regular;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-size: 12px;
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
thead > tr > th {
|
|
51
|
+
color: #7F7F7F;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
|
|
55
|
+
justify-content: center;
|
|
56
|
+
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//background-color: pink;
|
|
58
|
+
tbody > tr > td {
|
|
59
|
+
color: #333333;
|
|
60
|
+
}
|
|
62
61
|
}
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
// 下拉table隐藏单选列
|
|
65
|
+
&_dropdown_table1 {
|
|
66
|
+
.ant-table.ant-table-bordered > .ant-table-container {
|
|
67
|
+
.ant-table-body > table > tbody > tr > td.ant-table-selection-column,
|
|
68
|
+
.ant-table-header > table > thead > tr > th.ant-table-selection-column {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
68
71
|
}
|
|
72
|
+
}
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
&_modal_wrapper {
|
|
75
|
+
.ant-modal {
|
|
76
|
+
top: 60px;
|
|
72
77
|
}
|
|
78
|
+
.ant-modal-header {
|
|
79
|
+
padding: 6px 0px 6px 16px;
|
|
73
80
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
border: 1px solid #d8d8d8;
|
|
79
|
-
&_tips {
|
|
80
|
-
background: #eee;
|
|
81
|
-
padding: 6px 20px;
|
|
82
|
-
margin-bottom: 10px;
|
|
83
|
-
}
|
|
84
|
-
&_formItems {
|
|
85
|
-
padding: 0 20px;
|
|
81
|
+
.ant-modal-title {
|
|
82
|
+
height: 20px;
|
|
83
|
+
color: #000000;
|
|
84
|
+
line-height: 20px;
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
|
-
.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
.ant-modal-close-x {
|
|
88
|
+
width: 32px;
|
|
89
|
+
height: 32px;
|
|
90
|
+
line-height: 32px;
|
|
91
|
+
}
|
|
92
|
+
.ant-modal-body {
|
|
93
|
+
padding: 0px;
|
|
94
|
+
background: #F3F3F3;
|
|
95
|
+
height: 684px;
|
|
96
|
+
overflow: hidden;
|
|
92
97
|
}
|
|
98
|
+
}
|
|
93
99
|
|
|
94
|
-
|
|
95
|
-
|
|
100
|
+
&_wrapper {
|
|
101
|
+
position: relative;
|
|
102
|
+
min-height: 80vh;
|
|
103
|
+
max-height: 80vh;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
font-size: 14px;
|
|
106
|
+
|
|
107
|
+
&_topForm {
|
|
108
|
+
.select_list_columns {
|
|
109
|
+
width: 100%;
|
|
110
|
+
padding: 10px 6px 2px 16px;
|
|
111
|
+
background-color: #fff;
|
|
112
|
+
.ant-form {
|
|
113
|
+
padding: 0;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: flex-start;
|
|
117
|
+
|
|
118
|
+
.ant-row .ant-form-item {
|
|
119
|
+
font-size: 12px !important;
|
|
120
|
+
margin-right: 0px !important;
|
|
121
|
+
margin-bottom: 8px !important;
|
|
122
|
+
}
|
|
123
|
+
.ant-row.ant-form-item-row {
|
|
124
|
+
background-color: #fafafa;
|
|
125
|
+
border: 0.8px solid #D9D9D9;
|
|
126
|
+
border-radius: 2px;
|
|
127
|
+
font-size: 12px;
|
|
128
|
+
}
|
|
129
|
+
.ant-row {
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
|
132
|
+
.ant-row .ant-form-item-label {
|
|
133
|
+
width: 110px;
|
|
134
|
+
order: 1;
|
|
135
|
+
|
|
136
|
+
label{
|
|
137
|
+
width: 100%;
|
|
138
|
+
text-align: left;
|
|
139
|
+
padding: 0 10px;
|
|
140
|
+
color: #333333;
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
font-family: PingFangSC-Regular;
|
|
143
|
+
font-weight: 400;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.ant-row .ant-form-item-control {
|
|
147
|
+
order: 2;
|
|
148
|
+
width: 100px;
|
|
149
|
+
|
|
150
|
+
// 输入框
|
|
151
|
+
.ant-input-affix-wrapper {
|
|
152
|
+
border: 0;
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
background-color: #fafafa;
|
|
155
|
+
padding: 0 11px;
|
|
156
|
+
height: 24px;
|
|
157
|
+
|
|
158
|
+
.ant-input {
|
|
159
|
+
background-color: #fafafa !important;
|
|
160
|
+
border: 0;
|
|
161
|
+
font-size: 12px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
// 下拉框
|
|
165
|
+
.ant-select-selector {
|
|
166
|
+
border: 0 !important;
|
|
167
|
+
background-color: #fafafa !important;
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
}
|
|
170
|
+
// 多值输入框
|
|
171
|
+
.query_input .ant-input {
|
|
172
|
+
background-color: #fafafa !important;
|
|
173
|
+
border: 0;
|
|
174
|
+
font-size: 12px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.ant-btn-primary {
|
|
178
|
+
background: @primary-color;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
.ant-form>.ant-row>.ant-col {
|
|
182
|
+
order: 2;
|
|
183
|
+
padding-right: 10px;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
.select_list_button_space {
|
|
187
|
+
margin-right: 10px;
|
|
188
|
+
}
|
|
96
189
|
}
|
|
97
190
|
|
|
98
|
-
|
|
191
|
+
&_bottomTable {
|
|
192
|
+
margin: 10px;
|
|
99
193
|
display: flex;
|
|
100
194
|
justify-content: space-between;
|
|
101
|
-
height: 34px;
|
|
102
|
-
line-height: 32px;
|
|
103
|
-
background-color: #eee;
|
|
104
|
-
margin-bottom: 10px;
|
|
105
|
-
padding: 0 12px;
|
|
106
|
-
}
|
|
107
195
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
196
|
+
&_wrapLeft1, &_wrapLeft2, &_wrapRight{
|
|
197
|
+
background: #fff;
|
|
198
|
+
width: calc(50% - 5px);
|
|
199
|
+
}
|
|
200
|
+
&_wrapLeft1 {
|
|
201
|
+
width: 100%;
|
|
202
|
+
}
|
|
203
|
+
&_wrapRight {
|
|
204
|
+
margin-left: 10px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ant-tabs-nav {
|
|
208
|
+
margin: 0;
|
|
209
|
+
padding: 6px 18.5px;
|
|
210
|
+
|
|
211
|
+
.ant-tabs-nav-wrap {
|
|
212
|
+
height: 28px;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
}
|
|
215
|
+
.ant-tabs-tab {
|
|
216
|
+
padding: 4px 0;
|
|
217
|
+
}
|
|
218
|
+
.ant-tabs-ink-bar {
|
|
219
|
+
left: 3px !important;
|
|
220
|
+
width: 40px !important;
|
|
221
|
+
background: @primary-color;
|
|
222
|
+
}
|
|
223
|
+
.ant-tabs-extra-content > span {
|
|
224
|
+
color: @primary-color;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
229
|
+
color: @primary-color;
|
|
230
|
+
}
|
|
231
|
+
.ant-tabs-content-holder {
|
|
232
|
+
padding: 10px 10px 7px;
|
|
233
|
+
|
|
234
|
+
.ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content {
|
|
235
|
+
// max-height: 472px; // 空数据528px;非空数据因为有分页所以472px
|
|
236
|
+
// overflow: auto scroll !important; // 这样滑动会将表头滑走,使用table自带的scrolly 解决高度问题
|
|
237
|
+
|
|
238
|
+
.ant-table-thead > tr > th {
|
|
239
|
+
color: #7F7F7F;
|
|
240
|
+
}
|
|
241
|
+
.ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
|
|
242
|
+
justify-content: center;
|
|
243
|
+
}
|
|
244
|
+
.ant-table.ant-table-small .ant-table-tbody > tr > td {
|
|
245
|
+
color: #333333;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
.ant-checkbox-checked .ant-checkbox-inner {
|
|
250
|
+
color: @primary-color;
|
|
251
|
+
background: @primary-color;
|
|
252
|
+
}
|
|
253
|
+
.ant-pagination-item-active a {
|
|
254
|
+
color: @primary-color;
|
|
255
|
+
}
|
|
256
|
+
.ant-pagination-item-active {
|
|
257
|
+
border-color: @primary-color;
|
|
258
|
+
}
|
|
113
259
|
}
|
|
114
260
|
}
|
|
115
261
|
}
|