mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
20 lines
538 B
TypeScript
20 lines
538 B
TypeScript
|
import { App } from 'vue'
|
||
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
||
|
import Button from './src/button.vue'
|
||
|
import ButtonGroup from './src/button-group.vue'
|
||
|
|
||
|
Button.install = (app: App): void => {
|
||
|
app.component(Button.name, Button)
|
||
|
app.component(ButtonGroup.name, ButtonGroup)
|
||
|
}
|
||
|
|
||
|
Button.ButtonGroup = ButtonGroup
|
||
|
|
||
|
const _Button = Button as any as SFCWithInstall<typeof Button> & {
|
||
|
ButtonGroup: typeof ButtonGroup
|
||
|
}
|
||
|
|
||
|
export default _Button
|
||
|
export const ElButton = _Button
|
||
|
export const ElButtonGroup = ButtonGroup
|