Commit 74d80b32 authored by 王康's avatar 王康

form

parent 9fc4479d
......@@ -212,9 +212,10 @@
```vue
<template>
<hm-complex-form :schema="schema['HmUser']"
:columns="showUserColumns"
:tableId="tableId"
:buttons="showUserButtons">
:columns="showUserColumns"
:tableId="tableId"
:layout="layout"
:buttons="showUserButtons">
</hm-complex-form>
</template>
......@@ -424,7 +425,8 @@
},
showUserColumns: [{ name: 'username', widgetType: 1 }, { name: 'securityLevel', widgetType: 5 }, { name: 'type', widgetType: 2, options: ['企业', '代理商'] }, { name: 'avatar', widgetType: 3 }, { name: 'departmentId', widgetType: 4 }, { name: 'createTime', widgetType: 6 }],
// 要显示按钮 暂只支持确定、保存、取消、提交、重置
showUserButtons: ['确定', '取消']
showUserButtons: ['确定', '取消'],
layout: { left: 0, middle: 12, right: 12 }
}
},
created() {
......
......@@ -38,6 +38,7 @@
// 要显示按钮 暂只支持确定、保存、取消、提交、重置
showUserButtons: ['确定', '取消'],
// showUserButtons: []
// 布局方式
layout: { left: 0, middle: 12, right: 12 }
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment