mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
chore: prettier all codes (#10240)
This commit is contained in:
@@ -6,9 +6,8 @@ export type CustomFieldInjectionValue = {
|
||||
validateWithTrigger: (trigger: 'onBlur' | 'onChange' | 'onSubmit') => void;
|
||||
};
|
||||
|
||||
export const CUSTOM_FIELD_INJECTION_KEY: InjectionKey<CustomFieldInjectionValue> = Symbol(
|
||||
'van-field'
|
||||
);
|
||||
export const CUSTOM_FIELD_INJECTION_KEY: InjectionKey<CustomFieldInjectionValue> =
|
||||
Symbol('van-field');
|
||||
|
||||
export function useCustomFieldValue(customValue: () => unknown) {
|
||||
const field = inject(CUSTOM_FIELD_INJECTION_KEY, null);
|
||||
|
Reference in New Issue
Block a user