@sheinx/hooks 3.5.2-beta.1 → 3.5.2-beta.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
// 删除数据
|