@bit-sun/business-component 4.0.11 → 4.0.12-alpha.2

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 (44) hide show
  1. package/.umirc.ts +10 -6
  2. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +2 -4
  3. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -0
  4. package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +2 -1
  5. package/dist/components/Functional/SearchSelect/utils.d.ts +11 -0
  6. package/dist/index.esm.js +1834 -967
  7. package/dist/index.js +1833 -966
  8. package/package.json +2 -2
  9. package/src/assets/copyImg.svg +16 -0
  10. package/src/assets/zhankaitiaojian-icon.svg +18 -0
  11. package/src/components/Business/BsLayouts/index.tsx +17 -0
  12. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +45 -17
  13. package/src/components/Business/BsSulaQueryTable/index.less +21 -38
  14. package/src/components/Business/BsSulaQueryTable/index.tsx +26 -16
  15. package/src/components/Business/BsSulaQueryTable/setting.tsx +5 -5
  16. package/src/components/Business/BsSulaQueryTable/utils.tsx +36 -15
  17. package/src/components/Business/DetailPageWrapper/index.less +11 -3
  18. package/src/components/Business/DetailPageWrapper/index.tsx +27 -2
  19. package/src/components/Business/HomePageWrapper/index.less +9 -0
  20. package/src/components/Business/HomePageWrapper/index.tsx +1 -1
  21. package/src/components/Business/SearchSelect/BusinessUtils.tsx +834 -179
  22. package/src/components/Business/SearchSelect/index.md +181 -0
  23. package/src/components/Business/SearchSelect/index.tsx +2 -1
  24. package/src/components/Business/SearchSelect/utils.ts +4 -1
  25. package/src/components/Business/StateFlow/index.less +140 -124
  26. package/src/components/Business/StateFlow/index.tsx +3 -3
  27. package/src/components/Business/columnSettingTable/columnSetting.tsx +6 -6
  28. package/src/components/Business/columnSettingTable/index.less +33 -71
  29. package/src/components/Business/columnSettingTable/index.tsx +3 -4
  30. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +3 -5
  31. package/src/components/Common/ParagraphCopier/index.tsx +2 -6
  32. package/src/components/Functional/QueryMutipleInput/index.less +51 -19
  33. package/src/components/Functional/QueryMutipleInput/index.tsx +28 -22
  34. package/src/components/Functional/SearchSelect/index.less +236 -73
  35. package/src/components/Functional/SearchSelect/index.tsx +385 -259
  36. package/src/components/Functional/SearchSelect/utils.ts +35 -0
  37. package/src/components/Functional/TreeSearchSelect/index.tsx +1 -1
  38. package/src/components/Solution/RuleComponent/index.js +4 -3
  39. package/src/components/Solution/RuleSetter/function.ts +2 -1
  40. package/src/plugin/TableColumnSetting/index.less +38 -70
  41. package/src/plugin/TableColumnSetting/index.tsx +5 -5
  42. package/src/styles/bsDefault.less +132 -136
  43. package/src/utils/TableUtils.tsx +1 -1
  44. package/src/utils/utils.ts +5 -2
@@ -1,115 +1,278 @@
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
- color: #ffffff;
18
+ border-left: 1px solid @border-color;
19
+ height: 24px;
10
20
  cursor: pointer;
21
+ font-size: 14px;
22
+ font-weight: bolder;
23
+ background: #fafafa;
11
24
 
12
25
  span {
13
26
  position: absolute;
14
- height: 20px;
15
- line-height: 14px;
16
27
  left: 50%;
17
28
  top: 50%;
18
29
  transform: translate(-50%, -50%);
19
30
  }
20
31
  }
32
+ &_expand_button:hover {
33
+ background-color: @primary-color;
34
+ color: #fff;
35
+ }
36
+ &_expand_button_disabled:hover {
37
+ background-color: transparent;
38
+ color: rgba(0, 0, 0, 0.25);
39
+ cursor: not-allowed;
40
+ }
21
41
 
