1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 18x 18x 18x 18x 18x 18x 18x | <template> <button class="dropdown-item" I type="button" role="menuitem" E :disabled="disabled" @click="onClick"> <slot></slot> </button> </template> <script> export default { props: { disabled: { type: Boolean, default: false } }, methods: { onClick(e) { this.$root.$emit("clicked::link", this); this.$emit("click", e); }, } }; </script> |