# uni-fab
## Instructions
组件名:uni-fab
代码块: uFab
点击下载&安装
### Syntax
- 使用 ``(或 ``,当需要包裹子节点时)。
- 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。
#### Properties
| 属性名 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| pattern | Object | - | 可选样式配置项 |
| horizontal | String | 'left' | 水平对齐方式。 left :左对齐, right :右对齐 |
| vertical | String | 'bottom' | 垂直对齐方式。 bottom :下对齐, top :上对齐 |
| direction | String | 'horizontal' | 展开菜单显示方式。 horizontal :水平显示, vertical :垂直显示 |
| popMenu | Boolean | true | 是否使用弹出菜单 |
| content | Array | - | 展开菜单内容配置项 |
#### Events
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| @trigger | Function | 展开菜单点击事件,返回点击信息 |
| @fabClick | Function | 悬浮按钮点击事件 |
#### Platform Compatibility
See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-fab.html`
### Examples
### Example (Example 1)
```vue
```
### Example (Example 2)
```html
```
### Example (Example 3)
```vue
uni-ui 规范颜色色板,通过内置样式快速指定元素前景和背景色。
```
### Example (Example 4)
```html
uni-ui 规范颜色色板,通过内置样式快速指定元素前景和背景色。
```
### Example (Example 5)
```html
```
### Example (Example 6)
```html
```
Reference:
- [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-fab.html)
- [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=fab)
- [Local Example](examples/uni-ui/uni-fab.vue)