import { computed, type Ref, unref } from 'vue'; import useDisabledInjection from './useDisabledInjection'; export default function (componentDisabled: Ref) { const treeDisabled = useDisabledInjection(); return computed(() => unref(componentDisabled) || unref(treeDisabled)); }