# @beisen-platform/platform-textbox

> 平台文本组件, 绑定平台元数据

Latest version **1.1.5-rc.4** (published 2019-10-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-platform/platform-textbox
pnpm add @beisen-platform/platform-textbox
yarn add @beisen-platform/platform-textbox
bun add @beisen-platform/platform-textbox
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5-rc.4 |
| Published | 2019-10-25 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 119 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | beisen |
| Maintainers | beisencorp |
| Keywords | beisen, react-component, es6 |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/platform-textbox
- npm.io page: https://npm.io/package/@beisen-platform/platform-textbox

## Dependencies (2)

- [@beisen-platform/react-icons](https://npm.io/package/@beisen-platform/react-icons.md)
- [@beisen-platform/platform-base](https://npm.io/package/@beisen-platform/platform-base.md) 0.x.x

## Recent versions

- 1.1.5-rc.4 (latest) — 2019-10-25
- 1.1.5-rc.3 — 2019-07-09
- 1.1.5-rc.2 — 2019-07-08
- 1.1.5-rc.1 — 2019-04-30
- 1.1.5 — 2019-04-29
- 1.1.4 — 2019-04-17
- 1.1.3 — 2019-04-10
- 1.1.2 — 2019-04-10
- 1.1.1 — 2019-04-08
- 1.1.0 — 2019-04-08
- 1.0.10 — 2019-03-15
- 1.0.9 — 2019-03-15
- 1.0.8 — 2019-03-12
- 1.0.4 — 2019-02-14
- 1.0.3 — 2019-02-01
- … 3 more at https://npm.io/package/@beisen-platform/platform-textbox/versions

## README

## 组件使用、扩展文档

## 提交

1. npm install
2. 修改代码后执行 npm run lib进行编译
3. 更新package.json中的 version版本号
4. push代码
5. 在cmp.beisen.io站点，头部导航的《服务》中查看编译是否通过

## 使用参数

```
{
  text: this.props.text || '',
  value: this.props.value || '',
  "cmp_id": "c569ca1e-e58b-4a54-8a82-274ebc654162",
  "cmp_name": "Sname",
  "cmp_type": "BC_TextBox",
  "cmp_label": "默认值",
  "cmp_data": {
      "title": "默认值",
      "field_name": "BeisenCloudDemo.123.Sname",
      "required": false,
      "cmp_state": "create",
      "cmp_status": "editable",
      "editdisplaystate": "editable",
      "createdisplaystate": "editable",
      "showdisplaystate": "readonly",
      "datasourcename": "BCStaffDataSource",
      "IsShowHeadPic": true,
      "dataType": "Text",
      "icon_name": ""
  },
  "search_data": {
    metaFieldRelationIDPath: null,
    metaobjectname: "BeisenCloudDemo.123",
    opeartor: "include",
    seperator: "-"
  },
  "biz_data": { "text": "" },
  "validators": {},
  styleTitle: 'rightFlush',        // "upAndDown" , "rightFlush",  "leftFlush", label的位置上下还是左右
  ,maxLength: "30"  //输入框可输入的最大字数,仅限编辑态
  onChange: (event, status, value) => {}  //回调事件
}
```

## 组件使用

1. npm install @beisen-cmps/platform-textbox
3. 该组件有两种使用方式, 第一种会走组件内部的获取数据方式,数据会存在state里，第二种会走外部传入的action
  1. import XXX from '@beisen-cmps/platform-textbox'
  2. import {PureTextBox} from '@beisen-cmps/platform-textbox'

```
render() {
  return <PureTextBox {...this.props}/>;
}
```

---
_Source: https://npm.io/package/@beisen-platform/platform-textbox · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
