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.

index.js 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.VTextField = undefined;
  6. var _VTextField = require('./VTextField');
  7. var _VTextField2 = _interopRequireDefault(_VTextField);
  8. var _VTextarea = require('../VTextarea/VTextarea');
  9. var _VTextarea2 = _interopRequireDefault(_VTextarea);
  10. var _rebuildFunctionalSlots = require('../../util/rebuildFunctionalSlots');
  11. var _rebuildFunctionalSlots2 = _interopRequireDefault(_rebuildFunctionalSlots);
  12. var _dedupeModelListeners = require('../../util/dedupeModelListeners');
  13. var _dedupeModelListeners2 = _interopRequireDefault(_dedupeModelListeners);
  14. var _console = require('../../util/console');
  15. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  16. // TODO: remove this in v2.0
  17. /* @vue/component */
  18. var wrapper = {
  19. functional: true,
  20. $_wrapperFor: _VTextField2.default,
  21. props: {
  22. textarea: Boolean,
  23. multiLine: Boolean
  24. },
  25. render: function render(h, _ref) {
  26. var props = _ref.props,
  27. data = _ref.data,
  28. slots = _ref.slots,
  29. parent = _ref.parent;
  30. (0, _dedupeModelListeners2.default)(data);
  31. var children = (0, _rebuildFunctionalSlots2.default)(slots(), h);
  32. if (props.textarea) {
  33. (0, _console.deprecate)('<v-text-field textarea>', '<v-textarea outline>', wrapper, parent);
  34. }
  35. if (props.multiLine) {
  36. (0, _console.deprecate)('<v-text-field multi-line>', '<v-textarea>', wrapper, parent);
  37. }
  38. if (props.textarea || props.multiLine) {
  39. data.attrs.outline = props.textarea;
  40. return h(_VTextarea2.default, data, children);
  41. } else {
  42. return h(_VTextField2.default, data, children);
  43. }
  44. }
  45. };
  46. exports.VTextField = wrapper;
  47. exports.default = wrapper;
  48. //# sourceMappingURL=index.js.map