Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@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 1 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.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.