refactor: reorganize all components (#8303)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { ComponentInstance } from '../utils';
|
||||
import { watch, inject } from 'vue';
|
||||
|
||||
export const FORM_KEY = Symbol('Form');
|
||||
export const FIELD_KEY = Symbol('Field');
|
||||
export const FORM_KEY = Symbol('van-form');
|
||||
export const FIELD_KEY = Symbol('van-field');
|
||||
|
||||
export function useLinkField(getValue: () => unknown) {
|
||||
const field = inject(FIELD_KEY, null) as ComponentInstance | null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Ref } from 'vue';
|
||||
import { useHeight } from './use-height';
|
||||
import type { Ref } from 'vue';
|
||||
import type { BEM } from '../utils/create/bem';
|
||||
|
||||
export function usePlaceholder(contentRef: Ref<Element | undefined>, bem: BEM) {
|
||||
|
||||
Reference in New Issue
Block a user