Upravy UI, refaktoring, davkove upravy a mazani fotek
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
routeAdd: {
|
||||
type: Object,
|
||||
required: false
|
||||
},
|
||||
labelAdd: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: "Přidat"
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="q-pa-md q-gutter-sm">
|
||||
<q-banner class="bg-light-blue text-white">
|
||||
<template v-slot:avatar>
|
||||
<q-icon name="info"/>
|
||||
</template>
|
||||
<slot/>
|
||||
|
||||
<template v-slot:action v-if="routeAdd">
|
||||
<q-btn flat color="white" :to="routeAdd" :label="labelAdd"/>
|
||||
</template>
|
||||
</q-banner>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user