Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
baf28444
Commit
baf28444
authored
7 years ago
by
王康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
form-date
parent
fe6dae39
master
storybook
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
HmComplexForm.md
src/views/haomo/components/forms/HmComplexForm.md
+7
-8
HmComplexForm.vue
src/views/haomo/components/forms/HmComplexForm.vue
+1
-1
No files found.
src/views/haomo/components/forms/HmComplexForm.md
View file @
baf28444
### 基本使用
### 基本使用
```
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': 'HmUser
2
',
'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',
...
...
This diff is collapsed.
Click to expand it.
src/views/haomo/components/forms/HmComplexForm.vue
View file @
baf28444
...
@@ -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 === 'lastLoginTim
e'"
<el-date-picker
v-else-if=
"column.
type === 'datetime' || column.codeCamel === 'dat
e'"
v-model=
"formModel[column.codeCamel]"
v-model=
"formModel[column.codeCamel]"
type=
"datetime"
type=
"datetime"
align=
"right"
align=
"right"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment