mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 20:40:17 +08:00

* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
21 lines
649 B
TypeScript
21 lines
649 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'
|