@bit-sun/business-component 4.0.7 → 4.0.8
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/dist/index.esm.js +483 -1032
- package/dist/index.js +484 -1033
- package/package.json +1 -1
- package/src/assets/icon-shezhi.svg +12 -14
- package/src/components/Business/BsSulaQueryTable/index.less +4 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +65 -83
- package/src/styles/bsDefault.less +34 -3
package/package.json
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="
|
|
3
|
-
<title
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>蒙版@1x</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<polygon id="path-1" points="1.97175609e-13 0 24 0 24 24 1.97175609e-13 24"></polygon>
|
|
6
|
+
</defs>
|
|
7
|
+
<g id="【销售订单】-列表" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
+
<g id="编组-13备份">
|
|
9
|
+
<mask id="mask-2" fill="white">
|
|
10
|
+
<use xlink:href="#path-1"></use>
|
|
11
|
+
</mask>
|
|
12
|
+
<use id="蒙版" fill="#FAFAFA" opacity="0" xlink:href="#path-1"></use>
|
|
13
|
+
<path d="M11.0539833,6 L12.9893599,6.00306539 C13.5902684,6.0041207 14.0770953,6.51753931 14.0778957,7.15105962 L14.0786226,7.48365607 C14.4535346,7.64767515 14.8086815,7.85797334 15.1366285,8.11014825 L15.3957691,7.95304625 C15.9165865,7.6370624 16.5817222,7.82488039 16.8830106,8.37300674 L17.8530614,10.1386801 C18.1419103,10.664498 17.9927093,11.3364989 17.5125078,11.6725322 L17.4532653,11.7108498 L17.1930343,11.8691013 C17.2377388,12.3043888 17.232287,12.7465735 17.1737714,13.186076 L17.3576776,13.2983464 C17.857707,13.60263 18.0460753,14.2651041 17.7872767,14.809208 L17.7571103,14.8686002 L16.8484828,16.5277508 C16.5598628,17.0549169 15.9314906,17.253508 15.4153954,16.9806644 L15.3586971,16.9484776 L15.1075524,16.7952074 C14.7917375,17.034765 14.4508932,17.235328 14.0917069,17.3929614 L14.0917069,17.8489404 C14.0924552,18.4564109 13.6447505,18.9596333 13.0696826,18.9977009 L13.0002635,19 L11.0648868,18.9969346 C10.46412,18.9958799 9.97735149,18.4826942 9.97635104,17.8493235 L9.97526069,17.2994665 C9.67532321,17.1509864 9.38966197,16.9723666 9.12224117,16.766086 L8.65847768,17.0473369 C8.13756521,17.3632563 7.47240027,17.1752586 7.17123614,16.6269932 L6.20118538,14.8617031 C5.91210367,14.335799 6.06132792,13.6635256 6.54173898,13.3274678 L6.6009815,13.2891502 L7.0727409,13.002918 C7.03639581,12.6389012 7.03457855,12.2706694 7.06946985,11.9032039 L6.54573694,11.5840186 C6.04557344,11.2798633 5.85703718,10.6173586 6.1157744,10.0731571 L6.14630429,10.0137648 L7.05493181,8.35461431 C7.3435518,7.82744812 7.97192398,7.62885707 8.48801915,7.9017007 L8.54435406,7.93388746 L9.00084853,8.2116898 C9.29835141,7.96712383 9.62078477,7.75828095 9.96217645,7.58902938 L9.96217645,7.15144279 C9.96123583,6.54382459 10.4089927,6.0403757 10.9842007,6.00229905 L11.0536198,6 L11.0539833,6 Z M11.0525295,7.14952693 L11.0536198,8.31821262 L10.4270303,8.62896808 C10.1588035,8.76193003 9.90547811,8.92592919 9.67214254,9.11790019 L9.09280163,9.5945707 L8.02679981,8.94547115 L7.99954099,8.92937778 L7.09091346,10.5885283 L8.22488062,11.2786276 L8.15437112,12.0177735 C8.12711229,12.304772 8.12820264,12.5944528 8.15691528,12.8814513 L8.23178618,13.6255784 L7.14506767,14.2854069 L8.11475496,16.0506971 L9.19384102,15.3966163 L9.76627637,15.8384178 C9.97702523,16.0011688 10.2022,16.142066 10.4386607,16.2591446 L11.0645234,16.5691337 L11.0667041,17.8474077 L13.0017173,17.8504731 L13.0006269,16.6262269 L13.6730113,16.3311816 C13.9550669,16.2075098 14.2227404,16.0501462 14.4707863,15.8621747 L15.0428581,15.428803 L15.904237,15.9529873 L16.8121377,14.2934536 L15.9921922,13.7937926 L16.0939585,13.0270581 C16.1393899,12.6841159 16.1444782,12.3369588 16.1092234,11.9924839 L16.0328987,11.2479736 L16.9095425,10.7145931 L15.9394918,8.9493029 L15.0672094,9.47923482 L14.4944106,9.038966 C14.2359425,8.84023491 13.9560781,8.67444458 13.6606539,8.54505261 L12.9897234,8.25154006 L12.9875427,7.15259232 L11.0525295,7.14952693 L11.0525295,7.14952693 Z M13.2226955,10.4494355 C14.2654163,11.0852141 14.6228641,12.4911028 14.0215608,13.5914758 C13.7329275,14.1197135 13.2568818,14.5052495 12.6983658,14.6630942 C12.1398499,14.8209389 11.5447201,14.7381326 11.0441701,14.4329295 C10.0015813,13.7970198 9.64430382,12.3911621 10.2456682,11.2908893 C10.5343004,10.7627557 11.0102799,10.3772944 11.5687082,10.2194552 C12.1271364,10.0616161 12.7221782,10.1443543 13.2226955,10.4494355 L13.2226955,10.4494355 Z M11.189914,11.8648864 C10.8889471,12.4157197 11.0678166,13.119454 11.5897101,13.4378224 C11.8397194,13.5903842 12.1370318,13.6318051 12.4160482,13.5529458 C12.6950647,13.4740865 12.9328544,13.2814281 13.0769516,13.0174787 C13.3654467,12.4893922 13.2141569,11.8157971 12.7316732,11.480178 L12.6771555,11.4445427 L12.6208206,11.4127391 C12.1055879,11.1395918 11.4777022,11.3379953 11.189914,11.8648864 L11.189914,11.8648864 Z" id="形状" fill="#4C4E4D" fill-rule="nonzero" mask="url(#mask-2)"></path>
|
|
16
14
|
</g>
|
|
17
15
|
</g>
|
|
18
16
|
</svg>
|
|
@@ -450,7 +450,7 @@ export default (props: any) => {
|
|
|
450
450
|
x: props.overScrollX || 'max-content',
|
|
451
451
|
y: props?.overScrollY || height,
|
|
452
452
|
},
|
|
453
|
-
bordered: value.bordered ||
|
|
453
|
+
bordered: value.bordered || true,
|
|
454
454
|
sticky: true,
|
|
455
455
|
rowClassName: (record: object | null | undefined, index: number) =>
|
|
456
456
|
index % 2 === 0 ? 'table_base' : 'table_odd',
|
|
@@ -536,87 +536,57 @@ export default (props: any) => {
|
|
|
536
536
|
]);
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
actionsRender = actionsRender.concat([
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
<
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
setShowSearchFields={setShowSearchFields}
|
|
591
|
-
showSearchFields={showSearchFields}
|
|
592
|
-
datasource={value?.fields || []}
|
|
593
|
-
bsTableCode={bsTableCode}
|
|
594
|
-
/>
|
|
595
|
-
</Menu.Item>
|
|
596
|
-
)}
|
|
597
|
-
{value?.exportConfig?.settingColumns && (
|
|
598
|
-
<Menu.Item>
|
|
599
|
-
<div
|
|
600
|
-
onClick={exportTableRef?.current?.showModal}
|
|
601
|
-
style={{ fontSize: 14, textAlign: 'center' }}
|
|
602
|
-
>
|
|
603
|
-
导出字段设置
|
|
604
|
-
</div>
|
|
605
|
-
</Menu.Item>
|
|
606
|
-
)}
|
|
607
|
-
</Menu>
|
|
608
|
-
}
|
|
609
|
-
placement="bottomRight"
|
|
610
|
-
>
|
|
611
|
-
<div className="ant-dropdown-link">
|
|
612
|
-
<img width={32} src={shezhi} />
|
|
613
|
-
</div>
|
|
614
|
-
</Dropdown>
|
|
615
|
-
</span>
|
|
616
|
-
),
|
|
617
|
-
},
|
|
618
|
-
},
|
|
619
|
-
]);
|
|
539
|
+
// actionsRender = actionsRender.concat([
|
|
540
|
+
// {
|
|
541
|
+
// type: 'text',
|
|
542
|
+
// props: {
|
|
543
|
+
// children: (
|
|
544
|
+
// <span className="ant-dropdown-link">
|
|
545
|
+
// <Dropdown
|
|
546
|
+
// overlay={
|
|
547
|
+
// <Menu>
|
|
548
|
+
// <Menu.Item>
|
|
549
|
+
// <div
|
|
550
|
+
// onClick={sortTableRef?.current?.showModal}
|
|
551
|
+
// style={{ fontSize: 14, textAlign: 'center' }}
|
|
552
|
+
// >
|
|
553
|
+
// 列设置
|
|
554
|
+
// </div>
|
|
555
|
+
// </Menu.Item>
|
|
556
|
+
// {!value?.searchConfig?.isHidden && (
|
|
557
|
+
// <Menu.Item>
|
|
558
|
+
// <SearchItemTable
|
|
559
|
+
// ref={searchTableRef}
|
|
560
|
+
// setShowSearchFields={setShowSearchFields}
|
|
561
|
+
// showSearchFields={showSearchFields}
|
|
562
|
+
// datasource={value?.fields || []}
|
|
563
|
+
// bsTableCode={bsTableCode}
|
|
564
|
+
// />
|
|
565
|
+
// </Menu.Item>
|
|
566
|
+
// )}
|
|
567
|
+
// {value?.exportConfig?.settingColumns && (
|
|
568
|
+
// <Menu.Item>
|
|
569
|
+
// <div
|
|
570
|
+
// onClick={exportTableRef?.current?.showModal}
|
|
571
|
+
// style={{ fontSize: 14, textAlign: 'center' }}
|
|
572
|
+
// >
|
|
573
|
+
// 导出字段设置
|
|
574
|
+
// </div>
|
|
575
|
+
// </Menu.Item>
|
|
576
|
+
// )}
|
|
577
|
+
// </Menu>
|
|
578
|
+
// }
|
|
579
|
+
// placement="bottomRight"
|
|
580
|
+
// >
|
|
581
|
+
// <div className="ant-dropdown-link">
|
|
582
|
+
// <img width={32} src={shezhi} />
|
|
583
|
+
// </div>
|
|
584
|
+
// </Dropdown>
|
|
585
|
+
// </span>
|
|
586
|
+
// ),
|
|
587
|
+
// },
|
|
588
|
+
// },
|
|
589
|
+
// ]);
|
|
620
590
|
if (value.rowSelection) {
|
|
621
591
|
value.rowSelection.columnWidth = 50;
|
|
622
592
|
}
|
|
@@ -688,7 +658,19 @@ export default (props: any) => {
|
|
|
688
658
|
rowSelection: false, // 默认无多选
|
|
689
659
|
...handleTimeValue(),
|
|
690
660
|
tableProps: setTableProps(),
|
|
691
|
-
columns: getColumns(),
|
|
661
|
+
columns: [...getColumns(), {
|
|
662
|
+
key: 'setting',
|
|
663
|
+
title: <span className="ant-dropdown-link">
|
|
664
|
+
<div onClick={sortTableRef?.current?.showModal} className="ant-dropdown-link">
|
|
665
|
+
<img style={{position: 'relative', left: '-7px'}} width={24} src={shezhi} />
|
|
666
|
+
</div>
|
|
667
|
+
</span>,
|
|
668
|
+
width: '24px',
|
|
669
|
+
fixed: 'right',
|
|
670
|
+
render: ({ text, record }: any) => {
|
|
671
|
+
return ' '
|
|
672
|
+
},
|
|
673
|
+
}],
|
|
692
674
|
fields: [...showSearchFields],
|
|
693
675
|
ref: props.forwardedRef || refs,
|
|
694
676
|
isFullScreen,
|
|
@@ -52,6 +52,37 @@
|
|
|
52
52
|
word-break: keep-all;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
.ant-radio-button-wrapper > .ant-radio-button {
|
|
56
|
+
font-size: 12px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ant-radio-button-wrapper {
|
|
61
|
+
padding: 0 8px;
|
|
62
|
+
border: 0;
|
|
63
|
+
background: #F0F0F0;
|
|
64
|
+
color: #A3A3A3;
|
|
65
|
+
line-height: 24px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ant-radio-button-wrapper:not(:first-child)::before {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ant-radio-group.ant-radio-group-outline .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
|
73
|
+
line-height: 20px;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
border: 0;
|
|
76
|
+
background: #FFFFFF;
|
|
77
|
+
border: 2px #F0F0F0 solid;
|
|
78
|
+
height: 24px;
|
|
79
|
+
color: #131415;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-radio-button-wrapper:first-child {
|
|
83
|
+
border: 0px;
|
|
84
|
+
}
|
|
85
|
+
|
|
55
86
|
|
|
56
87
|
html,
|
|
57
88
|
body {
|
|
@@ -157,7 +188,7 @@ body {
|
|
|
157
188
|
.ant-table-thead
|
|
158
189
|
> tr
|
|
159
190
|
> th {
|
|
160
|
-
min-width:
|
|
191
|
+
min-width: 30px;
|
|
161
192
|
}
|
|
162
193
|
|
|
163
194
|
.ant-table.ant-table-middle
|
|
@@ -292,7 +323,7 @@ body {
|
|
|
292
323
|
.ant-table-tbody
|
|
293
324
|
> tr
|
|
294
325
|
> td.ant-table-cell {
|
|
295
|
-
min-width:
|
|
326
|
+
min-width: 30px;
|
|
296
327
|
}
|
|
297
328
|
.ant-table-sticky-scroll {
|
|
298
329
|
position: fixed !important;
|
|
@@ -436,7 +467,7 @@ body {
|
|
|
436
467
|
.ant-table-thead
|
|
437
468
|
> tr
|
|
438
469
|
> th {
|
|
439
|
-
min-width:
|
|
470
|
+
min-width: 30px;
|
|
440
471
|
}
|
|
441
472
|
|
|
442
473
|
.ant-table.ant-table-middle
|