@bit-sun/business-component 4.0.11-alpha.9 → 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 (25) hide show
  1. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +2 -4
  2. package/dist/components/Functional/SearchSelect/utils.d.ts +4 -0
  3. package/dist/index.esm.js +637 -424
  4. package/dist/index.js +638 -425
  5. package/package.json +2 -2
  6. package/src/components/Business/BsLayouts/index.tsx +17 -0
  7. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +45 -17
  8. package/src/components/Business/BsSulaQueryTable/index.less +21 -38
  9. package/src/components/Business/BsSulaQueryTable/setting.tsx +5 -5
  10. package/src/components/Business/DetailPageWrapper/index.less +10 -1
  11. package/src/components/Business/DetailPageWrapper/index.tsx +27 -2
  12. package/src/components/Business/HomePageWrapper/index.less +9 -0
  13. package/src/components/Business/HomePageWrapper/index.tsx +1 -1
  14. package/src/components/Business/SearchSelect/BusinessUtils.tsx +66 -25
  15. package/src/components/Business/SearchSelect/index.md +6 -5
  16. package/src/components/Business/columnSettingTable/columnSetting.tsx +5 -5
  17. package/src/components/Business/columnSettingTable/index.less +33 -71
  18. package/src/components/Functional/QueryMutipleInput/index.tsx +2 -0
  19. package/src/components/Functional/SearchSelect/index.less +22 -5
  20. package/src/components/Functional/SearchSelect/index.tsx +146 -67
  21. package/src/components/Functional/SearchSelect/utils.ts +12 -1
  22. package/src/components/Functional/TreeSearchSelect/index.tsx +1 -1
  23. package/src/plugin/TableColumnSetting/index.less +38 -70
  24. package/src/plugin/TableColumnSetting/index.tsx +5 -5
  25. package/src/styles/bsDefault.less +130 -123
@@ -1,11 +1,10 @@
1
- // 列自定义
2
1
  .sort_table_wrapper {
3
2
  .sort_table {
4
3
  display: flex;
5
4
 
6
5
  .sort_table_column_wrapper {
7
6
  width: 560px;
8
- margin-right: 10px;
7
+ margin-right: 8px;
9
8
  }
10
9
 
11
10
  .sort_table_content_wrapper {
@@ -17,12 +16,12 @@
17
16
  height: 20px;
18
17
  font-family: PingFangSC-Regular;
19
18
  font-weight: 400;
20
- font-size: 14px;
19
+ font-size: 12px;
21
20
  color: #000000;
22
21
  letter-spacing: 0;
23
22
 
24
23
  span {
25
- color: #848484;
24
+ color: #8E8E8E;
26
25
  }
27
26
  }
28
27
 
@@ -47,7 +46,7 @@
47
46
  text-align: center;
48
47
  font-family: PingFangSC-Regular;
49
48
  font-weight: 400;
50
- font-size: 14px;
49
+ font-size: 12px;
51
50
  color: #848484;
52
51
  }
53
52
  }
@@ -58,22 +57,25 @@
58
57
  height: 20px;
59
58
  font-family: PingFangSC-Regular;
60
59
  font-weight: 400;
61
- font-size: 14px;
60
+ font-size: 12px;
62
61
  color: #848484;
63
62
  letter-spacing: 0;
64
63
  }
65
64
 
66
65
  .ant-checkbox-wrapper {
67
66
  width: 144px;
67
+ height: 16px;
68
+ line-height: 16px;
68
69
  margin-top: 16px;
69
70
  }
70
71
 
71
- .ant-checkbox-wrapper+.ant-checkbox-wrapper {
72
+ .ant-checkbox-wrapper + .ant-checkbox-wrapper {
72
73
  margin-left: 0px;
73
74
  }
74
75
  }
75
76
 
76
77
  .sort_table_content {
78
+ height: 430px;
77
79
  margin-top: 10px;
78
80
  padding-top: 10px;
79
81
  padding-bottom: 10px;
@@ -83,7 +85,6 @@
83
85
  .ant-table-wrapper {
84
86
  padding: 0px !important;
85
87
  }
86
-
87
88
  .sort_table_title {
88
89
  height: 32px;
89
90
  line-height: 32px;
@@ -92,29 +93,11 @@
92
93
  }
93
94
  }
