jiangping
2023-10-26 627c3e0a6920131d75eafa4646db373ccc936546
minipro_standard/uni_modules/uview-ui/components/u-action-sheet/props.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,54 @@
export default {
    props: {
        // æ“ä½œèœå•是否展示 ï¼ˆé»˜è®¤false)
        show: {
            type: Boolean,
            default: uni.$u.props.actionSheet.show
        },
        // æ ‡é¢˜
        title: {
            type: String,
            default: uni.$u.props.actionSheet.title
        },
        // é€‰é¡¹ä¸Šæ–¹çš„æè¿°ä¿¡æ¯
        description: {
            type: String,
            default: uni.$u.props.actionSheet.description
        },
        // æ•°æ®
        actions: {
            type: Array,
            default: uni.$u.props.actionSheet.actions
        },
        // å–消按钮的文字,不为空时显示按钮
        cancelText: {
            type: String,
            default: uni.$u.props.actionSheet.cancelText
        },
        // ç‚¹å‡»æŸä¸ªèœå•项时是否关闭弹窗
        closeOnClickAction: {
            type: Boolean,
            default: uni.$u.props.actionSheet.closeOnClickAction
        },
        // å¤„理底部安全区(默认true)
        safeAreaInsetBottom: {
            type: Boolean,
            default: uni.$u.props.actionSheet.safeAreaInsetBottom
        },
        // å°ç¨‹åºçš„æ‰“开方式
        openType: {
            type: String,
            default: uni.$u.props.actionSheet.openType
        },
        // ç‚¹å‡»é®ç½©æ˜¯å¦å…è®¸å…³é—­ (默认true)
        closeOnClickOverlay: {
            type: Boolean,
            default: uni.$u.props.actionSheet.closeOnClickOverlay
        },
        // åœ†è§’值
        round: {
            type: [Boolean, String, Number],
            default: uni.$u.props.actionSheet.round
        }
    }
}