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
2019-08-11 20:48:02 +02:00

37 lines
No EOL
819 B
JavaScript

// 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