22
- &_wrapper {
23
- position: relative;
24
- display: flex;
25
- min-height: 60vh;
26
- max-height: 60vh;
27
- overflow: hidden;
28
- font-size: 14px;
42
+ &_dropdown_table {
43
+ // padding: 4px 10px 6px;
29
44
 
30
- &_click_flag {
31
- position: absolute;
32
- z-index: 10;
33
- &_arrow {
34
- transform: rotate(0deg);
35
- transition: transform 0.5s;
45
+ // 下拉table 复选框为单选时候隐藏
46
+ .ant-table-cell .ant-table-selection-column .ant-radio,table tr td.ant-table-selection-column .ant-radio-wrapper {
47
+ display: none;
48
+ }
49
+
50
+ // 下拉table 表头表体样式
51
+ .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {
52
+ font-family: MiSans-Regular;
53
+ font-weight: 400;
54
+ font-size: 12px;
55
+
56
+ thead > tr > th {
57
+ color: #7F7F7F;
36
58
  }
37
- &_arrow_1 {
38
- transform: rotate(-180deg);
39
- transition: transform 0.5s;
59
+
60
+ .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
61
+ justify-content: center;
40
62
  }
41
- }
42
63
 
43
- &_left {
44
- width: 28%;
45
- overflow-y: hidden;
46
- //background-color: yellow;
47
- transition: all 0.3s;
48
- margin-left: 20px;
64
+ tbody > tr > td {
65
+ color: #333333;
66
+ }
49
67
  }
68
+ }
50
69
 
51
- &_left1 {
52
- width: 0;
53
- height: 0;
54
- transition: all 0.3s;
55
- display: none;
70
+ // 下拉table隐藏单选列
71
+ &_dropdown_table1 {
72
+ .ant-table.ant-table-bordered > .ant-table-container {
73
+ .ant-table-body > table > tbody > tr > td.ant-table-selection-column,
74
+ .ant-table-header > table > thead > tr > th.ant-table-selection-column {
75
+ display: none;
76
+ }
56
77
  }
78
+ }
57
79
 
58
- &_right {
59
- width: 70%;
60
- margin-left: 1%;
61
- //background-color: pink;
80
+ &_modal_wrapper {
81
+ .ant-modal {
82
+ top: 60px;
62
83
  }
84
+ .ant-modal-header {
85
+ padding: 6px 0px 6px 16px;
63
86
 
64
- &_right1 {
65
- width: 100%;
66
- margin-left: 20px;
67
- //background-color: green;
87
+ .ant-modal-title {
88
+ height: 20px;
89
+ color: #000000;
90
+ line-height: 20px;
91
+ }
68
92
  }
69
-
70
- &_right, &_right1 {
71
- overflow-x: auto;
93
+ .ant-modal-close-x {
94
+ width: 32px;
95
+ height: 32px;
96
+ line-height: 32px;
72
97
  }
73
-
74
- .select_list_columns {
75
- width: 100%;
76
- height: calc(60vh - 60px);
77
- overflow-y: auto;
78
- border: 1px solid #d8d8d8;
79
- &_tips {
80
- background: #eee;
81
- padding: 6px 20px;
82
- margin-bottom: 10px;
98
+ .ant-modal-body {
99
+ padding: 0px;
100
+ background: #F3F3F3;
101
+ height: calc(100vh - 235px); // modal弹窗760 调整为700 适应小屏
102
+ overflow: hidden;
103
+ }
104
+ .ant-modal-footer {
105
+ .ant-btn.ant-btn-default {
106
+ color: @primary-color;
107
+ border-color: @primary-color;
83
108
  }
84
- &_formItems {
85
- padding: 0 20px;
109
+ .ant-btn-primary,.ant-btn-primary[disabled] {
110
+ background: @primary-color;
111
+ border-color: @primary-color;
112
+ }
113
+ .ant-btn-primary[disabled] {
114
+ opacity: .5;
115
+ color: #fff;
86
116
  }
87
117
  }
88
- .select_list_searchButton {
89
- display: flex;
90
- margin: 10px 0px;
91
- justify-content: flex-end;
92
- }
118
+ }
93
119
 
94
- .select_list_button_space {
95
- margin-right: 10px;
120
+ &_wrapper {
121
+ position: relative;
122
+ font-size: 14px;
123
+
124
+ &_topForm {
125
+ .select_list_columns {
126
+ width: 100%;
127
+ padding: 10px 6px 2px 16px;
128
+ background-color: #fff;
129
+ .ant-form {
130
+ padding: 0;
131
+ overflow: hidden;
132
+ display: flex;
133
+ align-items: flex-start;
134
+
135
+ .ant-row .ant-form-item, .ant-row .ant-col .ant-space {
136
+ font-size: 12px !important;
137
+ margin-right: 0px !important;
138
+ margin-bottom: 8px !important;
139
+ }
140
+ .ant-row.ant-form-item-row {
141
+ background-color: #fafafa;
142
+ border: 0.8px solid #D9D9D9;
143
+ border-radius: 2px;
144
+ font-size: 12px;
145
+ }
146
+ .ant-row {
147
+ width: 100%;
148
+ }
149
+ .ant-row .ant-form-item-label {
150
+ width: 110px;
151
+ order: 1;
152
+
153
+ label{
154
+ width: 100%;
155
+ text-align: left;
156
+ padding: 0 10px;
157
+ color: #333333;
158
+ font-size: 12px;
159
+ font-family: PingFangSC-Regular;
160
+ font-weight: 400;
161
+ }
162
+ }
163
+ .ant-row .ant-form-item-control {
164
+ order: 2;
165
+ width: 100px;
166
+
167
+ // 输入框
168
+ .ant-input-affix-wrapper {
169
+ border: 0;
170
+ font-size: 12px;
171
+ background-color: #fafafa;
172
+ padding: 0 11px;
173
+ height: 24px;
174
+
175
+ .ant-input {
176
+ background-color: #fafafa !important;
177
+ border: 0;
178
+ font-size: 12px;
179
+ }
180
+ }
181
+ // 下拉框
182
+ .ant-select-selector {
183
+ border: 0 !important;
184
+ background-color: #fafafa !important;
185
+ font-size: 12px;
186
+ }
187
+ // 多值输入框
188
+ .query_input .ant-input {
189
+ background-color: #fafafa !important;
190
+ border: 0;
191
+ font-size: 12px;
192
+ }
193
+ }
194
+ .ant-btn-primary {
195
+ background: @primary-color;
196
+ }
197
+ }
198
+ .ant-form>.ant-row>.ant-col {
199
+ order: 2;
200
+ padding-right: 10px;
201
+ }
202
+ }
203
+ .select_list_button_space {
204
+ margin-right: 10px;
205
+ }
96
206
  }
97
207
 
98
- .select_list_selectTips {
208
+ &_bottomTable {
209
+ margin: 10px;
99
210
  display: flex;
100
211
  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
212
 
108
- .select_list_selectAll {
109
- position: relative;
110
- top: -40px;
111
- left: 20px;
112
- width: 160px;
213
+ &_wrapLeft1, &_wrapLeft2, &_wrapRight{
214
+ background: #fff;
215
+ width: calc(50% - 5px);
216
+ }
217
+ &_wrapLeft1 {
218
+ width: 100%;
219
+ }
220
+ &_wrapRight {
221
+ margin-left: 10px;
222
+ }
223
+
224
+ .ant-tabs-nav {
225
+ margin: 0;
226
+ padding: 6px 18.5px;
227
+
228
+ .ant-tabs-nav-wrap {
229
+ height: 28px;
230
+ font-size: 14px;
231
+ }
232
+ .ant-tabs-tab {
233
+ padding: 4px 0;
234
+ }
235
+ .ant-tabs-ink-bar {
236
+ left: 3px !important;
237
+ width: 40px !important;
238
+ background: @primary-color;
239
+ }
240
+ .ant-tabs-extra-content > span {
241
+ color: @primary-color;
242
+ cursor: pointer;
243
+ }
244
+ }
245
+ .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
246
+ color: @primary-color;
247
+ }
248
+ .ant-tabs-content-holder {
249
+ padding: 10px 10px 7px;
250
+
251
+ .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content {
252
+ // max-height: 472px; // 空数据528px;非空数据因为有分页所以472px
253
+ // overflow: auto scroll !important; // 这样滑动会将表头滑走,使用table自带的scrolly 解决高度问题
254
+
255
+ .ant-table-thead > tr > th {
256
+ color: #7F7F7F;
257
+ }
258
+ .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
259
+ justify-content: center;
260
+ }
261
+ .ant-table.ant-table-small .ant-table-tbody > tr > td {
262
+ color: #333333;
263
+ }
264
+ }
265
+ }
266
+ .ant-checkbox-checked .ant-checkbox-inner {
267
+ color: @primary-color;
268
+ background: @primary-color;
269
+ }
270
+ .ant-pagination-item-active a {
271
+ color: @primary-color;
272
+ }
273
+ .ant-pagination-item-active {
274
+ border-color: @primary-color;
275
+ }
113
276
  }
114
277
  }
115
278
  }