Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@hi-ui/button
Advanced tools
引导用户去触发操作的区域
用户需要执行有具体含义的动作、命令
连接页面之间、页面和弹窗、页面和浮层面板的跳转
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 设置按钮类型 | string | 'primary' | 'line' | 'success' | 'danger' | 'default' | 'default' |
appearance | 设置按钮外观 | string | 'link' | 'button' | 'button' |
disabled | 设置按钮是否禁用 | boolean | true | false | false |
size | 设置按钮尺寸 | string | 'lg' | 'md' | 'sm' | 'default' |
icon | 设置按钮图标 | string | 详见 <Icon/> 组件 ︎ | - |
href | 设置按钮链接,设置后将用 a 标签渲染按钮 | string | ︎ | - |
target | 同 a 标签的 target 属性,仅在设置 href 后有效 | string | ︎'_self' | '_blank' | '_parent' | '_top' | - |
loading | 是否显示 loading | boolean | ︎- | false |
名称 | 说明 | 类型 | 参数 | 返回值 |
---|---|---|---|---|
onClick | 点击按钮时的回调 | (event: MouseEvent) => void | event: 鼠标事件对象 | - |
参数 | 变更类型 | 变更内容 | 解决的问题 |
---|---|---|---|
type | update | 删除'line',新增'secondary' | |
size | update | 变更为 'sm' | 'md' |
appearance | update | 删除'button',新增'filled'、'line' | |
shape | feature | 增加形状 'round' | 'square' |
FAQs
A sub-package for @hi-ui/hiui.
The npm package @hi-ui/button receives a total of 30 weekly downloads. As such, @hi-ui/button popularity was classified as not popular.
We found that @hi-ui/button demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.