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.

picker.js 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _VPicker = require('../components/VPicker');
  6. var _VPicker2 = _interopRequireDefault(_VPicker);
  7. var _colorable = require('./colorable');
  8. var _colorable2 = _interopRequireDefault(_colorable);
  9. var _themeable = require('./themeable');
  10. var _themeable2 = _interopRequireDefault(_themeable);
  11. var _mixins = require('../util/mixins');
  12. var _mixins2 = _interopRequireDefault(_mixins);
  13. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  14. // Components
  15. exports.default = (0, _mixins2.default)(_colorable2.default, _themeable2.default
  16. /* @vue/component */
  17. ).extend({
  18. name: 'picker',
  19. props: {
  20. fullWidth: Boolean,
  21. headerColor: String,
  22. landscape: Boolean,
  23. noTitle: Boolean,
  24. width: {
  25. type: [Number, String],
  26. default: 290
  27. }
  28. },
  29. methods: {
  30. genPickerTitle: function genPickerTitle() {
  31. return null;
  32. },
  33. genPickerBody: function genPickerBody() {
  34. return null;
  35. },
  36. genPickerActionsSlot: function genPickerActionsSlot() {
  37. return this.$scopedSlots.default ? this.$scopedSlots.default({
  38. save: this.save,
  39. cancel: this.cancel
  40. }) : this.$slots.default;
  41. },
  42. genPicker: function genPicker(staticClass) {
  43. var children = [];
  44. if (!this.noTitle) {
  45. var title = this.genPickerTitle();
  46. title && children.push(title);
  47. }
  48. var body = this.genPickerBody();
  49. body && children.push(body);
  50. children.push(this.$createElement('template', { slot: 'actions' }, [this.genPickerActionsSlot()]));
  51. return this.$createElement(_VPicker2.default, {
  52. staticClass: staticClass,
  53. props: {
  54. color: this.headerColor || this.color,
  55. dark: this.dark,
  56. fullWidth: this.fullWidth,
  57. landscape: this.landscape,
  58. light: this.light,
  59. width: this.width
  60. }
  61. }, children);
  62. }
  63. }
  64. });
  65. // Utils
  66. // Mixins
  67. //# sourceMappingURL=picker.js.map