@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
|
@@ -107,6 +107,27 @@ const DetailWrapper = React.memo(
|
|
|
107
107
|
breadcrumbArrs.pop();
|
|
108
108
|
breadcrumbArrs.push(title);
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
// 处理详情页上层列表页面路径
|
|
112
|
+
var pattern = /^(\/.*)\/(action|create|edit|view)(\/.*)*$/
|
|
113
|
+
const result = pathname.match(pattern)
|
|
114
|
+
|
|
115
|
+
if(result?.length && result[1]) {
|
|
116
|
+
const parentRoute = matchParamsPath(
|
|
117
|
+
`${basePath}${result[1]}`,
|
|
118
|
+
breadcrumbNameMap,
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
if(!parentRoute) return;
|
|
122
|
+
|
|
123
|
+
if(breadcrumbArrs.length >= 2) {
|
|
124
|
+
breadcrumbArrs.splice(-1, 0, {
|
|
125
|
+
title: parentRoute.name,
|
|
126
|
+
path: result[1]
|
|
127
|
+
})
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
110
131
|
setBreadCrumbArr([...breadcrumbArrs]);
|
|
111
132
|
|
|
112
133
|
const pageName = formatMessage({
|
|
@@ -221,7 +242,7 @@ const DetailWrapper = React.memo(
|
|
|
221
242
|
};
|
|
222
243
|
|
|
223
244
|
return (
|
|
224
|
-
<div ref={wrapperContainerRef}>
|
|
245
|
+
<div ref={wrapperContainerRef} className='bs_detail_page_head_wrapper'>
|
|
225
246
|
<div
|
|
226
247
|
className={'detail_page_head'}
|
|
227
248
|
style={{
|
|
@@ -245,7 +266,11 @@ const DetailWrapper = React.memo(
|
|
|
245
266
|
key={item}
|
|
246
267
|
>
|
|
247
268
|
<span className={`${index === breadcrumbArr.length - 1 ? 'bread_name_last' : ''} bread_name`} >
|
|
248
|
-
{item
|
|
269
|
+
{typeof item == 'object' ? <span className='bread_name_pre' onClick={()=> {
|
|
270
|
+
history.push({
|
|
271
|
+
pathname: item.path
|
|
272
|
+
})
|
|
273
|
+
}}>{item.title}</span> : item}
|
|
249
274
|
</span>
|
|
250
275
|
</Breadcrumb.Item>
|
|
251
276
|
})}
|
|
@@ -84,7 +84,7 @@ const HeaderWrapper = React.memo(
|
|
|
84
84
|
useEffect(() => {}, [pathname]);
|
|
85
85
|
|
|
86
86
|
return (
|
|
87
|
-
<div>
|
|
87
|
+
<div className='bs_home_page_head_wrapper'>
|
|
88
88
|
<div className={'home_page_head'}>
|
|
89
89
|
<div className='home_page_title_wrapper'>
|
|
90
90
|
{/* <div className={'home_page_title'}>{pageTitle}</div> */}
|