Skip to content
On this page

TInput 输入框组件

基本使用

输入金额

金额鼠标移入提示中文

输入手机号

输入整数

输入数字(含小数点)

输入身份证号

格式化输入内容

文本域

复合型输入框

尺寸

TInput Attributes


1、代码示例

html
<t-input v-model="inputVlaue" />
<t-input v-model="inputVlaue" />

2、配置参数(Attributes)继承 el-input Attributes

参数说明类型默认值
v-model绑定值string-
placeholderplaceholder提示语string'请输入'
decimalLimit小数点位数 Number2
appendTitle插槽append显示文案string'元'
showThousands是否显示千分号Booleanfalse
isTip是否提示金额中文Booleanfalse
inputType特性类型标注stringtext

3、继承 el-input 事件、插槽、方法