gxxc-ui 1.0.31 → 1.0.32

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.
@@ -8,6 +8,7 @@ import { Flex, Input } from 'antd';
8
8
  import React, { useEffect, useState } from 'react';
9
9
  import { IconUI } from "./..";
10
10
  import "./index.scss";
11
+
11
12
  // 搜索框
12
13
  var timer;
13
14
  var SearchUI = function SearchUI(props) {
@@ -33,6 +34,9 @@ var SearchUI = function SearchUI(props) {
33
34
  }, 500);
34
35
  }
35
36
  };
37
+ var _onClear = function onClear() {
38
+ setSearchValue(undefined);
39
+ };
36
40
  return /*#__PURE__*/React.createElement(Input.Search, {
37
41
  value: searchValue,
38
42
  className: "sic-searchui",
@@ -43,6 +47,9 @@ var SearchUI = function SearchUI(props) {
43
47
  onSearch: function onSearch(e) {
44
48
  return onChange(e.trim());
45
49
  },
50
+ onClear: function onClear() {
51
+ return _onClear();
52
+ },
46
53
  placeholder: placeholder,
47
54
  enterButton: /*#__PURE__*/React.createElement(Flex, {
48
55
  align: "center",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxxc-ui",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",