refactor: reorganize all components (#8303)

This commit is contained in:
neverland
2021-03-08 11:50:37 +08:00
committed by GitHub
parent 3144a63d2b
commit e540876398
193 changed files with 1307 additions and 400 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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) {