kts-component-invoice-operate 1.2.25 → 1.2.26

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.
package/dist/index.esm.js CHANGED
@@ -2227,7 +2227,7 @@ function Search() {
2227
2227
  while (1) {
2228
2228
  switch (_context2.prev = _context2.next) {
2229
2229
  case 0:
2230
- s.goodsListState.searchValue = value;
2230
+ s.goodsListState.searchValue = value.replace(/^ */, '').replace(/ *$/, '');
2231
2231
 
2232
2232
  case 1:
2233
2233
  case "end":
package/dist/index.js CHANGED
@@ -2237,7 +2237,7 @@ function Search() {
2237
2237
  while (1) {
2238
2238
  switch (_context2.prev = _context2.next) {
2239
2239
  case 0:
2240
- s.goodsListState.searchValue = value;
2240
+ s.goodsListState.searchValue = value.replace(/^ */, '').replace(/ *$/, '');
2241
2241
 
2242
2242
  case 1:
2243
2243
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -27,7 +27,7 @@ export default function Search() {
27
27
 
28
28
  React.useEffect(() => {
29
29
  controller.run(async s => {
30
- s.goodsListState.searchValue = value;
30
+ s.goodsListState.searchValue = value.replace(/^ */, '').replace(/ *$/, '');
31
31
  })
32
32
  }, [value, controller])
33
33