x-ui-design 0.3.82 → 0.3.84

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 CHANGED
@@ -3133,13 +3133,10 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3133
3133
  } else {
3134
3134
  positionStyle = {
3135
3135
  ...positionStyle,
3136
- top: shouldShowAbove ? `${triggerNode.offsetTop - dropdownHeight + PADDING_PLACEMENT / 6 + inForm - triggerNode.offsetHeight}px` : `${triggerNode.offsetTop + triggerNode.offsetHeight}px`,
3136
+ top: shouldShowAbove ? `${triggerNode.offsetTop - dropdownHeight + PADDING_PLACEMENT + inForm - triggerNode.offsetHeight}px` : `${triggerNode.offsetTop + triggerNode.offsetHeight}px`,
3137
3137
  left: `${triggerNode.offsetLeft - PADDING_PLACEMENT / 2}px`
3138
3138
  };
3139
3139
  }
3140
- console.log(1, {
3141
- ...positionStyle
3142
- });
3143
3140
  setDropdownPosition(positionStyle);
3144
3141
  }
3145
3142
  }, [prefixCls, listHeight, getPopupContainer, isOpenChecker, isOpen]);
@@ -3438,7 +3435,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3438
3435
  minWidth: `${searchInputWidth}px`
3439
3436
  },
3440
3437
  className: `${prefixCls}-tag-container`
3441
- }, hasMode && selected.map((tag, index) => tagRender ? /*#__PURE__*/React$1.createElement("div", {
3438
+ }, hasMode && !!selected.filter(e => e).length ? selected.filter(e => e).map((tag, index) => tagRender ? /*#__PURE__*/React$1.createElement("div", {
3442
3439
  key: `${index}_${tag}`
3443
3440
  }, tagRender?.({
3444
3441
  label: extractedOptions.find(e => e.value === tag)?.children || tag,
@@ -3448,10 +3445,14 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3448
3445
  })) : /*#__PURE__*/React$1.createElement(Tag, {
3449
3446
  closable: true,
3450
3447
  value: tag,
3451
- label: tag === '' ? placeholder : extractedOptions.find(e => e.value === tag)?.children || tag,
3448
+ label: extractedOptions.find(e => e.value === tag)?.children || tag,
3452
3449
  onClose: handleRemoveTag,
3453
3450
  key: `${index}_${tag}`
3454
- })), isOpen ? /*#__PURE__*/React$1.createElement("div", {
3451
+ })) : /*#__PURE__*/React$1.createElement("span", {
3452
+ style: {
3453
+ opacity: 0.5
3454
+ }
3455
+ }, placeholder), isOpen ? /*#__PURE__*/React$1.createElement("div", {
3455
3456
  className: `${prefixCls}-tag`
3456
3457
  }, /*#__PURE__*/React$1.createElement("div", {
3457
3458
  onClick: e => {