Yao 38f91f4893
[improvement] Field: 新增 Form 支持 (#75)
* feat: field 增加 form 支持 && field 增加 focus blur 支持

* 增加文档说明

* 优化 field 文档
2017-12-10 00:15:05 +08:00

62 lines
1.3 KiB
JavaScript

module.exports = {
// 基础类型输入框配置
base: {
name: {
title: '收货人',
placeholder: '名字'
},
tel: {
error: true,
title: '联系电话',
inputType: 'number',
placeholder: '请输入手机号'
},
address: {
title: '详细地址',
type: 'textarea',
placeholder: '请输入详细地址'
}
},
// 无标题输入框
notitle: {
placeholder: '请输入收货人姓名',
componentId: 'textarea:test'
},
// 圆角输入框
radius: {
totalPrice: {
right: true,
mode: 'wrapped',
title: '消费总额',
inputType: 'number',
placeholder: '询问收银员后输入'
},
excludePrice: {
right: true,
error: true,
mode: 'wrapped',
title: '不参与优惠金额',
inputType: 'number',
placeholder: '询问收银员后输入'
},
notitle: {
mode: 'wrapped',
inputType: 'number',
placeholder: '请输入消费金额'
}
},
// Form 中使用输入框
form: {
name: {
placeholder: '请输入收货人姓名',
componentId: 'form:test:name'
},
tel: {
name: 'tel',
inputType: 'tel',
placeholder: '请输入收货人手机号码',
componentId: 'form:test:tel'
}
}
};