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.

VBtnToggle.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; // Styles
  6. // Mixins
  7. require('../../../src/stylus/components/_button-toggle.styl');
  8. var _buttonGroup = require('../../mixins/button-group');
  9. var _buttonGroup2 = _interopRequireDefault(_buttonGroup);
  10. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11. /* @vue/component */
  12. exports.default = _buttonGroup2.default.extend({
  13. name: 'v-btn-toggle',
  14. props: {
  15. activeClass: {
  16. type: String,
  17. default: 'v-btn--active'
  18. }
  19. },
  20. computed: {
  21. classes: function classes() {
  22. return _extends({}, _buttonGroup2.default.options.computed.classes.call(this), {
  23. 'v-btn-toggle': true,
  24. 'v-btn-toggle--only-child': this.selectedItems.length === 1,
  25. 'v-btn-toggle--selected': this.selectedItems.length > 0
  26. });
  27. }
  28. }
  29. });
  30. //# sourceMappingURL=VBtnToggle.js.map