| | |
| | | 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"); |