/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

import { computed, getCurrentInstance } from '@vue/composition-api';

function useFormDisabled() {
  const formDisabled = computed(() => {
    const currentInstance = getCurrentInstance();
    let {
      parent
    } = currentInstance;
    while (parent) {
      if (parent.proxy.$options.name === "TForm") return parent.props.disabled;
      parent = parent.parent;
    }
    return false;
  });
  return {
    formDisabled
  };
}

export { useFormDisabled as default };
//# sourceMappingURL=useFormDisabled.js.map
