@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
@@ -1256,13 +1256,6 @@ ol {
1256
1256
  }
1257
1257
  }
1258
1258
 
1259
- .ant-tabs-tab + .ant-tabs-tab {
1260
- margin: 0;
1261
- }
1262
- .ant-tabs-tab {
1263
- margin: 0 20px 0 0 !important;
1264
- }
1265
-
1266
1259
  // 滚动条
1267
1260
  /* 滚动槽(轨道)宽高 */
1268
1261
 
@@ -1325,6 +1318,24 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1325
1318
  }
1326
1319
  }
1327
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
+ }
1328
1339
  }
1329
1340
 
1330
1341
  // 详情组件样式处理 start
@@ -1517,9 +1528,6 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1517
1528
 
1518
1529
  .clomnsImg {
1519
1530
  :global {
1520
- .ant-image {
1521
- margin: 8px;
1522
- }
1523
1531
  .ant-image-mask-info {
1524
1532
  font-size: 12px !important;
1525
1533
  padding: 0;
@@ -1528,10 +1536,9 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1528
1536
  }
1529
1537
  }
1530
1538
  .clomnsImg2 {
1531
- margin: 8px;
1532
1539
  img {
1533
- width: 28px;
1534
- height: 28px;
1540
+ width: 16px;
1541
+ height: 16px;
1535
1542
  }
1536
1543
  }
1537
1544
 
@@ -1755,7 +1762,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1755
1762
 
1756
1763
  .sort_table_column_wrapper {
1757
1764
  width: 560px;
1758
- margin-right: 10px;
1765
+ margin-right: 8px;
1759
1766
  }
1760
1767
 
1761
1768
  .sort_table_content_wrapper {
@@ -1767,12 +1774,12 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1767
1774
  height: 20px;
1768
1775
  font-family: PingFangSC-Regular;
1769
1776
  font-weight: 400;
1770
- font-size: 14px;
1777
+ font-size: 12px;
1771
1778
  color: #000000;
1772
1779
  letter-spacing: 0;
1773
1780
 
1774
1781
  span {
1775
- color: #848484;
1782
+ color: #8E8E8E;
1776
1783
  }
1777
1784
  }
1778
1785
 
@@ -1797,7 +1804,7 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1797
1804
  text-align: center;
1798
1805
  font-family: PingFangSC-Regular;
1799
1806
  font-weight: 400;
1800
- font-size: 14px;
1807
+ font-size: 12px;
1801
1808
  color: #848484;
1802
1809
  }
1803
1810
  }
@@ -1808,34 +1815,33 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1808
1815
  height: 20px;
1809
1816
  font-family: PingFangSC-Regular;
1810
1817
  font-weight: 400;
1811
- font-size: 14px;
1818
+ font-size: 12px;
1812
1819
  color: #848484;
1813
1820
  letter-spacing: 0;
1814
1821
  }
1815
1822
 
1816
- :global {
1817
- .ant-checkbox-wrapper {
1818
- width: 144px;
1819
- margin-top: 16px;
1820
- }
1823
+ .ant-checkbox-wrapper {
1824
+ width: 144px;
1825
+ height: 16px;
1826
+ line-height: 16px;
1827
+ margin-top: 16px;
1828
+ }
1821
1829
 
1822
- .ant-checkbox-wrapper + .ant-checkbox-wrapper {
1823
- margin-left: 0px;
1824
- }
1830
+ .ant-checkbox-wrapper + .ant-checkbox-wrapper {
1831
+ margin-left: 0px;
1825
1832
  }
1826
1833
  }
1827
1834
 
1828
1835
  .sort_table_content {
1836
+ height: 430px;
1829
1837
  margin-top: 10px;
1830
1838
  padding-top: 10px;
1831
1839
  padding-bottom: 10px;
1832
1840
  border: 1px solid #d9d9d9;
1833
1841
  border-radius: 5px;
1834
1842
 
1835
- :global {
1836
- .ant-table-wrapper {
1837
- padding: 0px !important;
1838
- }
1843
+ .ant-table-wrapper {
1844
+ padding: 0px !important;
1839
1845
  }
1840
1846
  .sort_table_title {
1841
1847
  height: 32px;
@@ -1845,135 +1851,125 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1845
1851
  }
1846
1852
  }
1847
1853
  }
1848
- :global {
1849
- div.ant-modal-header {
1850
- width: 820px;
1851
- height: 64px;
1852
- background: #ffffff;
1853
- padding: 20px;
1854
- border: 0px;
1854
+
1855
1855
 
1856
- div.ant-modal-title {
1857
- height: 24px;
1858
- font-family: PingFangSC-Medium;
1859
- font-weight: 500;
1860
- font-size: 18px;
1861
- color: #000000;
1862
- letter-spacing: 0;
1863
- line-height: 24px;
1864
- }
1865
- }
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
+ }
1866
1867
 
1867
- .ant-modal-body {
1868
- padding: 0 20px !important;
1869
- }
1868
+ .ant-input-affix-wrapper {
1869
+ padding: 0px;
1870
+ padding-right: 10px;
1871
+ }
1870
1872
 
1871
- .ant-modal-close-x {
1872
- height: 24px;
1873
- font-family: PingFangSC-Medium;
1874
- font-weight: 500;
1875
- font-size: 18px;
1876
- color: #000000;
1877
- letter-spacing: 0;
1878
- }
1873
+ input {
1874
+ height: 22px;
1875
+ padding: 6px 4px;
1876
+ border-radius: 5px;
1877
+ }
1879
1878
 
