@sheinx/hooks 3.5.1 → 3.5.2-beta.2

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.
@@ -133,7 +133,7 @@ var useListSelectMultiple = function useListSelectMultiple(props) {
133
133
  }
134
134
  });
135
135
  var removeAll = (0, _usePersistFn.default)(function () {
136
- props.onChange([], undefined, false);
136
+ props.onChange(props.separator ? '' : [], undefined, false);
137
137
  });
138
138
 
139
139
  // 删除数据
@@ -123,7 +123,7 @@ var useListSelectMultiple = function useListSelectMultiple(props) {
123
123
  }
124
124
  });
125
125
  var removeAll = usePersistFn(function () {
126
- props.onChange([], undefined, false);
126
+ props.onChange(props.separator ? '' : [], undefined, false);
127
127
  });
128
128
 
129
129
  // 删除数据
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.5.1",
3
+ "version": "3.5.2-beta.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",