@bit-sun/business-component 4.0.11-alpha.1 → 4.0.11-alpha.11
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/SearchSelect/BusinessUtils.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +7 -0
- package/dist/index.esm.js +1590 -987
- package/dist/index.js +1589 -986
- package/package.json +1 -1
- 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/index.tsx +17 -15
- package/src/components/Business/BsSulaQueryTable/utils.tsx +1 -1
- package/src/components/Business/DetailPageWrapper/index.less +1 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +774 -160
- package/src/components/Business/SearchSelect/index.md +180 -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 +1 -1
- 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 +26 -22
- package/src/components/Functional/SearchSelect/index.less +220 -74
- package/src/components/Functional/SearchSelect/index.tsx +264 -217
- package/src/components/Functional/SearchSelect/utils.ts +24 -0
- package/src/components/Solution/RuleComponent/index.js +4 -3
- package/src/components/Solution/RuleSetter/function.ts +2 -1
- package/src/styles/bsDefault.less +2 -13
- package/src/utils/TableUtils.tsx +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
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>编组 28</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="单据-详情页订单金额信息" transform="translate(-418.000000, -1210.000000)">
|
|
6
|
+
<g id="编组-2" transform="translate(280.000000, 998.000000)">
|
|
7
|
+
<g id="编组" transform="translate(0.000000, 204.000000)">
|
|
8
|
+
<g id="编组-28" transform="translate(138.000000, 8.000000)">
|
|
9
|
+
<rect id="矩形" stroke="#979797" fill="#005CFF" opacity="0" x="0.5" y="0.5" width="23" height="23"></rect>
|
|
10
|
+
<path d="M13.5,9 C14.3284271,9 15,9.67157287 15,10.5 L15,18.5 C15,19.3284271 14.3284271,20 13.5,20 L5.5,20 C4.67157288,20 4,19.3284271 4,18.5 L4,10.5 C4,9.67157287 4.67157288,9 5.5,9 L13.5,9 Z M13.5,10.5 L5.5,10.5 L5.5,18.5 L13.5,18.5 L13.5,10.5 Z M12,15 L12,16.5 L7,16.5 L7,15 L12,15 Z M18.5,4 C19.3284271,4 20,4.67157288 20,5.5 L20,13.5 C20,14.3284271 19.3284271,15 18.5,15 L16,15 L16,13.5 L18.5,13.5 L18.5,5.5 L10.5,5.5 L10.5,8 L9,8 L9,5.5 C9,4.67157288 9.67157287,4 10.5,4 L18.5,4 Z M12,12.5 L12,14 L7,14 L7,12.5 L12,12.5 Z" id="形状" fill="#005CFF" fill-rule="nonzero"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
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>zhankaitiaojian-icon</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<rect id="path-1" x="0" y="0" width="24" height="24"></rect>
|
|
6
|
+
</defs>
|
|
7
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
+
<g id="icon" transform="translate(-702.000000, -498.000000)">
|
|
9
|
+
<g id="zhankaitiaojian-icon" transform="translate(702.000000, 498.000000)">
|
|
10
|
+
<mask id="mask-2" fill="white">
|
|
11
|
+
<use xlink:href="#path-1"></use>
|
|
12
|
+
</mask>
|
|
13
|
+
<use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
|
|
14
|
+
<path d="M12.0142082,6 L18,11.9972435 L12.0142082,18 L11.04209,17.0260337 L16.0562218,11.9972435 L11.04209,6.97396631 L12.0142082,6 Z M6.97257658,6 L12.9583683,11.9972435 L6.97257658,18 L6.00091666,17.0260337 L11.0150485,11.9972435 L6,6.97396631 L6.97257658,6 Z" id="形状" fill="#005CFF" fill-rule="nonzero" mask="url(#mask-2)" transform="translate(12.000000, 12.000000) rotate(-270.000000) translate(-12.000000, -12.000000) "></path>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
@@ -507,11 +507,24 @@ class BasicLayout extends React.PureComponent {
|
|
|
507
507
|
query: route.query,
|
|
508
508
|
match: match,
|
|
509
509
|
key: currentKey,
|
|
510
|
+
state: route.state,
|
|
510
511
|
tab: this.getPageTitle(route.pathname) + '',
|
|
511
512
|
},
|
|
512
513
|
];
|
|
513
514
|
newListenRouterKey = [...listenRouterKey, currentKey];
|
|
514
515
|
}
|
|
516
|
+
} else {
|
|
517
|
+
// 更新已存储路由的query和state
|
|
518
|
+
newListenRouterState = newListenRouterState.map(item => {
|
|
519
|
+
if (item.key === currentKey) {
|
|
520
|
+
return {
|
|
521
|
+
...item,
|
|
522
|
+
query: route.query,
|
|
523
|
+
state: route.state,
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
return item;
|
|
527
|
+
})
|
|
515
528
|
}
|
|
516
529
|
|
|
517
530
|
// -------------------处理页签关闭----------------------------
|
|
@@ -1507,6 +1520,7 @@ class BasicLayout extends React.PureComponent {
|
|
|
1507
1520
|
getDictionaryTextByValue={this.getDictionaryTextByValue}
|
|
1508
1521
|
timeFormat={this.timeFormat}
|
|
1509
1522
|
transparentProps={transparentProps}
|
|
1523
|
+
activeKey={activeKey}
|
|
1510
1524
|
/>
|
|
1511
1525
|
</TabPane>
|
|
1512
1526
|
))}
|
|
@@ -1559,6 +1573,9 @@ class WrapperComponent extends React.Component {
|
|
|
1559
1573
|
if (window.__POWERED_BY_WUJIE__ && nextProps?.item?.key?.indexOf('edit-template-template') > -1) { // 适配wujie环境主应用下渲染打印编辑器
|
|
1560
1574
|
return true
|
|
1561
1575
|
}
|
|
1576
|
+
if (nextProps.activeKey === nextProps.item.key && JSON.stringify(nextProps.item) !== JSON.stringify(this.props.item)) {
|
|
1577
|
+
return true;
|
|
1578
|
+
}
|
|
1562
1579
|
return false;
|
|
1563
1580
|
}
|
|
1564
1581
|
render() {
|
|
@@ -749,6 +749,20 @@ export default (props: any) => {
|
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
751
|
|
|
752
|
+
const columnsDom = <span className="ant-dropdown-link">
|
|
753
|
+
<div onClick={sortTableRef?.current?.showModal} className="ant-dropdown-link">
|
|
754
|
+
<img style={{position: 'relative', left: '-7px'}} width={24} src={shezhi} />
|
|
755
|
+
</div>
|
|
756
|
+
</span>
|
|
757
|
+
|
|
758
|
+
const queryFieldsDom = <SearchItemTable
|
|
759
|
+
ref={searchTableRef}
|
|
760
|
+
setShowSearchFields={setShowSearchFields}
|
|
761
|
+
showSearchFields={showSearchFields}
|
|
762
|
+
datasource={value?.fields || []}
|
|
763
|
+
bsTableCode={bsTableCode}
|
|
764
|
+
/>
|
|
765
|
+
|
|
752
766
|
const memoConfig = useMemo(
|
|
753
767
|
() => ({
|
|
754
768
|
...config,
|
|
@@ -756,6 +770,8 @@ export default (props: any) => {
|
|
|
756
770
|
summaryList: props.summaryList ? getTableSummaryInfo : undefined,
|
|
757
771
|
statusMapping: props.statusMapping,
|
|
758
772
|
isBsSulaQueryTable: true,
|
|
773
|
+
columnsDom:columnsDom,
|
|
774
|
+
queryFieldsDom,
|
|
759
775
|
}),
|
|
760
776
|
[
|
|
761
777
|
checkedList,
|
|
@@ -766,23 +782,9 @@ export default (props: any) => {
|
|
|
766
782
|
],
|
|
767
783
|
);
|
|
768
784
|
|
|
769
|
-
const columnsDom = <span className="ant-dropdown-link">
|
|
770
|
-
<div onClick={sortTableRef?.current?.showModal} className="ant-dropdown-link">
|
|
771
|
-
<img style={{position: 'relative', left: '-7px'}} width={24} src={shezhi} />
|
|
772
|
-
</div>
|
|
773
|
-
</span>
|
|
774
|
-
|
|
775
|
-
const queryFieldsDom = <SearchItemTable
|
|
776
|
-
ref={searchTableRef}
|
|
777
|
-
setShowSearchFields={setShowSearchFields}
|
|
778
|
-
showSearchFields={showSearchFields}
|
|
779
|
-
datasource={value?.fields || []}
|
|
780
|
-
bsTableCode={bsTableCode}
|
|
781
|
-
/>
|
|
782
|
-
|
|
783
785
|
return (
|
|
784
786
|
<div id="bs-sula-query-table">
|
|
785
|
-
<MemoQueryTable {...memoConfig}
|
|
787
|
+
<MemoQueryTable {...memoConfig} />
|
|
786
788
|
{/* 列设置弹出框表格 */}
|
|
787
789
|
<SortableTable
|
|
788
790
|
ref={sortTableRef}
|
|
@@ -253,7 +253,7 @@ export const tableColumnsImage = (
|
|
|
253
253
|
<>
|
|
254
254
|
{url ? (
|
|
255
255
|
<div className={`clomnsImg`}>
|
|
256
|
-
<Image src={url} width="
|
|
256
|
+
<Image src={url} width="16px" height="16px" {...paramsObj}></Image>
|
|
257
257
|
</div>
|
|
258
258
|
) : (
|
|
259
259
|
<div className={`clomnsImg2`}>
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
.detail_page_wrapper {
|
|
32
32
|
// padding-top: 51px;
|
|
33
33
|
height: calc(100vh - 80px);
|
|
34
|
-
background-color: #FFF;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
.back_home_img_content {
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
gap: 8px;
|
|
82
81
|
margin-right: 20px;
|
|
83
82
|
button {
|
|
84
|
-
height:
|
|
83
|
+
height: 24px !important;
|
|
85
84
|
display: flex;
|
|
86
85
|
align-items: center;
|
|
87
86
|
gap: 2px;
|