x-ui-design 0.2.77 → 0.2.79
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/index.esm.js +3 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +4 -9
- package/package.json +1 -1
- package/src/app/page.tsx +3406 -6
package/dist/index.esm.js
CHANGED
|
@@ -3020,13 +3020,13 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3020
3020
|
const spaceAbove = selectBox.top;
|
|
3021
3021
|
let positionStyle = {
|
|
3022
3022
|
top: `${selectBox.bottom}px`,
|
|
3023
|
-
left: `${selectBox.left}px`,
|
|
3023
|
+
// left: `${selectBox.left}px`,
|
|
3024
3024
|
width: `${selectBox.width}px`
|
|
3025
3025
|
};
|
|
3026
3026
|
if (spaceBelow < dropdownHeight && spaceAbove > dropdownHeight) {
|
|
3027
3027
|
positionStyle = {
|
|
3028
3028
|
top: `${selectBox.top - dropdownHeight}px`,
|
|
3029
|
-
left: `${selectBox.left}px`,
|
|
3029
|
+
// left: `${selectBox.left}px`,
|
|
3030
3030
|
width: `${selectBox.width}px`
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
@@ -3143,12 +3143,8 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3143
3143
|
if (!disabled) {
|
|
3144
3144
|
setIsOpen(!isOpen);
|
|
3145
3145
|
}
|
|
3146
|
-
const searchContent =
|
|
3146
|
+
const searchContent = selectRef.current?.getElementsByClassName(`${prefixCls}-tag-container`)?.[0];
|
|
3147
3147
|
if (searchContent) {
|
|
3148
|
-
console.info({
|
|
3149
|
-
clientWidth: searchContent.clientWidth,
|
|
3150
|
-
searchContent
|
|
3151
|
-
});
|
|
3152
3148
|
setSearchInputWidth(searchContent.clientWidth - PADDING_TAG_INPUT);
|
|
3153
3149
|
}
|
|
3154
3150
|
const timeout = setTimeout(() => {
|