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.
38 lines
974 B
38 lines
974 B
import Vue from '../../utils/vue'
|
|
import { mergeData } from 'vue-functional-data-merge'
|
|
import pluckProps from '../../utils/pluck-props'
|
|
import { props as BNavProps } from '../nav/nav'
|
|
|
|
// -- Constants --
|
|
|
|
export const props = pluckProps(['tag', 'fill', 'justified', 'align', 'small'], BNavProps)
|
|
|
|
// -- Utils --
|
|
|
|
const computeJustifyContent = value => {
|
|
// Normalize value
|
|
value = value === 'left' ? 'start' : value === 'right' ? 'end' : value
|
|
return `justify-content-${value}`
|
|
}
|
|
|
|
// @vue/component
|
|
export const BNavbarNav = /*#__PURE__*/ Vue.extend({
|
|
name: 'BNavbarNav',
|
|
functional: true,
|
|
props,
|
|
render(h, { props, data, children }) {
|
|
return h(
|
|
props.tag,
|
|
mergeData(data, {
|
|
staticClass: 'navbar-nav',
|
|
class: {
|
|
'nav-fill': props.fill,
|
|
'nav-justified': props.justified,
|
|
[computeJustifyContent(props.align)]: props.align,
|
|
small: props.small
|
|
}
|
|
}),
|
|
children
|
|
)
|
|
}
|
|
})
|
|
|