Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@hb-ui/element-ui
Advanced tools
基于 Element UI 二次封装的一些常用组件
第一感官像是一个普通的 Vite 应用,事实确实如此 -- 鲁迅
├─┬ components 组件源码目录
│ ├── form
│ └── table
│
├─┬ es 组件输出目录
│ ├── form
│ └── table
│
├── scripts 组件构建脚本
├── server mock server
│
├─┬ view 开发组件实时预览
│ ├── form form 使用案例
│ └── table table 使用案例
│
└── vite.config.js
即 Vite 应用相同的开发方式
npm run dev
构建脚本会将 components/*
构建到 es/*
npm run build
npm run dev
看实际效果tsx
or jsx
// 你可以根据 TS 类型提示使用
import { Form, FormProps } from '@hb-ui/element-ui'
export default {
render() {
/**
* 如果你用的是 .jsx
* @type {import('@hb-ui/element-ui').FormProps}
*/
const formProps: FormProps = {
// Form config
}
return <Form {...{ props: formProps }} />
},
}
// 你可以根据 TS 类型提示使用
import { Table, TableProps } from '@hb-ui/element-ui'
export default {
render() {
/**
* 如果你用的是 .jsx
* @type {import('@hb-ui/element-ui').TableProps}
*/
const tableProps: TableProps = {
// Table config
}
return <Table {...{ props: tableProps }} />
},
}
FAQs
基于 Element UI 二次封装的一些常用组件
We found that @hb-ui/element-ui 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.