fix(api-select): loss option data on event callback

close #733
This commit is contained in:
无木 2021-06-09 18:31:01 +08:00
parent 7c1ffa3d23
commit c5f2577f51

View File

@ -25,7 +25,7 @@
import { isFunction } from '/@/utils/is';
import { useRuleFormItem } from '/@/hooks/component/useFormItem';
import { useAttrs } from '/@/hooks/core/useAttrs';
import { get } from 'lodash-es';
import { get, omit } from 'lodash-es';
import { LoadingOutlined } from '@ant-design/icons-vue';
import { useI18n } from '/@/hooks/web/useI18n';
@ -83,6 +83,7 @@
prev.push({
label: next[labelField],
value: numberToString ? `${value}` : value,
...omit(next, [labelField, valueField]),
});
}
return prev;