1.0.3 • Published 6 years ago
@beisen/text-box v1.0.3
Textbox 使用说明
项目运行
cnpm install 或 npm install cnpm使用教程
npm run dev (开发环境打包 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
Textbox 参数
const props = {
showTag:'测试测试',
defaultValue:'acdscasdfsdfsdfsdfsdfsdfds',
placeHolder:'',
errorStatus:false,
showText:'1111',
errorMsg:'出错了~~~!',
symbol:'', //符号,为空时没有符号
helpMsg:'dsadsa',
sideTip:false, //toolTip是否左右显示
hiddenTip:false, //toolTip是否显示
hidden:false,
hasClosebtn:true, //框内删除符号 默认存在
disabled:false,
readonly:true,
required:true,
lablePos: true, //label位置,true时在左边,false在上边
lableTxt: false, //label中文字对齐方式,true左对齐,false右对齐
onClick:function(event, status, value){},
onFocus:function(event, status, value){},
onChange:function(event, status, value){console.log(event.target)},
onBlur:function(event, status, value){console.log(value)}
}
Textbox 调用方法
1.安装npm组件包
npm install @beisen/text-box --save-dev
2.引用组件
import Textbox from "@beisen/text-box"
3.传入参数
data:{
"showTag":"测试测试"
,"defaultValue":"acdscasdfsdfsdfsdfsdfsdfds"
,"placeHolder":""
,"errorStatus":false
,"showText":"1111"
,"errorMsg":"出错了~~~!"
,"symbol":"" //符号,为空时没有符号
,"helpMsg":"dsadsa"
,"sideTip":false //toolTip是否左右显示
,"hiddenTip":false //toolTip是否显示
,"hidden":false
,"hasClosebtn":true //框内删除符号 默认存在
,"disabled":false
,"readonly":true
,"required":true
,"lablePos": true //label位置,true时在左边,false在上边
,"lableTxt": false //label中文字对齐方式,true左对齐,false右对齐
,onClick:function(event, status, value){}
,onFocus:function(event, status, value){}
,onChange:function(event, status, value){console.log(event.target)}
,onBlur:function(event, status, value){console.log(value)}
}
render () {
return (
<Textbox {...this.state.data} />
)
}
1.0.3
6 years ago
0.2.11
6 years ago
0.2.10
6 years ago
0.2.9
6 years ago
0.2.2-1
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.100
7 years ago
0.1.99
7 years ago
0.1.98
7 years ago
0.1.97
7 years ago
0.1.96
7 years ago
0.1.95
7 years ago
0.1.94
7 years ago
0.1.93
7 years ago
0.1.92
7 years ago
0.1.91
7 years ago
0.1.90
7 years ago
0.1.89
7 years ago
0.1.88
7 years ago
0.1.87
7 years ago
0.1.86
7 years ago
0.1.85
7 years ago
0.1.84
7 years ago
0.1.83
7 years ago
0.1.82
7 years ago
0.1.81
7 years ago
0.1.80
7 years ago
0.1.79
8 years ago
0.1.78
8 years ago
0.1.77
8 years ago
0.1.75
8 years ago
0.1.74
8 years ago
0.1.73
8 years ago
0.1.72
8 years ago
0.1.71
8 years ago
0.1.70
8 years ago
0.1.69
8 years ago
0.1.67
8 years ago
0.1.66
8 years ago
0.1.65
8 years ago
0.1.64
8 years ago
0.1.63
8 years ago
0.1.62
8 years ago
0.1.61
8 years ago
0.1.60
8 years ago
0.1.59
8 years ago
0.1.58
8 years ago
0.1.57
8 years ago
0.1.56
8 years ago
0.1.55
8 years ago
0.1.54
8 years ago
0.1.53
8 years ago
0.1.52
8 years ago
0.1.51
8 years ago
0.1.48
8 years ago