import { PropType } from 'vue'; import { commonProps } from '../../common/props'; export type NoticePlayStatus = 'play' | 'paused' export type NoticeMode = 'horizontal' | 'vertical' export const columnNoticeProps = { // 显示的内容 list: { type: Array, default() { return [] } }, // 是否显示 show: { type: Boolean, default: true }, // 播放状态 // play -> 播放 paused -> 暂停 playStatus: { type: String as PropType, default: 'play' }, // 滚动方向 // horizontal -> 水平滚动 vertical -> 垂直滚动 mode: { type: String as PropType, default: 'horizontal' }, // 是否显示左边图标 leftIcon: { type: Boolean, default: true }, // 左边图标的名称 leftIconName: { type: String, default: 'sound' }, // 左边图标的大小 leftIconSize: { type: Number, default: 34 }, // 是否显示右边的图标 rightIcon: { type: Boolean, default: false }, // 右边图标的名称 rightIconName: { type: String, default: 'right' }, // 右边图标的大小 rightIconSize: { type: Number, default: 26 }, // 是否显示关闭按钮 closeBtn: { type: Boolean, default: false }, // 圆角 radius: { type: Number, default: 0 }, // 内边距 padding: { type: String, default: '18rpx 24rpx' }, // 自动播放 autoplay: { type: Boolean, default: true }, // 滚动周期 duration: { type: Number, default: 2000 }, ...commonProps }