"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const vue = require("vue");
const permission = require("./permission.js");
function useSize(props) {
  const xeSizeInfo = vue.inject("xeSizeInfo", null);
  const computeSize = vue.computed(() => {
    return props.size || (xeSizeInfo ? xeSizeInfo.value : null);
  });
  vue.provide("xeSizeInfo", computeSize);
  return { computeSize };
}
function usePermission(props) {
  const computePermissionInfo = vue.computed(() => {
    return permission.handleCheckInfo(props.permissionCode, props.permissionMethod);
  });
  return {
    computePermissionInfo
  };
}
const useFns = {
  useSize,
  usePermission
};
exports.useFns = useFns;
exports.usePermission = usePermission;
exports.useSize = useSize;
