@aloudata/aloudata-design 2.17.6 → 2.18.0
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/dist/AldSelect/components/PopupContent.js +12 -1
- package/dist/AldSelect/components/SearchBox.js +10 -14
- package/dist/AldSelect/style/index.less +4 -0
- package/dist/DatePicker/index.d.ts +2 -2
- package/dist/Table/helper.d.ts +1 -1
- package/dist/Tour/index.d.ts +4 -0
- package/dist/Tour/index.js +2 -0
- package/dist/Tour/style/index.d.ts +2 -0
- package/dist/Tour/style/index.js +2 -0
- package/dist/Tour/style/index.less +1 -0
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.less +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
|
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
|
-
|
|
10
|
-
|
|
8
|
+
onChange = _ref.onChange,
|
|
9
|
+
_onBlur = _ref.onBlur;
|
|
11
10
|
if (!showSearch) return null;
|
|
12
|
-
return /*#__PURE__*/React.createElement(
|
|
11
|
+
return /*#__PURE__*/React.createElement(InputSearch, {
|
|
13
12
|
className: "beta-ald-select-search-box",
|
|
14
|
-
|
|
13
|
+
defaultValue: value,
|
|
15
14
|
size: "small",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
}
|
|
@@ -29,7 +29,7 @@ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface")
|
|
|
29
29
|
dropdownClassName?: string | undefined;
|
|
30
30
|
popupClassName?: string | undefined;
|
|
31
31
|
}, unknown>;
|
|
32
|
-
TimePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "locale" | "
|
|
32
|
+
TimePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "locale" | "components" | "generateConfig" | "hideHeader"> & {
|
|
33
33
|
locale?: import("antd/es/date-picker/generatePicker").PickerLocale | undefined;
|
|
34
34
|
size?: import("antd/es/button").ButtonSize;
|
|
35
35
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
|
@@ -41,7 +41,7 @@ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface")
|
|
|
41
41
|
popupClassName?: string | undefined;
|
|
42
42
|
rootClassName?: string | undefined;
|
|
43
43
|
}, "picker">, unknown>;
|
|
44
|
-
QuarterPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "locale" | "
|
|
44
|
+
QuarterPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Dayjs>, "locale" | "components" | "generateConfig" | "hideHeader"> & {
|
|
45
45
|
locale?: import("antd/es/date-picker/generatePicker").PickerLocale | undefined;
|
|
46
46
|
size?: import("antd/es/button").ButtonSize;
|
|
47
47
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
|
package/dist/Table/helper.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare function getTableColumns<TDataItem extends object>({ columns, con
|
|
|
23
23
|
render?: ((text: any, record: TDataItem, rowIndex: number) => import("react").ReactNode) | undefined;
|
|
24
24
|
ellipsis?: boolean | undefined;
|
|
25
25
|
noPadding?: boolean | undefined;
|
|
26
|
-
align?: "
|
|
26
|
+
align?: "center" | "left" | "right" | undefined;
|
|
27
27
|
fixed?: "left" | "right" | undefined;
|
|
28
28
|
sortOrder?: "ascend" | "descend" | null | undefined;
|
|
29
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|