ld-fg-show
v1.1.2
Published
Simple Vue.js component for form
Downloads
1
Readme
ld-fg-show
- 作者:niuguimin
- 邮箱:[email protected]
- 版本:
1.1.2
安装
ld-*
组件 命名空间统一为 ld-
,请使用以下命令进行组件安装。
Add package to your project
npm install ld-fg-show --save
or
yarn install ld-fg-show --save
Add ld-fg-show component to your project
<script>
import { LdFgShow } from 'ld-fg-show'
export default {
components: { LdFgShow },
data() {
return {
}
},
}
</script>
<ld-fg-show
:formConf="fConf"
:formData="[]"
:change="() => {}"
/>
配置参数
| Prop | Type | Default | Description |
| ---- |:----:|:-------:| :----------:|
| formConf
| object
| {}
| 表单配置json |
| formData
| object
| {}
| 表单关联数据 |
| change
| funcion
| () => {}
| 表单变化时,触发回调函数 |
Example
You can clone this project and start example locally with these commands. It's in the dev folder.
npm install
npm run serve
Code
https://github.com/ngm-Irelia/ld-fg-show
包含demo文件,因渲染机制,必须是完整的html结构,不允许运行时渲染
Change logs
1.1.1
init
1.1.2
更新使用文档