mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
import { inject } from 'vue'
|
|
import { elFormKey, elFormItemKey } from '@element-plus/tokens'
|
|
|
|
export const useFormItem = () => {
|
|
const form = inject(elFormKey, undefined)
|
|
const formItem = inject(elFormItemKey, undefined)
|
|
return {
|
|
form,
|
|
formItem,
|
|
}
|
|
}
|