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.

VBottomSheet.js 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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; };
  6. require('../../../src/stylus/components/_bottom-sheets.styl');
  7. var _VDialog = require('../VDialog/VDialog');
  8. var _VDialog2 = _interopRequireDefault(_VDialog);
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. /* @vue/component */
  11. exports.default = {
  12. name: 'v-bottom-sheet',
  13. props: {
  14. disabled: Boolean,
  15. fullWidth: Boolean,
  16. hideOverlay: Boolean,
  17. inset: Boolean,
  18. lazy: Boolean,
  19. maxWidth: {
  20. type: [String, Number],
  21. default: 'auto'
  22. },
  23. persistent: Boolean,
  24. value: null
  25. },
  26. render: function render(h) {
  27. var activator = h('template', {
  28. slot: 'activator'
  29. }, this.$slots.activator);
  30. var contentClass = ['v-bottom-sheet', this.inset ? 'v-bottom-sheet--inset' : ''].join(' ');
  31. return h(_VDialog2.default, {
  32. attrs: _extends({}, this.$props),
  33. on: _extends({}, this.$listeners),
  34. props: {
  35. contentClass: contentClass,
  36. noClickAnimation: true,
  37. transition: 'bottom-sheet-transition',
  38. value: this.value
  39. }
  40. }, [activator, this.$slots.default]);
  41. }
  42. };
  43. //# sourceMappingURL=VBottomSheet.js.map