Commit 15157149 authored by liyang li's avatar liyang li
Browse files

add upload button

parent fc210f35
<script setup> <script setup>
import {NButton} from 'naive-ui' import {NButton} from 'naive-ui'
import {NUpload} from 'naive-ui'
</script> </script>
<template> <template>
<div class="main-wrapper"> <div class="main-wrapper">
...@@ -7,9 +8,19 @@ ...@@ -7,9 +8,19 @@
<n-button strong secondary type="tertiary"> <n-button strong secondary type="tertiary">
&nbsp;Edit text&nbsp; &nbsp;Edit text&nbsp;
</n-button> </n-button>
<n-upload
action="wait for api"
:headers="{
//wait for api
}"
:data="{
//wait for api
}"
>
<n-button strong secondary type="tertiary"> <n-button strong secondary type="tertiary">
Upload File Upload File
</n-button> </n-button>
</n-upload>
</div> </div>
<div class="text-area"> <div class="text-area">
<textarea id="paste-panel" placeholder="Put your paste here" name="input" cols="100" rows="10"></textarea> <textarea id="paste-panel" placeholder="Put your paste here" name="input" cols="100" rows="10"></textarea>
......
Supports Markdown
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