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.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import VTextField from './VTextField';
  2. import VTextarea from '../VTextarea/VTextarea';
  3. import rebuildSlots from '../../util/rebuildFunctionalSlots';
  4. import dedupeModelListeners from '../../util/dedupeModelListeners';
  5. import { deprecate } from '../../util/console';
  6. // TODO: remove this in v2.0
  7. /* @vue/component */
  8. var wrapper = {
  9. functional: true,
  10. $_wrapperFor: VTextField,
  11. props: {
  12. textarea: Boolean,
  13. multiLine: Boolean
  14. },
  15. render: function render(h, _ref) {
  16. var props = _ref.props,
  17. data = _ref.data,
  18. slots = _ref.slots,
  19. parent = _ref.parent;
  20. dedupeModelListeners(data);
  21. var children = rebuildSlots(slots(), h);
  22. if (props.textarea) {
  23. deprecate('<v-text-field textarea>', '<v-textarea outline>', wrapper, parent);
  24. }
  25. if (props.multiLine) {
  26. deprecate('<v-text-field multi-line>', '<v-textarea>', wrapper, parent);
  27. }
  28. if (props.textarea || props.multiLine) {
  29. data.attrs.outline = props.textarea;
  30. return h(VTextarea, data, children);
  31. } else {
  32. return h(VTextField, data, children);
  33. }
  34. }
  35. };
  36. export { wrapper as VTextField };
  37. export default wrapper;
  38. //# sourceMappingURL=index.js.map