jiangping
2023-10-26 68c5ef7d9fea3f911e250fb5f8b300bc76099e49
minipro_standard/uni_modules/uview-ui/components/u-search/props.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,118 @@
export default {
    props: {
        // æœç´¢æ¡†å½¢çŠ¶ï¼Œround-圆形,square-方形
        shape: {
            type: String,
            default: uni.$u.props.search.shape
        },
        // æœç´¢æ¡†èƒŒæ™¯è‰²ï¼Œé»˜è®¤å€¼#f2f2f2
        bgColor: {
            type: String,
            default: uni.$u.props.search.bgColor
        },
        // å ä½æç¤ºæ–‡å­—
        placeholder: {
            type: String,
            default: uni.$u.props.search.placeholder
        },
        // æ˜¯å¦å¯ç”¨æ¸…除控件
        clearabled: {
            type: Boolean,
            default: uni.$u.props.search.clearabled
        },
        // æ˜¯å¦è‡ªåŠ¨èšç„¦
        focus: {
            type: Boolean,
            default: uni.$u.props.search.focus
        },
        // æ˜¯å¦åœ¨æœç´¢æ¡†å³ä¾§æ˜¾ç¤ºå–消按钮
        showAction: {
            type: Boolean,
            default: uni.$u.props.search.showAction
        },
        // å³è¾¹æŽ§ä»¶çš„æ ·å¼
        actionStyle: {
            type: Object,
            default: uni.$u.props.search.actionStyle
        },
        // å–消按钮文字
        actionText: {
            type: String,
            default: uni.$u.props.search.actionText
        },
        // è¾“入框内容对齐方式,可选值为 left|center|right
        inputAlign: {
            type: String,
            default: uni.$u.props.search.inputAlign
        },
        // input输入框的样式,可以定义文字颜色,大小等,对象形式
        inputStyle: {
            type: Object,
            default: uni.$u.props.search.inputStyle
        },
        // æ˜¯å¦å¯ç”¨è¾“入框
        disabled: {
            type: Boolean,
            default: uni.$u.props.search.disabled
        },
        // è¾¹æ¡†é¢œè‰²
        borderColor: {
            type: String,
            default: uni.$u.props.search.borderColor
        },
        // æœç´¢å›¾æ ‡çš„颜色,默认同输入框字体颜色
        searchIconColor: {
            type: String,
            default: uni.$u.props.search.searchIconColor
        },
        // è¾“入框字体颜色
        color: {
            type: String,
            default: uni.$u.props.search.color
        },
        // placeholder的颜色
        placeholderColor: {
            type: String,
            default: uni.$u.props.search.placeholderColor
        },
        // å·¦è¾¹è¾“入框的图标,可以为uView图标名称或图片路径
        searchIcon: {
            type: String,
            default: uni.$u.props.search.searchIcon
        },
        searchIconSize: {
            type: [Number, String],
            default: uni.$u.props.search.searchIconSize
        },
        // ç»„件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
        margin: {
            type: String,
            default: uni.$u.props.search.margin
        },
        // å¼€å¯showAction时,是否在input获取焦点时才显示
        animation: {
            type: Boolean,
            default: uni.$u.props.search.animation
        },
        // è¾“入框的初始化内容
        value: {
            type: String,
            default: uni.$u.props.search.value
        },
        // è¾“入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
        maxlength: {
            type: [String, Number],
            default: uni.$u.props.search.maxlength
        },
        // æœç´¢æ¡†é«˜åº¦ï¼Œå•位px
        height: {
            type: [String, Number],
            default: uni.$u.props.search.height
        },
        // æœç´¢æ¡†å·¦ä¾§æ–‡æœ¬
        label: {
            type: [String, Number, null],
            default: uni.$u.props.search.label
        }
    }
}