element-plus/packages/affix/index.ts
kooriookami 8bda98b075
feat(affix): new component affix (#1260)
* feat(affix): new component affix

re #1247

* feat: add test

* perf: update state

n

* docs: update docs

* perf: pref the component
2021-01-14 17:02:47 +08:00

12 lines
277 B
TypeScript

import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
import Affix from './src/index.vue'
Affix.install = (app: App): void => {
app.component(Affix.name, Affix)
}
const _Affix: SFCWithInstall<typeof Affix> = Affix
export default _Affix