@tplc/wot
Version:
105 lines (104 loc) • 2.02 kB
TypeScript
export declare const searchProps: {
/**
* 输入框内容,双向绑定
* 类型: string
* 默认值: ''
*/
modelValue: {
type: import('vue').PropType<string>
default: string
}
/**
* 是否使用输入框右侧插槽
* 类型: boolean
* 默认值: false
* @deprecated 该属性已废弃,将在下一个minor版本被移除,直接使用插槽即可
*/
useSuffixSlot: {
type: BooleanConstructor
default: boolean
}
/**
* 搜索框占位文本
* 类型: string
*/
placeholder: StringConstructor
/**
* 搜索框右侧文本
* 类型: string
*/
cancelTxt: StringConstructor
/**
* 搜索框亮色(白色)
* 类型: boolean
* 默认值: false
*/
light: {
type: BooleanConstructor
default: boolean
}
/**
* 是否隐藏右侧文本
* 类型: boolean
* 默认值: false
*/
hideCancel: {
type: BooleanConstructor
default: boolean
}
/**
* 是否禁用搜索框
* 类型: boolean
* 默认值: false
*/
disabled: {
type: BooleanConstructor
default: boolean
}
/**
* 原生属性,设置最大长度。-1 表示无限制
* 类型: string / number
* 默认值: -1
*/
maxlength: {
type: (NumberConstructor | StringConstructor)[]
default: number
}
/**
* placeholder 居左边
* 类型: boolean
* 默认值: false
*/
placeholderLeft: {
type: BooleanConstructor
default: boolean
}
/**
* 是否自动聚焦
* 类型: boolean
* 默认值: false
* 最低版本: 0.1.63
*/
focus: {
type: BooleanConstructor
default: boolean
}
/**
* 是否在点击清除按钮时聚焦输入框
* 类型: boolean
* 默认值: false
* 最低版本: 0.1.63
*/
focusWhenClear: {
type: BooleanConstructor
default: boolean
}
customStyle: {
type: import('vue').PropType<string>
default: string
}
customClass: {
type: import('vue').PropType<string>
default: string
}
}