更新记录
1.0.1(2023-08-28) 下载此版本
美化图标与文字样式
1.0.0(2023-03-18) 下载此版本
1.0.0
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
小程序button open-type能力 Fab悬浮按钮
组件名:wx-fab-button 代码块:
uFab
点击可展开一个图形按钮菜单
查看文档
如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
<template>
<view class="content">
<wx-fab-button
:pattern="pattern"
:content="content"
:horizontal="horizontal"
:vertical="vertical"
:direction="direction"
></wx-fab-button>
</view>
</template>
<script>
import WxFabButton from '@/uni_modules/wx-fab-button/components/wx-fab-button/wx-fab-button.vue'
export default {
components:{WxFabButton},
data() {
return {
horizontal: 'right',
vertical: 'bottom',
direction: 'vertical',
pattern: {
color: '#7A7E83',
backgroundColor: '#fff',
selectedColor: '#cd0018;',
buttonColor: '#cd0018;',
iconColor: '#fff'
},
content: [
{
text: '客服',
type:'contact',
icon:'headphones',
size:16,
color:'#333'
},
{
text: '建议',
type:'feedback',
icon:'mail-open',
size:16,
color:'#333'
},
{
text: '分享',
type:'share',
icon:'undo-filled',
size:16,
color:'#333'
}
]
}
},
methods: {
}
}
</script>
<style>
.content{
width: 100vw;
height: 100vh;
}
</style>