@beisen-platform/ux-standard-textbox-range

1.0.6 • Public • Published

组件使用、扩展文档

提交

  1. 修改package.json中的devDependencies里依赖版本, @beisen/gulp-lib -> 0.1.1; @beisen/storybook-lib -> 0.3.0
  2. npm install
  3. 修改代码后执行 npm run lib进行编译
  4. 更新package.json中的 version版本号
  5. push代码
  6. 在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) => {}  //回调事件
}

组件使用

  1. npm install @beisen-cmps/platform-textbox-range
  2. import PlatFormTextBoxRange from '@beisen-cmps/platform-textbox-range'
render() {
  return <PlatFormTextBoxRange {...this.props}/>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @beisen-platform/ux-standard-textbox-range

Weekly Downloads

2

Version

1.0.6

License

ISC

Unpacked Size

70.5 kB

Total Files

20

Last publish

Collaborators

  • beisencorp