gaoluyang
9 天以前 8e9bc97e709f7e49586dffb9cc3d2dac4cfef4ca
src/components/PIMTable/PIMTable.vue
@@ -367,11 +367,11 @@
    return format(val);
  } else return val;
};
const validTagTypes = ["primary", "success", "info", "warning", "danger"];
const formatType = (val, format) => {
  if (typeof format === "function") {
    return format(val);
  } else return "";
  const type = typeof format === "function" ? format(val) : undefined;
  return validTagTypes.includes(type) ? type : undefined;
};
const isOperationDisabled = (operation, row) => {