v1.0
This commit is contained in:
40
uni_modules/uv-notice-bar/components/uv-row-notice/props.js
Normal file
40
uni_modules/uv-notice-bar/components/uv-row-notice/props.js
Normal file
@ -0,0 +1,40 @@
|
||||
export default {
|
||||
props: {
|
||||
// 显示的内容,字符串
|
||||
text: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
// 是否显示左侧的音量图标
|
||||
icon: {
|
||||
type: [String, Boolean, null],
|
||||
default: 'volume'
|
||||
},
|
||||
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
||||
mode: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
// 文字颜色,各图标也会使用文字颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: '#f9ae3d'
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: '#fdf6ec'
|
||||
},
|
||||
// 字体大小,单位px
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: 14
|
||||
},
|
||||
// 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
|
||||
speed: {
|
||||
type: [String, Number],
|
||||
default: 80
|
||||
},
|
||||
...uni.$uv?.props?.rowNotice
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user