Browse Source

perf: optimizing hidden fields cannot trigger `dependencies` (#7142)

pull/7143/head
ming4762 2 weeks ago
committed by GitHub
parent
commit
528395e2c3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/@core/ui-kit/form-ui/src/form-render/dependencies.ts

2
packages/@core/ui-kit/form-ui/src/form-render/dependencies.ts

@ -82,10 +82,8 @@ export default function useDependencies(
// 2. 判断show,如果show为false,则隐藏 // 2. 判断show,如果show为false,则隐藏
if (isFunction(show)) { if (isFunction(show)) {
isShow.value = !!(await show(formValues, formApi)); isShow.value = !!(await show(formValues, formApi));
if (!isShow.value) return;
} else if (isBoolean(show)) { } else if (isBoolean(show)) {
isShow.value = show; isShow.value = show;
if (!isShow.value) return;
} }
if (isFunction(componentProps)) { if (isFunction(componentProps)) {

Loading…
Cancel
Save