mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +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,
|
|
}
|
|
}
|