mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +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
14 lines
315 B
TypeScript
14 lines
315 B
TypeScript
import Affix from './src/index.vue'
|
|
|
|
import type { App } from 'vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
|
|
Affix.install = (app: App): void => {
|
|
app.component(Affix.name, Affix)
|
|
}
|
|
|
|
const _Affix = Affix as SFCWithInstall<typeof Affix>
|
|
|
|
export default _Affix
|
|
export const ElAffix = _Affix
|