Skip to content

Commit

Permalink
fix(api-select): loss option data on event callback
Browse files Browse the repository at this point in the history
close #733
  • Loading branch information
mynetfan committed Jun 9, 2021
1 parent 7c1ffa3 commit c5f2577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Form/src/components/ApiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -83,6 +83,7 @@
prev.push({
label: next[labelField],
value: numberToString ? `${value}` : value,
...omit(next, [labelField, valueField]),
});
}
return prev;
Expand Down

0 comments on commit c5f2577

Please sign in to comment.