Gathering detailed insights and metrics for unplugin-quicktvui
Gathering detailed insights and metrics for unplugin-quicktvui
Gathering detailed insights and metrics for unplugin-quicktvui
Gathering detailed insights and metrics for unplugin-quicktvui
🔌 Import Element Plus on demand. Support Vite, Webpack, Vue CLI, Rollup and esbuild.
npm install unplugin-quicktvui
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.7
Supply Chain
97.9
Quality
80.3
Maintenance
100
Vulnerability
100
License
TypeScript (99.11%)
JavaScript (0.89%)
Total Downloads
545
Last Day
1
Last Week
17
Last Month
29
Last Year
545
MIT License
237 Stars
295 Commits
36 Forks
10 Watchers
3 Branches
27 Contributors
Updated on Jun 30, 2025
Minified
Minified + Gzipped
Latest Version
0.0.7
Package Id
unplugin-quicktvui@0.0.7
Unpacked Size
30.26 kB
Size
7.21 kB
File Count
31
NPM Version
10.8.2
Node Version
20.18.1
Published on
Dec 02, 2024
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
325%
17
Compared to previous week
Last Month
26.1%
29
Compared to previous month
Last Year
0%
545
Compared to previous year
这个仓库是用于 Element Plus
相关的 unplugin 插件工具。感谢 @antfu。
1npm i unplugin-element-plus -D
1// vite.config.ts 2import ElementPlus from 'unplugin-element-plus/vite' 3 4export default { 5 plugins: [ 6 ElementPlus({ 7 // options 8 }), 9 ], 10}
1// rollup.config.js 2import ElementPlus from 'unplugin-element-plus/rollup' 3 4export default { 5 plugins: [ 6 ElementPlus({ 7 // options 8 }), 9 ], 10}
1// esbuild.config.js 2import { build } from 'esbuild' 3 4build({ 5 plugins: [ 6 require('unplugin-element-plus/esbuild')({ 7 // options 8 }), 9 ], 10})
1// webpack.config.js 2module.exports = { 3 /* ... */ 4 plugins: [ 5 require('unplugin-element-plus/webpack')({ 6 // options 7 }), 8 ], 9}
1// vue.config.js 2module.exports = { 3 configureWebpack: { 4 plugins: [ 5 require('unplugin-element-plus/webpack')({ 6 // options 7 }), 8 ], 9 }, 10}
插件会自动转换:
1import { ElButton } from 'element-plus' 2 3// ↓ ↓ ↓ ↓ ↓ ↓ 4 5import { ElButton } from 'element-plus' 6import 'element-plus/es/components/button/style/css'
useSource
1type UseSource = boolean
1// useSource: false 2import { ElButton } from 'element-plus' 3 4// ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElButton } from 'element-plus' 7import 'element-plus/es/components/button/style/css' 8 9// useSource: true 10import { ElButton } from 'element-plus' 11 12// ↓ ↓ ↓ ↓ ↓ ↓ 13 14import { ElButton } from 'element-plus' 15import 'element-plus/es/components/button/style/index'
lib
一般这个是用不到的,不过作为一个通用选项,还是暴露了出来,如果有用到这个的结构一定要和 ElementPlus 的输出包结构一致,详见 unpkg.com
1type Lib = string
default: 'element-plus'
1// lib: 'other-lib' 2import { ElButton } from 'other-lib' 3 4// ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElButton } from 'other-lib' 7import 'other-lib/es/components/button/style/css'
1type Format = 'esm' | 'cjs'
default: 'esm'
esm
对应 [lib]/es/components/*
cjs
对应 [lib]/lib/components/*
/es
对应 ES Module 输出/lib
对应 CommonJS 的输出使用该选项来选择使用哪一个包。
1// format: 'cjs' 2import { ElButton } from 'element-plus' 3 4// ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElButton } from 'element-plus' 7import 'element-plus/lib/components/button/style/css'
1type Prefix = string
1// prefix = Al 2import { AlButton } from 'xx-lib'
ignoreComponents
1type IgnoreComponents = string[]
跳过组件列表的样式导入。 对于没有样式文件的 Element Plus 组件很有用。 在编写此文档时,仅有“AutoResizer”组件。
1// format: 'cjs' 2import { ElAutoResizer } from 'element-plus' 3 4// ↓ ↓ ↓ ↓ ↓ ↓ 5 6import { ElAutoResizer } from 'element-plus'
defaultLocale
替换默认语言,你可以 在这 查看所有语言列表。
No vulnerabilities found.
No security vulnerabilities found.