Ohm-Management - Projektarbeit B-ME
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.

ThemeProvider.js 606B

1234567891011121314151617181920
  1. import Themeable from '../mixins/themeable';
  2. import mixins from './mixins';
  3. /* @vue/component */
  4. export default mixins(Themeable).extend({
  5. name: 'theme-provider',
  6. props: {
  7. root: Boolean
  8. },
  9. computed: {
  10. isDark: function isDark() {
  11. return this.root ? this.rootIsDark : Themeable.options.computed.isDark.call(this);
  12. }
  13. },
  14. render: function render() {
  15. return this.$slots.default && this.$slots.default.find(function (node) {
  16. return !node.isComment && node.text !== ' ';
  17. });
  18. }
  19. });
  20. //# sourceMappingURL=ThemeProvider.js.map