Skip to content
Snippets Groups Projects
Commit eb82da52 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин :clock4:
Browse files

fix: build

parent 6973fdc1
No related branches found
No related tags found
1 merge request!5Update Table
......@@ -45,7 +45,7 @@ export interface ITableProps {
};
handlers?: {
cell: [number, number];
handler?: unknown;
handler?: () => void;
}[];
}
......
......@@ -31,7 +31,7 @@ if (props.value) {
value.value = props.value;
}
const propValue = computed(() => props.value);
watch(propValue, () => (value.value = propValue.value));
watch(propValue, () => (value.value = propValue.value ?? value.value));
watch(value, () => emit('update', value));
const isClickHold = ref<boolean>(false);
......
......@@ -22,7 +22,7 @@ if (props.value) {
value.value = props.value;
}
const propValue = computed(() => props.value);
watch(propValue, () => (value.value = propValue.value));
watch(propValue, () => (value.value = propValue.value ?? value.value));
watch(value, () => emit('update', value));
const onHoverIndex = ref();
......
......@@ -160,7 +160,7 @@ const updateData = (newValue: Ref<unknown>, rowIndex: number, columnIndex: numbe
v-for="(item, columnIndex) of row"
:key="columnIndex"
@click="
handlers ? handlers?.find((i) => i.cell?.[0] === rowIndex && i.cell?.[1] === columnIndex)?.handler() : null
handlers ? handlers.find((i) => i.cell?.[0] === rowIndex && i.cell?.[1] === columnIndex)?.handler?.() : null
"
:class="{
leftBorder: showAllLines,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment