Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
astavrak
icu-diary-3
Commits
7ee545cf
Commit
7ee545cf
authored
Dec 06, 2021
by
lueyuw
Browse files
Merge branch
Merge remote-tracking branch 'origin/alyssa-omega' into brian_omega
parents
598b0f42
89c40c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/form/index.vue
View file @
7ee545cf
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"Message:"
>
<el-input
v-model=
"form.desc"
type=
"textarea"
/>
</el-form-item>
<el-form-item
label=
"Upload Media"
>
<el-upload
class=
"upload-demo"
drag
action=
"https://jsonplaceholder.typicode.com/posts/"
accept=
"image/jpeg,image/png,text/plain, application/pdf"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:on-success=
"handleUploadSuccess"
:auto-upload=
"false"
:before-upload=
"handleUploadbefore"
:file-list=
"fileList"
multiple
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
Drop file here or
<em>
click to upload (PDF, JPEG, PNG)
</em></div>
</el-upload>
</el-form-item>
<div
id=
"app"
>
<el-card
class=
"box-card"
style=
"width:700px;margin:auto;"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"Message:"
>
<el-input
v-model=
"form.desc"
type=
"textarea"
/>
</el-form-item>
<el-form-item
label=
"Upload Media"
>
<el-upload
class=
"upload-demo"
drag
action=
"https://jsonplaceholder.typicode.com/posts/"
accept=
"image/jpeg,image/png,text/plain, application/pdf"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:on-success=
"handleUploadSuccess"
:auto-upload=
"false"
:before-upload=
"handleUploadbefore"
:file-list=
"fileList"
list-type=
"picture"
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
Drop file here or
<em>
click to upload (PDF, JPEG, PNG)
</em></div>
</el-upload>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
Submit
</el-button>
<el-button
@
click=
"onCancel"
>
Cancel
</el-button>
</el-form-item>
</el-form>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
Submit
</el-button>
<el-button
@
click=
"onCancel"
>
Cancel
</el-button>
</el-form-item>
</el-form>
</el-card>
</div>
</
template
>
...
...
@@ -76,5 +79,18 @@ export default {
line-height
:
18
x
;
}
}
body
{
margin
:
0px
;
}
#app
{
position
:
relative
;
width
:
100%
;
height
:
75vh
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
Write
Preview
Supports
Markdown
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