Commit baf28444 authored by 王康's avatar 王康

form-date

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