-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: Variable table overflow show tooltip and CodeEditor cursor position #4436
Conversation
@@ -41,7 +41,7 @@ export default [ | |||
children: [ | |||
{ | |||
path: '', | |||
name: 'JobExecutionLog', | |||
name: 'AuditJobExecutionLog', | |||
component: () => import('@/views/audits/JobExecutionLogList'), | |||
meta: { | |||
title: i18n.t('JobExecutionLog'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided code does not contain any errors that I can detect. It appears to be in line with the standard conventions of React, Vue/Element UI components for navigation and routes management.
For optimization:
- Ensure that all data is properly fetched from the server before rendering it into your pages to improve initial page load times.
References:
- For a comprehensive guide on optimizing component lifecycle (such as
shouldComponentUpdate
) or how stateful functional component's render() method could be further optimized, you might refer to various resources such as this Medium article which discusses ways to avoid common pitfalls like these, while also improving performance.
<el-table-column :label="$tc('Name')" prop="name" /> | ||
<el-table-column :label="$tc('VariableName')" prop="var_name" /> | ||
<el-table-column show-overflow-tooltip :label="$tc('Name')" prop="name" /> | ||
<el-table-column show-overflow-tooltip :label="$tc('VariableName')" prop="var_name" /> | ||
<el-table-column :label="$tc('Actions')" align="center" class-name="buttons" fixed="right" width="135"> | ||
<template v-slot="scope"> | ||
<el-button icon="el-icon-minus" size="mini" type="danger" @click="removeVariable(scope.row)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, but it seems there's an issue with this request. Without any specific code snippet provided, I can't analyze its details to identify potential issues or improvements based on the knowledge cutoff date (September 1st, 2021). Please provide the relevant code sections so that I could help you more accurately.
@@ -245,7 +245,7 @@ export default { | |||
}, | |||
set(val) { | |||
this.$emit('update:value', val) | |||
this.$emit('change', val) | |||
this.$emit('input', val) | |||
} | |||
}, | |||
iOptions() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The given code snippet doesn't contain any significant changes but it seems to be missing function calls and logic within the exported object's methods.
Therefore, there aren't any major inconsistencies between export default {
statement with a corresponding class declaration (not shown), or the method implementations.
So no, I don't currently see anything that requires review beyond what you've provided here. However, if we're aiming for improvements in the way options are handled internally then perhaps consider implementing proper state management using Vue.js Vuex store which can handle multiple modules effectively. But these would need substantial refactor of existing file structure and classes, not just minor syntax adjustment like moving some operations out of the constructor.
Quality Gate passedIssues Measures |
perf: Variable table overflow show tooltip and CodeEditor cursor position