ваше сообщение коммита

This commit is contained in:
2025-06-01 17:26:59 +03:00
parent 2507d776e0
commit 77f09a03a5
19 changed files with 514 additions and 769 deletions

View File

@@ -0,0 +1,36 @@
<template>
<tr>
<TableCell
v-for="col in columns"
:key="col.id"
:row-id="row.id"
:column="col"
:cell-values="cellValues"
@update="val => $emit('update', { rowId: row.id, columnId: col.id, value: val })"
/>
<td>
<button class="danger" @click="$emit('delete')">Удалить</button>
</td>
</tr>
</template>
<script setup>
import TableCell from './TableCell.vue';
const props = defineProps(['row', 'columns', 'cellValues']);
</script>
<style scoped>
.danger {
background: #ff4d4f;
color: #fff;
border: none;
border-radius: 6px;
padding: 0.3em 0.8em;
cursor: pointer;
font-weight: 500;
transition: background 0.2s;
}
.danger:hover {
background: #d9363e;
}
</style>