activeIndex | Number | - | 输入框高亮状态序号 | N |
borderless | Boolean | false | 无边框模式 | N |
clearable | Boolean | false | 是否可清空 | N |
disabled | Boolean | undefined | 是否禁用范围输入框 | N |
format | Array / Function | - | 指定输入框展示值的格式。TS 类型:InputFormatType | Array<InputFormatType> | N |
inputProps | Object / Array | - | 透传 Input 输入框组件全部属性,数组第一项表示第一个输入框属性,第二项表示第二个输入框属性。示例:[{ label: 'A', name: 'A-name' }, { label: 'B', name: 'B-name' }] 。TS 类型:InputProps | Array<InputProps> ,Input API Documents。详细类型定义 | N |
label | String / Slot / Function | - | 左侧内容。TS 类型:string | TNode 。通用类型定义 | N |
placeholder | String / Array | - | 占位符,示例:'请输入' 或者 ['开始日期', '结束日期']。TS 类型:string | Array<string> | N |
prefixIcon | Slot / Function | - | 组件前置图标。TS 类型:TNode 。通用类型定义 | N |
readonly | Boolean | false | 只读状态 | N |
separator | String / Slot / Function | '-' | 范围分隔符。TS 类型:string | TNode 。通用类型定义 | N |
showClearIconOnEmpty | Boolean | false | 输入框内容为空时,悬浮状态是否显示清空按钮,默认不显示 | N |
size | String | medium | 输入框尺寸。可选项:small/medium/large | N |
status | String | default | 输入框状态。可选项:default/success/warning/error | N |
suffix | String / Slot / Function | - | 后置图标前的后置内容。TS 类型:string | TNode 。通用类型定义 | N |
suffixIcon | Slot / Function | - | 组件后置图标。TS 类型:TNode 。通用类型定义 | N |
tips | String / Slot / Function | - | 输入框下方提示文本,会根据不同的 status 呈现不同的样式。TS 类型:string | TNode 。通用类型定义 | N |
value | Array | [] | 范围输入框的值。支持语法糖 v-model 。TS 类型:RangeInputValue type RangeInputValue = Array<InputValue> 。详细类型定义 | N |
defaultValue | Array | [] | 范围输入框的值。非受控属性。TS 类型:RangeInputValue type RangeInputValue = Array<InputValue> 。详细类型定义 | N |
onBlur | Function | | TS 类型:(value: RangeInputValue, context?: { e?: FocusEvent; position?: RangeInputPosition }) => void 范围输入框失去焦点时触发 | N |
onChange | Function | | TS 类型:(value: RangeInputValue, context?: { e?: InputEvent | MouseEvent | CompositionEvent; position?: RangeInputPosition; trigger?: 'input' | 'initial' | 'clear' }) => void 范围输入框值发生变化时触发。详细类型定义。
type RangeInputPosition = 'first' | 'second' | 'all'
| N |
onClear | Function | | TS 类型:(context: { e: MouseEvent }) => void 清空按钮点击时触发 | N |
onClick | Function | | TS 类型:(context?: { e?: MouseEvent; position?: RangeInputPosition }) => void 范围输入框点击时触发 | N |
onEnter | Function | | TS 类型:(value: RangeInputValue, context?: { e?: InputEvent | MouseEvent; position?: RangeInputPosition }) => void 回车键按下时触发 | N |
onFocus | Function | | TS 类型:(value: RangeInputValue, context?: { e?: FocusEvent; position?: RangeInputPosition }) => void 范围输入框获得焦点时触发 | N |
onMouseenter | Function | | TS 类型:(context: { e: MouseEvent }) => void 进入输入框时触发 | N |
onMouseleave | Function | | TS 类型:(context: { e: MouseEvent }) => void 离开输入框时触发 | N |