mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
21 lines
490 B
TypeScript
21 lines
490 B
TypeScript
import Form from './src/form.vue'
|
|
import FormItem from './src/form-item.vue'
|
|
|
|
import type { App } from 'vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
|
|
Form.install = (app: App): void => {
|
|
app.component(Form.name, Form)
|
|
app.component(FormItem.name, FormItem)
|
|
}
|
|
|
|
Form.FormItem = FormItem
|
|
|
|
const _Form = Form as any as SFCWithInstall<typeof Form> & {
|
|
FormItem: typeof FormItem
|
|
}
|
|
|
|
export default _Form
|
|
export const ElForm = _Form
|
|
export const ElFormItem = FormItem
|