dtable-ui-component 7.0.16 → 7.0.17

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.
@@ -82,6 +82,20 @@ class DtableSearchInput extends _react.Component {
82
82
  children: "\xD7"
83
83
  });
84
84
  };
85
+ this.renderExactMatch = () => {
86
+ const {
87
+ components = {}
88
+ } = this.props;
89
+ const {
90
+ ExactMatchIndicator
91
+ } = components;
92
+ if (/*#__PURE__*/_react.default.isValidElement(ExactMatchIndicator)) {
93
+ return ExactMatchIndicator;
94
+ } else if ((0, _utils.isFunction)(ExactMatchIndicator)) {
95
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ExactMatchIndicator, {});
96
+ }
97
+ return null;
98
+ };
85
99
  this.state = {
86
100
  searchValue: props.value
87
101
  };
@@ -127,7 +141,7 @@ class DtableSearchInput extends _react.Component {
127
141
  onKeyDown: onKeyDown,
128
142
  disabled: disabled,
129
143
  style: style
130
- }), this.renderClear()]
144
+ }), this.renderClear(), this.renderExactMatch()]
131
145
  });
132
146
  }
133
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.16",
3
+ "version": "7.0.17",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",