Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@onbright/oui
Advanced tools
oui UI,是uni-app生态优秀的UI框架
# npm方式安装
npm i oui
main.js
引入oui库// main.js
import oui from 'oui';
Vue.use(oui);
App.vue
引入基础样式(注意style标签需声明scss属性支持)/* App.vue */
<style lang="scss">
@import "oui/index.scss";
</style>
uni.scss
引入全局scss变量文件/* uni.scss */
@import "oui/theme.scss";
pages.json
配置easycom规则(按需引入)// pages.json
{
"easycom": {
// npm安装的方式不需要前面的"@/",下载安装的方式需要"@/"
// npm安装方式
"^o-(.*)": "oui/components/o-$1/o-$1.vue"
// 下载安装方式
// "^o-(.*)": "@/oui/components/o-$1/o-$1.vue"
},
// 此为本身已有的内容
"pages": [
// ......
]
}
配置easycom规则后,自动按需引入,无需import
组件,直接引用即可。
<template>
<o-button>按钮</o-button>
</template>
FAQs
oui UI,是uni-app的UI框架
We found that @onbright/oui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.