mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
55348b30b6
* style: use prettier * style: just prettier format, no code changes * style: eslint fix object-shorthand, prefer-const * style: fix no-void * style: no-console
28 lines
754 B
TypeScript
28 lines
754 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'
|