import { CSSProperties, PropType } from 'vue'; export interface SwiperActionOptions { text: string style?: { borderRadius?: number backgroundColor?: string color?: string fontSize?: number } icon?: string iconSize?: number } export const swiperActionItemProps = { // 是否显示滑动菜单 show: { type: Boolean, default: false }, // 标识符,如果是v-for可用index的索引值 name: { type: [String, Number], default: '' }, // 右侧按钮内容 options: { type: Array as PropType, default() { return [] } }, // 是否禁用 disabled: { type: Boolean, default: false }, // 是否自动关闭其他swipe按钮组 autoClose: { type: Boolean, default: true }, // 滑动距离阈值,大于此值才会打开菜单 threshold: { type: Number, default: 20 }, // 动画过渡时间,单位ms duration: { type: Number, default: 300 } }