mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Set random ID(generated by vue component) to dropdown button
This commit is contained in:
parent
b1725d4e42
commit
b6efe390fa
@ -3,18 +3,18 @@
|
||||
<a class="btn btn-sm btn-secondary dropdown-toggle"
|
||||
href="#"
|
||||
role="button"
|
||||
id="dropdownMenuLink"
|
||||
:id="_uid"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
{{label}}
|
||||
{{ label }}
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
|
||||
<div class="dropdown-menu dropdown-menu-right" :aria-labelledby="_uid">
|
||||
<a class="dropdown-item"
|
||||
v-for="option in options"
|
||||
:key="option.label"
|
||||
@click="option.handler">
|
||||
{{option.label}}
|
||||
{{ option.label }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -22,9 +22,8 @@
|
||||
<script>
|
||||
export default {
|
||||
props: ['label', 'options']
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user