build mock views
This commit is contained in:
parent
b0ed2c68f9
commit
44d47db0ad
10 changed files with 1963 additions and 9 deletions
|
|
@ -36,6 +36,14 @@
|
|||
:severity="getBadgeColor(slotProps.data[col.fieldName])"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="col.type === 'button'" #body="slotProps">
|
||||
<Button
|
||||
:label="slotProps.data[col.fieldName]"
|
||||
size="small"
|
||||
severity="info"
|
||||
@click="$emit('rowClick', slotProps)"
|
||||
/>
|
||||
</template>
|
||||
</Column>
|
||||
</DataTable>
|
||||
</template>
|
||||
|
|
@ -44,6 +52,7 @@ import { defineProps } from "vue";
|
|||
import DataTable from "primevue/datatable";
|
||||
import Column from "primevue/column";
|
||||
import Tag from "primevue/tag";
|
||||
import Button from "primevue/button";
|
||||
import InputText from "primevue/inputtext";
|
||||
import { ref } from "vue";
|
||||
import { FilterMatchMode } from "@primevue/core";
|
||||
|
|
@ -64,6 +73,8 @@ const props = defineProps({
|
|||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(['rowClick']);
|
||||
|
||||
const filterRef = ref(props.filters);
|
||||
const selectedRows = ref();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue