element-plus/packages/components/input/index.ts

14 lines
315 B
TypeScript
Raw Normal View History

import Input from './src/index.vue'
2020-10-29 17:28:26 +08:00
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
Input.install = (app: App): void => {
app.component(Input.name, Input)
}
const _Input = Input as SFCWithInstall<typeof Input>
export default _Input
export const ElInput = _Input