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.

rippleable.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _ripple = require('../directives/ripple');
  6. var _ripple2 = _interopRequireDefault(_ripple);
  7. var _vue = require('vue');
  8. var _vue2 = _interopRequireDefault(_vue);
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. // Directives
  11. exports.default = _vue2.default.extend({
  12. name: 'rippleable',
  13. directives: { Ripple: _ripple2.default },
  14. props: {
  15. ripple: {
  16. type: [Boolean, Object],
  17. default: true
  18. }
  19. },
  20. methods: {
  21. genRipple: function genRipple() {
  22. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  23. if (!this.ripple) return null;
  24. data.staticClass = 'v-input--selection-controls__ripple';
  25. data.directives = data.directives || [];
  26. data.directives.push({
  27. name: 'ripple',
  28. value: { center: true }
  29. });
  30. data.on = Object.assign({
  31. click: this.onChange
  32. }, this.$listeners);
  33. return this.$createElement('div', data);
  34. },
  35. onChange: function onChange() {}
  36. }
  37. });
  38. // Types
  39. //# sourceMappingURL=rippleable.js.map