# form-customs
基于FormCustoms开发的一款自定义表单工具

## CDN
``` html
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/form-customs/dist/FormCustoms.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/form-customs/dist/FormCustoms.umd.js"></script>
```

## Install

```shell
npm install form-customs -S
```

## Quick Start

``` javascript
import FormCustoms from 'form-customs'
import 'form-customs/dist/FormCustoms.css'
Vue.use(FormCustoms)

// or
import {
  GenerateForm
} from 'form-customs'
import 'form-customs/dist/FormCustoms.css'

Vue.component(GenerateForm.name, GenerateForm)
```

## Template
``` html
<fm-generate-form></fm-generate-form>
```

## 设计器引用

``` javascript
import {MakingForm} from 'form-customs'
Vue.component(MakingForm.name, MakingForm)
```

```html
<fm-making-form  preview generate-code generate-json>
    <template slot="action">
    </template>
  </fm-making-form>
```