selectFisrt 值格式有点问题

This commit is contained in:
2betop 2021-02-04 17:11:25 +08:00
parent 438bcf3d83
commit 05ccc8269f

View File

@ -409,11 +409,12 @@ export const FormItemStore = StoreNode.named('FormItemStore')
return item;
});
const value = self.joinValues
? list.join(self.delimiter)
: self.multiple
? list
: list[0];
const value =
self.joinValues && self.multiple
? list.join(self.delimiter)
: self.multiple
? list
: list[0];
if (form.inited && onChange) {
onChange(value);