Skip to content

Releases: wxsub/element-plus-formkit

Add mention module and inputTag module

11 Apr 07:24

Choose a tag to compare

  1. Add a new mention module component (src/modules/mention.vue) and register it in the async modules loader (src/asyncModulesLoader.ts)
  2. Import the Popover component (modules/popover.vue) and add it to the named exports alongside Upload, Address, and Uploader so the Popover component is available in the library's public API.
  3. Manage popover visibility with a new visible ref bound via v-model:visible and add handleCascaderChange to auto-close the popover when cascader is single-select. Wire the cascader @change to that handler, update template class bindings to use CSS modules, and animate/rotate the dropdown icon when the popover is open. Also adjust the label separator from ' | ' to ' | ' and minor markup/style cleanups.
  4. Convert component styles to CSS Modules and update templates to use $style bindings (checkbox, select, upload, formkit). Add scoped class generation in vite config (generateScopedName: '[hash:5]'). Refactor upload component to use CSS variables for sizing and computed inline style, replace deep/global selectors with :global as needed, and move row-gap ha
  5. Enhance FileUploader.isValidFileType to more robustly parse and match typePatterns. Patterns are split by commas/whitespace, and an empty set of patterns allows any file. Matching now supports file extension checks ('.ext'), wildcard MIME types ('type/*'), exact MIME matches, and regex patterns (case-insensitive) with safe try/catch handling. File name/type are normalized to lowercase and missing properties are handled gracefully.

Urgent version updates and bug fixes

05 Apr 01:15

Choose a tag to compare

Performance adjustments to certain components

04 Apr 15:06

Choose a tag to compare

  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

Replace Suspense with CSS skeleton loader and simplify loading behavior

17 Mar 08:35
39b6d2b

Choose a tag to compare

Resolve Uploader method type exports warning

17 Mar 01:03
0cb2190

Choose a tag to compare

Update types/element-plus-formkit.d.ts to import UploaderClass and export typings for Address and Uploader. Adds import from '@/utils/upload.class', exports Address as a Component, exposes Uploader as both a value (typeof UploaderClass) and a type alias, so consumers have proper TypeScript typings for the uploader utility and Address component.

Refactor request stack handling

15 Mar 04:49

Choose a tag to compare

  1. refactor how requester configs are processed in formkit.vue. Removed the reactive Stacks array and onMounted initialization; introduced a computed requesterConfigs (filters props.config for items with requester and non-standalone types) and a deep, immediate watch that calls executeRequestStack when items change. executeRequestStack now accepts an items array iterator, making request execution respond to dynamic config updates and improving reactivity handling.
  2. Replace the deprecated upload size prop with explicit width and height props (defaults 80). In the component, add autoCalcSize to compute icon/progress sizes, update template bindings and styles to use width/height, and adjust icon/progress sizing.

Add fileSize limit to upload module

08 Mar 04:41

Choose a tag to compare

Introduce a new fileSize prop (Number, MB, default 0 = no limit) to the upload module and enforce client-side file size checks. Files exceeding the limit are filtered out and a localized warning is shown via ElMessage; useGlobalConfig is used to determine locale.

Add events support and bump version

08 Mar 03:44

Choose a tag to compare

Add support for a config.events object so modules can attach event handlers via the config. Implemented setEvents(conf) in src/formkit.vue to normalize event keys (converting names like "mouseenter" or "on-click" to Vue's onXxx prop format) and merge them with existing props via v-bind

modified the onChange function to be asynchronous to support nextTick.

07 Feb 07:00

Choose a tag to compare

v0.3.3

modified the onChange function to be asynchronous to support nextTick.

Fixed error handling when the uploader component lacks a requester

04 Feb 03:53
144b0e8

Choose a tag to compare

  1. Added error throwing when the requester is not configured in upload.class.ts
  2. Removed unused type imports in upload.vue
  3. Updated export naming in index.ts for consistency