oeos-v3-components
1. 组件的使用
- 在vue3项目的main.js里引入
import 'oeos-v3-components/dist/style.css'
import oeosV3Componets from 'oeos-v3-components'
app.use(oeosV3Componets)
- 在任何一个.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('嘿嘿')
- 在vue3项目中使用自定义指令 当前项目支持的自定义指令有以下
v-copy
v-number
v-focus
Related Packages
@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 | ||
| 0.0.58 | ^3.4.15 | ||
| 0.0.57 | ^3.4.15 | ||
| 0.0.56 | ^3.4.15 | ||
| 0.0.55 | ^3.4.15 | ||
| 0.0.54 | ^3.4.15 | ||
| 0.0.53 | ^3.4.15 | ||
| 0.0.52 | ^3.4.15 | ||
| 0.0.51 | ^3.4.15 | ||
| 0.0.50 | ^3.4.15 | ||
| 0.0.49 | ^3.4.15 | ||
| 0.0.48 | ^3.4.15 | ||
| 0.0.47 | ^3.4.15 | ||
| 0.0.46 | ^3.4.15 | ||
| 0.0.45 | ^3.4.15 | ||
| 0.0.44 | ^3.4.15 | ||
| 0.0.43 | ^3.4.15 | ||
| 0.0.42 | ^3.4.15 | ||
| 0.0.41 | ^3.4.15 | ||
| 0.0.40 | ^3.4.15 | ||
| 0.0.39 | ^3.4.15 | ||
| 0.0.38 | ^3.4.15 | ||
| 0.0.37 | ^3.4.15 | ||
| 0.0.36 | ^3.4.15 | ||
| 0.0.35 | ^3.4.15 | ||
| 0.0.34 | ^3.4.15 |
Showing the latest 30 of 59. See every release on npm