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 938B

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _themeable = require('../mixins/themeable');
  6. var _themeable2 = _interopRequireDefault(_themeable);
  7. var _mixins = require('./mixins');
  8. var _mixins2 = _interopRequireDefault(_mixins);
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. /* @vue/component */
  11. exports.default = (0, _mixins2.default)(_themeable2.default).extend({
  12. name: 'theme-provider',
  13. props: {
  14. root: Boolean
  15. },
  16. computed: {
  17. isDark: function isDark() {
  18. return this.root ? this.rootIsDark : _themeable2.default.options.computed.isDark.call(this);
  19. }
  20. },
  21. render: function render() {
  22. return this.$slots.default && this.$slots.default.find(function (node) {
  23. return !node.isComment && node.text !== ' ';
  24. });
  25. }
  26. });
  27. //# sourceMappingURL=ThemeProvider.js.map