# custom_form0012

> for custom form demo project

Latest version **1.0.0** (published 2020-06-27) · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2020-06-27 |
| First published | 2020-06-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 3 |
| Unpacked size | 42.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | wangsijia |
| Maintainers | yooga0012 |

## Links

- npm: https://www.npmjs.com/package/custom_form0012
- npm.io page: https://npm.io/package/custom_form0012

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.5.2
- [element-ui](https://npm.io/package/element-ui.md) ^2.13.2
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.1

## Recent versions

- 1.0.0 (latest) — 2020-06-27

## README

# custom_form

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev


##获取表单参数的接口数据
// 要提交表单的数据结构（通过接口获取）
formParam: {
  name: '',
  gender: ''
},
// 表单的配置（通过接口获取）
formConfig: {
  inline: false,
  labelPosition: 'top',
  labelWidth: '',
  size: 'small',
  statusIcon: true,
  className: 'custom-form1',
  style: '',
  formItemList: [
    {
      type: 'input',
      label: '姓名',
      disable: false,
      readonly: false,
      value: '',
      placeholder: '请输入姓名',
      rules: [
        { required: true, message: '请输入活动名称', trigger: 'blur' }
      ],
      key: 'name',
      subtype: "text",
      className: 'custom1',
      style: ''
    },
    {
      type: "select",
      label: "性别",
      value: "",
      button: false,
      border: true,
      rules: [],
      key: "gender",
      className: 'custom1',
      style: '',
      options: [
        {
          value: '1',
          label: '男',
          disabled: false
        },
        {
          value: "0",
          label: "女",
          disabled: false
        }
      ]
    }
  ]
}

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