Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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
看实际效果// 你可以根据 TS 类型提示使用
import { Form, FormProps } from '@hb-ui/element-ui'
export default {
render() {
/**
* 如果你用的是 .jsx
* @type {import('@hb-ui/element-ui').FormProps}
*/
const formProps: FormProps = {
// 组件属性、element-ui 属性
items: [
{
label: '名称',
name: 'name',
},
],
// element-ui 事件
on: {
validate(prop) { },
},
}
return <Form $porps={formProps} />
},
}
// 你可以根据 TS 类型提示使用
import { Table, TableProps } from '@hb-ui/element-ui'
export default {
render() {
/**
* 如果你用的是 .jsx
* @type {import('@hb-ui/element-ui').TableProps}
*/
const tableProps: TableProps = {
// 组件属性、element-ui 属性
columns: [
{
label: '名称',
prop: 'name',
},
],
// element-ui 事件
on: {
'selection-change'(rows) { },
},
}
return <Table $props={tableProps} />
},
}
import('vue').VNodeData
FAQs
基于 Element UI 二次封装的一些常用组件
The npm package @hb-ui/element-ui receives a total of 0 weekly downloads. As such, @hb-ui/element-ui popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.