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/VDataTable/VDataTableHeader.js
2019-08-11 20:48:02 +02:00

30 lines
No EOL
805 B
JavaScript

import "../../../src/components/VDataTable/VDataTableHeader.sass";
import Vue from 'vue';
import dedupeModelListeners from '../../util/dedupeModelListeners';
import rebuildSlots from '../../util/rebuildFunctionalSlots';
import VDataTableHeaderMobile from './VDataTableHeaderMobile';
import VDataTableHeaderDesktop from './VDataTableHeaderDesktop';
export default Vue.extend({
name: 'v-data-table-header',
functional: true,
props: {
mobile: Boolean
},
render(h, {
props,
data,
slots
}) {
dedupeModelListeners(data);
const children = rebuildSlots(slots(), h);
if (props.mobile) {
return h(VDataTableHeaderMobile, data, children);
} else {
return h(VDataTableHeaderDesktop, data, children);
}
}
});
//# sourceMappingURL=VDataTableHeader.js.map