This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/components/VDivider/VDivider.js

37 lines
819 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
// Styles
import "../../../src/components/VDivider/VDivider.sass"; // Mixins
import Themeable from '../../mixins/themeable';
export default Themeable.extend({
name: 'v-divider',
props: {
inset: Boolean,
vertical: Boolean
},
render(h) {
// WAI-ARIA attributes
let orientation;
if (!this.$attrs.role || this.$attrs.role === 'separator') {
orientation = this.vertical ? 'vertical' : 'horizontal';
}
return h('hr', {
class: {
'v-divider': true,
'v-divider--inset': this.inset,
'v-divider--vertical': this.vertical,
...this.themeClasses
},
attrs: {
role: 'separator',
'aria-orientation': orientation,
...this.$attrs
},
on: this.$listeners
});
}
});
//# sourceMappingURL=VDivider.js.map