/**
 * tdesign v0.46.4
 * (c) 2022 tdesign
 * @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=useFormDisabled.js.map
