@aloudata/aloudata-design 2.18.4 → 2.18.5
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.
|
@@ -49,7 +49,7 @@ export interface BaseSelectProps extends BaseSelectPrivateProps, ISelectProps, R
|
|
|
49
49
|
suffixIcon?: React.ReactNode;
|
|
50
50
|
dropdownAlign?: AlignType;
|
|
51
51
|
placement?: PlacementType;
|
|
52
|
-
getPopupContainer?:
|
|
52
|
+
getPopupContainer?: () => HTMLElement;
|
|
53
53
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
54
54
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
55
55
|
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
@@ -212,7 +212,7 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
212
212
|
ref: selectRef,
|
|
213
213
|
id: id,
|
|
214
214
|
onClick: onSelectClick
|
|
215
|
-
}, /*#__PURE__*/React.createElement(SelectTrigger, {
|
|
215
|
+
}, /*#__PURE__*/React.createElement(SelectTrigger, _extends({}, restProps, {
|
|
216
216
|
open: !!mergedOpen,
|
|
217
217
|
notFoundContent: notFoundContent,
|
|
218
218
|
menu: showMenu,
|
|
@@ -238,7 +238,7 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
238
238
|
onToggleOpen(open);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
241
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
242
242
|
className: setClassNames('trigger')
|
|
243
243
|
}, prefix && /*#__PURE__*/React.createElement("div", {
|
|
244
244
|
className: setClassNames('prefix')
|
|
@@ -36,7 +36,7 @@ export interface ISelectProps<ValueType = any, OptionType extends BaseOptionType
|
|
|
36
36
|
style?: React.CSSProperties;
|
|
37
37
|
open?: boolean;
|
|
38
38
|
onOpenChange?: (open: boolean) => void;
|
|
39
|
-
getPopupContainer?: (
|
|
39
|
+
getPopupContainer?: () => HTMLElement;
|
|
40
40
|
onInputKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
41
41
|
popupMatchSelectWidth?: boolean | number;
|
|
42
42
|
onSelect?: SelectHandler<ArrayElementType<ValueType>, OptionType>;
|
|
@@ -84,7 +84,6 @@ export interface LabelInValueType {
|
|
|
84
84
|
disabled?: boolean;
|
|
85
85
|
}
|
|
86
86
|
export type DraftValueType = RawValueType | LabelInValueType | DisplayValueType | (RawValueType | LabelInValueType | DisplayValueType)[];
|
|
87
|
-
export type RenderDOMFunc = (triggerNode: HTMLElement) => HTMLElement;
|
|
88
87
|
export type DisplayInfoType = 'add' | 'remove' | 'clear';
|
|
89
88
|
export interface DefaultOptionType extends BaseOptionType {
|
|
90
89
|
label?: React.ReactNode;
|
|
@@ -57,9 +57,6 @@ var ColorInput = function ColorInput(props) {
|
|
|
57
57
|
}, !disabledFormat && /*#__PURE__*/React.createElement(AldSelect, {
|
|
58
58
|
value: colorFormat,
|
|
59
59
|
borderLess: true,
|
|
60
|
-
getPopupContainer: function getPopupContainer(current) {
|
|
61
|
-
return current;
|
|
62
|
-
},
|
|
63
60
|
popupMatchSelectWidth: 80,
|
|
64
61
|
placement: "bottom-end",
|
|
65
62
|
width: 'auto',
|
package/dist/Table/index.js
CHANGED
|
@@ -275,7 +275,7 @@ function Table(props, ref) {
|
|
|
275
275
|
onRowClick(rowData, rowIndex);
|
|
276
276
|
};
|
|
277
277
|
}, [onRowClick]);
|
|
278
|
-
var isShowPagination = !!(pagination && pagination.total > pagination.pageSize);
|
|
278
|
+
var isShowPagination = !!(pagination && (pagination.total > pagination.pageSize || pagination.showSizeChanger));
|
|
279
279
|
var isShowRowSelection = rowSelectionInfo.isShowRowSelectionInFooter;
|
|
280
280
|
var isShowFooter = isShowPagination || isShowRowSelection;
|
|
281
281
|
|