1.1.3 • Published 4 years ago

@ubrorg/footer-button v1.1.3

Weekly downloads
1
License
-
Repository
-
Last release
4 years ago

footer-button

npm.io npm.io

footer-button

使用

在页面的 page.json 中配置:

{
  "usingComponents": {
    "footer-button": "@ubrorg/footer-button/lib/index"
  }
}

在页面的 page.axml 中直接使用:

<footer-button text="按钮" url="" onTap="handleTap">
    <view slot="left">左侧内容</view>
    <view slot="right">右侧内容</view>
</footer-button>

option参数

属性类型默认值解释
textstring''按钮文案
backgroundHexColor'#0368d9'背景色
textSizestring'36rpx'字体大小
textColorHexColor'#ffffff'字体颜色
iconUrlstring''图标url
iconWithstring'36rpx'图标宽度
iconHeightstring'36rpx'图标高度
modestring'aspectFill'图标模式
urlstring''跳转链接
onTapEventHandle | 点击事件

开发

  1. yarn 或者 ayarn阿里内网)安装依赖
  2. 小程序 IDE 打开组件(下载地址

更多命令

  • miapp newbranch: 新建分支
  • miapp push: 提交代码
  • miapp prepub: 预发(发布 beta 版本)
  • miapp publish: 正式发布
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago