first commit
This commit is contained in:
+87
@@ -0,0 +1,87 @@
|
||||
import { IconPropType } from "../../../utils/vue/icon.js";
|
||||
import "../../../utils/index.js";
|
||||
import { PopperEffect } from "../../popper/src/popper.js";
|
||||
import { Node } from "../../cascader-panel/src/node.js";
|
||||
import { CascaderNodePathValue, CascaderNodeValue, CascaderOption, CascaderProps, CascaderValue } from "../../cascader-panel/src/types.js";
|
||||
import { CascaderPanelInstance } from "../../cascader-panel/src/instance.js";
|
||||
import "../../cascader-panel/index.js";
|
||||
import { CascaderComponentProps } from "./cascader.js";
|
||||
import { Placement } from "../../popper/index.js";
|
||||
import * as vue from "vue";
|
||||
import { ComputedRef, StyleValue } from "vue";
|
||||
|
||||
//#region ../../packages/components/cascader/src/cascader.vue.d.ts
|
||||
declare const __VLS_base: vue.DefineComponent<CascaderComponentProps, {
|
||||
/**
|
||||
* @description get an array of currently selected node,(leafOnly) whether only return the leaf checked nodes, default is `false`
|
||||
*/
|
||||
getCheckedNodes: (leafOnly: boolean) => Node[] | undefined;
|
||||
/**
|
||||
* @description cascader panel ref
|
||||
*/
|
||||
cascaderPanelRef: vue.Ref<CascaderPanelInstance | undefined, CascaderPanelInstance | undefined>;
|
||||
/**
|
||||
* @description toggle the visible of popper
|
||||
*/
|
||||
togglePopperVisible: (visible?: boolean) => void;
|
||||
/**
|
||||
* @description cascader content ref
|
||||
*/
|
||||
contentRef: ComputedRef<HTMLElement | undefined>;
|
||||
/**
|
||||
* @description selected content text
|
||||
*/
|
||||
presentText: ComputedRef<string>; /** @description focus the input element */
|
||||
focus: () => void; /** @description blur the input element */
|
||||
blur: () => void;
|
||||
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
||||
blur: (evt: FocusEvent) => void;
|
||||
focus: (evt: FocusEvent) => void;
|
||||
clear: () => void;
|
||||
"update:modelValue": (value: CascaderValue | null | undefined) => void;
|
||||
change: (value: CascaderValue | null | undefined) => void;
|
||||
visibleChange: (val: boolean) => void;
|
||||
expandChange: (val: CascaderValue) => void;
|
||||
removeTag: (val: CascaderNodeValue | CascaderNodePathValue) => void;
|
||||
}, string, vue.PublicProps, Readonly<CascaderComponentProps> & Readonly<{
|
||||
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
||||
onChange?: ((value: CascaderValue | null | undefined) => any) | undefined;
|
||||
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
||||
onClear?: (() => any) | undefined;
|
||||
"onUpdate:modelValue"?: ((value: CascaderValue | null | undefined) => any) | undefined;
|
||||
onVisibleChange?: ((val: boolean) => any) | undefined;
|
||||
onExpandChange?: ((val: CascaderValue) => any) | undefined;
|
||||
onRemoveTag?: ((val: CascaderNodeValue | CascaderNodePathValue) => any) | undefined;
|
||||
}>, {
|
||||
effect: PopperEffect;
|
||||
props: CascaderProps;
|
||||
separator: string;
|
||||
disabled: boolean;
|
||||
showPrefix: boolean;
|
||||
clearIcon: IconPropType;
|
||||
filterMethod: (node: Node, keyword: string) => boolean;
|
||||
showAllLevels: boolean;
|
||||
maxCollapseTags: number;
|
||||
debounce: number;
|
||||
beforeFilter: (value: string) => boolean | Promise<any>;
|
||||
placement: Placement;
|
||||
fallbackPlacements: Placement[];
|
||||
popperStyle: string | false | vue.CSSProperties | StyleValue[] | null;
|
||||
teleported: boolean;
|
||||
tagType: "info" | "primary" | "success" | "warning" | "danger";
|
||||
tagEffect: "light" | "dark" | "plain";
|
||||
validateEvent: boolean;
|
||||
persistent: boolean;
|
||||
showCheckedStrategy: "parent" | "child";
|
||||
options: CascaderOption[];
|
||||
valueOnClear: string | number | boolean | Function | null;
|
||||
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
||||
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
||||
declare const _default: typeof __VLS_export;
|
||||
type __VLS_WithSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
export { _default };
|
||||
Reference in New Issue
Block a user