94
95
  }
95
-
96
- div.ant-modal-header {
97
- width: 820px;
98
- height: 64px;
99
- background: #ffffff;
100
- padding: 20px;
101
- border: 0px;
102
-
103
- div.ant-modal-title {
104
- height: 24px;
105
- font-family: PingFangSC-Medium;
106
- font-weight: 500;
107
- font-size: 18px;
108
- color: #000000;
109
- letter-spacing: 0;
110
- line-height: 24px;
111
- }
112
- }
96
+
113
97
 
114
98
  .ant-modal-body {
115
- padding: 0 20px !important;
99
+ padding: 10px 16px;
116
100
  }
117
-
118
101
  .ant-modal-close-x {
119
102
  height: 24px;
120
103
  font-family: PingFangSC-Medium;
@@ -130,7 +113,7 @@
130
113
  }
131
114
 
132
115
  input {
133
- height: 32px;
116
+ height: 22px;
134
117
  padding: 6px 4px;
135
118
  border-radius: 5px;
136
119
  }
@@ -138,34 +121,33 @@
138
121
  .ant-input-prefix {
139
122
  width: 24px;
140
123
  height: 24px;
141
- margin: 4px;
124
+ margin: 0 4px;
142
125
  // border: 1px dashed #d9d9d9;
143
126
  display: flex;
144
127
  justify-content: center;
145
128
  }
146
129
 
147
130
  .ant-modal-footer {
148
- height: 70px;
149
- border: 0;
150
- padding: 20px;
151
-
131
+ padding: 8px 16px;
132
+ display: flex;
133
+ justify-content: space-between;
134
+
152
135
  .ant-btn {
153
136
  width: 80px;
154
- height: 34px;
155
- border-radius: 5px;
137
+ height: 28px;
156
138
 
157
139
  span {
158
140
  font-family: PingFangSC-Medium;
159
141
  font-weight: 600;
160
- font-size: 14px;
142
+ font-size: 12px;
161
143
  letter-spacing: 0;
162
144
  text-align: center;
163
145
  line-height: 20px;
164
146
  }
165
147
 
166
- &:first-child {
167
- margin-right: 524px;
168
- }
148
+ // &:first-child {
149
+ // margin-right: 524px;
150
+ // }
169
151
  }
170
152
  }
171
153
 
@@ -180,21 +162,26 @@
180
162
  padding-bottom: 50px;
181
163
 
182
164
  tr {
183
- height: 36px;
184
-
165
+ height: 30px;
185
166
  td {
186
167
  width: 24px !important;
187
- height: 36px !important;
168
+ height: 30px !important;
188
169
  font-family: PingFangSC-Regular;
189
170
  font-weight: 400;
190
- font-size: 14px;
171
+ font-size: 12px;
191
172
  color: #000000;
192
173
  letter-spacing: 0;
193
174
 
194
175
  &:first-child {
195
176
  padding-left: 10px !important;
196
177
  padding-right: 0px !important;
197
- width: 115px !important;
178
+ width: 108px !important;
179
+ display: inline-block;
180
+ overflow: hidden;
181
+ text-overflow: ellipsis;
182
+ white-space: nowrap;
183
+ height: 30px !important;
184
+ line-height: 30px !important;
198
185
  }
199
186
 
200
187
  img {
@@ -210,7 +197,7 @@
210
197
  &:last-child {
211
198
  padding-left: 0px !important;
212
199
  padding-right: 3px !important;
213
- width: 34px !important;
200
+ width: 30px !important;
214
201
 
215
202
  img {
216
203
  // border: 1px dashed #d9d9d9;
@@ -221,27 +208,8 @@
221
208
  }
222
209
  }
223
210
  }
224
- }
225
-
226
- .global_tab_nav_style {
227
- top: 2px !important;
228
- }
229
-
230
- .row-dragging {
231
- background: #fafafa;
232
- border: 1px solid #ccc;
233
- z-index: 10000;
234
- }
235
-
236
- .row-dragging td {
237
- padding: 7px 16px;
238
- display: none;
239
-
240
- }
241
- .row-dragging td:first-child {
242
- display: inline-block;
243
- }
244
-
245
- .row-dragging .drag-visible {
246
- visibility: visible;
247
- }
211
+
212
+ .ant-dropdown-link {
213
+ cursor: pointer;
214
+ }
215
+ }
@@ -525,7 +525,7 @@ class TableColumnSetting extends React.Component<TableColumnSettingProps> {
525
525
  return (
526
526
  <div className={'sort_table_wrapper'}>
527
527
  <Modal
528
- title="设置表头内容"
528
+ title="筛选条件设置"
529
529
  wrapClassName={'sort_table_wrapper'}
530
530
  width={820}
531
531
  visible={visible}
@@ -546,15 +546,15 @@ class TableColumnSetting extends React.Component<TableColumnSettingProps> {
546
546
  <div className={'sort_table'}>
547
547
  <div className={'sort_table_column_wrapper'}>
548
548
  <span className={'sort_table_column_count'}>
549
- 可选字段 <span>(共{dataSource.length}个)</span>
549
+ <span>勾选你想使用的筛选条件</span>
550
550
  </span>
551
551
  <div className={'sort_table_column'}>
552
552
  <Input
553
553
  prefix={<SearchOutlined className="site-form-item-icon" />}
554
- placeholder="搜索"
554
+ placeholder="输入筛选条件名称搜索"
555
555
  allowClear
556
556
  onChange={this.onSearch}
557
- style={{ width: 540 }}
557
+ style={{ width: 525 }}
558
558
  />
559
559
  <div>
560
560
  {!searchDataSource && (
@@ -678,7 +678,7 @@ class TableColumnSetting extends React.Component<TableColumnSettingProps> {
678
678
  </div>
679
679
  <div className={'sort_table_content_wrapper'}>
680
680
  <span className={'sort_table_content_count'}>
681
- 已选字段 <span>(共{sortDataSource.length}个)</span>
681
+ <span>已选择的搜索条件排序</span>
682
682
  </span>
683
683
  <div className={'sort_table_content'}>
684
684
  <span style={{ paddingLeft: '10px' }}>
@@ -1318,6 +1318,24 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1318
1318
  }
1319
1319
  }
1320
1320
  }
1321
+
1322
+ .ant-modal-header {
1323
+ padding: 5px 16px;
1324
+ font-size: 14px;
1325
+ font-weight: 500px;
1326
+ }
1327
+
1328
+ .ant-modal-close-x {
1329
+ display: block;
1330
+ width: 32px;
1331
+ height: 32px;
1332
+ font-size: 14px;
1333
+ font-style: normal;
1334
+ line-height: 32px;
1335
+ text-align: center;
1336
+ text-transform: none;
1337
+ text-rendering: auto;
1338
+ }
1321
1339
  }
1322
1340
 
1323
1341
  // 详情组件样式处理 start
@@ -1744,7 +1762,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1744
1762
 
1745
1763
  .sort_table_column_wrapper {
1746
1764
  width: 560px;
1747
- margin-right: 10px;
1765
+ margin-right: 8px;
1748
1766
  }
1749
1767
 
1750
1768
  .sort_table_content_wrapper {
@@ -1756,12 +1774,12 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1756
1774
  height: 20px;
1757
1775
  font-family: PingFangSC-Regular;
1758
1776
  font-weight: 400;
1759
- font-size: 14px;
1777
+ font-size: 12px;
1760
1778
  color: #000000;
1761
1779
  letter-spacing: 0;
1762
1780
 
1763
1781
  span {
1764
- color: #848484;
1782
+ color: #8E8E8E;
1765
1783
  }
1766
1784
  }
1767
1785
 
@@ -1786,7 +1804,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1786
1804
  text-align: center;
1787
1805
  font-family: PingFangSC-Regular;
1788
1806
  font-weight: 400;
1789
- font-size: 14px;
1807
+ font-size: 12px;
1790
1808
  color: #848484;
1791
1809
  }
1792
1810
  }
@@ -1797,34 +1815,33 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1797
1815
  height: 20px;
1798
1816
  font-family: PingFangSC-Regular;
1799
1817
  font-weight: 400;
1800
- font-size: 14px;
1818
+ font-size: 12px;
1801
1819
  color: #848484;
1802
1820
  letter-spacing: 0;
1803
1821
  }
1804
1822
 
