@anfo/ui
AnfoUI`@anfo/ui` 主要包含一些非必要但有用的Vue3组件。
4,987
10,207
| Install | |
|---|---|
npm install @anfo/ui |
|
| Latest Version: | 1.1.14 |
| Vue: | 3 |
| Last Updated: | Oct 23, 2026 |
| Links: | GitHub · npm |
Maintainer: longjiahui
Anfo UI
AnfoUI@anfo/ui 主要包含一些非必要但有用的Vue3组件。
- 👉 Github
- 👉 Documentation
安装
npm i @anfo/ui@latest
引用
// main.js
import { createApp } from 'vue'
import App from './App.vue'
let app = createApp(App)
import AnfoUI from '@anfo/ui'
import '@anfo/ui/style'
app.use(AnfoUI)
app.mount('#app')
按需引用
// main.js
import { createApp } from 'vue'
import App from './App.vue'
let app = createApp(App)
import { OrderableContainer } from '@anfo/ui'
import '@anfo/ui/style'
app.component('anfo-orderable-container', OrderableContainer)
app.mount('#app')
简单的例子
这是一个顺序拖拽容器(OrderableContainer)
<template>
<div class="example-demo" style="width: 200px">
<!-- 默认的组件名字带anfo-前缀 -->
<anfo-orderable-container v-model:datas="datas" class="v align-center">
<template #="{ data }">
<div class="h justify-center clickable" :style="{
width: '100px',
height: '30px',
color: 'white',
background: `#${(0xffffff / 5 * data).toString(16)}`,
}">{{ data }}</div>
</template>
</anfo-orderable-container>
</div>
</template>
<script setup>
import { ref, watch } from 'vue'
let datas = ref([1, 2, 3])
</script>
Related Packages
@anfo/nuxt-dialogs-plugin
Nuxt module that auto-scans a directory for Vue dialog/drawer components and exp...
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.14 | ^3.2.45 | ||
| 1.1.13 | ^3.2.45 | ||
| 1.1.12 | ^3.2.45 | ||
| 1.1.11 | ^3.2.45 | ||
| 1.1.9 | ^3.2.45 | ||
| 1.1.8 | ^3.2.45 | ||
| 1.1.7 | ^3.2.45 | ||
| 1.1.6 | ^3.2.45 | ||
| 1.1.4 | ^3.2.45 | ||
| 1.1.3 | ^3.2.45 | ||
| 1.1.2 | ^3.2.45 | ||
| 1.1.1 | ^3.2.45 | ||
| 1.1.0 | ^3.2.45 | ||
| 1.0.4 | ^3.2.45 | ||
| 1.0.2 | ^3.2.45 | ||
| 1.0.1 | ^3.2.45 | ||
| 1.0.0 | ^3.2.45 | ||
| 0.2.91 | ^3.0.0 | ||
| 0.2.89 | ^3.0.0 | ||
| 0.2.88 | ^3.0.0 | ||
| 0.2.86 | ^3.0.0 | ||
| 0.2.85 | ^3.0.0 | ||
| 0.2.84 | ^3.0.0 | ||
| 0.2.83 | ^3.0.0 | ||
| 0.2.82 | ^3.0.0 | ||
| 0.2.81 | ^3.0.0 | ||
| 0.2.79 | ^3.0.0 | ||
| 0.2.78 | ^3.0.0 | ||
| 0.2.77 | ^3.0.0 | ||
| 0.2.76 | ^3.0.0 |
Showing the latest 30 of 138. See every release on npm