@bit-sun/business-component 4.0.12-alpha.10 → 4.0.12-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.12-alpha.10",
3
+ "version": "4.0.12-alpha.11",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -1707,7 +1707,6 @@ export default () => {
1707
1707
  }
1708
1708
  const selectPropsMultiple = {
1709
1709
  mode: 'multiple',
1710
- maxTagCount: 1,
1711
1710
  }
1712
1711
 
1713
1712
  const [ tabKey, setTabKey ] = useState('single')
@@ -5,6 +5,11 @@
5
5
  &_show {
6
6
  display: flex;
7
7
 
8
+ .ant-select-dropdown {
9
+ top: 24px !important;
10
+ width: calc(150%) !important;
11
+ }
12
+
8
13
  // 下拉框清除图标位置调整
9
14
  .ant-select-clear {
10
15
  right: 33px;
@@ -16,6 +21,13 @@
16
21
  }
17
22
  }
18
23
 
24
+ &_show.search_select_show_list {
25
+ .ant-select-dropdown {
26
+ top: 24px !important;
27
+ width: calc(141%) !important;
28
+ }
29
+ }
30
+
19
31
  &_expand_button {
20
32
  position: relative;
21
33
  right: -11px;
@@ -69,8 +69,13 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
69
69
  listHeight: 160,
70
70
  optionLabelProp: "label",
71
71
  autoClearSearchValue: false,
72
- placement: 'bottomLeft'
72
+ placement: 'bottomRight'
73
73
  }
74
+
75
+ const pathname = window.location.href;
76
+ var pattern = /(action|create|edit|view)/
77
+ const isFormPage = pathname.match(pattern)?.length > 0;
78
+
74
79
  const initPagination = { showQuickJumper: true, showSizeChanger: false, showTotal: (total: any) => `共 ${total} 条`, pageSize: tableInitPageSize }
75
80
  const tableInitPagination = { ...initPagination, total: 0, current: 1 }
76
81
  const disabled = noOperate || selectProps?.disabled || props?.disabled;
@@ -1049,7 +1054,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
1049
1054
  {getShowStr()}
1050
1055
  </div>) :
1051
1056
  <div
1052
- className="search_select_show"
1057
+ className={`${isFormPage ? '' : 'search_select_show_list'} search_select_show`}
1053
1058
  id={`search_select_div_${uniqueValue}`}
1054
1059
  >
1055
1060
  <Select
@@ -1059,7 +1064,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
1059
1064
  onClear={onClear}
1060
1065
  onDeselect={onDeselect}
1061
1066
  disabled={sDisabled}
1062
- dropdownStyle={{ borderRadius: '2px', padding: '10px 2px' }}
1067
+ dropdownStyle={{ borderRadius: '2px', padding: '10px 2px'}}
1063
1068
  open={selectOpen}
1064
1069
  onDropdownVisibleChange={onDropdownVisibleChange}
1065
1070
  dropdownRender={(menu) => items?.length ? renderTable(items) : menu}
@@ -1081,7 +1086,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
1081
1086
  suffixIcon: <div className={`search_select_expand_button ${(sDisabled)?'search_select_expand_button_disabled':''}`} onClick={showModal}><SearchOutlined /></div>
1082
1087
  } : {})}
1083
1088
  {...currentSelectProps}
1084
- getPopupContainer={(triggerNode) => (getPopupContainer && getPopupContainer(triggerNode)) || triggerNode.parentElement}
1089
+ getPopupContainer={(triggerNode) => triggerNode.parentElement || getPopupContainer && getPopupContainer(triggerNode)}
1085
1090
  >
1086
1091
  {items.map(item => (
1087
1092
  <Option key={item.value} label={item.text}>