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 f537033 commit 7fe519fCopy full SHA for 7fe519f
src/select/select.tsx
@@ -215,6 +215,17 @@ export default defineComponent({
215
addCache(newVal);
216
});
217
setValue(newVal, outputContext);
218
+
219
+ // 触发 remove 事件
220
+ if (props.multiple && context.trigger === 'uncheck' && optionValue) {
221
+ const removeContext = {
222
+ value: optionValue as string | number,
223
+ data: optionsMap.value.get(optionValue),
224
+ e: context.e,
225
+ };
226
+ instance.emit('remove', removeContext);
227
+ props.onRemove?.(removeContext);
228
+ }
229
};
230
231
const [tInputValue, setTInputValue] = useDefaultValue(
0 commit comments