{"version":3,"file":"use-select-option-data.mjs","sources":["../../../../../../../packages/components/select/src/hooks/use-select-option-data.ts"],"sourcesContent":["import { ref, Ref, ExtractPropTypes } from 'vue'\nimport { selectProps } from '../select'\n\ntype SelectProps = ExtractPropTypes<typeof selectProps>\n\nexport interface SelectOptionDataHookStates {\n\tfilterValue?: Ref<string>\n\tinputValue?: Ref<string>\n\tmultipleInputValue?: Ref<string>\n\tmultipleFilterValue?: Ref<string>\n}\n\nexport function useSelectOptionData({\n\tprops,\n\texternalStates,\n}: {\n\tprops: SelectProps\n\texternalStates?: SelectOptionDataHookStates\n}) {\n\tconst selected = ref<any>(props.multiple ? [] : null) // 更合理的初始值\n\n\tif (externalStates) {\n\t\tconsole.log(externalStates)\n\t}\n\n\treturn {\n\t\tselected,\n\t}\n}\n"],"names":[],"mappings":";;AAYO,SAAS,mBAAoB,CAAA;AAAA,EACnC,KAAA;AAAA,EACA,cAAA;AACD,CAGG,EAAA;AACF,EAAA,MAAM,WAAW,GAAS,CAAA,KAAA,CAAM,QAAW,GAAA,KAAK,IAAI,CAAA,CAAA;AAEpD,EAAA,IAAI,cAAgB,EAAA;AACnB,IAAA,OAAA,CAAQ,IAAI,cAAc,CAAA,CAAA;AAAA,GAC3B;AAEA,EAAO,OAAA;AAAA,IACN,QAAA;AAAA,GACD,CAAA;AACD;;;;"}