0.1.0-rc.2 • Published 5 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
5 years ago
0.1.0-rc.1
5 years ago
0.1.0-rc.0
5 years ago
0.0.101
5 years ago
0.0.100
5 years ago
0.0.99
5 years ago
0.0.97
6 years ago
0.0.95
6 years ago
0.0.94
6 years ago
0.2.0
6 years ago
0.0.93
6 years ago
0.0.92
6 years ago
0.0.90
6 years ago
0.0.89
6 years ago
0.0.88
6 years ago
0.0.87
6 years ago
0.0.86
6 years ago
0.0.85
6 years ago
0.0.84
6 years ago
0.0.83
6 years ago
0.0.82
6 years ago
0.0.81
7 years ago
0.0.80
7 years ago
0.0.79
7 years ago
0.0.78
7 years ago
0.0.77
7 years ago
0.0.76
7 years ago
0.0.75
7 years ago
0.0.74
7 years ago
0.0.73
7 years ago
0.0.72
7 years ago
0.1.72
7 years ago
0.0.69
7 years ago
0.0.68
7 years ago
0.0.67
7 years ago
0.0.66
7 years ago
0.0.65
7 years ago
0.0.64
7 years ago
0.0.63
7 years ago
0.0.62
7 years ago
0.0.61
7 years ago
0.0.60
7 years ago
0.0.59
7 years ago
0.0.58
7 years ago
0.0.57
7 years ago
0.0.56
7 years ago
0.0.55
7 years ago