/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 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=use-form-disabled.js.map
