
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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框架
The npm package @onbright/oui receives a total of 3 weekly downloads. As such, @onbright/oui popularity was classified as not popular.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.