zhangwencui
5 小时以前 e06ec76e7e419c0c3b1f8c3a603a331b1a0d42fb
tooltip错位修改
已修改1个文件
17 ■■■■■ 文件已修改
src/main.js 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js
@@ -115,5 +115,22 @@
  size: Cookies.get("size") || "default",
});
app._context.components.ElDialog.props.closeOnClickModal.default = false;
const ElTable = app._context.components.ElTable;
if (ElTable?.props?.tooltipOptions) {
  if (ElTable.props.tooltipOptions === Object) {
    ElTable.props.tooltipOptions = {
      type: Object,
      default: () => ({
        appendTo: "body",
      }),
    };
  } else if (typeof ElTable.props.tooltipOptions === "object") {
    ElTable.props.tooltipOptions.default =
      ElTable.props.tooltipOptions.default ||
      (() => ({
        appendTo: "body",
      }));
  }
}
app.mount("#app");