/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 swimly
 * @license MIT
 */

'use strict';

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

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

function useFormDisabled() {
  var formDisabled = VueCompositionAPI.computed(function () {
    var currentInstance = VueCompositionAPI.getCurrentInstance();
    var parent = currentInstance.parent;

    while (parent) {
      if (parent.proxy.$options.name === "TForm") {
        return parent.props.disabled;
      }

      parent = parent.parent;
    }

    return false;
  });
  return {
    formDisabled: formDisabled
  };
}

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