fix: added product
This commit is contained in:
parent
9e0a3849cb
commit
70743b2151
1 changed files with 11 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
|
const addedProduct = ref<boolean>(false);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -84,10 +85,19 @@ import AppBox from 'components/app/AppBox.vue';
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="addedProduct"
|
||||||
|
unelevated
|
||||||
|
class="q-mr-sm text-white"
|
||||||
|
label="เพิ่มสินค้าแล้ว (1)"
|
||||||
|
@click="addedProduct = false"
|
||||||
|
style="background-color: var(--green-10)"
|
||||||
|
/>
|
||||||
|
<q-btn
|
||||||
|
v-else
|
||||||
unelevated
|
unelevated
|
||||||
class="surface-0 q-mr-sm"
|
class="surface-0 q-mr-sm"
|
||||||
label="เพิ่มสินค้า"
|
label="เพิ่มสินค้า"
|
||||||
@click="console.log('add')"
|
@click="addedProduct = true"
|
||||||
style="color: var(--blue-5)"
|
style="color: var(--blue-5)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue