import { PropType } from "vue" import { commonProps } from "../../common" export interface IBtnListItem { text: string imgUrl: string icon: string textColor?: string textSize?: string | number bgColor?: string iconColor?: string iconSize?: string | number imgWidth?: number imgHeight?: number } export const fabProps = { btnList: { type: Array as PropType, default() { return [] } }, // 自定义悬浮按钮内容 customBtn: { type: Boolean, default: false }, // 悬浮按钮的宽度 width: { type: [String, Number], default: 88 }, // 悬浮按钮的高度 height: { type: [String, Number], default: 88 }, // 图标大小 iconSize: { type: [String, Number], default: 64 }, // 图标名称 icon: { type: String, default: 'open' }, // 按钮圆角 radius: { type: [String, Number], default: '50%' }, // 按钮距离左边的位置 left: { type: [String, Number], default: 'auto' }, // 按钮距离右边的位置 right: { type: [String, Number], default: 'auto' }, // 按钮距离底部的位置 bottom: { type: [String, Number], default: 100 }, // 展示动画类型 up 往上展示 around 环绕 animationType: { type: String, default: 'up' }, // 当动画为圆环时,每个弹出按钮之间的距离, 单位px aroundBtnDistance: { type: Number, default: 10 }, zIndex: { type: Number, default: 0 }, // 显示遮罩 showMask: { type: Boolean, default: true }, // 点击遮罩是否可以关闭 maskCloseable: { type: Boolean, default: true }, ...commonProps }