@beisen-cmps/platform-textbox-range

平台TextboxRange组件,绑定平台元数据

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@beisen-cmps/platform-textbox-range
Minified + gzip package size for @beisen-cmps/platform-textbox-range in KB

Readme

组件使用、扩展文档

提交

  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}/>;
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.