lifeline-ui
兼容vue2和vue3的组件库
1,060
1
| Install | |
|---|---|
npm install lifeline-ui |
|
| Latest Version: | 0.4.0 |
| Vue: | 2 · 3 |
| License: | ISC |
| Last Updated: | Sep 17, 2026 |
| Links: | GitHub · npm |
Maintainer: lingjinming
lifeline-ui-vite
兼容vue2和vue3的组件库
文档地址
https://lifeline-ui-vite.pages.dev/
安装
npm install lifeline-ui
# 或
yarn add lifeline-ui
# 或
pnpm add lifeline-ui
pnpm 用户注意
组件库通过 postinstall 脚本根据你项目中的 Vue 版本(2.7 / 3)自动切换对应的构建产物。pnpm v10+ 默认禁止运行依赖包的构建脚本,会导致安装后无法使用。
请在项目根目录 package.json 中添加:
{
"pnpm": {
"onlyBuiltDependencies": ["lifeline-ui", "vue-demi"]
}
}
配置后需删除
node_modules和pnpm-lock.yaml重新安装才能生效。
使用
引入样式
import 'lifeline-ui/dist/style.css'
全量注册
import LifelineUI from 'lifeline-ui'
app.use(LifelineUI) // Vue 3: app.use;Vue 2: Vue.use
按需引入
import { LButton, LTabs, LWrap, LDetail } from 'lifeline-ui'
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.4.0 | 2.7.14 || | ISC | |
| 0.3.3 | 2.7.14 || | ISC | |
| 0.3.2 | 2.7.14 || | ISC | |
| 0.3.1 | 2.7.14 || | ISC | |
| 0.3.0 | 2.7.14 || | ISC | |
| 0.2.9 | 2.7.14 || | ISC | |
| 0.2.8 | 2.7.14 || | ISC | |
| 0.2.7 | 2.7.14 || | ISC | |
| 0.2.6 | 2.7.14 || | ISC | |
| 0.2.5 | 2.7.14 || | ISC | |
| 0.2.4 | 2.7.14 || | ISC | |
| 0.2.3 | 2.7.14 || | ISC | |
| 0.2.2 | ^2.0.0 || | ISC | |
| 0.2.1 | ^2.0.0 || | ISC | |
| 0.2.0 | ^2.0.0 || | ISC | |
| 0.1.90 | ^2.0.0 || | ISC | |
| 0.1.9 | ^2.0.0 || | ISC | |
| 0.1.8 | ^2.0.0 || | ISC | |
| 0.1.7 | ^2.0.0 || | ISC | |
| 0.1.6 | ^2.0.0 || | ISC | |
| 0.1.5 | ^2.0.0 || | ISC | |
| 0.1.2 | ^2.0.0 || | ISC | |
| 0.1.1 | ^2.0.0 || | ISC | |
| 0.1.0 | ^2.0.0 || | ISC | |
| 0.0.8 | ^2.0.0 || | ISC | |
| 0.0.7 | ^2.0.0 || | ISC | |
| 0.0.6 | ^2.0.0 || | ISC | |
| 0.0.5 | ^2.0.0 || | ISC | |
| 0.0.4 | ^2.0.0 || | ISC | |
| 0.0.3 | ^2.0.0 || | ISC |
Showing the latest 30 of 32. See every release on npm