oeos-v3-components

1. 在vue3项目的main.js里引入
5,727 1
Install
npm install oeos-v3-components
Latest Version:0.0.64
Vue:3
Last Updated:Jun 11, 2026
Links: GitHub  ·  npm
Maintainer: liulihao
1. 组件的使用
  1. 在vue3项目的main.js里引入
import 'oeos-v3-components/dist/style.css'
import oeosV3Componets from 'oeos-v3-components'
app.use(oeosV3Componets)
  1. 在任何一个.vue文件下, 可直接引入组件
<o-button>这是o-button</o-button>
<o-title title="这是o-title"></o-title>

3 在vue3项目中使用公共函数

// 如果想将所有函数挂载至全局使用
import { utils } from 'oeos-v3-components'
// 将oeos-v3-components下的公共函数赋值到全局
Object.keys(utils).forEach((v) => {
  app.config.globalProperties[v] = utils[v]
})
然后通过`proxy.$toast('哈哈')`, 这种方式去使用函数

// 如果想单独的引用某个函数
import { $toast } from 'oeos-v3-components'
$toast('嘿嘿')
  1. 在vue3项目中使用自定义指令 当前项目支持的自定义指令有以下
v-copy
v-number
v-focus

Related Packages

oeos-components

Vue3 中基于Element-plus二次封装基础组件文档

15,874 1
vue2-recaptchav3

VueJs Google Recaptcha V3

3,118 2
ahrefs-v3

A type-friendly universal JavaScript client for the Ahrefs API v3 endpoints.

903 2
reka-ui

Vue port for Radix UI Primitives.

33,174,224 6,907
@storybook/vue3

Storybook Vue 3 renderer: Develop, document, and test UI components in isolation

31,443,686 91,389

Version History

Version Released Vue License
0.0.64 ^3.4.15
0.0.62 ^3.4.15
0.0.61 ^3.4.15
0.0.60 ^3.4.15
0.0.59 ^3.4.15