Commit baf28444 authored by 王康's avatar 王康

form-date

parent fe6dae39
### 基本使用 ### 基本使用
```jsx ```jsx
<hm-complex-form :tableId="tableId" <hm-complex-form
:columns="['username', 'loginid', 'password', 'mobile', 'email','avatar','createTime','lastUpdateTime','lastLoginTime','securityLevel','type','departmentId']"
:schema="{ :schema="{
'model': 'HmUser', 'model': 'HmUser2',
'modelPlural': 'HmUsers', 'modelPlural': 'HmUser2S',
'modelCamel': 'hmUser', 'modelCamel': 'hmUser2',
'modelCamelPlural': 'hmUsers', 'modelCamelPlural': 'hmUser2S',
'modelUnderscore': 'hm_user', 'modelUnderscore': 'hm_user2',
'modelUnderscorePlural': 'hm_users', 'modelUnderscorePlural': 'hm_user2S',
'columns': [ 'columns': [
{ {
'id': 'o50', 'id': 'o50',
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
@ready="onEditorReady($event)"> @ready="onEditorReady($event)">
</quill-editor> </quill-editor>
<!-- 日期选择 --> <!-- 日期选择 -->
<el-date-picker v-else-if="column.codeCamel === 'createTime' || column.codeCamel === 'lastUpdateTime' || column.codeCamel === 'lastLoginTime'" <el-date-picker v-else-if="column.type === 'datetime' || column.codeCamel === 'date'"
v-model="formModel[column.codeCamel]" v-model="formModel[column.codeCamel]"
type="datetime" type="datetime"
align="right" align="right"
......
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