Merge branch 'dev' into feat/consultation-82
This commit is contained in:
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
type ClickType = 'cancel' | 'draft' | 'submit'
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
label: string
|
||||||
|
}>()
|
||||||
|
|
||||||
|
const emit = defineEmits<{
|
||||||
|
(e: 'click', type: ClickType): void
|
||||||
|
}>()
|
||||||
|
|
||||||
|
function onClick(type: ClickType) {
|
||||||
|
emit('click', type)
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Button
|
||||||
|
@click="onClick('draft')"
|
||||||
|
class="flex items-center gap-2 rounded-full border border-orange-400 bg-orange-50 px-3 py-1 text-sm font-medium text-orange-600 hover:bg-orange-100"
|
||||||
|
>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
|
||||||
|
</svg>
|
||||||
|
{{ props.label }}
|
||||||
|
</Button>
|
||||||
|
</template>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
type ClickType = 'cancel' | 'draft' | 'submit'
|
type ClickType = 'cancel' | 'draft' | 'submit' | 'print'
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'click', type: ClickType): void
|
(e: 'click', type: ClickType): void
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
type ClickType = 'cancel' | 'draft' | 'submit'
|
type ClickType = 'cancel' | 'draft' | 'delete' | 'print'
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'click', type: ClickType): void
|
(e: 'click', type: ClickType): void
|
||||||
@@ -20,7 +20,7 @@ function onClick(type: ClickType) {
|
|||||||
<Icon name="i-lucide-file" class="me-2" />
|
<Icon name="i-lucide-file" class="me-2" />
|
||||||
Edit
|
Edit
|
||||||
</Button>
|
</Button>
|
||||||
<Button class="bg-red-500" type="button" @click="onClick('submit')">
|
<Button class="bg-red-500" type="button" @click="onClick('delete')">
|
||||||
<Icon name="i-lucide-trash" class="me-2 align-middle" />
|
<Icon name="i-lucide-trash" class="me-2 align-middle" />
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
type ClickType = 'cancel' | 'draft' | 'submit'
|
type ClickType = 'cancel' | 'draft' | 'delete'
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'click', type: ClickType): void
|
(e: 'click', type: ClickType): void
|
||||||
@@ -20,7 +20,7 @@ function onClick(type: ClickType) {
|
|||||||
<Icon name="i-lucide-file" class="me-2" />
|
<Icon name="i-lucide-file" class="me-2" />
|
||||||
Edit
|
Edit
|
||||||
</Button>
|
</Button>
|
||||||
<Button class="bg-red-500" type="button" @click="onClick('submit')">
|
<Button class="bg-red-500" type="button" @click="onClick('delete')">
|
||||||
<Icon name="i-lucide-trash" class="me-2 align-middle" />
|
<Icon name="i-lucide-trash" class="me-2 align-middle" />
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
type ClickType = 'cancel' | 'draft' | 'submit'
|
type ClickType = 'cancel' | 'draft' | 'print'
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'click', type: ClickType): void
|
(e: 'click', type: ClickType): void
|
||||||
|
|||||||
Reference in New Issue
Block a user