1805
- :global {
1806
- .ant-checkbox-wrapper {
1807
- width: 144px;
1808
- margin-top: 16px;
1809
- }
1823
+ .ant-checkbox-wrapper {
1824
+ width: 144px;
1825
+ height: 16px;
1826
+ line-height: 16px;
1827
+ margin-top: 16px;
1828
+ }
1810
1829
 
1811
- .ant-checkbox-wrapper + .ant-checkbox-wrapper {
1812
- margin-left: 0px;
1813
- }
1830
+ .ant-checkbox-wrapper + .ant-checkbox-wrapper {
1831
+ margin-left: 0px;
1814
1832
  }
1815
1833
  }
1816
1834
 
1817
1835
  .sort_table_content {
1836
+ height: 430px;
1818
1837
  margin-top: 10px;
1819
1838
  padding-top: 10px;
1820
1839
  padding-bottom: 10px;
1821
1840
  border: 1px solid #d9d9d9;
1822
1841
  border-radius: 5px;
1823
1842
 
1824
- :global {
1825
- .ant-table-wrapper {
1826
- padding: 0px !important;
1827
- }
1843
+ .ant-table-wrapper {
1844
+ padding: 0px !important;
1828
1845
  }
1829
1846
  .sort_table_title {
1830
1847
  height: 32px;
@@ -1834,135 +1851,125 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1834
1851
  }
1835
1852
  }
1836
1853
  }
1837
- :global {
1838
- div.ant-modal-header {
1839
- width: 820px;
1840
- height: 64px;
1841
- background: #ffffff;
1842
- padding: 20px;
1843
- border: 0px;
1854
+
1844
1855
 
1845
- div.ant-modal-title {
1846
- height: 24px;
1847
- font-family: PingFangSC-Medium;
1848
- font-weight: 500;
1849
- font-size: 18px;
1850
- color: #000000;
1851
- letter-spacing: 0;
1852
- line-height: 24px;
1853
- }
1854
- }
1856
+ .ant-modal-body {
1857
+ padding: 10px 16px;
1858
+ }
1859
+ .ant-modal-close-x {
1860
+ height: 24px;
1861
+ font-family: PingFangSC-Medium;
1862
+ font-weight: 500;
1863
+ font-size: 18px;
1864
+ color: #000000;
1865
+ letter-spacing: 0;
1866
+ }
1855
1867
 
1856
- .ant-modal-body {
1857
- padding: 0 20px !important;
1858
- }
1868
+ .ant-input-affix-wrapper {
1869
+ padding: 0px;
1870
+ padding-right: 10px;
1871
+ }
1859
1872
 
1860
- .ant-modal-close-x {
1861
- height: 24px;
1862
- font-family: PingFangSC-Medium;
1863
- font-weight: 500;
1864
- font-size: 18px;
1865
- color: #000000;
1866
- letter-spacing: 0;
1867
- }
1873
+ input {
1874
+ height: 22px;
1875
+ padding: 6px 4px;
1876
+ border-radius: 5px;
1877
+ }
1868
1878
 
1869
- .ant-input-affix-wrapper {
1870
- padding: 0px;
1871
- padding-right: 10px;
1872
- }
1879
+ .ant-input-prefix {
1880
+ width: 24px;
1881
+ height: 24px;
1882
+ margin: 0 4px;
1883
+ // border: 1px dashed #d9d9d9;
1884
+ display: flex;
1885
+ justify-content: center;
1886
+ }
1873
1887
 
1874
- input {
1875
- height: 32px;
1876
- padding: 6px 4px;
1877
- border-radius: 5px;
1878
- }
1888
+ .ant-modal-footer {
1889
+ padding: 8px 16px;
1890
+ display: flex;
1891
+ justify-content: space-between;
1892
+
1893
+ .ant-btn {
1894
+ width: 80px;
1895
+ height: 28px;
1879
1896
 
1880
- .ant-select-selector, .ant-input-prefix {
1881
- width: 24px;
1882
- height: 24px;
1883
- margin: 4px;
1884
- // border: 1px dashed #d9d9d9;
1885
- display: flex;
1886
- justify-content: center;
1897
+ span {
1898
+ font-family: PingFangSC-Medium;
1899
+ font-weight: 600;
1900
+ font-size: 12px;
1901
+ letter-spacing: 0;
1902
+ text-align: center;
1903
+ line-height: 20px;
1904
+ }
1905
+
1906
+ // &:first-child {
1907
+ // margin-right: 524px;
1908
+ // }
1887
1909
  }
1910
+ }
1888
1911
 
1889
- .ant-modal-footer {
1890
- height: 70px;
1891
- border: 0;
1892
- padding: 20px;
1912
+ .ant-table-wrapper::-webkit-scrollbar {
1913
+ display: none;
1914
+ }
1893
1915
 
1894
- .ant-btn {
1895
- width: 80px;
1896
- height: 34px;
1897
- border-radius: 5px;
1916
+ .ant-table-wrapper {
1917
+ margin-top: 10px;
1918
+ height: 364px;
1919
+ overflow: scroll;
1920
+ padding-bottom: 50px;
1921
+
1922
+ tr {
1923
+ height: 30px;
1924
+ td {
1925
+ width: 24px !important;
1926
+ height: 30px !important;
1927
+ font-family: PingFangSC-Regular;
1928
+ font-weight: 400;
1929
+ font-size: 12px;
1930
+ color: #000000;
1931
+ letter-spacing: 0;
1898
1932
 
1899
- span {
1900
- font-family: PingFangSC-Medium;
1901
- font-weight: 600;
1902
- font-size: 14px;
1903
- letter-spacing: 0;
1904
- text-align: center;
1905
- line-height: 20px;
1933
+ &:first-child {
1934
+ padding-left: 10px !important;
1935
+ padding-right: 0px !important;
1936
+ width: 108px !important;
1937
+ display: inline-block;
1938
+ overflow: hidden;
1939
+ text-overflow: ellipsis;
1940
+ white-space: nowrap;
1941
+ height: 30px !important;
1942
+ line-height: 30px !important;
1906
1943
  }
1907
1944
 
1908
- &:first-child {
1909
- margin-right: 524px;
1945
+ img {
1946
+ // border: 1px dashed #d9d9d9;
1947
+ cursor: pointer;
1910
1948
  }
1911
- }
1912
- }
1913
1949
 
1914
- .ant-table-wrapper::-webkit-scrollbar {
1915
- display: none;
1916
- }
1950
+ &:not(:first-child) {
1951
+ padding-left: 0px !important;
1952
+ padding-right: 0px !important;
1953
+ }
1917
1954
 
1918
- .ant-table-wrapper {
1919
- margin-top: 10px;
1920
- height: 364px;
1921
- overflow: scroll;
1922
- padding-bottom: 50px;
1923
-
1924
- tr {
1925
- height: 36px;
1926
- td {
1927
- width: 24px !important;
1928
- height: 36px !important;
1929
- font-family: PingFangSC-Regular;
1930
- font-weight: 400;
1931
- font-size: 14px;
1932
- color: #000000;
1933
- letter-spacing: 0;
1934
-
1935
- &:first-child {
1936
- padding-left: 10px !important;
1937
- padding-right: 0px !important;
1938
- width: 115px !important;
1939
- }
1955
+ &:last-child {
1956
+ padding-left: 0px !important;
1957
+ padding-right: 3px !important;
1958
+ width: 30px !important;
1940
1959
 
1941
1960
  img {
1942
1961
  // border: 1px dashed #d9d9d9;
1943
- cursor: pointer;
1944
- }
1945
-
1946
- &:not(:first-child) {
1947
- padding-left: 0px !important;
1948
- padding-right: 0px !important;
1949
- }
1950
-
1951
- &:last-child {
1952
- padding-left: 0px !important;
1953
- padding-right: 3px !important;
1954
- width: 34px !important;
1955
-
1956
- img {
1957
- // border: 1px dashed #d9d9d9;
1958
- position: relative;
1959
- top: 1px;
1960
- }
1962
+ position: relative;
1963
+ top: 1px;
1961
1964
  }
1962
1965
  }
1963
1966
  }
1964
1967
  }
1965
1968
  }
1969
+
1970
+ .ant-dropdown-link {
1971
+ cursor: pointer;
1972
+ }
1966
1973
  }
1967
1974
 
1968
1975
  // 表单特性