fix(ApiSelect): 支持x.x.x格式 (#2637)

Co-authored-by: whong <whif@foxmail.com>
This commit is contained in:
wh 2023-03-23 11:45:44 +08:00 committed by GitHub
parent f2ec2ca273
commit d620758c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,10 @@
return unref(options).reduce((prev, next: Recordable) => {
if (next) {
const value = next[valueField];
const value = get(next, valueField);
prev.push({
...omit(next, [labelField, valueField]),
label: next[labelField],
label: get(next, labelField),
value: numberToString ? `${value}` : value,
});
}