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

1234567891011121314151617181920212223242526
  1. 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; };
  2. // Styles
  3. import '../../../src/stylus/components/_button-toggle.styl';
  4. // Mixins
  5. import ButtonGroup from '../../mixins/button-group';
  6. /* @vue/component */
  7. export default ButtonGroup.extend({
  8. name: 'v-btn-toggle',
  9. props: {
  10. activeClass: {
  11. type: String,
  12. default: 'v-btn--active'
  13. }
  14. },
  15. computed: {
  16. classes: function classes() {
  17. return _extends({}, ButtonGroup.options.computed.classes.call(this), {
  18. 'v-btn-toggle': true,
  19. 'v-btn-toggle--only-child': this.selectedItems.length === 1,
  20. 'v-btn-toggle--selected': this.selectedItems.length > 0
  21. });
  22. }
  23. }
  24. });
  25. //# sourceMappingURL=VBtnToggle.js.map