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 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

index.less

3

index.js

@@ -59,3 +59,4 @@ Component({

sendMessageImg: String,
showMessageCard: Boolean
showMessageCard: Boolean,
noMargin: Boolean
},

@@ -62,0 +63,0 @@

{
"name": "@xsyx/hanzo-button",
"version": "0.1.0",
"version": "0.1.1",
"description": "按钮组件",

@@ -5,0 +5,0 @@ "main": "index.js",

### 按钮
### changelog
#### v0.1.1
- 新增 noMargin 接口,去掉边距
#### v0.1.0
- 组件初始化
#### 适用场景
>
> 各个按钮

@@ -13,13 +23,14 @@ #### 基本调用

| :--: | :-------: | :----: | :----: | :----: | :----: |
| type | 按钮类型 | String | primary,warn,info,error,success,outline | | - |
| inline | 是否为行内元素 | Boolean | | false | - |
| size | 按钮大小 | String | large, small | | - |
| shape | 按钮形状 | String | circle,square | circle | - |
| disabled | 禁用状态 | Boolean | | false | - |
| loading | 是否加载中 | Boolean | | false | - |
| open-type | 微信开放能力 | String | | - | - |
| type | 按钮类型 | String | primary,warn,info,error,success,outline | | v0.1.0 |
| inline | 是否为行内元素 | Boolean | | false | v0.1.0 |
| size | 按钮大小 | String | large, small | | v0.1.0 |
| shape | 按钮形状 | String | circle,square | circle | v0.1.0 |
| disabled | 禁用状态 | Boolean | | false | v0.1.0 |
| loading | 是否加载中 | Boolean | | false | v0.1.0 |
| open-type | 微信开放能力 | String | | - | v0.1.0 |
| noMargin | 是否有边距 | Boolean | | - | v0.1.1 |
#### 事件 event
| 名称 | 参数 | 说明 | 备注 |
| ------------- |:-------------:| :--------------------| :---------------|
| ------------- |:-------------:| :--------------------| :---------------|
| onTap | | 按钮在可用状态被点击时触发 | |

@@ -26,0 +37,0 @@ | onGetUserInfo | | 用户点击该按钮时,会返回获取到的用户信息 | |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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