0.1.0-rc.2 • Published 6 years ago
@beisen/radio-list v0.1.0-rc.2
RadioList 使用说明
项目运行
cnpm install 或 npm install cnpm使用教程
npm run dev (开发环境打包 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
RadioList 参数
const data = {
hidden: false,
disabled: true,
required: true,
hasRender: true,
radioLabel: '测试测试测试测试',
radioValue: '内容2',
errorStatus: true, //是否报错
errorMsg: "出错了~~~!", //报错信息
helpMsg: "dqwdqw",
sideTip: false, //toolTip是否左右显示
hiddenTip: false, //toolTip是否显示
lablePos: true, //label位置,true时在左边,false在上边
lableTxt: false, //label中文字对齐方式,true左对齐,false右对齐
onClick: function (e, val) { console.log(e, val) },
onLabelClick: function (val) { console.log(val) },
radioItems: [
{
value: 0,
bsStyle: true,
isChecked: false,
text: '内容0'
},
{
value: 1,
bsStyle: true,
isChecked: false,
text: '内容1',
}
]
}
Radiolist 调用方法
1.安装npm组件包
npm install @beisen/radio-list --save-dev
2.引用组件
import RadioList from "@beisen/radio-list"
3.传入参数
data:{
hidden:false,
disabled:true,
required: true,
hasRender: true,
radioLabel: '测试测试测试测试',
radioValue: '内容2',
errorStatus:true, //是否报错
errorMsg:"出错了~~~!", //报错信息
helpMsg:"dqwdqw",
sideTip:false ,//toolTip是否左右显示
hiddenTip:false, //toolTip是否显示
lablePos: true, //label位置,true时在左边,false在上边
lableTxt: false, //label中文字对齐方式,true左对齐,false右对齐
onClick:function(e,val){console.log(e,val)},
onLabelClick: function(val){console.log(val)},
radioItems: [
{
value: 0,
bsStyle: true,
isChecked: false,
text: '内容0'
},
{
value: 1,
bsStyle: true,
isChecked: false,
text: '内容1',
},
{
value: 2,
bsStyle: true,
isChecked: true,
text: '内容2'
}
]
}
//定义传入组件的数据
使用组件
<RadioList {...this.state} /> //将数据传入组件
0.1.0-rc.2
6 years ago
0.1.0-rc.1
6 years ago
0.1.0-rc.0
6 years ago
0.0.101
6 years ago
0.0.100
6 years ago
0.0.99
6 years ago
0.0.97
7 years ago
0.0.95
7 years ago
0.0.94
7 years ago
0.2.0
7 years ago
0.0.93
7 years ago
0.0.92
7 years ago
0.0.90
7 years ago
0.0.89
7 years ago
0.0.88
7 years ago
0.0.87
7 years ago
0.0.86
8 years ago
0.0.85
8 years ago
0.0.84
8 years ago
0.0.83
8 years ago
0.0.82
8 years ago
0.0.81
8 years ago
0.0.80
8 years ago
0.0.79
8 years ago
0.0.78
8 years ago
0.0.77
8 years ago
0.0.76
8 years ago
0.0.75
8 years ago
0.0.74
8 years ago
0.0.73
8 years ago
0.0.72
8 years ago
0.1.72
8 years ago
0.0.69
8 years ago
0.0.68
8 years ago
0.0.67
8 years ago
0.0.66
8 years ago
0.0.65
8 years ago
0.0.64
8 years ago
0.0.63
8 years ago
0.0.62
8 years ago
0.0.61
8 years ago
0.0.60
8 years ago
0.0.59
8 years ago
0.0.58
8 years ago
0.0.57
8 years ago
0.0.56
8 years ago
0.0.55
8 years ago