mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
fix: 判断 defer tree 条件补充 (#6060)
This commit is contained in:
parent
6ca4148ea9
commit
41b86be11d
@ -255,7 +255,11 @@ export class BaseTransferRenderer<
|
||||
// 是否是有懒加载的树,这时不能将 value 添加到 options。因为有可能 value 在懒加载结果中
|
||||
const isTreeDefer =
|
||||
selectMode === 'tree' &&
|
||||
(!!deferApi || !!findTree(options, (option: Option) => option.deferApi));
|
||||
(!!deferApi ||
|
||||
!!findTree(
|
||||
options,
|
||||
(option: Option) => option.deferApi || option.defer
|
||||
));
|
||||
|
||||
isTreeDefer === true ||
|
||||
((newOptions.length > options.length || optionModified) &&
|
||||
|
Loading…
Reference in New Issue
Block a user