StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/bootstrap-vue/src/components/dropdown/dropdown-item-button.js

68 lines
1.4 KiB

import Vue from '../../utils/vue'
import normalizeSlotMixin from '../../mixins/normalize-slot'
export const props = {
active: {
type: Boolean,
default: false
},
activeClass: {
type: String,
default: 'active'
},
disabled: {
type: Boolean,
default: false
},
variant: {
type: String,
default: null
}
}
// @vue/component
export const BDropdownItemButton = /*#__PURE__*/ Vue.extend({
name: 'BDropdownItemButton',
mixins: [normalizeSlotMixin],
inheritAttrs: false,
inject: {
bvDropdown: {
default: null
}
},
props,
methods: {
closeDropdown() {
if (this.bvDropdown) {
this.bvDropdown.hide(true)
}
},
onClick(evt) {
this.$emit('click', evt)
this.closeDropdown()
}
},
render(h) {
return h('li', { attrs: { role: 'presentation' } }, [
h(
'button',
{
staticClass: 'dropdown-item',
class: {
[this.activeClass]: this.active,
[`text-${this.variant}`]: this.variant && !(this.active || this.disabled)
},
attrs: {
...this.$attrs,
role: 'menuitem',
type: 'button',
disabled: this.disabled
},
on: { click: this.onClick },
ref: 'button'
},
this.normalizeSlot('default')
)
])
}
})