dtable-ui-component 6.0.110-aol.4 → 6.0.110-aol.6

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.
@@ -111,10 +111,6 @@
111
111
  color: #212529;
112
112
  }
113
113
 
114
- .option-group-selector-single-select .option-group-search {
115
- padding-top: 8px !important;
116
- }
117
-
118
114
  .option-group-selector-single-select .option .select-option-name .single-select-option {
119
115
  margin: 0;
120
116
  }
@@ -192,7 +192,8 @@ class SelectOptionGroup extends _react.Component {
192
192
  position,
193
193
  className,
194
194
  addOptionAble,
195
- component
195
+ component,
196
+ supportMultipleSelect
196
197
  } = this.props;
197
198
  const {
198
199
  AddOption
@@ -220,7 +221,6 @@ class SelectOptionGroup extends _react.Component {
220
221
  opacity: 0
221
222
  };
222
223
  }
223
- const isUnSingleSeleectOrMultiSelect = className === 'selector-single-select' || className === 'selector-multiple-select';
224
224
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
225
225
  ref: ref => this.clickOutsideRef = ref,
226
226
  onClickOutside: this.props.onClickOutside,
@@ -237,7 +237,7 @@ class SelectOptionGroup extends _react.Component {
237
237
  onClick: e => e.stopPropagation(),
238
238
  children: value.label || ''
239
239
  }), searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
240
- className: `option-group-search ${!isUnSingleSeleectOrMultiSelect ? 'option-group-other-search' : ''}`,
240
+ className: !supportMultipleSelect ? 'option-group-other-search' : 'option-group-search',
241
241
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
242
242
  className: "option-search-control",
243
243
  placeholder: searchPlaceholder,
@@ -246,7 +246,7 @@ class SelectOptionGroup extends _react.Component {
246
246
  ref: this.searchInputRef
247
247
  })
248
248
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
249
- className: `option-group-content ${!searchable ? 'option-group-top' : ''}`,
249
+ className: `option-group-content ${!searchable && !supportMultipleSelect ? 'option-group-top' : ''}`,
250
250
  ref: ref => this.optionGroupContentRef = ref,
251
251
  children: this.renderOptGroup(searchVal)
252
252
  }), addOptionAble && AddOption]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.110-aol.4",
3
+ "version": "6.0.110-aol.6",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",