change whole backend and tables for gorm table references
simplify tables with table components close #31
This commit is contained in:
18
src/vueLib/tables/components/IconComponent.vue
Normal file
18
src/vueLib/tables/components/IconComponent.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<q-td :props="props.tdProps" :class="props.inClass">
|
||||
<q-icon :name="props.name" :color="props.color" :size="props.size" />
|
||||
</q-td>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const props = defineProps({
|
||||
tdProps: { type: Object },
|
||||
name: { type: String, required: true },
|
||||
color: String,
|
||||
inClass: String,
|
||||
size: {
|
||||
type: String,
|
||||
validator: (v: string) => ['xs', 'sm', 'md', 'lg', 'xl'].includes(v),
|
||||
},
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user