import VSelect from './VSelect'; import VOverflowBtn from '../VOverflowBtn'; import VAutocomplete from '../VAutocomplete'; import VCombobox from '../VCombobox'; import rebuildSlots from '../../util/rebuildFunctionalSlots'; import dedupeModelListeners from '../../util/dedupeModelListeners'; import { deprecate } from '../../util/console'; /* @vue/component */ var wrapper = { functional: true, $_wrapperFor: VSelect, props: { // VAutoComplete /** @deprecated */ autocomplete: Boolean, /** @deprecated */ combobox: Boolean, multiple: Boolean, /** @deprecated */ tags: Boolean, // VOverflowBtn /** @deprecated */ editable: Boolean, /** @deprecated */ overflow: Boolean, /** @deprecated */ segmented: Boolean }, render: function render(h, _ref) { var props = _ref.props, data = _ref.data, slots = _ref.slots, parent = _ref.parent; dedupeModelListeners(data); var children = rebuildSlots(slots(), h); if (props.autocomplete) { deprecate('', '', wrapper, parent); } if (props.combobox) { deprecate('', '', wrapper, parent); } if (props.tags) { deprecate('', '', wrapper, parent); } if (props.overflow) { deprecate('', '', wrapper, parent); } if (props.segmented) { deprecate('', '', wrapper, parent); } if (props.editable) { deprecate('', '', wrapper, parent); } data.attrs = data.attrs || {}; if (props.combobox || props.tags) { data.attrs.multiple = props.tags; return h(VCombobox, data, children); } else if (props.autocomplete) { data.attrs.multiple = props.multiple; return h(VAutocomplete, data, children); } else if (props.overflow || props.segmented || props.editable) { data.attrs.segmented = props.segmented; data.attrs.editable = props.editable; return h(VOverflowBtn, data, children); } else { data.attrs.multiple = props.multiple; return h(VSelect, data, children); } } }; export { wrapper as VSelect }; export default wrapper; //# sourceMappingURL=index.js.map