dtable-ui-component 6.0.110-ast.11 → 6.0.110-ast.13

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.
@@ -239,7 +239,7 @@ class SelectOptionGroup extends _react.Component {
239
239
  className: "editor-list-delete mb-2",
240
240
  onClick: e => e.stopPropagation(),
241
241
  children: value.label || ''
242
- }), searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
242
+ }), searchable && this.filterOptions && this.filterOptions.length > 10 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
243
243
  className: "seatable-option-group-search",
244
244
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
245
245
  className: "option-search-control",
@@ -217,7 +217,7 @@ class SelectOptionGroup extends _react.Component {
217
217
  ref: ref => this.optionGroupRef = ref,
218
218
  style: style,
219
219
  onMouseDown: this.onMouseDown,
220
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
220
+ children: [this.filterOptions && this.filterOptions.length > 10 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
221
221
  className: "seatable-search-input",
222
222
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
223
223
  placeholder: searchPlaceholder,
@@ -260,7 +260,7 @@ class SelectOptionGroup extends _react.Component {
260
260
  className: "editor-list-delete",
261
261
  onClick: e => e.stopPropagation(),
262
262
  children: value.label || ''
263
- }), searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
263
+ }), searchable && this.filterOptions && this.filterOptions.length > 10 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
264
264
  className: "option-group-search",
265
265
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
266
266
  className: "option-search-control",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.110ast.11",
3
+ "version": "6.0.110ast.13",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",