oil-station/gasStation-uni/node_modules/uview-ui/components/u-row-notice/props.js
2024-09-24 17:24:39 +08:00

40 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
props: {
// 显示的内容,字符串
text: {
type: String,
default: uni.$u.props.rowNotice.text
},
// 是否显示左侧的音量图标
icon: {
type: String,
default: uni.$u.props.rowNotice.icon
},
// 通告模式link-显示右箭头closable-显示右侧关闭图标
mode: {
type: String,
default: uni.$u.props.rowNotice.mode
},
// 文字颜色,各图标也会使用文字颜色
color: {
type: String,
default: uni.$u.props.rowNotice.color
},
// 背景颜色
bgColor: {
type: String,
default: uni.$u.props.rowNotice.bgColor
},
// 字体大小单位px
fontSize: {
type: [String, Number],
default: uni.$u.props.rowNotice.fontSize
},
// 水平滚动时的滚动速度即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
speed: {
type: [String, Number],
default: uni.$u.props.rowNotice.speed
}
}
}