@aloudata/aloudata-design 2.17.6 → 2.17.7

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.
@@ -9,7 +9,18 @@ export default function PopupContent(props) {
9
9
  if (typeof dropdownRender === 'function') {
10
10
  popupContent = dropdownRender(content);
11
11
  } else if (_.isNil(menuProps) || _.isEmpty(menuProps.items)) {
12
- popupContent = notFoundContent;
12
+ var menuStyle = menuProps === null || menuProps === void 0 ? void 0 : menuProps.menuStyle;
13
+ if (menuStyle !== null && menuStyle !== void 0 && menuStyle.maxHeight) {
14
+ // 这个 maxHeight 来自组件的 listHeight 参数
15
+ popupContent = /*#__PURE__*/React.createElement("div", {
16
+ style: {
17
+ height: menuStyle.maxHeight,
18
+ overflow: 'auto'
19
+ }
20
+ }, notFoundContent);
21
+ } else {
22
+ popupContent = notFoundContent;
23
+ }
13
24
  } else {
14
25
  popupContent = content;
15
26
  }
@@ -1,26 +1,22 @@
1
- import Input from "../../Input";
1
+ import InputSearch from "../../InputSearch";
2
2
  import React from 'react';
3
- import SearchLine from "../../Icon/components/SearchLine";
4
3
  function SearchBox(_ref) {
5
4
  var _ref$showSearch = _ref.showSearch,
6
5
  showSearch = _ref$showSearch === void 0 ? false : _ref$showSearch,
7
6
  _ref$value = _ref.value,
8
7
  value = _ref$value === void 0 ? '' : _ref$value,
9
- _onChange = _ref.onChange,
10
- onBlur = _ref.onBlur;
8
+ onChange = _ref.onChange,
9
+ _onBlur = _ref.onBlur;
11
10
  if (!showSearch) return null;
12
- return /*#__PURE__*/React.createElement(Input, {
11
+ return /*#__PURE__*/React.createElement(InputSearch, {
13
12
  className: "beta-ald-select-search-box",
14
- value: value,
13
+ defaultValue: value,
15
14
  size: "small",
16
- allowClear: true,
17
- bordered: false,
18
- onBlur: onBlur,
19
- prefix: /*#__PURE__*/React.createElement(SearchLine, {
20
- size: 16
21
- }),
22
- onChange: function onChange(e) {
23
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(e.target.value);
15
+ debounce: false,
16
+ onSearch: onChange || function () {},
17
+ inputMode: true,
18
+ onBlur: function onBlur(_, e) {
19
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e);
24
20
  }
25
21
  });
26
22
  }
@@ -164,6 +164,10 @@
164
164
  .beta-ald-select-search-box {
165
165
  border-bottom: 1px solid #d1d5db;
166
166
  border-radius: 0 !important;
167
+
168
+ .ald-input {
169
+ border: none !important;
170
+ }
167
171
  }
168
172
 
169
173
  .ald-menu {