mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
fix: Use css to toggle row remove icon
This commit is contained in:
parent
4a5b55624f
commit
dcfc6891fd
@ -1,21 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<Row
|
<Row :ratio="ratio" class="w-full px-2 border-b hover:bg-brand-100 group">
|
||||||
:ratio="ratio"
|
|
||||||
class="border-b px-2 w-full "
|
|
||||||
:class="{ 'bg-brand-100': hovering }"
|
|
||||||
@mouseover="hovering = true"
|
|
||||||
@mouseleave="hovering = false"
|
|
||||||
@click="hovering = false"
|
|
||||||
>
|
|
||||||
<div class="flex items-center pl-2 text-gray-600">
|
<div class="flex items-center pl-2 text-gray-600">
|
||||||
<span v-if="hovering">
|
<span class="hidden group-hover:inline-block">
|
||||||
<feather-icon
|
<feather-icon
|
||||||
name="x"
|
name="x"
|
||||||
class="w-4 h-4 -ml-1 cursor-pointer"
|
class="w-4 h-4 -ml-1 cursor-pointer"
|
||||||
@click="$emit('remove')"
|
@click="$emit('remove')"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span class="group-hover:hidden">
|
||||||
{{ row.idx + 1 }}
|
{{ row.idx + 1 }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user