# testclizr

> OrcristJS Family: Orcrist Blade , for bussiness components

Latest version **1.0.4** (published 2020-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install testclizr
pnpm add testclizr
yarn add testclizr
bun add testclizr
```

## 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.0.4 |
| Published | 2020-07-03 |
| First published | 2020-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 1006.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | OrcristJS Team |
| Maintainers | npmzr |

## Links

- npm: https://www.npmjs.com/package/testclizr
- Repository: https://github.com/orcristjs/orcrist-mobile
- Homepage: https://github.com/orcristjs/orcrist-mobile#readme
- Issues: https://github.com/orcristjs/orcrist-mobile/issues
- npm.io page: https://npm.io/package/testclizr

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^16.13.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.13.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [orcrist-wechat](https://npm.io/package/orcrist-wechat.md) ^2.0.1
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.10.4
- [orcrist-request](https://npm.io/package/orcrist-request.md) ^1.3.2
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.1.2

## Recent versions

- 1.0.4 (latest) — 2020-07-03
- 1.0.3 — 2020-07-02
- 1.0.2 — 2020-07-02
- 1.0.0 — 2020-07-02

## README

# orcrist-mobile

> 兽咬剑 JS 家族：React WebApp 端组件库

OrcristJS Family : React WebApp Components.

## 代码风格

**TypeScript**

## 组件列表

1. cnpm i orcrist-blade --save
2. import { Login } from 'orcrist-blade';
3. 页面调用：Login.LoginP();
4. 组件：

```
<Login.LoginC
    callback={this.LogIn}
    isPopup={this.state.isSendingComponent}
    phoneNumber={this.state.phoneNumber}
    closeNumberCodeHandle={this.closeLogin}
/>
```
4. 组件(带有输入手机号的组件)：
|参数|备注|
|callback|登录成功后的回调函数|
|isPopup|是否拉起组件，true：显示组件，false：关闭组件|
|closeNumberCodeHandle|关闭弹窗，需要将isPopup的值设置关闭|

```
<Login.LoginM
    callback={this.LogIn}
    isPopup={true/false}
    closeNumberCodeHandle={this.closeLogin}
/>
```

| 组件         | 用途     | 比传参数                                  | 可选参数 |
| ------------ | -------- | ----------------------------------------- | -------- |
| Login.LoginP | 页面使用 | Login.LoginP()                            |          |
| Login.LoginC | 调用组件 | isPopup,phoneNumber,closeNumberCodeHandle | callback |

|参数|参数值作用|
|isPopup|进行登录|
|phoneNumber|手机号码|
|closeNumberCodeHandle|登录组件开关设置|
|callback|成功回调函数|

## 开发流程

```bash
$ npm install
$ npm start
```

### 进入开发

1. 创建独立开发分支：git checkout -b feat/xxComponent 分支
1. 在 **components** 目录下创建你的组件文件夹
1. 在 **components/index.ts** 文件中为组件进行 export
1. 在 **demo** 目录中添加你的演示路由
1. 开发并自测
1. commit & push

### 发布代码

1. 提 pr 至 master 分支
1. 发布 npm
1. push master

```bash
$ npm publish
$ git commit -m "feat: add XXX"
$ git push
```

### **Project** 中使用组件

```js
import { YourComponent } from "orcrist-ui";
```




### 目录结构

```
├── AUTHORS.txt             作者(TODO)
├── CHANGELOG.xxx.md        变更记录文档(TODO)
├── LICENSE                 许可证(TODO
├── README.md               自述文档
├── ant-design-analysis     包分析(TODO)
├── components              组件代码
├── development.xxx.md      开发说明文档(TODO)
├── docs                    其他文档(TODO)
├── scripts                 辅助脚本(TODO)
├── tests                   通用测试代码(TODO)
├── tsconfig.json           TypeScript配置
├── typings                 第三方缺失定义
```


# 欢迎指正

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