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IAAc,EAA3B;AAEA,YAAI,MAAM,QAAN,IAAkB,MAAM,IAA5B,EAAkC;AAChC,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,IAA5B;AACA,mBAAO,EAAE,mBAAF,EAAa,IAAb,EAAmB,QAAnB,CAAP;AACD,SAHD,MAGO,IAAI,MAAM,YAAV,EAAwB;AAC7B,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,QAA5B;AACA,mBAAO,EAAE,uBAAF,EAAiB,IAAjB,EAAuB,QAAvB,CAAP;AACD,SAHM,MAGA,IAAI,MAAM,QAAN,IAAkB,MAAM,SAAxB,IAAqC,MAAM,QAA/C,EAAyD;AAC9D,iBAAK,KAAL,CAAW,SAAX,GAAuB,MAAM,SAA7B;AACA,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,QAA5B;AACA,mBAAO,EAAE,sBAAF,EAAgB,IAAhB,EAAsB,QAAtB,CAAP;AACD,SAJM,MAIA;AACL,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,QAA5B;AACA,mBAAO,EAAE,iBAAF,EAAW,IAAX,EAAiB,QAAjB,CAAP;AACD;AACF;AA/Da,CAAhB;QAkEoB,O,GAAX,O;kBAEM,O","sourcesContent":["import VSelect from './VSelect'\nimport VOverflowBtn from '../VOverflowBtn'\nimport VAutocomplete from '../VAutocomplete'\nimport VCombobox from '../VCombobox'\nimport rebuildSlots from '../../util/rebuildFunctionalSlots'\nimport dedupeModelListeners from '../../util/dedupeModelListeners'\nimport { deprecate } from '../../util/console'\n\n/* @vue/component */\nconst wrapper = {\n functional: true,\n\n $_wrapperFor: VSelect,\n\n props: {\n // VAutoComplete\n /** @deprecated */\n autocomplete: Boolean,\n /** @deprecated */\n combobox: Boolean,\n multiple: Boolean,\n /** @deprecated */\n tags: Boolean,\n // VOverflowBtn\n /** @deprecated */\n editable: Boolean,\n /** @deprecated */\n overflow: Boolean,\n /** @deprecated */\n segmented: Boolean\n },\n\n render (h, { props, data, slots, parent }) { // eslint-disable-line max-statements\n dedupeModelListeners(data)\n const children = rebuildSlots(slots(), h)\n\n if (props.autocomplete) {\n deprecate('<v-select autocomplete>', '<v-autocomplete>', wrapper, parent)\n }\n if (props.combobox) {\n deprecate('<v-select combobox>', '<v-combobox>', wrapper, parent)\n }\n if (props.tags) {\n deprecate('<v-select tags>', '<v-combobox multiple>', wrapper, parent)\n }\n\n if (props.overflow) {\n deprecate('<v-select overflow>', '<v-overflow-btn>', wrapper, parent)\n }\n if (props.segmented) {\n deprecate('<v-select segmented>', '<v-overflow-btn segmented>', wrapper, parent)\n }\n if (props.editable) {\n deprecate('<v-select editable>', '<v-overflow-btn editable>', wrapper, parent)\n }\n\n data.attrs = data.attrs || {}\n\n if (props.combobox || props.tags) {\n data.attrs.multiple = props.tags\n return h(VCombobox, data, children)\n } else if (props.autocomplete) {\n data.attrs.multiple = props.multiple\n return h(VAutocomplete, data, children)\n } else if (props.overflow || props.segmented || props.editable) {\n data.attrs.segmented = props.segmented\n data.attrs.editable = props.editable\n return h(VOverflowBtn, data, children)\n } else {\n data.attrs.multiple = props.multiple\n return h(VSelect, data, children)\n }\n }\n}\n\nexport { wrapper as VSelect }\n\nexport default wrapper\n"],"sourceRoot":""}
|