fangguo-component 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/dist/MInput-CO6YUVuZ.js +101 -0
- package/dist/MInput.css +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/cascader.css +1 -0
- package/dist/cascader.vue_vue_type_script_setup_true_lang-HFhhhQva.js +2268 -0
- package/dist/components/cascader/cascader/cascader.d.ts +49 -0
- package/dist/components/cascader/cascader/cascader.vue.d.ts +3734 -0
- package/dist/components/cascader/cascader/index.d.ts +6 -0
- package/dist/components/cascader/cascader-panel/config.d.ts +28 -0
- package/dist/components/cascader/cascader-panel/index.vue.d.ts +971 -0
- package/dist/components/cascader/cascader-panel/instance.d.ts +2 -0
- package/dist/components/cascader/cascader-panel/menu.vue.d.ts +659 -0
- package/dist/components/cascader/cascader-panel/node-content.d.ts +21 -0
- package/dist/components/cascader/cascader-panel/node.d.ts +85 -0
- package/dist/components/cascader/cascader-panel/node.vue.d.ts +481 -0
- package/dist/components/cascader/cascader-panel/store.d.ts +18 -0
- package/dist/components/cascader/cascader-panel/types.d.ts +36 -0
- package/dist/components/cascader/cascader-panel/utils.d.ts +4 -0
- package/dist/components/cascader/index.d.ts +4 -0
- package/dist/components/cascader/index.js +4 -0
- package/dist/components/cascader/utils/arrays.d.ts +5 -0
- package/dist/components/cascader/utils/browser.d.ts +3 -0
- package/dist/components/cascader/utils/dom/aria.d.ts +30 -0
- package/dist/components/cascader/utils/dom/event.d.ts +6 -0
- package/dist/components/cascader/utils/dom/index.d.ts +5 -0
- package/dist/components/cascader/utils/dom/position.d.ts +7 -0
- package/dist/components/cascader/utils/dom/scroll.d.ts +8 -0
- package/dist/components/cascader/utils/dom/style.d.ts +9 -0
- package/dist/components/cascader/utils/error.d.ts +3 -0
- package/dist/components/cascader/utils/functions.d.ts +1 -0
- package/dist/components/cascader/utils/i18n.d.ts +1 -0
- package/dist/components/cascader/utils/index.d.ts +13 -0
- package/dist/components/cascader/utils/objects.d.ts +8 -0
- package/dist/components/cascader/utils/raf.d.ts +2 -0
- package/dist/components/cascader/utils/rand.d.ts +10 -0
- package/dist/components/cascader/utils/strings.d.ts +6 -0
- package/dist/components/cascader/utils/types.d.ts +9 -0
- package/dist/components/cascader/utils/typescript.d.ts +12 -0
- package/dist/components/cascader/utils/vue/global-node.d.ts +3 -0
- package/dist/components/cascader/utils/vue/icon.d.ts +23 -0
- package/dist/components/cascader/utils/vue/index.d.ts +9 -0
- package/dist/components/cascader/utils/vue/install.d.ts +6 -0
- package/dist/components/cascader/utils/vue/props/index.d.ts +3 -0
- package/dist/components/cascader/utils/vue/props/runtime.d.ts +29 -0
- package/dist/components/cascader/utils/vue/props/types.d.ts +120 -0
- package/dist/components/cascader/utils/vue/props/util.d.ts +8 -0
- package/dist/components/cascader/utils/vue/refs.d.ts +3 -0
- package/dist/components/cascader/utils/vue/size.d.ts +2 -0
- package/dist/components/cascader/utils/vue/typescript.d.ts +5 -0
- package/dist/components/cascader/utils/vue/validator.d.ts +3 -0
- package/dist/components/cascader/utils/vue/vnode.d.ts +50 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +6 -0
- package/dist/components/mInput/MInput.vue.d.ts +28 -0
- package/dist/components/mInput/index.d.ts +2 -0
- package/dist/components/mInput/index.js +4 -0
- package/dist/components/mInput/types.d.ts +24 -0
- package/dist/directive/index.d.ts +1 -0
- package/dist/directive/index.js +4 -0
- package/dist/directive/loading/Loading.vue.d.ts +2 -0
- package/dist/directive/loading/index.d.ts +1 -0
- package/dist/directive/loading/index.js +4 -0
- package/dist/directive/loading/loading.d.ts +5 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/usePagination/index.d.ts +1 -0
- package/dist/hooks/usePagination/index.js +4 -0
- package/dist/hooks/usePagination/usePagination.d.ts +8 -0
- package/dist/index-CeWudY6u.js +8 -0
- package/dist/index-DihzpZcR.js +14 -0
- package/dist/index-DpPsTMp0.js +8 -0
- package/dist/index-wUcQXc_Z.js +10 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +55 -0
- package/dist/loading-DJVNc0eN.js +36 -0
- package/dist/loading.css +1 -0
- package/dist/shims.d.ts +20 -0
- package/dist/tools/Grid/Grid.d.ts +48 -0
- package/dist/tools/Grid/index.d.ts +1 -0
- package/dist/tools/Grid/index.js +217 -0
- package/dist/tools/common/common.d.ts +44 -0
- package/dist/tools/common/index.d.ts +1 -0
- package/dist/tools/common/index.js +5087 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +10 -0
- package/dist/usePagination-CwShBEjA.js +20 -0
- package/package.json +82 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
ns: {
|
|
3
|
+
namespace: import('vue').ComputedRef<string>;
|
|
4
|
+
b: (blockSuffix?: string) => string;
|
|
5
|
+
e: (element?: string) => string;
|
|
6
|
+
m: (modifier?: string) => string;
|
|
7
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
8
|
+
em: (element?: string, modifier?: string) => string;
|
|
9
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
10
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
11
|
+
is: {
|
|
12
|
+
(name: string, state: boolean | undefined): string;
|
|
13
|
+
(name: string): string;
|
|
14
|
+
};
|
|
15
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
16
|
+
cssVarName: (name: string) => string;
|
|
17
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
18
|
+
cssVarBlockName: (name: string) => string;
|
|
19
|
+
};
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export type CascaderNodeValue = string | number;
|
|
3
|
+
export type CascaderNodePathValue = CascaderNodeValue[];
|
|
4
|
+
export type CascaderValue = CascaderNodeValue | CascaderNodePathValue | (CascaderNodeValue | CascaderNodePathValue)[];
|
|
5
|
+
export type CascaderConfig = Required<CascaderProps>;
|
|
6
|
+
export type ExpandTrigger = 'click' | 'hover';
|
|
7
|
+
export type isDisabled = (data: CascaderOption, node: Node) => boolean;
|
|
8
|
+
export type isLeaf = (data: CascaderOption, node: Node) => boolean;
|
|
9
|
+
export type Resolve = (dataList?: CascaderOption[]) => void;
|
|
10
|
+
export type LazyLoad = (node: Node, resolve: Resolve) => void;
|
|
11
|
+
export type RenderLabel = ({ node: Node, data: CascaderOption, }: {
|
|
12
|
+
node: any;
|
|
13
|
+
data: any;
|
|
14
|
+
}) => VNode | VNode[];
|
|
15
|
+
export interface CascaderOption extends Record<string, unknown> {
|
|
16
|
+
label?: string;
|
|
17
|
+
value?: CascaderNodeValue;
|
|
18
|
+
children?: CascaderOption[];
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
leaf?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface CascaderProps {
|
|
23
|
+
expandTrigger?: ExpandTrigger;
|
|
24
|
+
multiple?: boolean;
|
|
25
|
+
checkStrictly?: boolean;
|
|
26
|
+
emitPath?: boolean;
|
|
27
|
+
lazy?: boolean;
|
|
28
|
+
lazyLoad?: LazyLoad;
|
|
29
|
+
value?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
children?: string;
|
|
32
|
+
disabled?: string | isDisabled;
|
|
33
|
+
leaf?: string | isLeaf;
|
|
34
|
+
hoverThreshold?: number;
|
|
35
|
+
}
|
|
36
|
+
export type Nullable<T> = null | T;
|
|
37
|
+
type ChildrenData = CascaderOption[] | undefined;
|
|
38
|
+
declare class Node {
|
|
39
|
+
readonly data: Nullable<CascaderOption>;
|
|
40
|
+
readonly config: CascaderConfig;
|
|
41
|
+
readonly parent?: Node;
|
|
42
|
+
readonly root: boolean;
|
|
43
|
+
readonly uid: number;
|
|
44
|
+
readonly level: number;
|
|
45
|
+
readonly value: CascaderNodeValue;
|
|
46
|
+
readonly label: string;
|
|
47
|
+
readonly pathNodes: Node[];
|
|
48
|
+
readonly pathValues: CascaderNodePathValue;
|
|
49
|
+
readonly pathLabels: string[];
|
|
50
|
+
childrenData: ChildrenData;
|
|
51
|
+
children: Node[];
|
|
52
|
+
text: string;
|
|
53
|
+
loaded: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Is it checked
|
|
56
|
+
*
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
checked: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Used to indicate the intermediate state of unchecked and fully checked child nodes
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
indeterminate: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Loading Status
|
|
68
|
+
*
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
loading: boolean;
|
|
72
|
+
constructor(data: Nullable<CascaderOption>, config: CascaderConfig, parent?: Node, root?: boolean);
|
|
73
|
+
get isDisabled(): boolean;
|
|
74
|
+
get isLeaf(): boolean;
|
|
75
|
+
get valueByOption(): CascaderNodePathValue | CascaderNodeValue;
|
|
76
|
+
appendChild(childData: CascaderOption): Node;
|
|
77
|
+
calcText(allLevels: boolean, separator: string): string;
|
|
78
|
+
broadcast(event: string, ...args: unknown[]): void;
|
|
79
|
+
emit(event: string, ...args: unknown[]): void;
|
|
80
|
+
onParentCheck(checked: boolean): void;
|
|
81
|
+
onChildCheck(): void;
|
|
82
|
+
setCheckState(checked: boolean): void;
|
|
83
|
+
doCheck(checked: boolean): void;
|
|
84
|
+
}
|
|
85
|
+
export default Node;
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { default as CascaderNode } from './node';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
node: {
|
|
5
|
+
type: PropType<CascaderNode>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
menuId: StringConstructor;
|
|
9
|
+
}>, {
|
|
10
|
+
panel: import('./types').ElCascaderPanelContext;
|
|
11
|
+
isHoverMenu: import('vue').ComputedRef<boolean>;
|
|
12
|
+
multiple: import('vue').ComputedRef<boolean>;
|
|
13
|
+
checkStrictly: import('vue').ComputedRef<boolean>;
|
|
14
|
+
checkedNodeId: import('vue').ComputedRef<number>;
|
|
15
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
16
|
+
isLeaf: import('vue').ComputedRef<boolean>;
|
|
17
|
+
expandable: import('vue').ComputedRef<boolean>;
|
|
18
|
+
inExpandingPath: import('vue').ComputedRef<boolean>;
|
|
19
|
+
inCheckedPath: import('vue').ComputedRef<boolean>;
|
|
20
|
+
ns: {
|
|
21
|
+
namespace: import('vue').ComputedRef<string>;
|
|
22
|
+
b: (blockSuffix?: string) => string;
|
|
23
|
+
e: (element?: string) => string;
|
|
24
|
+
m: (modifier?: string) => string;
|
|
25
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
26
|
+
em: (element?: string, modifier?: string) => string;
|
|
27
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
28
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
29
|
+
is: {
|
|
30
|
+
(name: string, state: boolean | undefined): string;
|
|
31
|
+
(name: string): string;
|
|
32
|
+
};
|
|
33
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
34
|
+
cssVarName: (name: string) => string;
|
|
35
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
36
|
+
cssVarBlockName: (name: string) => string;
|
|
37
|
+
};
|
|
38
|
+
handleHoverExpand: (e: Event) => void;
|
|
39
|
+
handleExpand: () => void;
|
|
40
|
+
handleClick: () => void;
|
|
41
|
+
handleCheck: (checked: boolean) => void;
|
|
42
|
+
handleSelectCheck: (checked: boolean) => void;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "expand"[], "expand", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
+
node: {
|
|
45
|
+
type: PropType<CascaderNode>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
menuId: StringConstructor;
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onExpand?: (...args: any[]) => any;
|
|
51
|
+
}>, {}, {}, {
|
|
52
|
+
ElCheckbox: {
|
|
53
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').CheckboxProps> & Readonly<{
|
|
54
|
+
onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
55
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
56
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
change: (val: import('element-plus').CheckboxValueType) => void;
|
|
58
|
+
"update:modelValue": (val: import('element-plus').CheckboxValueType) => void;
|
|
59
|
+
}, import('vue').PublicProps, {
|
|
60
|
+
id: string;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
modelValue: number | string | boolean;
|
|
63
|
+
validateEvent: boolean;
|
|
64
|
+
name: string;
|
|
65
|
+
value: string | boolean | number | object;
|
|
66
|
+
label: string | boolean | number | object;
|
|
67
|
+
trueValue: string | number;
|
|
68
|
+
falseValue: string | number;
|
|
69
|
+
trueLabel: string | number;
|
|
70
|
+
falseLabel: string | number;
|
|
71
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
72
|
+
P: {};
|
|
73
|
+
B: {};
|
|
74
|
+
D: {};
|
|
75
|
+
C: {};
|
|
76
|
+
M: {};
|
|
77
|
+
Defaults: {};
|
|
78
|
+
}, Readonly<import('element-plus').CheckboxProps> & Readonly<{
|
|
79
|
+
onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
80
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
81
|
+
}>, {}, {}, {}, {}, {
|
|
82
|
+
id: string;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
modelValue: number | string | boolean;
|
|
85
|
+
validateEvent: boolean;
|
|
86
|
+
name: string;
|
|
87
|
+
value: string | boolean | number | object;
|
|
88
|
+
label: string | boolean | number | object;
|
|
89
|
+
trueValue: string | number;
|
|
90
|
+
falseValue: string | number;
|
|
91
|
+
trueLabel: string | number;
|
|
92
|
+
falseLabel: string | number;
|
|
93
|
+
}>;
|
|
94
|
+
__isFragment?: never;
|
|
95
|
+
__isTeleport?: never;
|
|
96
|
+
__isSuspense?: never;
|
|
97
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').CheckboxProps> & Readonly<{
|
|
98
|
+
onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
99
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
100
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
101
|
+
change: (val: import('element-plus').CheckboxValueType) => void;
|
|
102
|
+
"update:modelValue": (val: import('element-plus').CheckboxValueType) => void;
|
|
103
|
+
}, string, {
|
|
104
|
+
id: string;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
modelValue: number | string | boolean;
|
|
107
|
+
validateEvent: boolean;
|
|
108
|
+
name: string;
|
|
109
|
+
value: string | boolean | number | object;
|
|
110
|
+
label: string | boolean | number | object;
|
|
111
|
+
trueValue: string | number;
|
|
112
|
+
falseValue: string | number;
|
|
113
|
+
trueLabel: string | number;
|
|
114
|
+
falseLabel: string | number;
|
|
115
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
116
|
+
$slots: {
|
|
117
|
+
default?: (props: {}) => any;
|
|
118
|
+
};
|
|
119
|
+
}) & import('vue').ObjectPlugin & {
|
|
120
|
+
setPropsDefaults: (defaults: Partial<Omit<{
|
|
121
|
+
readonly modelValue?: number | string | boolean;
|
|
122
|
+
readonly label?: string | boolean | number | object;
|
|
123
|
+
readonly value?: string | boolean | number | object;
|
|
124
|
+
readonly indeterminate?: boolean;
|
|
125
|
+
readonly disabled?: boolean;
|
|
126
|
+
readonly checked?: boolean;
|
|
127
|
+
readonly name?: string;
|
|
128
|
+
readonly trueValue?: string | number;
|
|
129
|
+
readonly falseValue?: string | number;
|
|
130
|
+
readonly trueLabel?: string | number;
|
|
131
|
+
readonly falseLabel?: string | number;
|
|
132
|
+
readonly id?: string;
|
|
133
|
+
readonly border?: boolean;
|
|
134
|
+
readonly size?: import('element-plus').ComponentSize;
|
|
135
|
+
readonly tabindex?: string | number;
|
|
136
|
+
readonly validateEvent?: boolean;
|
|
137
|
+
readonly ariaLabel?: string;
|
|
138
|
+
readonly ariaControls?: string;
|
|
139
|
+
readonly onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
140
|
+
readonly "onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
141
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "onChange" | "onUpdate:modelValue" | keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>>) => void;
|
|
142
|
+
} & {
|
|
143
|
+
CheckboxButton: {
|
|
144
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').CheckboxProps> & Readonly<{
|
|
145
|
+
onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
146
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
147
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
148
|
+
change: (val: import('element-plus').CheckboxValueType) => void;
|
|
149
|
+
"update:modelValue": (val: import('element-plus').CheckboxValueType) => void;
|
|
150
|
+
}, import('vue').PublicProps, {
|
|
151
|
+
id: string;
|
|
152
|
+
disabled: boolean;
|
|
153
|
+
modelValue: number | string | boolean;
|
|
154
|
+
validateEvent: boolean;
|
|
155
|
+
name: string;
|
|
156
|
+
value: string | boolean | number | object;
|
|
157
|
+
label: string | boolean | number | object;
|
|
158
|
+
trueValue: string | number;
|
|
159
|
+
falseValue: string | number;
|
|
160
|
+
trueLabel: string | number;
|
|
161
|
+
falseLabel: string | number;
|
|
162
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
163
|
+
P: {};
|
|
164
|
+
B: {};
|
|
165
|
+
D: {};
|
|
166
|
+
C: {};
|
|
167
|
+
M: {};
|
|
168
|
+
Defaults: {};
|
|
169
|
+
}, Readonly<import('element-plus').CheckboxProps> & Readonly<{
|
|
170
|
+
onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
171
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
172
|
+
}>, {}, {}, {}, {}, {
|
|
173
|
+
id: string;
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
modelValue: number | string | boolean;
|
|
176
|
+
validateEvent: boolean;
|
|
177
|
+
name: string;
|
|
178
|
+
value: string | boolean | number | object;
|
|
179
|
+
label: string | boolean | number | object;
|
|
180
|
+
trueValue: string | number;
|
|
181
|
+
falseValue: string | number;
|
|
182
|
+
trueLabel: string | number;
|
|
183
|
+
falseLabel: string | number;
|
|
184
|
+
}>;
|
|
185
|
+
__isFragment?: never;
|
|
186
|
+
__isTeleport?: never;
|
|
187
|
+
__isSuspense?: never;
|
|
188
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').CheckboxProps> & Readonly<{
|
|
189
|
+
onChange?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
190
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxValueType) => any) | undefined;
|
|
191
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
192
|
+
change: (val: import('element-plus').CheckboxValueType) => void;
|
|
193
|
+
"update:modelValue": (val: import('element-plus').CheckboxValueType) => void;
|
|
194
|
+
}, string, {
|
|
195
|
+
id: string;
|
|
196
|
+
disabled: boolean;
|
|
197
|
+
modelValue: number | string | boolean;
|
|
198
|
+
validateEvent: boolean;
|
|
199
|
+
name: string;
|
|
200
|
+
value: string | boolean | number | object;
|
|
201
|
+
label: string | boolean | number | object;
|
|
202
|
+
trueValue: string | number;
|
|
203
|
+
falseValue: string | number;
|
|
204
|
+
trueLabel: string | number;
|
|
205
|
+
falseLabel: string | number;
|
|
206
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
207
|
+
$slots: {
|
|
208
|
+
default?: (props: {}) => any;
|
|
209
|
+
};
|
|
210
|
+
});
|
|
211
|
+
CheckboxGroup: {
|
|
212
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').CheckboxGroupProps> & Readonly<{
|
|
213
|
+
onChange?: ((val: import('element-plus').CheckboxValueType[]) => any) | undefined;
|
|
214
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxGroupValueType) => any) | undefined;
|
|
215
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
216
|
+
change: (val: import('element-plus').CheckboxValueType[]) => void;
|
|
217
|
+
"update:modelValue": (val: import('element-plus').CheckboxGroupValueType) => void;
|
|
218
|
+
}, import('vue').PublicProps, {
|
|
219
|
+
props: {
|
|
220
|
+
value?: string;
|
|
221
|
+
label?: string;
|
|
222
|
+
disabled?: string;
|
|
223
|
+
};
|
|
224
|
+
type: "checkbox" | "button";
|
|
225
|
+
disabled: boolean;
|
|
226
|
+
modelValue: import('element-plus').CheckboxGroupValueType;
|
|
227
|
+
validateEvent: boolean;
|
|
228
|
+
tag: string;
|
|
229
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
230
|
+
P: {};
|
|
231
|
+
B: {};
|
|
232
|
+
D: {};
|
|
233
|
+
C: {};
|
|
234
|
+
M: {};
|
|
235
|
+
Defaults: {};
|
|
236
|
+
}, Readonly<import('element-plus').CheckboxGroupProps> & Readonly<{
|
|
237
|
+
onChange?: ((val: import('element-plus').CheckboxValueType[]) => any) | undefined;
|
|
238
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxGroupValueType) => any) | undefined;
|
|
239
|
+
}>, {}, {}, {}, {}, {
|
|
240
|
+
props: {
|
|
241
|
+
value?: string;
|
|
242
|
+
label?: string;
|
|
243
|
+
disabled?: string;
|
|
244
|
+
};
|
|
245
|
+
type: "checkbox" | "button";
|
|
246
|
+
disabled: boolean;
|
|
247
|
+
modelValue: import('element-plus').CheckboxGroupValueType;
|
|
248
|
+
validateEvent: boolean;
|
|
249
|
+
tag: string;
|
|
250
|
+
}>;
|
|
251
|
+
__isFragment?: never;
|
|
252
|
+
__isTeleport?: never;
|
|
253
|
+
__isSuspense?: never;
|
|
254
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').CheckboxGroupProps> & Readonly<{
|
|
255
|
+
onChange?: ((val: import('element-plus').CheckboxValueType[]) => any) | undefined;
|
|
256
|
+
"onUpdate:modelValue"?: ((val: import('element-plus').CheckboxGroupValueType) => any) | undefined;
|
|
257
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
258
|
+
change: (val: import('element-plus').CheckboxValueType[]) => void;
|
|
259
|
+
"update:modelValue": (val: import('element-plus').CheckboxGroupValueType) => void;
|
|
260
|
+
}, string, {
|
|
261
|
+
props: {
|
|
262
|
+
value?: string;
|
|
263
|
+
label?: string;
|
|
264
|
+
disabled?: string;
|
|
265
|
+
};
|
|
266
|
+
type: "checkbox" | "button";
|
|
267
|
+
disabled: boolean;
|
|
268
|
+
modelValue: import('element-plus').CheckboxGroupValueType;
|
|
269
|
+
validateEvent: boolean;
|
|
270
|
+
tag: string;
|
|
271
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
272
|
+
$slots: {
|
|
273
|
+
default?: (props: {}) => any;
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
ElRadio: {
|
|
278
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').RadioProps> & Readonly<{
|
|
279
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
280
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
281
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
282
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
283
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
284
|
+
}, import('vue').PublicProps, {
|
|
285
|
+
disabled: boolean;
|
|
286
|
+
modelValue: string | number | boolean;
|
|
287
|
+
name: string;
|
|
288
|
+
value: string | number | boolean;
|
|
289
|
+
border: boolean;
|
|
290
|
+
label: string | number | boolean;
|
|
291
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
292
|
+
P: {};
|
|
293
|
+
B: {};
|
|
294
|
+
D: {};
|
|
295
|
+
C: {};
|
|
296
|
+
M: {};
|
|
297
|
+
Defaults: {};
|
|
298
|
+
}, Readonly<import('element-plus').RadioProps> & Readonly<{
|
|
299
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
300
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
301
|
+
}>, {}, {}, {}, {}, {
|
|
302
|
+
disabled: boolean;
|
|
303
|
+
modelValue: string | number | boolean;
|
|
304
|
+
name: string;
|
|
305
|
+
value: string | number | boolean;
|
|
306
|
+
border: boolean;
|
|
307
|
+
label: string | number | boolean;
|
|
308
|
+
}>;
|
|
309
|
+
__isFragment?: never;
|
|
310
|
+
__isTeleport?: never;
|
|
311
|
+
__isSuspense?: never;
|
|
312
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').RadioProps> & Readonly<{
|
|
313
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
314
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
315
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
316
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
317
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
318
|
+
}, string, {
|
|
319
|
+
disabled: boolean;
|
|
320
|
+
modelValue: string | number | boolean;
|
|
321
|
+
name: string;
|
|
322
|
+
value: string | number | boolean;
|
|
323
|
+
border: boolean;
|
|
324
|
+
label: string | number | boolean;
|
|
325
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
326
|
+
$slots: {
|
|
327
|
+
default?: (props: {}) => any;
|
|
328
|
+
};
|
|
329
|
+
}) & import('vue').ObjectPlugin & {
|
|
330
|
+
setPropsDefaults: (defaults: Partial<Omit<{
|
|
331
|
+
readonly border?: boolean;
|
|
332
|
+
readonly modelValue?: string | number | boolean;
|
|
333
|
+
readonly size?: import('element-plus').ComponentSize;
|
|
334
|
+
readonly disabled?: boolean;
|
|
335
|
+
readonly label?: string | number | boolean;
|
|
336
|
+
readonly value?: string | number | boolean;
|
|
337
|
+
readonly name?: string;
|
|
338
|
+
readonly onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
339
|
+
readonly "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
340
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "onChange" | "onUpdate:modelValue" | keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>>) => void;
|
|
341
|
+
} & {
|
|
342
|
+
RadioButton: {
|
|
343
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
344
|
+
disabled: boolean;
|
|
345
|
+
modelValue: string | number | boolean;
|
|
346
|
+
name: string;
|
|
347
|
+
value: string | number | boolean;
|
|
348
|
+
label: string | number | boolean;
|
|
349
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
350
|
+
P: {};
|
|
351
|
+
B: {};
|
|
352
|
+
D: {};
|
|
353
|
+
C: {};
|
|
354
|
+
M: {};
|
|
355
|
+
Defaults: {};
|
|
356
|
+
}, Readonly<import('element-plus').RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
357
|
+
disabled: boolean;
|
|
358
|
+
modelValue: string | number | boolean;
|
|
359
|
+
name: string;
|
|
360
|
+
value: string | number | boolean;
|
|
361
|
+
label: string | number | boolean;
|
|
362
|
+
}>;
|
|
363
|
+
__isFragment?: never;
|
|
364
|
+
__isTeleport?: never;
|
|
365
|
+
__isSuspense?: never;
|
|
366
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
367
|
+
disabled: boolean;
|
|
368
|
+
modelValue: string | number | boolean;
|
|
369
|
+
name: string;
|
|
370
|
+
value: string | number | boolean;
|
|
371
|
+
label: string | number | boolean;
|
|
372
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
373
|
+
$slots: {
|
|
374
|
+
default?: (props: {}) => any;
|
|
375
|
+
};
|
|
376
|
+
});
|
|
377
|
+
RadioGroup: {
|
|
378
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').RadioGroupProps> & Readonly<{
|
|
379
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
380
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
381
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
382
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
383
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
384
|
+
}, import('vue').PublicProps, {
|
|
385
|
+
fill: string;
|
|
386
|
+
props: import('element-plus').radioOptionProp;
|
|
387
|
+
type: "radio" | "button";
|
|
388
|
+
id: string;
|
|
389
|
+
disabled: boolean;
|
|
390
|
+
modelValue: string | number | boolean;
|
|
391
|
+
validateEvent: boolean;
|
|
392
|
+
name: string;
|
|
393
|
+
textColor: string;
|
|
394
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
395
|
+
P: {};
|
|
396
|
+
B: {};
|
|
397
|
+
D: {};
|
|
398
|
+
C: {};
|
|
399
|
+
M: {};
|
|
400
|
+
Defaults: {};
|
|
401
|
+
}, Readonly<import('element-plus').RadioGroupProps> & Readonly<{
|
|
402
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
403
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
404
|
+
}>, {}, {}, {}, {}, {
|
|
405
|
+
fill: string;
|
|
406
|
+
props: import('element-plus').radioOptionProp;
|
|
407
|
+
type: "radio" | "button";
|
|
408
|
+
id: string;
|
|
409
|
+
disabled: boolean;
|
|
410
|
+
modelValue: string | number | boolean;
|
|
411
|
+
validateEvent: boolean;
|
|
412
|
+
name: string;
|
|
413
|
+
textColor: string;
|
|
414
|
+
}>;
|
|
415
|
+
__isFragment?: never;
|
|
416
|
+
__isTeleport?: never;
|
|
417
|
+
__isSuspense?: never;
|
|
418
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').RadioGroupProps> & Readonly<{
|
|
419
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
420
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
421
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
422
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
423
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
424
|
+
}, string, {
|
|
425
|
+
fill: string;
|
|
426
|
+
props: import('element-plus').radioOptionProp;
|
|
427
|
+
type: "radio" | "button";
|
|
428
|
+
id: string;
|
|
429
|
+
disabled: boolean;
|
|
430
|
+
modelValue: string | number | boolean;
|
|
431
|
+
validateEvent: boolean;
|
|
432
|
+
name: string;
|
|
433
|
+
textColor: string;
|
|
434
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
435
|
+
$slots: {
|
|
436
|
+
default?: (props: {}) => any;
|
|
437
|
+
};
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
NodeContent: import('vue').DefineComponent<{}, {
|
|
441
|
+
ns: {
|
|
442
|
+
namespace: import('vue').ComputedRef<string>;
|
|
443
|
+
b: (blockSuffix?: string) => string;
|
|
444
|
+
e: (element?: string) => string;
|
|
445
|
+
m: (modifier?: string) => string;
|
|
446
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
447
|
+
em: (element?: string, modifier?: string) => string;
|
|
448
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
449
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
450
|
+
is: {
|
|
451
|
+
(name: string, state: boolean | undefined): string;
|
|
452
|
+
(name: string): string;
|
|
453
|
+
};
|
|
454
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
455
|
+
cssVarName: (name: string) => string;
|
|
456
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
457
|
+
cssVarBlockName: (name: string) => string;
|
|
458
|
+
};
|
|
459
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
460
|
+
ElIcon: import('element-plus/es/utils/index.mjs').SFCWithInstall<{
|
|
461
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('element-plus').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
462
|
+
P: {};
|
|
463
|
+
B: {};
|
|
464
|
+
D: {};
|
|
465
|
+
C: {};
|
|
466
|
+
M: {};
|
|
467
|
+
Defaults: {};
|
|
468
|
+
}, Readonly<import('element-plus').IconProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
469
|
+
__isFragment?: never;
|
|
470
|
+
__isTeleport?: never;
|
|
471
|
+
__isSuspense?: never;
|
|
472
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('element-plus').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
473
|
+
$slots: {
|
|
474
|
+
default?: (props: {}) => any;
|
|
475
|
+
};
|
|
476
|
+
})>;
|
|
477
|
+
Check: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
478
|
+
Loading: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
479
|
+
ArrowRight: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
480
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
481
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as Node, CascaderConfig, CascaderNodePathValue, CascaderNodeValue, CascaderOption } from './node';
|
|
2
|
+
import { Nullable } from '../utils';
|
|
3
|
+
export default class Store {
|
|
4
|
+
readonly config: CascaderConfig;
|
|
5
|
+
readonly nodes: Node[];
|
|
6
|
+
readonly allNodes: Node[];
|
|
7
|
+
readonly leafNodes: Node[];
|
|
8
|
+
readonly valueNodeMap: Map<CascaderNodeValue, Node>;
|
|
9
|
+
readonly pathNodeMap: Map<string, Node>;
|
|
10
|
+
constructor(data: CascaderOption[], config: CascaderConfig);
|
|
11
|
+
private cacheNode;
|
|
12
|
+
getNodes(): Node[];
|
|
13
|
+
getFlattedNodes(leafOnly: boolean): Node[];
|
|
14
|
+
appendNode(nodeData: CascaderOption, parentNode?: Node): void;
|
|
15
|
+
appendNodes(nodeDataList: CascaderOption[], parentNode: Node): void;
|
|
16
|
+
getNodeByValue(value: CascaderNodeValue | CascaderNodePathValue, leafOnly?: boolean): Nullable<Node>;
|
|
17
|
+
getSameNode(node: Node): Nullable<Node>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { InjectionKey, VNode } from 'vue';
|
|
2
|
+
import { Nullable } from '../utils';
|
|
3
|
+
import { default as CascaderNode, CascaderOption, CascaderProps, ExpandTrigger } from './node';
|
|
4
|
+
export type { CascaderNode, CascaderOption, CascaderProps, ExpandTrigger };
|
|
5
|
+
export type CascaderNodeValue = string | number;
|
|
6
|
+
export type CascaderNodePathValue = CascaderNodeValue[];
|
|
7
|
+
export type CascaderValue = CascaderNodeValue | CascaderNodePathValue | (CascaderNodeValue | CascaderNodePathValue)[];
|
|
8
|
+
export type CascaderConfig = Required<CascaderProps>;
|
|
9
|
+
export type isDisabled = (data: CascaderOption, node: CascaderNode) => boolean;
|
|
10
|
+
export type isLeaf = (data: CascaderOption, node: CascaderNode) => boolean;
|
|
11
|
+
export type Resolve = (dataList?: CascaderOption[]) => void;
|
|
12
|
+
export type LazyLoad = (node: CascaderNode, resolve: Resolve) => void;
|
|
13
|
+
export type RenderLabel = ({ node: CascaderNode, data: CascaderOption, }: {
|
|
14
|
+
node: any;
|
|
15
|
+
data: any;
|
|
16
|
+
}) => VNode | VNode[];
|
|
17
|
+
export interface Tag {
|
|
18
|
+
node?: CascaderNode;
|
|
19
|
+
key: number;
|
|
20
|
+
text: string;
|
|
21
|
+
hitState?: boolean;
|
|
22
|
+
closable: boolean;
|
|
23
|
+
isCollapseTag: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface ElCascaderPanelContext {
|
|
26
|
+
config: CascaderConfig;
|
|
27
|
+
expandingNode: Nullable<CascaderNode>;
|
|
28
|
+
checkedNodes: CascaderNode[];
|
|
29
|
+
isHoverMenu: boolean;
|
|
30
|
+
initialLoaded: boolean;
|
|
31
|
+
renderLabelFn: RenderLabel;
|
|
32
|
+
lazyLoad: (node?: CascaderNode, cb?: (dataList: CascaderOption[]) => void) => void;
|
|
33
|
+
expandNode: (node: CascaderNode, silent?: boolean) => void;
|
|
34
|
+
handleCheckChange: (node: CascaderNode, checked: boolean, emitClose?: boolean) => void;
|
|
35
|
+
}
|
|
36
|
+
export declare const CASCADER_PANEL_INJECTION_KEY: InjectionKey<ElCascaderPanelContext>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as CascaderNode } from './node';
|
|
2
|
+
export declare const getMenuIndex: (el: HTMLElement) => number;
|
|
3
|
+
export declare const checkNode: (el: HTMLElement) => void;
|
|
4
|
+
export declare const sortByOriginalOrder: (oldNodes: CascaderNode[], newNodes: CascaderNode[]) => CascaderNode[];
|