jiangping
2023-10-26 68c5ef7d9fea3f911e250fb5f8b300bc76099e49
minipro_standard/uni_modules/uview-ui/components/u-column-notice/props.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,55 @@
export default {
    props: {
        // æ˜¾ç¤ºçš„内容,字符串
        text: {
            type: [Array],
            default: uni.$u.props.columnNotice.text
        },
        // æ˜¯å¦æ˜¾ç¤ºå·¦ä¾§çš„音量图标
        icon: {
            type: String,
            default: uni.$u.props.columnNotice.icon
        },
        // é€šå‘Šæ¨¡å¼ï¼Œlink-显示右箭头,closable-显示右侧关闭图标
        mode: {
            type: String,
            default: uni.$u.props.columnNotice.mode
        },
        // æ–‡å­—颜色,各图标也会使用文字颜色
        color: {
            type: String,
            default: uni.$u.props.columnNotice.color
        },
        // èƒŒæ™¯é¢œè‰²
        bgColor: {
            type: String,
            default: uni.$u.props.columnNotice.bgColor
        },
        // å­—体大小,单位px
        fontSize: {
            type: [String, Number],
            default: uni.$u.props.columnNotice.fontSize
        },
        // æ°´å¹³æ»šåŠ¨æ—¶çš„æ»šåŠ¨é€Ÿåº¦ï¼Œå³æ¯ç§’æ»šåŠ¨å¤šå°‘px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
        speed: {
            type: [String, Number],
            default: uni.$u.props.columnNotice.speed
        },
        // direction = row时,是否使用步进形式滚动
        step: {
            type: Boolean,
            default: uni.$u.props.columnNotice.step
        },
        // æ»šåŠ¨ä¸€ä¸ªå‘¨æœŸçš„æ—¶é—´é•¿ï¼Œå•ä½ms
        duration: {
            type: [String, Number],
            default: uni.$u.props.columnNotice.duration
        },
        // æ˜¯å¦ç¦æ­¢ç”¨æ‰‹æ»‘动切换
        // ç›®å‰HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
        disableTouch: {
            type: Boolean,
            default: uni.$u.props.columnNotice.disableTouch
        }
    }
}