完全跑通1.0版本
This commit is contained in:
34
frontend/node_modules/element-plus/es/hooks/use-empty-values/index.d.ts
generated
vendored
Normal file
34
frontend/node_modules/element-plus/es/hooks/use-empty-values/index.d.ts
generated
vendored
Normal 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 };
|
||||
Reference in New Issue
Block a user