Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xsyx/hanzo-button

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xsyx/hanzo-button

按钮组件

  • 0.1.1
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
7
Weekly downloads
 
Created
Source

按钮

changelog

v0.1.1
  • 新增 noMargin 接口,去掉边距
v0.1.0
  • 组件初始化
适用场景

各个按钮

基本调用
 <hanzo-button>按钮</hanzo-button>
参数 props
参数说明类型可选值默认值可选性
type按钮类型Stringprimary,warn,info,error,success,outlinev0.1.0
inline是否为行内元素Booleanfalsev0.1.0
size按钮大小Stringlarge, smallv0.1.0
shape按钮形状Stringcircle,squarecirclev0.1.0
disabled禁用状态Booleanfalsev0.1.0
loading是否加载中Booleanfalsev0.1.0
open-type微信开放能力String-v0.1.0
noMargin是否有边距Boolean-v0.1.1
事件 event
名称参数说明备注
onTap按钮在可用状态被点击时触发
onGetUserInfo用户点击该按钮时,会返回获取到的用户信息
onContact客服消息回调
onGetPhoneNumber获取用户手机号回调
onError当使用开放能力时,发生错误的回调
相关演示

An image

FAQs

Package last updated on 12 Aug 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc