Files
SBPanel-Backend/frontend/admin/node_modules/element-plus/lib/hooks/use-empty-values/index.d.ts
CN-JS-HuiBai db7f1ba82f
Some checks failed
build / build (api, amd64, linux) (push) Failing after -51s
build / build (api, arm64, linux) (push) Failing after -52s
build / build (api.exe, amd64, windows) (push) Failing after -51s
使用VUE重构项目
2026-04-20 00:19:11 +08:00

35 lines
1.6 KiB
TypeScript

import { EpPropFinalized } from "../../utils/vue/props/types.js";
import "../../utils/index.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 };