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

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