Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liyang li
Pastebin00
Commits
15157149
Commit
15157149
authored
Oct 09, 2022
by
liyang li
Browse files
add upload button
parent
fc210f35
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/Main.vue
View file @
15157149
<
script
setup
>
import
{
NButton
}
from
'
naive-ui
'
import
{
NUpload
}
from
'
naive-ui
'
</
script
>
<
template
>
<div
class=
"main-wrapper"
>
...
...
@@ -7,9 +8,19 @@
<n-button
strong
secondary
type=
"tertiary"
>
Edit text
</n-button>
<n-button
strong
secondary
type=
"tertiary"
>
Upload File
</n-button>
<n-upload
action=
"wait for api"
:headers=
"
{
//wait for api
}"
:data="{
//wait for api
}"
>
<n-button
strong
secondary
type=
"tertiary"
>
Upload File
</n-button>
</n-upload>
</div>
<div
class=
"text-area"
>
<textarea
id=
"paste-panel"
placeholder=
"Put your paste here"
name=
"input"
cols=
"100"
rows=
"10"
></textarea>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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