lm-dynamic-form

1.0.3 • Public • Published

dynamic-form

img.png

A Vue.js project

install dependencies

npm install lm-dynamic-form

main.js

import dynamicForm from 'lm-dynamic-form' Vue.use(dynamicForm);

#Page usage

#Parameter configuration

form.formConfig (表单配置对象)

 lableWidth:‘lable的宽度’
 size:‘输入框大小、(medium / small / mini)’
 labelPosition:lable 对齐方式 (left/right)’

form.freedomConfig(表单内容)

      "name": str,
      "isRules":Boolean,
      "type": "el_select",(el_ 表单的类型)
      "title": "lable 的名称",
      "prompt_msg": "输入提示内容",
      "selectObj":例如 下拉 内容

      selectObj:Array  {id:'',name:''}

form.methods(返回方法)

@changegetCommom:val Object (返回的数据)

@changBtns:如果有按钮 返回的 Object

For detailed explanation on how things work, consult the docs for vue-loader.

Readme

Keywords

none

Package Sidebar

Install

npm i lm-dynamic-form

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

7.33 MB

Total Files

25

Last publish

Collaborators

  • annbt