mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 01:31:41 +11:00
formatting
This commit is contained in:
parent
eb40a4f049
commit
1da62476e4
6 changed files with 19 additions and 11 deletions
|
|
@ -5,14 +5,14 @@ interface Feedback {
|
|||
message: string;
|
||||
feedbackType?: string;
|
||||
contactEmail?: string;
|
||||
anonymous: boolean
|
||||
anonymous: boolean;
|
||||
}
|
||||
|
||||
const loading = ref(false);
|
||||
const error = ref<unknown>(null);
|
||||
const success = ref(false);
|
||||
|
||||
const feedback = reactive<Feedback>({ message: "", anonymous: false,contactEmail: "" });
|
||||
const feedback = reactive<Feedback>({ message: "", anonymous: false, contactEmail: "" });
|
||||
|
||||
const feedbackOptions = [
|
||||
{ label: "🐞 Bug", value: "bug" },
|
||||
|
|
@ -73,7 +73,11 @@ async function handleSubmit(type?: string) {
|
|||
</div>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<button v-for="item in feedbackOptions" :key="item.value" class="btn" @click="handleSubmit(item.value)">
|
||||
<button
|
||||
v-for="item in feedbackOptions"
|
||||
:key="item.value"
|
||||
class="btn"
|
||||
@click="handleSubmit(item.value)">
|
||||
<span>{{ item.label }}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -83,7 +87,10 @@ async function handleSubmit(type?: string) {
|
|||
<p class="desc">The wiki is...</p>
|
||||
<div>
|
||||
<span>{{ getFeedbackOption(feedback.feedbackType)?.label }}</span>
|
||||
<button style="margin-left: 0.5rem" class="btn" @click="feedback.feedbackType = undefined">
|
||||
<button
|
||||
style="margin-left: 0.5rem"
|
||||
class="btn"
|
||||
@click="feedback.feedbackType = undefined">
|
||||
<span class="i-carbon-close-large">close</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -101,7 +108,7 @@ async function handleSubmit(type?: string) {
|
|||
</template>
|
||||
|
||||
<style scoped>
|
||||
.step>*+* {
|
||||
.step > * + * {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue