@dativa-lv/lx-ui

中文文档
2.3.12发布于 2026/11/05MITTypeScriptESM + CJS近 30 天下载 5662

LX/UI

原始使用文档
文档目录7 节
  1. Play around
  2. Read the docs
  3. Get
  4. Use
  5. Extend
  6. Develop
  7. Vite Plugins

lx/ui

Powerful and flexible Vue.js 3 components and vanilla CSS styles library, originally developed for various enterprise apps.

Focus on business logic, not boilerplate.

NPM Downloads NPM Version NPM License

Vue.js Version Vite Version Package Manager

LX/UI

Play around

Check out our 🌐 Demo and ℹ️ List of Components for live demo sandbox.

Read the docs

Get

Get using bun:

bun add '@dativa-lv/lx-ui@latest'

Get using pnpm:

pnpm i '@dativa-lv/lx-ui@latest'

For migration tips refer to ℹ️ Migration Guide

Use

Install with pinia store:

import { createPinia } from 'pinia';
import { createLx } from '@dativa-lv/lx-ui';
import App from '@/App.vue';
…
const myApp = createApp(App);
myApp.use(createPinia());
myApp.use(createLx());
…

Make sure to import a proper CSS bundle in your main entry file such as main.js:

import '@dativa-lv/lx-ui/dist/bundles/lx-bt-demo.css';

LX/UI styles apply only within an element that has the .lx class. Usually, this should be the application root element:

<body class="lx">
  <div id="app"></div>
</body>

One can also embed LX inside another application by wrapping it in a .lx element

<div class="lx">
  <LxButton label="Click me" />
</div>

Most convenient way of using the components is by using them inside LxShell:

<template>
  <LxShell>
    <RouterView />
  </LxShell>
</template>

Extend

  • lx/builders - a companion library containing declarative design tools for views, forms, etc.

Develop

bun install
bun run dev

Read more about development in ℹ️ Development manual

Vite Plugins

LX/UI now includes several Vite plugins to enhance your development experience and application security. These plugins are designed to seamlessly integrate with your Vite-based projects.

For detailed information on available plugins and their usage, please refer to our ℹ️ Vite Plugins Documentation.

版本与发布记录

@dativa-lv/lx-ui 共发布 49 个版本,首次发布于 2026/01/22;过去 12 个月发布了 49 个版本。

版本发布日期距今
2.3.12latest2026/11/056 天前
2.3.112026/10/2913 天前
2.3.102026/10/2319 天前
2.3.92026/10/2220 天前
2.3.82026/10/1527 天前
2.3.72026/10/081 个月前

其他发布通道:beta → 2.0.4-beta.3。

关于 @dativa-lv/lx-ui 的常见问题

@dativa-lv/lx-ui 是什么?

LX/UI

如何安装 @dativa-lv/lx-ui?

在项目目录运行 npm install @dativa-lv/lx-ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^3.5.17)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@dativa-lv/lx-ui 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@dativa-lv/lx-ui 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@dativa-lv/lx-ui 可以商用吗?

@dativa-lv/lx-ui 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@dativa-lv/lx-ui 的下载量有多少?

根据 npm 官方下载统计,@dativa-lv/lx-ui 在 2026/10/12 – 2026/11/10 这 30 天内被下载 5,662 次,日均约 189 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dativa-lv/lx-ui 还在维护吗?

最新版本 2.3.12 发布于 2026/11/05(6 天前);至今共发布 49 个版本,其中过去 12 个月发布了 49 个;首次发布于 2026/01/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。