mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/node_modules/uview-plus/components/u-notice-bar/props.js

72 lines
2.2 KiB
JavaScript
Raw Permalink 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.

import defprops from '../../libs/config/props';
export default {
props: {
// 显示的内容,数组
text: {
type: [Array, String],
default: defprops.noticeBar.text
},
// 通告滚动模式row-横向滚动column-竖向滚动
direction: {
type: String,
default: defprops.noticeBar.direction
},
// direction = row时是否使用步进形式滚动
step: {
type: Boolean,
default: defprops.noticeBar.step
},
// 是否显示左侧的音量图标
icon: {
type: String,
default: defprops.noticeBar.icon
},
// 通告模式link-显示右箭头closable-显示右侧关闭图标
mode: {
type: String,
default: defprops.noticeBar.mode
},
// 文字颜色,各图标也会使用文字颜色
color: {
type: String,
default: defprops.noticeBar.color
},
// 背景颜色
bgColor: {
type: String,
default: defprops.noticeBar.bgColor
},
// 水平滚动时的滚动速度即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
speed: {
type: [String, Number],
default: defprops.noticeBar.speed
},
// 字体大小
fontSize: {
type: [String, Number],
default: defprops.noticeBar.fontSize
},
// 滚动一个周期的时间长单位ms
duration: {
type: [String, Number],
default: defprops.noticeBar.duration
},
// 是否禁止用手滑动切换
// 目前HX2.6.11只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
disableTouch: {
type: Boolean,
default: defprops.noticeBar.disableTouch
},
// 跳转的页面路径
url: {
type: String,
default: defprops.noticeBar.url
},
// 页面跳转的类型
linkType: {
type: String,
default: defprops.noticeBar.linkType
}
}
}