@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.
- package/.umirc.ts +10 -6
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +2 -4
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -0
- package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +11 -0
- package/dist/index.esm.js +1834 -967
- package/dist/index.js +1833 -966
- package/package.json +2 -2
- 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/SearchItemSetting.tsx +45 -17
- package/src/components/Business/BsSulaQueryTable/index.less +21 -38
- package/src/components/Business/BsSulaQueryTable/index.tsx +26 -16
- package/src/components/Business/BsSulaQueryTable/setting.tsx +5 -5
- package/src/components/Business/BsSulaQueryTable/utils.tsx +36 -15
- package/src/components/Business/DetailPageWrapper/index.less +11 -3
- package/src/components/Business/DetailPageWrapper/index.tsx +27 -2
- package/src/components/Business/HomePageWrapper/index.less +9 -0
- package/src/components/Business/HomePageWrapper/index.tsx +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +834 -179
- package/src/components/Business/SearchSelect/index.md +181 -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 +6 -6
- package/src/components/Business/columnSettingTable/index.less +33 -71
- 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 +28 -22
- package/src/components/Functional/SearchSelect/index.less +236 -73
- package/src/components/Functional/SearchSelect/index.tsx +385 -259
- package/src/components/Functional/SearchSelect/utils.ts +35 -0
- package/src/components/Functional/TreeSearchSelect/index.tsx +1 -1
- package/src/components/Solution/RuleComponent/index.js +4 -3
- package/src/components/Solution/RuleSetter/function.ts +2 -1
- package/src/plugin/TableColumnSetting/index.less +38 -70
- package/src/plugin/TableColumnSetting/index.tsx +5 -5
- package/src/styles/bsDefault.less +132 -136
- package/src/utils/TableUtils.tsx +1 -1
- 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:
|
|
1534
|
-
height:
|
|
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:
|
|
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:
|
|
1777
|
+
font-size: 12px;
|
|
1771
1778
|
color: #000000;
|
|
1772
1779
|
letter-spacing: 0;
|
|
1773
1780
|
|
|
1774
1781
|
span {
|
|
1775
|
-
color: #
|
|
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:
|
|
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:
|
|
1818
|
+
font-size: 12px;
|
|
1812
1819
|
color: #848484;
|
|
1813
1820
|
letter-spacing: 0;
|
|
1814
1821
|
}
|
|
1815
1822
|
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1823
|
+
.ant-checkbox-wrapper {
|
|
1824
|
+
width: 144px;
|
|
1825
|
+
height: 16px;
|
|
1826
|
+
line-height: 16px;
|
|
1827
|
+
margin-top: 16px;
|
|
1828
|
+
}
|
|
1821
1829
|
|
|
1822
|
-
|
|
1823
|
-
|
|
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
|
-
|
|
1836
|
-
|
|
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
|
-
|
|
1849
|
-
div.ant-modal-header {
|
|
1850
|
-
width: 820px;
|
|
1851
|
-
height: 64px;
|
|
1852
|
-
background: #ffffff;
|
|
1853
|
-
padding: 20px;
|
|
1854
|
-
border: 0px;
|
|
1854
|
+
|
|
1855
1855
|
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
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
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1868
|
+
.ant-input-affix-wrapper {
|
|
1869
|
+
padding: 0px;
|
|
1870
|
+
padding-right: 10px;
|
|
1871
|
+
}
|
|
1870
1872
|
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
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
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
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
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
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
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
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
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
padding: 20px;
|
|
1912
|
+
.ant-table-wrapper::-webkit-scrollbar {
|
|
1913
|
+
display: none;
|
|
1914
|
+
}
|
|
1904
1915
|
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
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
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
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
|
-
|
|
1920
|
-
|
|
1945
|
+
img {
|
|
1946
|
+
// border: 1px dashed #d9d9d9;
|
|
1947
|
+
cursor: pointer;
|
|
1921
1948
|
}
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
1949
|
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1950
|
+
&:not(:first-child) {
|
|
1951
|
+
padding-left: 0px !important;
|
|
1952
|
+
padding-right: 0px !important;
|
|
1953
|
+
}
|
|
1928
1954
|
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
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
|
-
|
|
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
|
// 表单特性
|
package/src/utils/TableUtils.tsx
CHANGED
|
@@ -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="
|
|
342
|
+
<Image src={url} width="16px" height="16px" {...paramsObj}></Image>
|
|
343
343
|
</div>
|
|
344
344
|
) : (
|
|
345
345
|
<img {...paramsObj} src={noImg}></img>
|
package/src/utils/utils.ts
CHANGED
|
@@ -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
|
-
|
|
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) {
|