xvis-ui
v1.0.0
Published
Vue 3 UI components for Xvis (XIcon, XFilterSelect, XIframe)
Downloads
18
Maintainers
Readme
xvis-ui
Vue 3 组件库(源码直发,需 Vite + @vitejs/plugin-vue 编译 SFC)。
安装
npm install xvis-uipeer:vue ^3.5、element-plus ^2.6(XFilterSelect 依赖 el-select)。
使用
全量注册
app.use(Xvis) 当前只注册 XIcon(避免与业务仓旧版 XFilterSelect / XIframe 抢全局名)。
import { createApp } from 'vue'
import Xvis from 'xvis-ui'
const app = createApp(App)
app.use(Xvis)模板中使用:
<XIcon icon="search" />按需注册
import { XIcon, XFilterSelect, XIframe } from 'xvis-ui'
app.use(XIcon)
app.use(XFilterSelect)
app.use(XIframe)类型(Volar)
在 env.d.ts 或 tsconfig 中引用:
/// <reference types="xvis-ui/components.d.ts" />组件
| 组件 | 说明 |
|---|---|
| XIcon | 图标 |
| XFilterSelect | 可过滤下拉(Element Plus el-select) |
| XIframe | iframe 通信封装 |
