完全跑通1.0版本

This commit is contained in:
2026-05-26 12:56:03 +08:00
parent 2ece5174a7
commit 93c714a93b
11557 changed files with 1648225 additions and 36 deletions

View File

@@ -0,0 +1,34 @@
import { EpPropFinalized } from "../../utils/vue/props/types.js";
import * as _$vue from "vue";
import { InjectionKey, Ref } from "vue";
//#region ../../packages/hooks/use-empty-values/index.d.ts
type ValueOnClear = string | number | boolean | Function | null;
interface UseEmptyValuesProps {
/**
* @description empty values supported by the component
*/
emptyValues?: unknown[];
/**
* @description return value when cleared, if you want to set `undefined`, use `() => undefined`
*/
valueOnClear?: ValueOnClear;
}
declare const emptyValuesContextKey: InjectionKey<Ref<UseEmptyValuesProps>>;
declare const SCOPE = "use-empty-values";
declare const DEFAULT_EMPTY_VALUES: (string | null | undefined)[];
declare const DEFAULT_VALUE_ON_CLEAR: undefined;
/**
* @deprecated Removed after 3.0.0, Use `UseEmptyValuesProps` instead.
*/
declare const useEmptyValuesProps: {
readonly emptyValues: ArrayConstructor;
readonly valueOnClear: EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
};
declare const useEmptyValues: (props: UseEmptyValuesProps, defaultValue?: null | undefined) => {
emptyValues: _$vue.ComputedRef<unknown[]>;
valueOnClear: _$vue.ComputedRef<any>;
isEmptyValue: (value: unknown) => boolean;
};
//#endregion
export { DEFAULT_EMPTY_VALUES, DEFAULT_VALUE_ON_CLEAR, SCOPE, UseEmptyValuesProps, emptyValuesContextKey, useEmptyValues, useEmptyValuesProps };