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/util/ThemeProvider.js

22 lines
500 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
import Themeable from '../mixins/themeable';
import mixins from './mixins';
/* @vue/component */
export default mixins(Themeable).extend({
name: 'theme-provider',
props: {
root: Boolean
},
computed: {
isDark() {
return this.root ? this.rootIsDark : Themeable.options.computed.isDark.call(this);
}
},
render() {
return this.$slots.default && this.$slots.default.find(node => !node.isComment && node.text !== ' ');
}
});
//# sourceMappingURL=ThemeProvider.js.map