/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var VueCompositionAPI = require('@vue/composition-api');

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

exports["default"] = useFormDisabled;
//# sourceMappingURL=use-form-disabled.js.map
