Skip to content

Migration Guide ​

Steps and notes for migrating from other UI libraries to lh-ui-plus.

From Element Plus ​

Key Differences ​

FeatureElement Pluslh-ui-plus
Prefixel-lh-
ThemeSCSS variablesCSS variables (88+ tokens)
Dark ModeBuilt-in (toggle via html.dark class)Built-in (data-theme + useLhTheme)
Pattern Background❌✅ 6 presets

Component Mapping ​

Element Pluslh-ui-plus
ElButtonLhButton
ElInputLhInput
ElFormLhForm
ElSelectLhSelect
ElDialogLhDialog

Migration Steps ​

  1. Replace import paths
  2. Replace component tag prefixes
  3. Check themeVars configuration
  4. Run pnpm lint and pnpm typecheck

From Ant Design Vue ​

Ant Design uses a- prefix, lh-ui-plus uses lh- prefix.

Ant Design Vuelh-ui-plus
a-buttonLhButton
a-inputLhInput
a-formLhForm

General Tips ​

  1. Run tests first — Ensure project builds before migrating
  2. Replace one component at a time — Do not replace all at once
  3. Check theme differences — CSS variables vs SCSS variables mapping
  4. Review API docs — Confirm props/events compatibility

Beauty of tradition, foundation of code