@bit-sun/business-component 4.0.11 → 4.0.12-alpha.3

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 +1910 -980
  7. package/dist/index.js +1909 -979
  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 +31 -69
  29. package/src/components/Business/columnSettingTable/index.tsx +36 -6
  30. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +36 -7
  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 +400 -263
  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
@@ -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
  })}
@@ -1,3 +1,12 @@
1
+ .bs_home_page_head_wrapper{
2
+ height: 32px;
3
+ position: sticky;
4
+ background: #fff;
5
+ width: 100%;
6
+ top: 0px;
7
+ z-index: 10;
8
+ }
9
+
1
10
  .home_page_head {
2
11
  display: flex;
3
12
  justify-content: space-between;
@@ -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> */}