mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
29 lines
755 B
TypeScript
29 lines
755 B
TypeScript
import Radio from './src/radio.vue'
|
|
import RadioButton from './src/radio-button.vue'
|
|
import RadioGroup from './src/radio-group.vue'
|
|
|
|
import type { App } from 'vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
|
|
|
|
Radio.install = (app: App): void => {
|
|
app.component(Radio.name, Radio)
|
|
app.component(RadioButton.name, RadioButton)
|
|
app.component(RadioGroup.name, RadioGroup)
|
|
}
|
|
|
|
Radio.RadioButton = RadioButton
|
|
Radio.RadioGroup = RadioGroup
|
|
|
|
const _Radio = Radio as any as SFCWithInstall<typeof Radio> & {
|
|
RadioButton: typeof RadioButton
|
|
RadioGroup: typeof RadioGroup
|
|
}
|
|
|
|
export default _Radio
|
|
export const ElRadio = _Radio
|
|
export const ElRadioGroup = RadioGroup
|
|
export const ElRadioButton = RadioButton
|
|
|
|
export * from './src/token'
|