dtable-ui-component 6.0.110-aol.1 → 6.0.110-aol.3

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.
@@ -95,11 +95,13 @@
95
95
  white-space: nowrap;
96
96
  }
97
97
 
98
- .option-group .custom-select-search {
98
+ .option-group .option-group-selector-multiple-select .option-group-search,
99
+ .option-group .option-group-selector-single-select .option-group-search {
99
100
  padding: 0 0 8px 0 !important;
100
101
  }
101
102
 
102
- .custom-select-search .form-control {
103
+ .option-group-selector-multiple-select .form-control,
104
+ .option-group-selector-single-select .form-control {
103
105
  border: none;
104
106
  border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
105
107
  border-radius: 4px 4px 0 0;
@@ -107,7 +109,8 @@
107
109
  height: 32px;
108
110
  }
109
111
 
110
- .custom-select-search.form-control:focus {
112
+ .option-group-selector-multiple-select .form-control:focus,
113
+ .option-group-selector-single-select .form-control:focus {
111
114
  border-color: transparent !important;
112
115
  border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
113
116
  box-shadow: none !important;
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .option-group .option-group-top {
40
- padding-top: 8px;
40
+ padding-top: 8px !important;
41
41
  }
42
42
 
43
43
  .option {
@@ -123,7 +123,7 @@
123
123
  padding: .375rem .5rem !important;
124
124
  }
125
125
 
126
- .option-group-search .form-control {
126
+ .option-group-other-search .form-control {
127
127
  border: none;
128
128
  border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
129
129
  border-radius: 4px 4px 0 0;
@@ -131,7 +131,7 @@
131
131
  height: 32px;
132
132
  }
133
133
 
134
- .option-group-search .form-control:focus {
134
+ .option-group-other-search .form-control:focus {
135
135
  border-color: transparent !important;
136
136
  border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
137
137
  box-shadow: none !important;
@@ -220,6 +220,7 @@ class SelectOptionGroup extends _react.Component {
220
220
  opacity: 0
221
221
  };
222
222
  }
223
+ const isUnSingleSeleectOrMultiSelect = className === 'selector-single-select' || className === 'selector-multiple-select';
223
224
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
224
225
  ref: ref => this.clickOutsideRef = ref,
225
226
  onClickOutside: this.props.onClickOutside,
@@ -236,7 +237,7 @@ class SelectOptionGroup extends _react.Component {
236
237
  onClick: e => e.stopPropagation(),
237
238
  children: value.label || ''
238
239
  }), searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
239
- className: "option-group-search custom-select-search",
240
+ className: `option-group-search ${isUnSingleSeleectOrMultiSelect ? 'option-group-other-search' : ''}`,
240
241
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
241
242
  className: "option-search-control",
242
243
  placeholder: searchPlaceholder,
@@ -245,7 +246,7 @@ class SelectOptionGroup extends _react.Component {
245
246
  ref: this.searchInputRef
246
247
  })
247
248
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
248
- className: `option-group-content ${searchable && 'option-group-top'}`,
249
+ className: `option-group-content ${!searchable ? 'option-group-top' : ''}`,
249
250
  ref: ref => this.optionGroupContentRef = ref,
250
251
  children: this.renderOptGroup(searchVal)
251
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.1",
3
+ "version": "6.0.110-aol.3",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",