Skip to content

Performance adjustments to certain components

Choose a tag to compare

@NicolasDevil NicolasDevil released this 04 Apr 15:06
· 49 commits to main since this release
  1. refactor(formkit): Optimized slot suffix calculation logic and simplified property access
  • Refactored the getComponentSlotSuffixes function into a computed property, slotSuffixMap, to avoid redundant calculations
  • Replaced conf[‘disabled’] with conf.disabled to maintain consistent property access style
  • Pre-calculated the slot suffix mappings for all configuration options to improve rendering performance
  1. refactor(component): Standardize component property type definitions and optimize property access
  • Expanded the $attrs type for the radio, select, and checkbox components from a simple object to a subset corresponding to the Element Plus component properties
  • Replaced repeated calls to useAttrs() in the popover component with the predefined attrs
  • Pre-fetched globalConfig in the checkbox component to avoid repeated calls
  • Removed redundant valueKey property definitions in the select component
  1. refactor: Optimizing asynchronous loading for Element Plus components
  2. fix(formkit): Optimized error handling for asynchronous requests and replaced the enter event with the error event
  • Changed executeRequestStack from sequential to parallel execution to improve performance
  • Added an error-handling mechanism that returns an empty array as a fallback when a request fails and triggers the error event
  • Removed unused ElMessage imports
  • Replaced the enter event with the more generic error event for error reporting
  1. fix(formkit): Fixed an issue with two-way binding updates in dynamic components
  2. refactor(formkit): Remove logic for dynamic component update triggers