Skip to content

Commit 5086bb4

Browse files
committed
tsc构建,改search demo doc
1 parent 764b54e commit 5086bb4

File tree

18 files changed

+333
-1921
lines changed

18 files changed

+333
-1921
lines changed

gulpfile.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

typings/VirtualCheckbox/index.d.ts renamed to lib/typings/VirtualCheckbox/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ declare const _default: import("vue").DefineComponent<{
1313
default: boolean;
1414
};
1515
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
16-
modelValue: boolean;
1716
disabled: boolean;
17+
modelValue: boolean;
1818
halfChecked: boolean;
1919
} & {}>, {
20-
modelValue: boolean;
2120
disabled: boolean;
21+
modelValue: boolean;
2222
halfChecked: boolean;
2323
}>;
2424
export default _default;
File renamed without changes.
File renamed without changes.

typings/VirtualTree/index.d.ts renamed to lib/typings/VirtualTree/index.d.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ declare const _default: import("vue").DefineComponent<{
66
type: PropType<TreeNodeOptions[]>;
77
default: () => never[];
88
};
9-
readonly: {
10-
type: BooleanConstructor;
11-
default: boolean;
12-
};
139
showCheckbox: {
1410
type: BooleanConstructor;
1511
default: boolean;
@@ -30,20 +26,18 @@ declare const _default: import("vue").DefineComponent<{
3026
render: FunctionConstructor;
3127
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectChange" | "checkChange")[], "selectChange" | "checkChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
3228
source: TreeNodeOptions[];
33-
size: number;
34-
remain: number;
3529
showCheckbox: boolean;
3630
checkStrictly: boolean;
37-
readonly: boolean;
31+
size: number;
32+
remain: number;
3833
} & {
3934
render?: Function | undefined;
4035
loadData?: ((node: TreeNodeOptions, callback: (children: TreeNodeOptions[]) => void) => void) | undefined;
4136
}>, {
4237
source: TreeNodeOptions[];
43-
size: number;
44-
remain: number;
4538
showCheckbox: boolean;
4639
checkStrictly: boolean;
47-
readonly: boolean;
40+
size: number;
41+
remain: number;
4842
}>;
4943
export default _default;

typings/VirtualTree/node.d.ts renamed to lib/typings/VirtualTree/node.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { PropType, Slot } from "vue";
22
import { TreeNodeOptions } from "./types";
33
declare const _default: import("vue").DefineComponent<{
44
node: {
5-
type: PropType<TreeNodeOptions>;
5+
type: PropType<Required<TreeNodeOptions>>;
66
required: true;
77
};
88
iconSlot: PropType<Slot>;
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
1616
};
1717
render: FunctionConstructor;
1818
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select-change" | "toggle-expand" | "check-change")[], "select-change" | "toggle-expand" | "check-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
19-
node: TreeNodeOptions;
19+
node: Required<TreeNodeOptions>;
2020
showCheckbox: boolean;
2121
checkStrictly: boolean;
2222
} & {
File renamed without changes.

typings/VirtualTree/types.d.ts renamed to lib/typings/VirtualTree/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ interface TreeNodeOptions {
1111
hasChildren?: boolean;
1212
children?: TreeNodeOptions[];
1313
parentKey?: nodeKey | null;
14-
[key: string]: any;
1514
}
1615
interface TreeInstance {
1716
getSelectedNode: () => TreeNodeOptions | undefined;

lib/typings/VirtualTree/uses.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { TreeNodeOptions } from "./types";
2+
declare function flattenTree(source: TreeNodeOptions[]): Required<TreeNodeOptions>[];
3+
declare function updateDownwards(checked: boolean, node: Required<TreeNodeOptions>): void;
4+
declare function updateUpwards(targetNode: Required<TreeNodeOptions>, flatList: Required<TreeNodeOptions>[]): void;
5+
export { flattenTree, updateUpwards, updateDownwards };
File renamed without changes.

0 commit comments

Comments
 (0)