import type { PropType } from 'vue' export interface ITips { text: string color: string fontSize: number } export interface IActionSheetItem { text: string subText: string color?: string fontSize?: number disabled?: boolean } export const actionSheetProps = { // 通过v-model控制弹出和收起 modelValue: { type: Boolean, default: false }, // 按钮文字数组,可以自定义颜色和字体大小 list: { type: Array as PropType, default: () => ([]) }, // 顶部提示文字 tips: { type: Object as PropType, default: () => ({ text: '', color: '', fontSize: 26 }) }, // 弹出的顶部圆角值 borderRadius: { type: Number, default: 0 }, // 点击遮罩可以关闭 maskCloseable: { type: Boolean, default: true }, // 底部取消按钮 cancelBtn: { type: Boolean, default: true }, // 底部取消按钮的文字 cancelText: { type: String, default: '取消' }, // 开启底部安全区域 // 在iPhoneX机型底部添加一定的内边距 safeAreaInsetBottom: { type: Boolean, default: false }, // z-index值 zIndex: { type: Number, default: 0 } }