mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 10:00:58 +08:00

* chore: [select] remove @ts-nocheck directive * Update packages/components/select/src/option.vue Co-authored-by: qiang <qw13131wang@gmail.com> * chore: delete useless type * Update packages/components/select/src/useSelect.ts Co-authored-by: qiang <qw13131wang@gmail.com> * fix: type error * fix: type error * chore: use buildProps * chore: add type * Update packages/components/select/src/useSelect.ts Co-authored-by: btea <2356281422@qq.com> * chore: fix type * chore: fix type * chore: fix types --------- Co-authored-by: warmthsea <2586244885@qq.com> Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com> Co-authored-by: qiang <qw13131wang@gmail.com> Co-authored-by: btea <2356281422@qq.com>
28 lines
790 B
TypeScript
28 lines
790 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Select from './src/select.vue'
|
|
import Option from './src/option.vue'
|
|
import OptionGroup from './src/option-group.vue'
|
|
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElSelect: SFCWithInstall<typeof Select> & {
|
|
Option: typeof Option
|
|
OptionGroup: typeof OptionGroup
|
|
} = withInstall(Select, {
|
|
Option,
|
|
OptionGroup,
|
|
})
|
|
export default ElSelect
|
|
export const ElOption: SFCWithInstall<typeof Option> = withNoopInstall(Option)
|
|
export const ElOptionGroup: SFCWithInstall<typeof OptionGroup> =
|
|
withNoopInstall(OptionGroup)
|
|
|
|
export * from './src/token'
|
|
export * from './src/select'
|
|
|
|
export type {
|
|
SelectContext,
|
|
OptionPublicInstance as SelectOptionProxy,
|
|
OptionBasic,
|
|
} from './src/type'
|