Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@kyfe/hroa-ui
Advanced tools
yarn add @kyfe/hroa-ui
// 全局引入UI组件
import hroaUI from '@kyfe/hroa-ui'
Vue.use(hroaUI)
按需引入组件需要先装依赖来支持
yarn add babel-plugin-import
然后在根目录babel.config.js中配置
module.exports = {
"presets": [
"@vue/app"
],
"plugins": [
[
"import",
{
libraryName: "@kyfe/hroa-ui", // 这是我们的包名
style: (name) => {
return `${name}/index.css`;
},
camel2DashComponentName: true, // 是否需要驼峰转短线
camel2UnderlineComponentName: false, // 是否需要驼峰转下划线
},
],
]
}
最后在项目入口文件引入注册需要使用的组件
// 按需引入组件
import {
hrButton
} from "hroa-ui";
// 注册
Vue.use(hrButton)
| 注意:
组件名 | 说明 |
---|---|
hrButton | 按钮 |
hrViewItem | 表单项视图组件 |
FAQs
HR-OA-KTS部门前端公共组件
We found that @kyfe/hroa-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.