组件使用、扩展文档
提交
- 修改package.json中的devDependencies里依赖版本, @beisen/gulp-lib -> 0.1.1; @beisen/storybook-lib -> 0.3.0
- npm install
- 修改代码后执行 npm run lib进行编译
- 更新package.json中的 version版本号
- push代码
- 在cmp.beisen.io站点,头部导航的《服务》中查看编译是否通过
使用参数
{
text: this.props.text || '',
value: this.props.value || '',
"cmp_id": "c569ca1e-e58b-4a54-8a82-274ebc654162",
"cmp_name": "xiaoshu7",
"cmp_type": "BC_TextBoxRange",
"cmp_label": "小数(百分数)dev",
"cmp_data": {
"title": "小数(百分数)dev",
"field_name": "BeisenCloudDemo.searchshengji.xiaoshu7",
"required": false,
"cmp_state": "create",
"cmp_status": "editable",
"editdisplaystate": "editable",
"createdisplaystate": "editable",
"showdisplaystate": "readonly",
formatType: "percentageSymbol",
"datasourcename": "BCStaffDataSource",
"IsShowHeadPic": true,
"dataType": "Text",
"icon_name": ""
"precision": 5 //多余的小位数
"totalLength": "15" //整个数据最大长度
},
"search_data": {
metaFieldRelationIDPath: null,
metaobjectname: "BeisenCloudDemo.searchshengji",
opeartor: "range",
seperator: "-"
},
"biz_data": { "text": "" },
"validators": {},
styleTitle: 'rightFlush', // "upAndDown" , "rightFlush", "leftFlush", label的位置上下还是左右
onChange: (fullDate, event) => {} //回调事件
}
组件使用
- npm install @beisen-cmps/platform-textbox-range
- import PlatFormTextBoxRange from '@beisen-cmps/platform-textbox-range'
render() {
return <PlatFormTextBoxRange {...this.props}/>;
}