forked from platypush/platypush
[UI] Added title
propery to EditButton
component.
This commit is contained in:
parent
485a1db3d3
commit
b0d9a95331
1 changed files with 13 additions and 4 deletions
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<button class="edit-btn"
|
||||
@click="proxy($event)" @touch="proxy($event)" @input="proxy($event)"
|
||||
>
|
||||
:title="title"
|
||||
@click="proxy($event)"
|
||||
@touch="proxy($event)"
|
||||
@input="proxy($event)">
|
||||
<i class="fas fa-pen-to-square" />
|
||||
</button>
|
||||
</template>
|
||||
|
@ -9,6 +11,13 @@
|
|||
<script>
|
||||
export default {
|
||||
emits: ['input', 'click', 'touch'],
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Edit',
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
proxy(e) {
|
||||
this.$emit(e.type, e)
|
||||
|
@ -26,8 +35,8 @@ export default {
|
|||
border: 1px solid rgba(0, 0, 0, 0);
|
||||
|
||||
&:hover {
|
||||
background: $hover-bg;
|
||||
border: 1px solid $selected-fg;
|
||||
color: $default-hover-fg;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue