{"version":3,"file":"select.mjs","sources":["../../../../../../packages/components/select/src/select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\r\n\r\nimport type { ExtractPropTypes } from 'vue'\r\n\r\nimport type SelectOptGroup from './select-opt-group.vue'\r\nimport type SelectOption from './select-option.vue'\r\nimport type Select from './select.vue'\r\n\r\nexport const selectProps = buildProps({\r\n  //  是否灰色样式\r\n  isGray: {\r\n    type: Boolean,\r\n    default: false,\r\n  },\r\n  //  最多显示多少个 tag\r\n  maxTagCount: {\r\n    type: Number,\r\n    default: null,\r\n  },\r\n  // 最大显示的 tag 文本长度\r\n  maxTagTextLength: {\r\n    type: Number,\r\n    default: null,\r\n  },\r\n})\r\nexport const selectOptionProps = buildProps({\r\n  class: String,\r\n  disabled: {\r\n    type: String,\r\n    default: false,\r\n  },\r\n  key: String,\r\n  title: String,\r\n  value: {\r\n    type: definePropType<string | number>([String, Number]),\r\n  },\r\n})\r\n\r\nexport const selectOptGroupProps = buildProps({\r\n  key: String,\r\n  label: {\r\n    type: String,\r\n    default: '',\r\n  },\r\n})\r\n\r\n// props\r\nexport type SelectProps = ExtractPropTypes<typeof selectProps>\r\n\r\nexport type SelctOptionProps = ExtractPropTypes<typeof selectOptionProps>\r\n\r\nexport type SelectOptGroupGroupProps = ExtractPropTypes<\r\n  typeof selectOptGroupProps\r\n>\r\n\r\n// instance\r\nexport type SelectInstance = InstanceType<typeof Select>\r\n\r\nexport type SelectOptionInstance = InstanceType<typeof SelectOption>\r\n\r\nexport type SelectOptGroupInstance = InstanceType<typeof SelectOptGroup>\r\n"],"names":[],"mappings":";;;;AAQO,MAAM,cAAc,UAAA,CAAW;AAAA;AAAA,EAEpC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAC;AACM,MAAM,oBAAoB,UAAA,CAAW;AAAA,EAC1C,KAAA,EAAO,MAAA;AAAA,EACP,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,GAAA,EAAK,MAAA;AAAA,EACL,KAAA,EAAO,MAAA;AAAA,EACP,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,cAAA,CAAgC,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA;AAE1D,CAAC;AAEM,MAAM,sBAAsB,UAAA,CAAW;AAAA,EAC5C,GAAA,EAAK,MAAA;AAAA,EACL,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAC;;;;"}