@beisen-cmps/platform-location

平台地区选择组件,绑定平台元数据

Stats

StarsIssuesVersionUpdatedCreatedSize
@beisen-cmps/platform-location
0.0.592 years ago3 years agoMinified + gzip package size for @beisen-cmps/platform-location 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": "diquduoxuan27",
  "cmp_type": "BC_LookUpV2",
  "cmp_label": "地区选择(多选)dev",
  "cmp_data": {
      "AllowSearchNull":"0",
      "title": "地区选择(多选)dev",
      "field_name": "BeisenCloudDemo.searchshengji.diquduoxuan27",
      "required": false,
      "cmp_state": "create",
      "cmp_status": "editable",
      "editdisplaystate": "editable",
      "createdisplaystate": "editable",
      "showdisplaystate": "readonly",
      "datasourcename": "NativePlace",
      "metaObjectName":"BeisenCloudDemo.searchshengji",
      "dataType": "Text",
      "singleSelect": false // 单选,多选; 如果是单选,可选总数为1;如果是多选,可选总数为99
      "showForeignSource": false, // 当 showForeignSource 参数为false 或者不存在时 过滤掉国外数据,只显示国内数据
      "isFullPathFormat": true //全路径选择,默认false
  },
  "search_data": {
    metaFieldRelationIDPath: null,
    metaobjectname: "BeisenCloudDemo.searchshengji",
    opeartor: "eq",
    seperator: "-"
  },
  "form_errors":{},  //提示错误信息
  "biz_data": { "text": "" },
  "validators": {},
  styleTitle: 'rightFlush',        // "upAndDown" , "rightFlush",  "leftFlush", label的位置上下还是左右
  onChange: (value) => {}  //回调事件
}

组件使用

  1. npm install @beisen-cmps/platform-location
  2. import PlatFormLocation from '@beisen-cmps/platform-location'
render() {
  return <PlatFormLocation {...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.