/**
 * ldesign v0.3.13
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

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

var vue = require('vue');

function useFormDisabled(extend) {
  var ctx = vue.getCurrentInstance();
  var propsDisabled = vue.computed(function () {
    return ctx.props.disabled;
  });
  var _inject = vue.inject("formDisabled", /* @__PURE__ */Object.create(null)),
    disabled = _inject.disabled;
  return vue.computed(function () {
    return propsDisabled.value || (disabled === null || disabled === void 0 ? void 0 : disabled.value) || (extend === null || extend === void 0 ? void 0 : extend.value) || false;
  });
}

exports.useFormDisabled = useFormDisabled;
//# sourceMappingURL=hooks.js.map
