Socket
Socket
Sign inDemoInstall

@beisen-platform/platform-location

Package Overview
Dependencies
518
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @beisen-platform/platform-location

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


Version published
Maintainers
1
Install size
1.61 MB
Created

Readme

Source

组件使用、扩展文档

提交

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

Keywords

FAQs

Last updated on 14 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc