mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
add disabled state for clear icon
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
class="clear-icon"
|
:class="['clear-icon', {'disabled': disabled}]"
|
||||||
width="20"
|
width="20"
|
||||||
height="20"
|
height="20"
|
||||||
viewBox="0 0 20 20"
|
viewBox="0 0 20 20"
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ClearIcon'
|
name: 'ClearIcon',
|
||||||
|
props: ['disabled']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -29,4 +30,12 @@ export default {
|
|||||||
.clear-icon:hover path {
|
.clear-icon:hover path {
|
||||||
fill: var(--color-danger);
|
fill: var(--color-danger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled.clear-icon {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.disabled.clear-icon:hover path {
|
||||||
|
fill: #C8D4E3;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user