1880
- .ant-input-affix-wrapper {
1881
- padding: 0px;
1882
- padding-right: 10px;
1883
- }
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
+ }
1884
1887
 
1885
- input {
1886
- height: 32px;
1887
- padding: 6px 4px;
1888
- border-radius: 5px;
1889
- }
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;
1890
1896
 
1891
- .ant-select-selector, .ant-input-prefix {
1892
- width: 24px;
1893
- height: 24px;
1894
- margin: 4px;
1895
- // border: 1px dashed #d9d9d9;
1896
- display: flex;
1897
- 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
+ // }
1898
1909
  }
1910
+ }
1899
1911
 
1900
- .ant-modal-footer {
1901
- height: 70px;
1902
- border: 0;
1903
- padding: 20px;
1912
+ .ant-table-wrapper::-webkit-scrollbar {
1913
+ display: none;
1914
+ }
1904
1915
 
1905
- .ant-btn {
1906
- width: 80px;
1907
- height: 34px;
1908
- 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;
1909
1932
 
1910
- span {
1911
- font-family: PingFangSC-Medium;
1912
- font-weight: 600;
1913
- font-size: 14px;
1914
- letter-spacing: 0;
1915
- text-align: center;
1916
- 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;
1917
1943
  }
1918
1944
 
1919
- &:first-child {
1920
- margin-right: 524px;
1945
+ img {
1946
+ // border: 1px dashed #d9d9d9;
1947
+ cursor: pointer;
1921
1948
  }
1922
- }
1923
- }
1924
1949
 
1925
- .ant-table-wrapper::-webkit-scrollbar {
1926
- display: none;
1927
- }
1950
+ &:not(:first-child) {
1951
+ padding-left: 0px !important;
1952
+ padding-right: 0px !important;
1953
+ }
1928
1954
 
1929
- .ant-table-wrapper {
1930
- margin-top: 10px;
1931
- height: 364px;
1932
- overflow: scroll;
1933
- padding-bottom: 50px;
1934
-
1935
- tr {
1936
- height: 36px;
1937
- td {
1938
- width: 24px !important;
1939
- height: 36px !important;
1940
- font-family: PingFangSC-Regular;
1941
- font-weight: 400;
1942
- font-size: 14px;
1943
- color: #000000;
1944
- letter-spacing: 0;
1945
-
1946
- &:first-child {
1947
- padding-left: 10px !important;
1948
- padding-right: 0px !important;
1949
- width: 115px !important;
1950
- }
1955
+ &:last-child {
1956
+ padding-left: 0px !important;
1957
+ padding-right: 3px !important;
1958
+ width: 30px !important;
1951
1959
 
1952
1960
  img {
1953
1961
  // border: 1px dashed #d9d9d9;
1954
- cursor: pointer;
1955
- }
1956
-
1957
- &:not(:first-child) {
1958
- padding-left: 0px !important;
1959
- padding-right: 0px !important;
1960
- }
1961
-
1962
- &:last-child {
1963
- padding-left: 0px !important;
1964
- padding-right: 3px !important;
1965
- width: 34px !important;
1966
-
1967
- img {
1968
- // border: 1px dashed #d9d9d9;
1969
- position: relative;
1970
- top: 1px;
1971
- }
1962
+ position: relative;
1963
+ top: 1px;
1972
1964
  }
1973
1965
  }
1974
1966
  }
1975
1967
  }
1976
1968
  }
1969
+
1970
+ .ant-dropdown-link {
1971
+ cursor: pointer;
1972
+ }
1977
1973
  }
1978
1974
 
1979
1975
  // 表单特性
@@ -339,7 +339,7 @@ const tableColumnsImage = (url?: string, paramsObj?: tableColumnsImageType) => {
339
339
  <>
340
340
  {url ? (
341
341
  <div className={`clomnsImg`}>
342
- <Image src={url} width="44px" height="44px" {...paramsObj}></Image>
342
+ <Image src={url} width="16px" height="16px" {...paramsObj}></Image>
343
343
  </div>
344
344
  ) : (
345
345
  <img {...paramsObj} src={noImg}></img>
@@ -11,6 +11,7 @@ import {
11
11
  handleTooltip,
12
12
  handleTooltipHours,
13
13
  tableColumnsImage,
14
+ handleTextOverflowNoTooltip,
14
15
  } from '@/components/Business/BsSulaQueryTable/utils';
15
16
 
16
17
  export function downloadExcel(data: any, fileName?: any, isResUrl?: boolean) {
@@ -88,8 +89,10 @@ export const handleBssulaColumnsSpecialParams = (col: any) => {
88
89
  col.render = ({ text }: any) => handleTooltip(text, col.timeRender);
89
90
  } else if (col.textOverflow) {
90
91
  // 处理文字太长
91
- const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width))
92
- col.render = ({ text }: any) => handleTextOverflow(text, colWidth);
92
+ const colWidth = typeof col?.width === 'number' ? col.width : (col.width && parseWidth(col.width));
93
+ const originalRender = col?.render;
94
+ const renderText = (params) => originalRender ? originalRender(params) : params.text;
95
+ col.render = (params) => handleTextOverflowNoTooltip(renderText(params), colWidth);
93
96
  } else if (col.images) {
94
97
  col.render = ({ text }: any) => tableColumnsImage(text);
95
98
  } else if (col.double) {