We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc04050 commit 120e04fCopy full SHA for 120e04f
src/select/select.tsx
@@ -203,6 +203,17 @@ export default defineComponent({
203
addCache(newVal);
204
});
205
setValue(newVal, outputContext);
206
+
207
+ // 触发 remove 事件
208
+ if (props.multiple && context.trigger === 'uncheck' && optionValue) {
209
+ const removeContext = {
210
+ value: optionValue as string | number,
211
+ data: optionsMap.value.get(optionValue),
212
+ e: context.e,
213
+ };
214
+ instance.emit('remove', removeContext);
215
+ props.onRemove?.(removeContext);
216
+ }
217
};
218
219
const [tInputValue, setTInputValue] = useDefaultValue(
0 commit comments